Application Development 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: 

how to put name in the application toolbar

Former Member
0 Kudos

how to put name on the button in the application tool bar while it is created with selection screen

13 REPLIES 13

Former Member
0 Kudos

Do you mean the execution button in a report?

0 Kudos

i created one more exit button in the application tool bar for that i want to name it

0 Kudos

Do you need on the report screen added with "set pf-status"?

0 Kudos

If you put that button there via SET PF-STATUS, double click this statement in the program code. Now you are at the gui status, double click on the button that you created, Put your text in the "Icon Text" field, save, activate, execute program. Your text should be there.

Regards,

Rich Heilman

0 Kudos

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.

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

you case statement shoudl be

case <b>sscrfields-ucomm</b> .

when 'FC01'

LEAVE PROGRAM.

ENDCASE.

Regards

Raja

0 Kudos

i guess your question is answered, can you reward the answers which were helpful to you and mark this thread as answered.

Regards

Raja