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

Former Member
0 Likes
435

Hi All,

I want to deactivatesome options in menu bar, how can I do that?

regards

Saurabh

3 REPLIES 3
Read only

former_member194669
Active Contributor
0 Likes
407

Hi,

Use


 set pf-status sy-dynnr excluding i_fctab "<fill i_fctab with fcodes you don't want enable

aRs

Read only

Former Member
0 Likes
407

Hi,

1. Declare an internal table of type sy-ucomm. i.e.

<b>DATA : it_fcode TYPE TABLE OF sy-ucomm.</b>

2. Append Function Codes of the options in the Menu that you want to deactivate to the above declared internal table. For e.g. If DEL & INS are the Function Codes of options that need to be deactivated then,

<b>APPEND 'DEL' TO it_fcode.

APPEND 'INS' TO it_fcode.</b>

3. Set PF_-Status as shown below.

<b>SET PF-STATUS 'status_name' EXCLUDING it_fcode.</b>

4. Now, the options in the menu bar with Function Codes 'DEL' & 'INS' will be deactivated.

Reward points if the answer is helpful.

Regards,

Mukul

Read only

Former Member
0 Likes
407

tx