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 add GUI Stautus to selection-screen . please give some sample c

Former Member
0 Kudos

How to add GUI Stautus to selection-screen . please give some sample code?

5 REPLIES 5

uwe_schieferstein
Active Contributor

Hello

I usually copy the standard status (<b>%_00</b> in function group <b>SETB</b>) to my report and adjust it. Status %_00 is used as GUI-status for selection screens if no other is provided. Add the following lines to your report:


AT SELECTION-SCREEN OUTPUT.
  set pf-status 'SELSCREEN'.  " copy of %_00

Regards

Uwe

Former Member
0 Kudos

check the links

<a href="http://help.sap.com/saphelp_46c/helpdata/en/e7/0eb237e29bc368e10000009b38f8cf/content.htm">http://help.sap.com/saphelp_46c/helpdata/en/e7/0eb237e29bc368e10000009b38f8cf/content.htm</a>

regards

shiba dutta

Former Member
0 Kudos

hi,

please use RS_SELSCREEN_STATUS function module it will solve ur problme....

thanks,

maheedhar

Former Member
0 Kudos

Hii

U assign ur porgram to a transaction by going to se93. While creating the transaction select the types of transaction as Program and selection screen (report transaction). After this u go to se80 and open ur program. Now u can create GUI status .

(OR)

Write the statement set pf-status 'STATUS' in ur program

Now double click on status it will ask u for creation and then u can create.

Message was edited by:

aruna ch

Former Member
0 Kudos

The GUI status of a selection screen is generated by the system. The SET PF-STATUS statement in the PBO event of the selection screen has no effect on the standard GUI status. If you want to use your own GUI status for a selection screen or deactivate functions in the standard GUI status, you can use one of the following function modules in the PBO event of the selection screen:

<b>RS_SET_SELSCREEN_STATUS</b>

Sets another GUI status defined in the same ABAP program, or deactivates functions of the standard GUI status.

<b>RS_EXTERNAL_SELSCREEN_STATUS</b>

Sets a GUI status defined in an external function group. You must use the SET PF-STATUS statement to set the status in a special function module in this function group. You must pass the name of the function module that sets the status as a parameter to the function module RS_EXTERNAL_SELSCREEN_STATUS.

Please reward if helpful....