Skip to Content
0
Dec 03, 2009 at 10:52 AM

Synchronous CALL TRANSACTION 'VL01N' not working?

121 Views

Hi, I'm using this instruction to create a delivery:

CALL TRANSACTION 'VL01N' USING lt_bdcdata MODE 'N' UPDATE 'S'
  MESSAGES INTO lt_bdcmsg.

The call transaction works fine and the delivery is created. But later in my program I use a function to post goods issue, and that function returns me the following error: DELIVERY DOES NOT EXIST.

IF I debug the program and stop it between the creation and the post goods issue, and then I access to the transaction VL03N to check if the delivery exists. I can see it.

The problem is that my report can't see the delivery yet until it has been finished...

If I execute the report again (the delivery is alredy created so it will only do the picking process), then the post goods issue is executed OK for the previous delivery.

I think that using UPDATE 'S', this should not happen...