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: 

CALL TRANSACTION not working as expected

Former Member
0 Kudos

Hi All,

wa_item-vbeln = '0180000053'.

SET PARAMETER ID 'VL' FIELD wa_item-vbeln.

CALL TRANSACTION 'VL33N'.

I am having an issue with the above code. For some reason it won't pass the document number through to transaction VL33N.

Is there any reason for this?

Many Thanks,

Colm

1 ACCEPTED SOLUTION

Former Member
0 Kudos

SET PARAMETER ID 'AUN' FIELD wa_item-vbeln.

CALL TRANSACTION 'VL33N'.

I tried this code but it does not work.

In debug mode everything looks fine. The variable is populated correctly and the transaction is called without an issue but for some reason the number is still blank.

Is there anyway I can stop the transaction from overwriting the value I pass through?

7 REPLIES 7

Former Member
0 Kudos

Hi,

It's overwritten by standard program.

Cheers.

matt
Active Contributor
0 Kudos

It could be there's something else in the code of VL33N that's overriding your SET PARAMETER.

Or simply that the field doesn't have a PID set on it.

Former Member
0 Kudos

do this way ... it works

SET PARAMETER ID 'AUN' FIELD wa_item-vbeln.

CALL TRANSACTION 'VL33N'.

Former Member
0 Kudos

Hi Colm ,

I used your code in the program and it worked well for me .

What is happening in your case , is the value not passed to the screen in the transaction.,

Regards

Arun

Former Member
0 Kudos

SET PARAMETER ID 'AUN' FIELD wa_item-vbeln.

CALL TRANSACTION 'VL33N'.

I tried this code but it does not work.

In debug mode everything looks fine. The variable is populated correctly and the transaction is called without an issue but for some reason the number is still blank.

Is there anyway I can stop the transaction from overwriting the value I pass through?

0 Kudos

What you are best doing is to put a breakpoint on the PBO of the first screen of VL33n. Then set a break-point at the command word 'GET' and see which parameter ids are read.

I have just done it on my system and go this: -

GET PARAMETER ID 'VLM' FIELD likp-vbeln.

0 Kudos

This solved the issue.

Many thanks for all your help.