Application Development 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: 

how to create a gui pf status and guititle in module pool programming?

Former Member
0 Kudos

hi frnds,

how to create a gui pf status and gui title in module pool programming?

my problem is i created a screen and wen execute the screen by a tcode.am nt able to activate SAVE BACK EXIT CANCEL COMMANDS?.how to do this can any one explain in detail procedure?

plz gve step by step process.

1 ACCEPTED SOLUTION

GauthamV
Active Contributor
0 Kudos

hi,

u can set pf status in se41 tcode.

or in ur module pool program use statement

set pf-status 'zabc'.

double click on zabc it will allow u to create pf status.

their in functional tool bar give save , back... options n save.

also to work those buttons do coding in user command.

ex:

case sy-ucomm.

when 'back'.

leave to screen 0.

endcase.

7 REPLIES 7

Former Member
0 Kudos

Hi,

Using the statement SET PF-STATUS 'ZTEST'. Double click on ZTEST and you can create the button's in the next coming screen. The statement should be in PBO module of that screen.

Rgds,

Bujji

Sm1tje
Active Contributor
0 Kudos

in PBO create module set status.

in this module use SET PF-STATUS.

In the tree structure in SE80 (on the left) right click on GUI title to create a title.

GauthamV
Active Contributor
0 Kudos

hi,

u can set pf status in se41 tcode.

or in ur module pool program use statement

set pf-status 'zabc'.

double click on zabc it will allow u to create pf status.

their in functional tool bar give save , back... options n save.

also to work those buttons do coding in user command.

ex:

case sy-ucomm.

when 'back'.

leave to screen 0.

endcase.

Former Member

Hi,

For Title:In PBO...just write

SET TITLEBAR 'ZTITLE'.

double click on 'ZTITLE'....give whatever title u want...save it...activate...and check...reward points if useful...

PF means FUNCTION CODE

ex; set pf-status 'zrstatus'.

double click on the zrstatus expand the application server ,

at the time of execution the default menu(ie system,help),application toolbar buttons like enter,help etc and function keys(by default there will be no function keys)as are there on the normal

will appear on the screen.

Details:

PF-STATUS is used to set the GUI Status of a screen, ie you can control the options on your menu bar, application toolbar, the function keys assigned to various options etc.

Implementing the status for a screen can be done in 2 ways:

1) Create the GUI status using the object list of the program or by using the transaction SE41. Then, assign it to the screen using SET PF-STATUS statement.

2) Create the GUI status by means of forward navigation, ie, use the SET PF-STATUS 'XXX' statement where 'XXX' is the name of the GUI status and double click on it to create it.

Status names can have a maximum of 20 characters.

After assigning a GUI status to a screen, this is inherited to all subsequent screens. In order to have a different status for each of the subsequent screens, you have to set a separate status for each screen.

In transaction SE41,

1) Give the program name and the status name and click on the Create button.

2) Go to 'Function keys' and expand.

3) On top of the save icon type SAVE, on top of the back icon type BACK, on top the the exit icon type EXIT etc ie on top of all the icons that you want to use, type the respective names that you want to give.

Whatever you have typed now becomes the function codes of these icons and can be used in your program.

For example you have a screen 100.

In the 'Element list' tab of the screen, give "ok_code" as the name where "OK" is the type of screen element. Activate screen.

The flow logic for the screen looks like this:

PROCESS BEFORE OUTPUT.

MODULE STATUS_0100.

PROCESS AFTER INPUT.

MODULE USER_COMMAND_0100.

Create the modules STATUS_0100 and USER_COMMAND_0100 in the main program by simply double clicking on them.

The code for these modules can be something like this:

MODULE status_0100 OUTPUT.

SET PF-STATUS 'Example'. "Example is the name of the GUI status

ENDMODULE.

MODULE user_command_0100 INPUT.

CASE ok_code.

WHEN 'SAVE'.

"call a subroutine to save the data or give statements to save data.

WHEN 'BACK'.

LEAVE TO SCREEN 0.

WHEN 'EXIT'.

LEAVE PROGRAM.

ENDCASE.

ENDMODULE.

Regards,

Shiva Kumar (Reward If helpful)

former_member673464
Active Contributor
0 Kudos

hi,

refer to the demo programs

demo_dynpro_gui_status for setting the pf-status and using that status.

Regards,

Veeresh

Former Member
0 Kudos

Go to SE41, Click on Copy Status (CTRL+F6) and give

FRM program name as SAPLKKBL

and FRM status as STANDARD_FULLSCREEN

and To Program name as your program name and a Zstatus.

Activate the status.

Regards

Kannaiah

Former Member
0 Kudos

How to create a status bar in module pool /user dialog  abapprogramming, you could check this link http://saptechnicals.blogspot.com/2012/12/module-pool-programming-create-gui.html