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: 

Error while running BAPI BAPI_OUTB_DELIVERY_CHANGE to change delivery quantity

Former Member
0 Kudos

Hello,

        I need to change the delivery quantity to 0 for certain deliveries. I am using the BAPI "BAPI_OUTB_DELIVERY_CHANGE" to do this. In the ITEM_DATA data table, I have made two entries - one for the line item and the other for the batch line item. I have also made two entries in the ITEM_CONTROL table. I have pasted screenshots of the table contents in the attachment.

        

I get the following error in the error table. Error - E,

Id - VL,

Message Number - 198 and no message text.

          Pls refer to the attachment. Can anyone pls help me with this.

2 REPLIES 2

Former Member
0 Kudos

Have you tried to execute VL02N with the same information?
The message VL198 is "Item &: Only &2 &3 from material &4 are available"

Regards,

Felipe

0 Kudos

Hello Felipe,

             In vl02n, an error is thrown if I change the quantity of the line item. So what I need to do here is go to the batch split items for this product, and change the delivery quantity there. Changing the batch split quantity automatically changes the quantity in the line item for this delivery.  However changing the quantity using the BAPI throws error 198.