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

Report

Former Member
0 Likes
533

how to add a gui status in a selection screen?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
493

Hi,

In the AT SELECTION-SCREEN OUTPUT event.

write the follwoing code.

AT SELECTION-SCREEN OUTPUT.

SET PF-STATUS 'TEST'.

Double click on TEST and create a new PF Status.

Regards,

Himanshu

5 REPLIES 5
Read only

former_member673464
Active Contributor
0 Likes
493

hi..

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:

RS_SET_SELSCREEN_STATUS

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

RS_EXTERNAL_SELSCREEN_STATUS

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.

regards,

veeresh

Read only

Former Member
0 Likes
493

Hi anil..

Read only

Former Member
0 Likes
494

Hi,

In the AT SELECTION-SCREEN OUTPUT event.

write the follwoing code.

AT SELECTION-SCREEN OUTPUT.

SET PF-STATUS 'TEST'.

Double click on TEST and create a new PF Status.

Regards,

Himanshu

Read only

Former Member
0 Likes
493

Hi,

In the application toolbar of the standard GUI status of the selection screen, five pushbuttons are predefined with the function codes FC01 to FC05, but are inactive by default. You can activate them during the definition of the selection screen as follows:

SELECTION-SCREEN FUNCTION KEY i.

Try the following code.

TABLES sscrfields.

PARAMETERS: p_carrid TYPE s_carr_id,

p_cityfr TYPE s_from_cit.

SELECTION-SCREEN: FUNCTION KEY 1,

FUNCTION KEY 2.

INITIALIZATION.

sscrfields-functxt_01 = 'LH'.

sscrfields-functxt_02 = 'UA'.

AT SELECTION-SCREEN.

CASE sscrfields-ucomm.

WHEN'FC01'.

p_carrid = 'LH'.

p_cityfr = 'Frankfurt'.

WHEN 'FC02'.

p_carrid = 'UA'.

p_cityfr = 'Chicago'.

ENDCASE.

START-OF-SELECTION.

WRITE / 'START-OF-SELECTION'.

regards,

kiran kumar k

Read only

Former Member
0 Likes
493

Hi Anil,

Look at the below demo program

demo_list_at_line_selection.

demo_list_at_pf

demo_list_at_user_command

demo_list_set_user_command