Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ALV Help

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi sankar babu.

Have you created gui status rightly and activated it?

Have a glance on your gui status again.

Hope helps.

6 REPLIES 6

Former Member
0 Kudos

Hi sankar babu.

Have you created gui status rightly and activated it?

Have a glance on your gui status again.

Hope helps.

Former Member
0 Kudos

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,

Former Member
0 Kudos

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

Former Member
0 Kudos

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?

Former Member
0 Kudos

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]

Former Member
0 Kudos

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.