10-10-2007 10:26 AM
hi
how we place icon along with pushbutton on application tool bar on selecteion screen.
thanks in adv
10-10-2007 10:50 AM
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....
10-10-2007 10:27 AM
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>
10-10-2007 10:30 AM
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
10-10-2007 10:40 AM
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.
10-10-2007 10:50 AM
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....