2016 Jan 29 9:38 AM
Hi,
This is my first program on OOP, so I need little help. I have created a PF status (copied from SALV_TABLE_STANDARD). Few of the buttons that are present in my PF status are not getting displayed on ALV output screen, like select layout, save layout, info. My code is as below:
go_alv->set_screen_status(
EXPORTING
report = sy-repid
pfstatus = 'CUSTOM_PF_STATUS'
set_functions = go_alv->c_functions_all ).
Regards,
Abhi
2016 Jan 29 10:49 AM
Some menu options will be hidden by the system if some information are missing for execution, so the layout option are hidden if you didn't set some layout option (the former "disvariant" fields)
Hint: Use search tool or jump to my answer in CL_SALV_TABLE settings layout saving disabled
Regards,
Raymond
Some menu options will be hidden by the system if some information are missing for execution, so the layout option are hidden if you didn't set some layout option (the former "disvariant" fields)
Hint: Use search tool or jump to my answer in CL_SALV_TABLE settings layout saving disabled
Regards,
Raymond
2016 Jan 29 9:44 AM
When you are using SALV then you do not need to copy the status to your program.
You can use the following statements:
TRY.
CALL METHOD cl_salv_table=>factory
IMPORTING
r_salv_table = gr_table
CHANGING
t_table = lt_table.
CATCH cx_salv_msg INTO lcx_salv_msg.
ENDTRY.
TRY.
* standard buttons and functioncodes
gr_functions = gr_table->get_functions( ).
gr_functions->set_all( 'X' ).
CATCH: cx_salv_not_found INTO lcx_salv_not_found,
cx_salv_data_error INTO lcx_salv_data_error.
ENDTRY.
etcetera
2016 Jan 29 10:08 AM
Hi Peter,
I have copied because I have to add a button in application toolbar. Anything wrong in my code?
2016 Jan 29 10:12 AM
Your code is alright, but did you activate the new button in the new PF status ?:
2016 Jan 29 10:22 AM
2016 Jan 29 10:28 AM
OK, I see now that not all buttons are visible in a custom report where I have done the same thing.
So it seems to be a standard behavior of PF status SALV_TABLE_STANDARD
I will see if I can change this. Right now I think you need to specifically add the functions you want and which are not shown, but I need to research this a bit.
2016 Jan 29 10:32 AM
2016 Jan 29 10:49 AM
Some menu options will be hidden by the system if some information are missing for execution, so the layout option are hidden if you didn't set some layout option (the former "disvariant" fields)
Hint: Use search tool or jump to my answer in CL_SALV_TABLE settings layout saving disabled
Regards,
Raymond
2016 Jan 29 10:56 AM
Thanks Raymond. I see layout buttons now. However, I am still missing refresh and info button. Please suggest how I can add functionalities of those too.
2016 Jan 29 1:14 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |