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

Menu bar disabled

Former Member
0 Likes
397

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

1 REPLY 1
Read only

Former Member
0 Likes
368

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