Application Development and Automation 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: 
Read only

Standard Menu using Oops ALV

ratna_rajeshp
Active Participant
0 Likes
2,991

Hello Experts,

When i execute an ALV report using the function module 'REUSE_ALV_GRID_DISPLAY' i can see standard menu items  like List export .... etc.

But when i try to display the data using oops (cl_gui_alv_grid ) i dont see any standard button , i see only system and help.

Please let  me know how can i get this standard button in place and working.

Even if Copy from a standard report , it may appear but i need them to work as in REUSE_ALV_GRID_DISPLAY.

Regards,

Ratna Rajesh

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
2,494

CL_GUI_ALV_GRID don't use program statuses but a toolbar for those function. If you want to add the standard program status toolbar and menu to the programa and that those interact with the OO ALV grid, you will have to maintain the lik yourself in the AT USER-COMMAND module like performed in REUSE_ALV_GRID_DISPLAY_LVC.

- Creating menu
Copy status STANDARD_FULLSCREEN from program SAPLKKBL

- Managing user command
Fortunately, there is a method than can help you :

call method <ref-to-grid>->set_function_code
  changing
    c_ucomm = l_okcode.

Use this method in your PAI user command module/form.

As a sample look at include LSLVC_FULLSCREENF01 form PAI.

Regards,
Raymond

3 REPLIES 3
Read only

RaymondGiuseppi
Active Contributor
2,495

CL_GUI_ALV_GRID don't use program statuses but a toolbar for those function. If you want to add the standard program status toolbar and menu to the programa and that those interact with the OO ALV grid, you will have to maintain the lik yourself in the AT USER-COMMAND module like performed in REUSE_ALV_GRID_DISPLAY_LVC.

- Creating menu
Copy status STANDARD_FULLSCREEN from program SAPLKKBL

- Managing user command
Fortunately, there is a method than can help you :

call method <ref-to-grid>->set_function_code
  changing
    c_ucomm = l_okcode.

Use this method in your PAI user command module/form.

As a sample look at include LSLVC_FULLSCREENF01 form PAI.

Regards,
Raymond

Read only

0 Likes
2,494

Wow Raymond,

It is really great it works , thanks a lot.

Read only

venusrini36
Explorer
0 Likes
1,729

thank you @RaymondGiuseppi , I struck with this issue for a long time and no AI tools helped me. but this solution works for me with below method call in PAI module.

call method <ref-to-grid>->set_function_code
  changing
    c_ucomm = l_okcode.