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

BAPI_OUTB_DELIVERY_CONFIRM_DEC

FredericGirod
Active Contributor
0 Likes
1,165

Hello,

I want to set the true quantity delivery automatically. I think to use the FM BAPI_OUTB_DELIVERY_CONFIRM_DEC. But, that does not work for me.

I set this data :

HEADER_DATA-DELIV_NUMB delivery number

HEADER_CONTROL-DELIV_NUMB delivery number

DELIVERY delivery number

ITEM_CONTROL-DELIV_NUMB delivery number

ITEM_CONTROL-DELIV_ITEM item of the delivery number

ITEM_CONTROL-CHG_DELQTY 'X'

ITEM_DATA-DELIV_NUMB delivery number

ITEM_DATA-DELIV_ITEM item of the delivery number

ITEM_DATA-DLV_QTY quantity I want to set

ITEM_DATA-FACT_UNIT_NOM factor 1

ITEM_DATA-FACT_UNIT_DENOM factor 1

ITEM_DATA-BATCH Batch

I have an error message VL 198.

When I debug I see, error is cause by the test 'if ls_quan_old-lfimg <> ls_quan_new-lfimg.'

Does anyone have already use this BAPI in this way ? Any suggest are welcome

Regards

Frédéric

(SAP 4.6C)

Hello,

I want to set the true quantity delivery automatically. I think to use the FM BAPI_OUTB_DELIVERY_CONFIRM_DEC. But, that does not work for me.

I set this data :

HEADER_DATA-DELIV_NUMB delivery number

HEADER_CONTROL-DELIV_NUMB delivery number

DELIVERY delivery number

ITEM_CONTROL-DELIV_NUMB delivery number

ITEM_CONTROL-DELIV_ITEM item of the delivery number

ITEM_CONTROL-CHG_DELQTY 'X'

ITEM_DATA-DELIV_NUMB delivery number

ITEM_DATA-DELIV_ITEM item of the delivery number

ITEM_DATA-DLV_QTY quantity I want to set

ITEM_DATA-FACT_UNIT_NOM factor 1

ITEM_DATA-FACT_UNIT_DENOM factor 1

ITEM_DATA-BATCH Batch

I have an error message VL 198.

When I debug I see, error is cause by the test 'if ls_quan_old-lfimg <> ls_quan_new-lfimg.'

Does anyone have already use this BAPI in this way ? Any suggest are welcome

Regards

Frédéric

(SAP 4.6C)

4 REPLIES 4
Read only

Former Member
0 Likes
901

I checked message VL 198 and I remember that we encounter that message if the quantity you're delivering is more than the quantity of stock you have in your inventory.

I'm not using that particular BAPI but I'm using SD_DELIVERY_UPDATE_PICKING_1 to change the quantity, pick qty and even PGI. That's where I encounter the message.

Hope that helps.

Read only

0 Likes
901

Hello,

Thank for you reply Jonathan,

I have check the stock, but everything looks ok.

Why do you use standard function instead of the BAPI ? And could you please give me example code of you function (the info you put into this function).

Regards

Frédéric

Read only

0 Likes
901

I have found my problem,

the SD consultant play too much with SPRO ....

Frédéric

Read only

Former Member
0 Likes
901

Did you get this working? I am sending the same data and am getting a message saying that my delivery is not picked. When I manually pick I am able to get it to post. I thought this bapi did both -- if not, how are you getting your deliveries picked?