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

SET parameter

Former Member
0 Likes
1,840

Based on idocnumber i need to call WE02 Tcode

SET PARAMETER ID: 'DCN' FIELD DOCNUM.

call transaction 'WE02'.

Its calling WE02 screen but not giving value there

9 REPLIES 9
Read only

Former Member
0 Likes
1,334

Have you used get parameter in the calling program

Read only

Former Member
0 Likes
1,334

Hi

try

CALL TRANSACTION 'WE02' AND SKIP FIRST SCREEN.

Cheers

~Arun

Read only

Former Member
0 Likes
1,334

Hello,

DO like this.


SET PARAMETER ID: 'DCN' FIELD DOCNUM.
call transaction 'WE02' and skip first screen.

Vasanth

Read only

Former Member
0 Likes
1,334

Hi All,

I tried SKIP first screen also...if i use this then its displaying all the idocs...

I need to display only the particular idocs which I am passing from this main program.

Read only

0 Likes
1,334

Hello SUmi,

SInce it the field of select-options better record a BDC and pass the values.

Vasanth

Read only

former_member194669
Active Contributor
0 Likes
1,334

Hi,

Use


submit RSEIDOC2 with docnum = v_docnum 
                            and return.

aRs

Read only

Former Member
0 Likes
1,334

You should pass the values into a bdc structure and call the transaction by using that structure. Here is the sample codes:

DATA: BDCDATA TYPE TABLE OF BDCDATA.

WA_BDCDATA TYPE BDCDATA.
WA_BDCDATA-PROGRAM  = 'RSEIDOC2'.
WA_BDCDATA-DYNPRO   = '1000'.
WA_BDCDATA-DYNBEGIN = 'X'.
APPEND WA_BDCDATA TO BDCDATA.
CLEAR WA_BDCDATA.
wa_bdcdata-fnam    = 'DOCNUM-LOW'.
wa_bdcdata-fval    = DOCNUM
append wa_bdcdata to bdcdata.
CLEAR WA_BDCDATA.

CALL TRANSACTION 'WE02'  USING BDCDATA  MODE 'N'.

Please reward points if helpful.

Minami

Read only

Former Member
0 Likes
1,334

You cannot use SET PARAMETER ID in this case because the program is not using it. Instead you simply use the SUBMIT as suggested above.

Read only

Former Member
0 Likes
1,334

Thanks for the help .