‎2006 Nov 28 10:15 AM
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
‎2006 Nov 28 10:24 AM
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.
‎2006 Nov 28 10:20 AM
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
‎2006 Nov 28 10:22 AM
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,
‎2006 Nov 28 10:22 AM
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
‎2006 Nov 28 10:23 AM
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
‎2006 Nov 28 10:29 AM
Hi Friends,
I am refering to Standard Toolbar items.
Kindly guide me.
Regards,
‎2006 Nov 28 10:35 AM
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.
‎2006 Nov 28 10:37 AM
hi Mark,
You can create items in the Standard toolbar also using pf-status only.
‎2006 Nov 28 10:55 AM
The save button is in the deactivated mode. How to make it activated.
Kindly guide.
Regards,
‎2006 Nov 28 10:58 AM
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
‎2006 Nov 28 10:59 AM
‎2006 Nov 28 10:24 AM
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
‎2006 Nov 28 10:24 AM
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.
‎2006 Nov 28 10:25 AM
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