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: 

icon at selection screen

Former Member
0 Kudos

Hi All,

how i can add icon on the menu bar of selection screen and it should work as user command.

7 REPLIES 7

Former Member
0 Kudos

Hi Sandeep,



hi go to se41-->menu painter-->create appication toolbar , menu buttons...


add the code in the se38.by call the menu painter using

SET PF-STATUS 'Screennamein se41'.

Regards,

Prabhduas

Former Member
0 Kudos

u can go for pf status in se41...

orelse write like below and double click on 100.it willl take you directly to the Menu Painter

Set pf-status '100'.

Regards

Rama Krishna G

0 Kudos

U can try this sample:

TABLES sscrfields.

DATA functxt TYPE smp_dyntxt.


PARAMETERS: P_NAME TYPE C.

SELECTION-SCREEN: FUNCTION KEY 1,
                  FUNCTION KEY 2.

INITIALIZATION.
* Function key 1
  functxt-icon_id   = '@C7@'.
  functxt-quickinfo = 'Bye'.
  functxt-icon_text = 'Bye bye'.
  sscrfields-functxt_01 = functxt.
* Function key 2
  functxt-icon_id   = '@C9@'.
  functxt-quickinfo = 'Hello'.
  functxt-icon_text = 'Hello hello'.
  sscrfields-functxt_02 = functxt.

Former Member
0 Kudos

Hi Sandeep,

Please refer to the below help link:

http://help.sap.com/saphelp_47x200/helpdata/en/9f/dba80935c111d1829f0000e829fbfe/frameset.htm

If you want to make it more complex (with icon):then using transaction SE41

Copy the PFSTATUS %_00 of program RSSYSTDB to PFSTATUS Z_00 and your program.

Then modify the PF status as you desire.

In your program:

AT SELECTION-SCREEN OUTPUT.
 SET PF-STATUS 'Z_00'

Sorry forgot to add - then at

 AT SELECTION-SCREEN.

event you can do

CASE SY-UCOMM. WHEN '<your_fcode>'. Do something ....  ENDCASE.

Cheers,

Adi

Edited by: Aditya Laud on Apr 9, 2009 8:15 AM

Edited by: Aditya Laud on Apr 9, 2009 8:20 AM

Former Member
0 Kudos

Hi ,

steps involved are

step 1) set pf-status 'zsandeep'.

step 2) double click on it it will take you to menu painter , in the application toolbar give some name

like 'OPEN' again double click on that it will display one pop up box in that give function text

and in the icon name choose the icon you want , give some description to icon text

press enter.

step 3) in the report write the code as shown below

at user-command.

case sy-ucomm.

when 'OPEN'.

-


encase.

Thanks & Regards,

Sateesh.

Former Member
0 Kudos

hI,

just addition to the above answer... for the complete functionality..

TABLES sscrfields.

DATA functxt TYPE smp_dyntxt.

PARAMETERS: P_NAME TYPE C.

SELECTION-SCREEN: FUNCTION KEY 1,

FUNCTION KEY 2.

INITIALIZATION.

  • Function key 1

functxt-icon_id = '@C7@'.

functxt-quickinfo = 'Bye'.

functxt-icon_text = 'Bye bye'.

sscrfields-functxt_01 = functxt.

  • Function key 2

functxt-icon_id = '@C9@'.

functxt-quickinfo = 'Hello'.

functxt-icon_text = 'Hello hello'.

sscrfields-functxt_02 = functxt.

at selection-screen.

case sy-ucomm.

when 'FC01'.

p_name = '1'.

when 'FC02'.

P_NAME = '2'.

endcase.

Former Member
0 Kudos