10-16-2007 7:34 AM
Hi Experts,
How can i have a link in such a way that when ever the user cliks on this it should lead to a transaction(eg va02).
Eg The user should be displayed with a link like this:
<b>//acc/eg/lin </b> when the user clicks on this link it should go to va02.please advice.
10-16-2007 7:38 AM
10-16-2007 7:38 AM
10-16-2007 7:43 AM
HI...
YOu can use ...CALL TRANSACTION 'VA02'.
OR U CAN USE LEAVE TO TRANSACTION 'VA02'.
IN THE CODE
10-16-2007 7:43 AM
hi karthik,
try this sample code.
instead of using VBELN use the field which holds the <b>link</b> in ur prog..
and in set parameter id also use ur own <b>paremeter id</b>.
FORM user_command USING r_ucomm LIKE syst-ucomm
rs_selfield TYPE slis_selfield.
CONSTANTS:
lc_x(1) TYPE c VALUE 'X'.
IF r_ucomm = '&IC1'.
CASE rs_selfield-fieldname.
WHEN 'VBELN'.
When Sales Order Document is selected...
SET PARAMETER ID 'AUN' FIELD rs_selfield-value.
CALL TRANSACTION 'VA02' AND SKIP FIRST SCREEN .
ENDCASE.
ENDIF.
rs_selfield-refresh = lc_x.
ENDFORM. "USER_COMMAND
<b><i>Reward points if useful</i></b>
Chandra
10-16-2007 8:15 AM
hi karthick,
use can achieve this problem using AT LINE-SELECTION Event and Call Transaction command.
In START-OF-SELECTION event,
<b>format hotspot on.
write '//acc/eg/lin' .
format hotspot off.</b>
In AT LINE-SELECTION event,
<b>
Call Transaction 'VA01'.</b>
check these links for full details.
call transaction...
http://help.sap.com/saphelp_47x200/helpdata/en/78/21761c51ce11d189570000e829fbbd/frameset.htm
at line selection,
http://help.sap.com/saphelp_47x200/helpdata/en/9f/dba2c435c111d1829f0000e829fbfe/frameset.htm
reward me if useful,
Harimanjesh AN
Message was edited by:
Harimanjesh AN