2011 Nov 08 8:51 AM
Hi Experts,
I have created a custom PF status for my program. I noticed 2 things,
1) The PF status has the status Modified/Active after activating it. I can see that other PF-status in system have status active.
2) The Menu bar is disabled although I have given function keys BACK,CANCEL & EXIT. How to enable these buttons?
I have used the below code,
data: OR_SALV_FUNCTIONS TYPE REF TO CL_SALV_FUNCTIONS,
lv_repid type sy-repid.
lv_repid = sy-repid.
OR_SALV_FUNCTIONS = o_alv->get_functions( ).
o_alv->set_screen_status( EXPORTING report = lv_repid
pfstatus = 'ZPF_STATUS'
set_functions = cl_salv_table=>c_functions_all ).
or_salv_functions->set_all( abap_true ).Br
Bharath
Hi Experts,
I have created a custom PF status for my program. I noticed 2 things,
1) The PF status has the status Modified/Active after activating it. I can see that other PF-status in system have status active.
2) The Menu bar is disabled although I have given function keys BACK,CANCEL & EXIT. How to enable these buttons?
I have used the below code,
data: OR_SALV_FUNCTIONS TYPE REF TO CL_SALV_FUNCTIONS,
lv_repid type sy-repid.
lv_repid = sy-repid.
OR_SALV_FUNCTIONS = o_alv->get_functions( ).
o_alv->set_screen_status( EXPORTING report = lv_repid
pfstatus = 'ZPF_STATUS'
set_functions = cl_salv_table=>c_functions_all ).
or_salv_functions->set_all( abap_true ).Br
Bharath
2011 Nov 08 9:55 AM
Hi All,
The problem is resolved now. I used below simple code and it works perfectly,
Instead of the code
data: OR_SALV_FUNCTIONS TYPE REF TO CL_SALV_FUNCTIONS,
lv_repid type sy-repid.
lv_repid = sy-repid.
OR_SALV_FUNCTIONS = o_alv->get_functions( ).
o_alv->set_screen_status( EXPORTING report = lv_repid
pfstatus = 'ZPF_STATUS'
set_functions = cl_salv_table=>c_functions_all ).
or_salv_functions->set_all( abap_true ).Use the below code,
data: OR_SALV_FUNCTIONS TYPE REF TO CL_SALV_FUNCTIONS.
OR_SALV_FUNCTIONS = o_alv->get_functions( ).
set pf-status 'BASIC'.
or_salv_functions->set_all( abap_true ).Edited by: bharath padmanabhan on Nov 8, 2011 3:25 PM
Edited by: bharath padmanabhan on Nov 8, 2011 3:32 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |