‎2006 Nov 21 5:52 AM
Hi Experts ,
I want to place a pushbutton on the application toolbar of the Selection-Screen .
Is it possible . If so how ? .
Thanx in advance ,
Senthil
‎2006 Nov 21 6:16 AM
Hi,
Try using the function module.
RS_EXTERNAL_SELSCREEN_STATUS
Read function module documentation.
Kindly reward points if it helps.
‎2006 Nov 21 5:54 AM
HI,
check the code below
report z_test1.
TABLES: sscrfields,rlgrap .
INCLUDE <icon> .
SELECTION-SCREEN FUNCTION KEY 1 .
SELECTION-SCREEN FUNCTION KEY 2 .
PARAMETERS: p_file LIKE rlgrap-filename DEFAULT 'C:test.txt' .
INITIALIZATION .
CONCATENATE icon_next_object 'Download into excel'
INTO sscrfields-functxt_01 .
CONCATENATE ICON_EXECUTE_OBJECT 'Execute'
INTO sscrfields-functxt_02 .
AT SELECTION-SCREEN.
IF sscrfields-ucomm = 'FC01'.
message s000(su) with 'testing'.
elseif sscrfields-ucomm = 'FC02'.
sscrfields-ucomm = 'ONLI'.
ENDIF .
START-OF-SELECTION.
WRITE: 'TESTING'.
‎2006 Nov 21 6:04 AM
Create a status and use the same in INITIALIZATION.
You should copy the 'STANDARD' GUI status from standard program(e. g. SAPLKKBL) using transaction SE90 >Programming SubObjects> Gui Status.
Execute this transaction to get to next screen. select status using checkbox. click on GUI Status --> Copy.
Enter your Z program name and the name you what for this status - you can keep it as 'STANDARD' to be simple.
Use SET PF-STATUS 'STANDARD' in initialization event.
This will work.
Best Regards,
Vibha
*Please mark all the helpful answers
‎2006 Nov 21 6:16 AM
Hi,
Try using the function module.
RS_EXTERNAL_SELSCREEN_STATUS
Read function module documentation.
Kindly reward points if it helps.
‎2006 Nov 21 6:35 AM
Hi all ,
Thanks a lot for ur immediate response . I got it . I wish u Peoples to continue
ur service to us .
Regards ,
Senthil .