Skip to Content
author's profile photo Former Member
Former Member

Using BAPI_OUTB_DELIVERY_CONFIRM_DEC for batch split?

Dear All,

I have an existing DO in SAP with one line item.

I would like to use BAPI_OUTB_DELIVERY_CONFIRM_DEC to update the this line item with Batch Split.

For example, the existing line item has a material M001 with quantity 5. I need to update the DO to split this line into two batchs - qty 3 from Batch A and qty 2 from Batch B.

In the BAPI's ITEM_DATA - I filled 3 lines:

Line 1 - DO Number 1014---, Item number 00001, Material Number M001, qty 0

Line 2 - DO Number 1014---, Item number 90001, Material Number M001, qty 3, HIERAR 00001, USEHIERITM 1, Batch Batch A

Line 3 - DO Number 1014---, Item number 90002, Material Number M001, qty 2, HIERAR 00001, USEHIERITM 1, Batch Batch B

I also updated the ITEM_CONTROL with Deliv_NUMB ---, DELIV_ITEM 00001, CHG_DELQTY X, GROSS_WT_FLG X.

I get no errors after calling this BAPI and the RETURN table is empty, yet, the document was not changed!

I did a bapi call via remote and there is a commit work after the bapi call.

Best Regards,

Junwen

Message was edited by: Junwen Huang

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 25, 2004 at 10:53 AM

    Hi Junwen,

    Did you call the BAPI_TRANSACTION_COMMIT afterwards?

    Before this the data is not saved. After that it is saved.

    Regards,

    Rob.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.