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

selection screen

Former Member
0 Likes
932

Please tell me how to add toolbar buttons on selection scrren.

Helpful answers will be rewarded

thnkx

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
797

Hi,

Firs add reference to screen fields

TABLES: SSCRFIELDS.

You can activate 1-4 function keys by

SELECTION-SCREEN FUNCTION KEY 1.

Then describe the function keys in LOAD-OF-PROGRAM or INITIALIZATION

DATA smp_dyntxt TYPE smp_dyntxt.

CLEAR smp_dyntxt.

smp_dyntxt-text = text-t01.

smp_dyntxt-icon_id = '@GX@'.

smp_dyntxt-icon_text = text-i01.

smp_dyntxt-quickinfo = text-q01.

smp_dyntxt-path = 'T'.

sscrfields-functxt_01 = smp_dyntxt.

An then you check usage in

AT SELECTION-SCREEN.

CASE SSCRFIELDS-UCOMM.

WHEN 'FC01'.

reward if it helps..

regards,

Omkar.

6 REPLIES 6
Read only

Former Member
0 Likes
798

Hi,

Firs add reference to screen fields

TABLES: SSCRFIELDS.

You can activate 1-4 function keys by

SELECTION-SCREEN FUNCTION KEY 1.

Then describe the function keys in LOAD-OF-PROGRAM or INITIALIZATION

DATA smp_dyntxt TYPE smp_dyntxt.

CLEAR smp_dyntxt.

smp_dyntxt-text = text-t01.

smp_dyntxt-icon_id = '@GX@'.

smp_dyntxt-icon_text = text-i01.

smp_dyntxt-quickinfo = text-q01.

smp_dyntxt-path = 'T'.

sscrfields-functxt_01 = smp_dyntxt.

An then you check usage in

AT SELECTION-SCREEN.

CASE SSCRFIELDS-UCOMM.

WHEN 'FC01'.

reward if it helps..

regards,

Omkar.

Read only

0 Likes
797

Hi Omkaram,

I also use for button "selection-screen function key" in my program. its working fine. I have three button in my screen display, delete and update. what i want update button invisible mode or hide somthing when my report loded and when i click on display button then update button comes on visible mode........

is it possible........................

Vishal

Read only

gopi_narendra
Active Contributor
0 Likes
797

See the reprot :demo_sel_screen_function_key

Regards

Gopi

Read only

Former Member
0 Likes
797

chk this code

TABLES: sscrfields.

DATA: d_butt1(4).

PARAMETERS: p_grpa1(10) MODIF ID A,

p_grpa2(10) MODIF ID A,

p_grpb1(10) MODIF ID B.

SELECTION-SCREEN FUNCTION KEY 1.

SELECTION-SCREEN FUNCTION KEY 2.

INITIALIZATION.

MOVE 'This is button one' TO sscrfields-functxt_01.

MOVE 'This is button two' TO sscrfields-functxt_02.

d_butt1 = 'NO'.

AT SELECTION-SCREEN.

IF sy-ucomm = 'FC01'.

d_butt1 = 'YES'.

sscrfields-ucomm = 'ONLI'.

ELSEIF sy-ucomm = 'FC02'.

IF sscrfields-functxt_02 = 'Toggle 1'.

sscrfields-functxt_02 = 'Toggle 2'.

ELSE.

sscrfields-functxt_02 = 'Toggle 1'.

ENDIF.

ENDIF.

START-OF-SELECTION.

WRITE d_butt1.

thnx neerja

Read only

Former Member
0 Likes
797

Hi

You need to create the same in pf-status of the program transaction se41.

You would code it in ur program like this:

case sy-ucomm.

when <ur button's func code>

< logic>

Hope this helps

if it helped, you can acknowledge the same by rewarding

regards

dinesh

Read only

Former Member
0 Likes
797

You need to set Pf-status by using the statement "set pf-status 'UI' " in your normal program.

By double clicking on UI you will enter into some other window calld user interface.

There u can find three fields

1. Menu bar

2.Application tool bar

3.functional Keys

Using menu bar u can create Menu bar tabs

In functional keys u can assign ur self defined function code to function keys.

In application tool bar u can add tool bar buttons.

Reward if useful.

Regards

Reddy