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

urgent t-code

Former Member
0 Likes
840

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
794

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

6 REPLIES 6
Read only

Former Member
0 Likes
794

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'.

Read only

0 Likes
794

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

Read only

Former Member
0 Likes
794

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

Read only

ferry_lianto
Active Contributor
0 Likes
794

Hi Giri,

Please check this demo program DEMO_SEL_SCREEN_PUSHBUTTON.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
795

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

Read only

ferry_lianto
Active Contributor
0 Likes
794

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