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
1,503

Hi friends,

How to get the icons (Save, Back, Exit, Cancel, Print, etc.,) in the menu bar activated in a screen painter . In my program, all these icons are deactivated and not working.

Kindly guide me.

TIA.

Regards,

Mark K

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,456

Hi Mark,

In the PBO part of your screen, you will find a statement in comments as under:

"SET PF-STATUS ''

Just uncomment this statement & create a Menu by giving a name to PF-STATUS as below:

SET PF-STATUS 'GUI'.

Double click on GUI & it will take you to the menu creation screen.

Here in the Function keys you will find all the Standard Icons viz Save, Back , Exit, etc. Just write the name of the ICON in caps on them & activate the menu bar.

Also in the PAI module write the code for handling these buttons.

e.g.

LOOP AT SCREEN.

IF SY-UCOMM EQ 'EXIT'.

LEAVE PROGRAM.

ENDIF.

ENDLOOP.

Regards,

Chetan.

PS: Reward points if this helps.

13 REPLIES 13
Read only

Former Member
0 Likes
1,456

hi,

In PBO of the screen, there will be a commented line of set pfstatus 'STATUS'. double click and create a status. In the pf status, give function codes.

In the PAI, include the code for those function codes.

*Please reward if it helped you

Read only

dani_mn
Active Contributor
0 Likes
1,456

HI,

create the pf-status for your screen and then use following

SET PF-STATUS '100'.

in PBO of flow logic.

you can create this by double clicking on the 100 it will open the status creation screen assign function code to back exit and cancel button.

then activate this status and test.

REgards,

Read only

Former Member
0 Likes
1,456

Hi

Just define in the function codes of the PF-STATUS of your screen,

This will be in the PBO of your screen.

Assign the values that you want the Back ,Exit .

And in the PAI of the screen.you can define the actions that you want performed for these buttions

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
1,456

Hi,

Create PF_STATUS for including the standard nuttoms in menu bar .

In PBO use set pf-status 'status name'.

In PAI .

Do processing .

like case sy-ucomm.

when 'EXIT'.

leave to screen 0.

endcase.

Hope this helps.

Sands

Read only

0 Likes
1,456

Hi Friends,

I am refering to Standard Toolbar items.

Kindly guide me.

Regards,

Read only

0 Likes
1,456

If you are changing menu painter it will disable every other button except those you have coded.

Use SET PF-STATUS '0100' , after START-OF-SELECTION section.

And do the same thing as mention above.

Read only

0 Likes
1,456

hi Mark,

You can create items in the Standard toolbar also using pf-status only.

Read only

0 Likes
1,456

The save button is in the deactivated mode. How to make it activated.

Kindly guide.

Regards,

Read only

0 Likes
1,456

hi Mark,

In th pf-status screen, in the SAVE Button in standard tool bar, give a function code 'SAVE'.

In PAI, give the corresponding code

Pls let me know for any queries reg this

Read only

0 Likes
1,456

In PF_STATUS , on SAVE button give FCODE as "SAVE'.

Read only

Former Member
0 Likes
1,456

Hi Mark,

U have to use menu painter se41.

Example for dialog status in a list.

REPORT demo_list_menu_painter.

START-OF-SELECTION.

SET PF-STATUS 'TEST'.

WRITE: 'Basic list, sy-lsind =', sy-lsind.

AT LINE-SELECTION.

WRITE: 'LINE-SELECTION, sy-lsind =', sy-lsind.

AT USER-COMMAND.

CASE sy-ucomm.

WHEN 'TEST'.

WRITE: 'TEST, sy-lsind =', sy-lsind.

ENDCASE.

This program uses a status TEST, defined in the Menu Painter.

· Function key F5 has the function code TEST and the text Test for demo.

· Function code TEST is entered in the List menu.

· The function codes PICK and TEST are assigned to pushbuttons.

The user can trigger the AT USER-COMMAND event either by pressing F5, List ®Test for demo, or by choosing the pushbutton Test for demo. He or she can trigger the AT USER-COMMAND event by selecting a line (F2).

Reagrds,

Kumar

Read only

Former Member
0 Likes
1,457

Hi Mark,

In the PBO part of your screen, you will find a statement in comments as under:

"SET PF-STATUS ''

Just uncomment this statement & create a Menu by giving a name to PF-STATUS as below:

SET PF-STATUS 'GUI'.

Double click on GUI & it will take you to the menu creation screen.

Here in the Function keys you will find all the Standard Icons viz Save, Back , Exit, etc. Just write the name of the ICON in caps on them & activate the menu bar.

Also in the PAI module write the code for handling these buttons.

e.g.

LOOP AT SCREEN.

IF SY-UCOMM EQ 'EXIT'.

LEAVE PROGRAM.

ENDIF.

ENDLOOP.

Regards,

Chetan.

PS: Reward points if this helps.

Read only

Former Member
0 Likes
1,456

Hello Mark,

For every screen you have to define a pf-status for it.

Or you can define common pfstatus for all.

You can do that by

set pf-status '0100'.

and then double click on '0100' in above line.

in that press expand button for function keys.

In that write code for buttons you wish to have on screen.

Those are SAVE BACK EXIT CANC etc.

Now write event for clicking that buttons,

for example when user press back,

you must set screen to '0'.

And leave screen.

Write code for other buttons too.

Regards,

Kaushal N. Shah