2005 Jul 30 2:57 PM
how to put name on the button in the application tool bar while it is created with selection screen
2005 Jul 30 3:35 PM
2005 Jul 30 4:09 PM
i created one more exit button in the application tool bar for that i want to name it
2005 Jul 30 4:40 PM
2005 Jul 30 4:48 PM
2005 Jul 30 6:04 PM
I am creating buttion on the application too bar as below.
selection-screen function key 1.
there after my function is working ,but how to put name for it.
2005 Jul 30 6:30 PM
I am creating buttion on the application too bar as below.
selection-screen function key 1.
there after my function is working ,but how to put name for it
2005 Jul 31 12:47 AM
I've never seen this done this way. Learn something new everyday. Anyway, here is a sample program that will show you what you need to do to add text to your function button, this also adds an icon.
report zrich_0002.
Tables: sscrfields.
selection-screen function key 1.
select-options: s_datum for sy-datum.
INITIALIZATION.
MOVE '@49@ Export' TO SSCRFIELDS-FUNCTXT_01. "ICON_EXPORT
If this has solved your problem, please award points accordingly and mark this post as solved. Thanks.
Regards,
Rich Heilman
2005 Jul 31 11:23 AM
you could also do this way
report zrich_0002.
Tables: sscrfields.
TYPE-POOLS icon.
selection-screen function key 1.
select-options: s_datum for sy-datum.
INITIALIZATION.
DATA functxt TYPE smp_dyntxt.
functxt-icon_id = icon_export.
functxt-quickinfo = 'Export'.
functxt-icon_text = 'Export'.
sscrfields-functxt_01 = functxt.
if you put "MOVE '@49@ Export' TO SSCRFIELDS-FUNCTXT_01."
though you will see the icon in the button, the tooltip wil show "@49@ Export".
Also hope you are aware that you can have a maximum of 5 button using <i>selection-screen function key</i> .
Regards
Raja
2005 Aug 01 10:10 AM
Your code is working but, before using your code if i press that button ,the program is working properly according the code what i have written after placing the code the i am not getting the expected output.
Message was edited by: naravenkat aswara
2005 Aug 01 10:18 AM
in the at selection screen event , you need to have the following code for the button to react.
at selection-screen.
if sscrfields-ucomm eq 'FC01' .
do something if button <b>one</b> is clicked,
endif .
if sscrfields-ucomm eq 'FC02' .
do something if button <b>two</b> is clicked,
endif .
Regards
Raja
2005 Aug 01 10:20 AM
AT SELECTION-SCREEN .
CASE sy-dynnr.
CASE sscrfields.
WHEN 'FC01'.
LEAVE PROGRAM.
ENDCASE.
this my code and the below is my problem
Your code is working but, before using your code if i press that button ,the program is working properly according the code what i have written after placing the code the i am not getting the expected output.
Message was edited by: naravenkat aswara
Message was edited by: naravenkat aswara
2005 Aug 01 10:26 AM
you case statement shoudl be
case <b>sscrfields-ucomm</b> .
when 'FC01'
LEAVE PROGRAM.
ENDCASE.
Regards
Raja
2005 Aug 01 10:52 AM
i guess your question is answered, can you reward the answers which were helpful to you and mark this thread as answered.
Regards
Raja