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

Delivery creation - Problem

Former Member
0 Likes
1,605

Hello Experts,

I have a scenario here and am looking for any possible help in finding out how to solve it.

The scenario is,

My program Creates a Delivery document for a given Order, by reading input data from an input file. I am using FM BAPI_DELIVERYPROCESSING_EXEC to create delivery and later using FM WS_DELIVERY_UPDATE to do a Post goods issue. --> This process works fine,

And, if the program finds that delivery is already created for that order, then it has to reverse PGI and delete the delivery and create a new delivery with the amount read from the input file. Am using FM WS_REVERSE_GOODS_ISSUE to reverse goods issue, once successful then BAPI_OUTB_DELIVERY_CHANGE to delete this delivery and call FM BAPI_DELIVERYPROCESSING_EXEC to create a new delivery - and here is the problem, the FM BAPI_DELIVERYPROCESSING_EXEC returns error message "Copying is not poss. because an entry is missing in Table TVCPL:ZOR1" (ZOR1 is my order type)

i checked with the functional configuration, the Copy Passing routines for the outbound delivery for given Order type and Delivery type are configured correctly (else it wouldn't have worked in the first case)

I tried changing to FM BAPI_OUTB_DELIVERY_CREATE_SLS, and still the issue persists...

any help on this would be greatly appreciated. Thanks.

Best Regards

Usman

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,139

Hi,

Try commit work after deleting old delivery and before creating new delivery.

Cheers.

...Reward if useful

4 REPLIES 4
Read only

Former Member
0 Likes
1,140

Hi,

Try commit work after deleting old delivery and before creating new delivery.

Cheers.

...Reward if useful

Read only

0 Likes
1,139

Hi,

I have a BAPI Transaction commit, but it still does not work

I guess this is a problem of Global memory, since the deletion BAPI is setting some work areas and the creation BAPI is getting effected because of that, the error message is misguiding.

BAPI BAPI_OUTB_DELIVERY_CREATE_SLS documentation says, should not be called multiple times in same LUW

i have different LUWs but this still doesn't seem to work

Due to time constraint, i solved this by using BAPI for deletion and updation and for creation i programmed a quick BDC which works perfectly for me.

Read only

Former Member
0 Likes
1,139

Use this function module for delivery creation: "rv_delivery_create"

Read only

0 Likes
1,139

Actually none of t he functin modules worked, all of them returned the same error.

I resolved this issue by programming a BDC.