‎2007 Apr 17 7:14 AM
‎2007 Apr 17 7:18 AM
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
‎2007 Apr 17 7:16 AM
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
‎2007 Apr 17 7:17 AM
‎2007 Apr 17 7:18 AM
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
‎2007 Apr 17 7:19 AM
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
‎2007 Apr 17 7:32 AM
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