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 with push button on application tool bar

0 Kudos

hi

how we place icon along with pushbutton on application tool bar on selecteion screen.

thanks in adv

1 ACCEPTED SOLUTION

harimanjesh_an
Active Participant
0 Kudos

hi avi,

check this link and follow step by step,

http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba99935c111d1829f0000e829fbfe/content.htm

it may help u.........

while creating GUI status, assign some function code to the button....

then go back to your program.

CASE SY-UCOMM.

WHEN 'FCODE'.

write your logic

ENDCASE.

reward me if it is useful...............

with regards....

4 REPLIES 4

hymavathi_oruganti
Active Contributor
0 Kudos

u can create a stus in se41 and call that status in ur reoport

with the statement

SET PF STATUS <NAME WHAT U CREATED IN SE41>

Former Member
0 Kudos

HI avi

look at this code it will help u.

The following code shows the syntax for two pushbuttons that are used to choose a language:

<b>selection-screen pushbutton 10(20) text-003 user-command engl.

selection-screen pushbutton 50(20) text-004 user-command germ</b>.

at selection-screen.

at user-command.

case sy-ucomm.

when 'engl'.

lang-english = 'Y'.

when 'germ'.

lang-german = 'Y'.

endcase.

regards

Prajwal.k

Former Member
0 Kudos

Hi,

you can check the code below for test,

TYPE-POOLS icon.

TABLES sscrfields.

DATA functxt TYPE smp_dyntxt.

Parameters: test(1) TYPE C.

SELECTION-SCREEN: FUNCTION KEY 1.

INITIALIZATION.

functxt-icon_id = ICON_GRAPHICS.

functxt-quickinfo = 'graphics'.

functxt-icon_text = 'Graphics'.

sscrfields-functxt_01 = functxt.

AT SELECTION-SCREEN.

CASE sscrfields-ucomm.

WHEN 'FC01'.

Message 'Button 1 pressed' TYPE 'I'.

WHEN OTHERS.

...

ENDCASE.

START-OF-SELECTION.

harimanjesh_an
Active Participant
0 Kudos

hi avi,

check this link and follow step by step,

http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba99935c111d1829f0000e829fbfe/content.htm

it may help u.........

while creating GUI status, assign some function code to the button....

then go back to your program.

CASE SY-UCOMM.

WHEN 'FCODE'.

write your logic

ENDCASE.

reward me if it is useful...............

with regards....