‎2006 Nov 17 8:56 PM
hi,
i used sscrfield function key to display pushbutton on selection screen.
and assigned a text to it.
SSCRFIELDS-FUNCTXT_01 = 'Back'.
and i created t-code for this program , when i ru the t-code i cant see the lable Back on the button.
how can i get the label on the button?
regards
Giri
‎2006 Nov 17 9:19 PM
Hi,
Do the following..
Goto SE93..
GIve the transaction name..
Press change..
In the menu Edit -> Change Transaction type..
Select the radio button "Report transaction".
Save the transaction and execute..
Thanks,
Naren
‎2006 Nov 17 9:04 PM
Giri,
Look at this... I think is what you are looking to do.
REPORT ZTESTPUSHBUTTON .
TABLES: SSCRFIELDS.
SELECTION-SCREEN FUNCTION KEY 1.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN PUSHBUTTON (10) W_BUTTON USER-COMMAND 'UCOM'.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN SKIP 9.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN PUSHBUTTON (10) W_BUTTO2 USER-COMMAND 'UCOW'.
SELECTION-SCREEN END OF LINE.
INITIALIZATION.
move 'App Button' to sscrfields-functxt_01. "you can chg name here
W_BUTTON = 'BUTTON1'.
W_BUTTO2 = 'BUTTON2'.
‎2006 Nov 17 9:10 PM
hi,
when i create a t-code and run then i cant see App button on the sscrfield-functxt01 button.
how can i show that button name?
code:
SELECTION-SCREEN FUNCTION KEY 1.
INITIALIZATION.
move 'Back' to sscrfields-functxt_01.
Reagrds
‎2006 Nov 17 9:04 PM
Hi,
Check this code..You have to set the text in the INITIALIZATION event.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN PUSHBUTTON POS_HIGH(8) PUSHY
USER-COMMAND ABCD.
SELECTION-SCREEN END OF LINE.
INITIALIZATION.
PUSHY = 'TEST'.
Thanks,
Naren
‎2006 Nov 17 9:09 PM
Hi Giri,
Please check this demo program DEMO_SEL_SCREEN_PUSHBUTTON.
Regards,
Ferry Lianto
‎2006 Nov 17 9:19 PM
Hi,
Do the following..
Goto SE93..
GIve the transaction name..
Press change..
In the menu Edit -> Change Transaction type..
Select the radio button "Report transaction".
Save the transaction and execute..
Thanks,
Naren
‎2006 Nov 17 9:23 PM
Hi Giri,
Please check this sample program.
REPORT demo_sel_screen_function_key.
TYPE-POOLS icon.
TABLES sscrfields.
DATA functxt TYPE smp_dyntxt.
PARAMETERS: p_carrid TYPE s_carr_id,
p_cityfr TYPE s_from_cit.
SELECTION-SCREEN: FUNCTION KEY 1,
FUNCTION KEY 2.
INITIALIZATION.
functxt-icon_id = icon_ws_plane.
functxt-quickinfo = 'Preselected Carrier'.
functxt-icon_text = 'LH'.
sscrfields-functxt_01 = functxt.
functxt-icon_text = 'UA'.
sscrfields-functxt_02 = functxt.
AT SELECTION-SCREEN.
CASE sscrfields-ucomm.
WHEN 'FC01'.
p_carrid = 'LH'.
p_cityfr = 'Frankfurt'.
WHEN 'FC02'.
p_carrid = 'UA'.
p_cityfr = 'Chicago'.
WHEN OTHERS.
...
ENDCASE.
START-OF-SELECTION.
...
Regards,
Ferry Lianto