Application Development and Automation 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: 
Read only

Call Transaction with Parameter

Former Member
0 Likes
4,149

Hi,

I have a requirement such that I am displaying several Sales Order in AVL.

On clicking a perticular SO and pressing the Button, I am giving a call to VA03 as below:

CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN .

This is giving a call to VA03 and the last SO is displayed.

I want to pass the SO number along with the call as the SO may vary everytime.

Any clue as to how this could be achieved?

reagrds,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,023

Hi,

Try like this,

WHEN 'VBELN'.

SET PARAMETER ID 'AUN' FIELD OUTTAB-VBELN.

CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.

ENDCASE.

Thnaks,

Ruthra.

5 REPLIES 5
Read only

Former Member
0 Likes
2,024

Hi,

Try like this,

WHEN 'VBELN'.

SET PARAMETER ID 'AUN' FIELD OUTTAB-VBELN.

CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.

ENDCASE.

Thnaks,

Ruthra.

Read only

Former Member
0 Likes
2,023

Before calling the VA03 transaction, use the SET statement and set the parameter AUN with the required salesorder.

Regards,

Kiran Bobbala

Read only

Former Member
0 Likes
2,023

Hi,

Pass the Sales Document Number to wa-vbeln.

set parameter id 'AUN' field wa-vbeln.

Then...

CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN .

Thanks,

Durai.V

Read only

Former Member
0 Likes
2,023

hiii

you can also use following code for passing particular value to tcode

SELECT SINGLE kunnr
      FROM kna1
      INTO w_kna1
      WHERE kunnr = w_kunnr.

      IF sy-subrc <> 0.
         MESSAGE e015(zmsg9).
       ENDIF.

      SET PARAMETER ID 'KUN' FIELD w_kunnr.

      CALL TRANSACTION 'XD03' AND SKIP FIRST SCREEN.

regards

twinkal

Read only

Former Member
0 Likes
2,023

Hi,

use SET PARAMETER ID 'id' field 'field name'

then use

CALL TRANSACTION 'tcode' and skip first screen.

here fieldname is where you are hiding the field from your workarea or internal table.

parameter id you will find in the technical help of that field by clicking on F1 on that field. then in the coming window you will click on technical help..there you will find the parameter id for that field.

Regards,

venkat