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

Adding delivery items through BAPI or some Function Moduloe

Former Member
0 Likes
999

Hi masters.

Is there any BAPI or function module to append a new item into an existing outbound delivery, if possible, with reference to a Sale Order?

I have checked BAPI_OUTB_DELIVERY_CHANGE, but it seems that it allows only changing or deleting a delivery/item.

Please, help me.

tks a lot

Rafael Guares Quadros

3 REPLIES 3
Read only

Former Member
0 Likes
721

The same BAPI has segments for the new items. Try those and see



*"      NEW_ITEM_DATA STRUCTURE  BAPIOBDLVITEM OPTIONAL
*"      NEW_ITEM_DATA_SPL STRUCTURE  /SPE/BAPIOBDLVITM OPTIONAL
*"      NEW_ITEM_ORG STRUCTURE  BAPIOBDLVITEMORG OPTIONAL

Read only

0 Likes
721

Thanks, MxG.

I have checked BAPI_OUTB_DELIVERY_CHANGE interface and could not find the segments you have mentioned. I have also checked for a SAP note, but nothing has been found.

This are the interface segments available at my ECC 6.0 instalation:

Importing

HEADER_DATA LIKE BAPIOBDLVHDRCHG

HEADER_CONTROL LIKE BAPIOBDLVHDRCTRLCHG

DELIVERY LIKE BAPIOBDLVHDRCHG-DELIV_NUMB

TECHN_CONTROL LIKE BAPIDLVCONTROL

HEADER_DATA_SPL TYPE /SPE/BAPIOBDLVHDRCHG

HEADER_CONTROL_SPL TYPE /SPE/BAPIOBDLVHDRCTRLCHG

SENDER_SYSTEM TYPE TBDLS-LOGSYS

Tables

HEADER_PARTNER LIKE BAPIDLVPARTNERCHG

HEADER_PARTNER_ADDR LIKE BAPIDLVPARTNADDRCHG

HEADER_DEADLINES LIKE BAPIDLVDEADLN

ITEM_DATA LIKE BAPIOBDLVITEMCHG

ITEM_CONTROL LIKE BAPIOBDLVITEMCTRLCHG

ITEM_SERIAL_NO LIKE BAPIDLVITMSERNO

SUPPLIER_CONS_DATA LIKE BAPIOBDLVITEMSUPCON

EXTENSION1 LIKE BAPIEXTC

EXTENSION2 LIKE BAPIEXT

RETURN LIKE BAPIRET2

TOKENREFERENCE LIKE BAPITOKENREFERENCE

ITEM_DATA_SPL LIKE /SPE/BAPIOBDLVITEMCHG

COLLECTIVE_CHANGE_ITEMS LIKE /SPE/BAPIOBDLVCOLLCHGIR

CWM_ITEM_DATA LIKE /CWM/BAPIOBDLVITEM

Read only

0 Likes
721

Hi!

I filled the CWM_ITEM_DATA table with the quantity in the parallel unit of measure but the function ignores it and fills the delivery with a conversion from the material master data. Using ITEM_DATA-CONV_FACT did not seam to affect the outcome either...

Ware you ever able to change the quantity in the parallel unit of measure?

10x!