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: 

link for a transaction

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

you can work with "leave to transaction VA02".

Regards

Nicole

4 REPLIES 4

Former Member
0 Kudos

Hi,

you can work with "leave to transaction VA02".

Regards

Nicole

Former Member
0 Kudos

HI...

YOu can use ...CALL TRANSACTION 'VA02'.

OR U CAN USE LEAVE TO TRANSACTION 'VA02'.

IN THE CODE

Former Member
0 Kudos

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

harimanjesh_an
Active Participant
0 Kudos

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