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: 

Why only few fields are visible in the GUI status output using cl_salv_functions

Former Member
0 Kudos

Hi,

Learning phase!!

ob_functions type ref to cl_salv_functions,

ob_table       type ref to cl_salv_table.

In the output I could see only 'Change Layout' option. I need 'Save Layout' and 'Choose Layout' fields even.

Kindly help me out.

Regards,

Naresh.

1 ACCEPTED SOLUTION

former_member205488
Active Participant
0 Kudos

Hello!

Try to explicitly set the gui status. For example:

  go_grid->set_screen_status(

     pfstatus      'SALV_GRID'

     report        sy-repid

     set_functions cl_salv_table=>c_functions_all ).

3 REPLIES 3

former_member205488
Active Participant
0 Kudos

Hello!

Try to explicitly set the gui status. For example:

  go_grid->set_screen_status(

     pfstatus      'SALV_GRID'

     report        sy-repid

     set_functions cl_salv_table=>c_functions_all ).

0 Kudos

Hi,

I have the exact same problem and your solution did not solve it... Here is my declared pf status and the one displayed at the SALV screen:

0 Kudos

Hello.

Another solution is this one. Here you don't need to define a gui status:

DATA: ls_lay_key TYPE              salv_s_layout_key,
          lcl_lay       TYPE REF TO cl_salv_layout.

lcl_lay = ob_table->get_layout( ).
ls_lay_key-report  = sy-cprog.
lcl_lay->set_key( ls_lay_key ).
lcl_lay->set_save_restriction( cl_salv_layout=>if_salv_c_layout~restrict_none ).

These lines show this 3 additional icons :

regards,

Peer.