2008 Jan 10 8:48 AM
Hi friends,
In my ALV report, the application menus are not coming out.(Header Menu)
What's the exact ALV type to display and how to call in a program...
Pls help and post ur comments.
thanks & regards
sankar.
2008 Jan 10 9:01 AM
Hi sankar babu.
Have you created gui status rightly and activated it?
Have a glance on your gui status again.
Hope helps.
Hi friends,
In my ALV report, the application menus are not coming out.(Header Menu)
What's the exact ALV type to display and how to call in a program...
Pls help and post ur comments.
thanks & regards
sankar.
2008 Jan 10 9:01 AM
Hi sankar babu.
Have you created gui status rightly and activated it?
Have a glance on your gui status again.
Hope helps.
2008 Jan 10 9:04 AM
Copy the standard PF-Status to your program.
Go to SE41.
Program: SAPLKKBL
Status: STANDARD_FULLSCREEN
Then press the button "Copy Status" Ctrl+F6.
Give your program name and status name to copy it.
Remove the button you wanted form your generated PF-Status.
Now in your program you need to make one perform for this:
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = g_repid
i_callback_pf_status_set = 'SET_PF_STATUS' " <<
[/code]
Make a FORM with name SET_PF_STATUS.
form SET_PF_STATUS using rt_extab type slis_t_extab . "#EC CALLED
set pf-status 'ZTEST_PF' excluding rt_extab[]. " < Status name copied in the first step.
endform. "f01_set_status[/code]
Regards,
2008 Jan 10 9:07 AM
hi sankar,
add functions to the application toolbar:
-> For this, use the CL_SALV_FUNCTIONS class. Create the object reference variable and receive the object using the GET_FUNCTIONS method of the GR_TABLE object. Call the method SET_ALL to force the ALV grid to show all standard functions.
report zalvom_demo1.
data: ispfli type table of spfli.
data: gr_table type ref to cl_salv_table.
data: gr_functions type ref to cl_salv_functions.
start-of-selection.
select * into table ispfli from spfli.
cl_salv_table=>factory( importing r_salv_table = gr_table
changing t_table = ispfli ).
gr_functions = gr_table->get_functions( ).
gr_functions->set_all( abap_true ).
gr_table->display( ).
The result is now you have the standard buttons on the application toolbar.
try this,it may be of some help.
reward if helpful
regards,
sravanthi
2008 Jan 10 9:07 AM
Hi,
If you are using SLIS type alv, no need to create gui status.
It should be ready when you run your report.
Do you use object oriented (>> cl_gui_alv_grid )or SLIS type alv?
2008 Jan 10 9:20 AM
Copy the standard PF-Status to your program.
Go to SE41.
Program: SAPLKKBL
Status: STANDARD_FULLSCREEN
Then press the button "Copy Status" Ctrl+F6.
Give your program name and status name to copy it.
Remove the button you wanted form your generated PF-Status.
Now in your program you need to make one perform for this:
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = g_repid
i_callback_pf_status_set = 'SET_PF_STATUS' " <<
[/code]
Make a FORM with name SET_PF_STATUS.
form SET_PF_STATUS using rt_extab type slis_t_extab . "#EC CALLED
set pf-status 'ZTEST_PF' excluding rt_extab[]. " < Status name copied in the first step.
endform. "f01_set_status[/code]
2008 Jan 10 10:25 AM
Sorry guys...
I used the SLIS type only...and my mistake was,i assinged the I_CALLBACK_PF_STATUS_SET as uncomment...so y im getting errors...
Now i did comment it...and its working fine.
thanks for ur replies.
regards
sankar.
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |