08-02-2007 7:10 AM
Please tell me how to add toolbar buttons on selection scrren.
Helpful answers will be rewarded
thnkx
08-02-2007 7:11 AM
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.
08-02-2007 7:11 AM
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.
10-19-2007 12:27 AM
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
08-02-2007 7:12 AM
08-02-2007 7:13 AM
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
08-02-2007 7:14 AM
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
08-02-2007 7:26 AM
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