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

set PF status

Former Member
0 Likes
2,211

what is the purpose of using EXCLUDE in set PF.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,543

Hi Suresh

Hi it is used to make some buttons on the PF STATUS as INVISIBLE

Regards

Ravish

Reward if useful

what is the purpose of using EXCLUDE in set PF.

8 REPLIES 8
Read only

Former Member
0 Likes
1,544

Hi Suresh

Hi it is used to make some buttons on the PF STATUS as INVISIBLE

Regards

Ravish

Reward if useful

Read only

Former Member
0 Likes
1,543

Excluding FCODE functions this way: It is invisible in the toolbar

Ex: Suppose you write SET PF-STATUS 'XXX' EXCLUDING 'BACK'.

BACK button is not visible. But, take care that you give FCODE for 'BACK' instaed direcly writing 'BACK'.

Regards,

Pavan

Read only

Former Member
0 Likes
1,543

hi,

This is to exclude unwanted push buttons.

Read only

Former Member
0 Likes
1,543

Hi,

SET PF-STATUS is used for defining menu in the program and screens...

For that first you need to create the GUI Status for the program in which you are going to use the GUI Status....

GUI Status contains the Menubar , Standard Toolbar & Application Toolbar.

You can create it by this way...

SE80

Create Program

Right Click on Program

Create --> GUS Status...

Give Name of that GUI Status.. ( Further it will be useful in the program )

Now it opens the window where you can design your own menu & toolbar...

Design it...

Now save and activate it..

Now come back to your program (ABAP Editor )

Write the first statement like below..

SET PF-STATUS 'MENU1'.

Here MENU1 is the name of the GUI status which you created from SE80..

You can handle the user command here using

case sy-ucomm.

when 'SE11'.

call transaction 'SE11'.

when 'NEXT'.

  • Some logic...

endcase.

<b>Reward points</b>

Regards

Read only

Former Member
0 Likes
1,543

hi,

I think its better to explain with an eg:

chk this.

data: itab type table of sy-ucomm.
 
append 'DELE' to itab.
append 'PICK' to itab
 
set pf-status 'AAA' excluding itab.

Use excluding option when you call the PF status from your program,

to do that declare an internal table and populate

the internal table with the fields that have to exclude from the menu and

call the PF status using the syntax given above

Regards

Reshma

Read only

Former Member
0 Likes
1,543

Hi,

Here is an example of using an ITAB to exclude more than one Fcode in a status.

types: begin of tab_type,

fcode like rsmpe-func,

end of tab_type.

data: tab type standard table of tab_type with

non-unique default key initial size 10,

wa_tab type tab_type.

clear tab.

move 'DELE' to wa_tab-fcode.

append wa_tab to tab.

move 'PRIN' to wa_tab-fcode.

append wa_tab to tab.

set pf-status 'STA3' excluding tab.

You can exlude just one fcode by doing this.

set pf-status 'STA3' excluding 'DELE'.

Regards,

Omkar.

Read only

Former Member
0 Likes
1,543

Hi Suresh,

The purpose of using EXCLUDE in set PF STATUS is to deactivate some option/function of PF status of basic list and contuinue the same PF status with limited option in all subsequent list levels.

<i>Reward point if helpful

Regards

Debjani</i>

Read only

Former Member
0 Likes
1,543

EXCLUDE is use for remove buttons and options from PF status,

Chetan