‎2005 Nov 22 9:53 AM
I want to use BAPI_OUTB_DELIVERY_CHANGE to edit the D/O to add in the batch split and serial no. I pass in the following parameters:
delivery = '0080740827'.
item_data-deliv_numb = '0080740827'.
item_data-deliv_item = '00010'.
item_data-material = 'SL15C-ACPOA-003'.
item_data-dlv_qty = 0.
append item_data
item_data-deliv_numb = '0080740827'.
item_data-deliv_numb = '90001'.
item_data-deliv_item = '00010'.
item_data-material = 'SL15C-ACPOA-003'.
item_data-hieraritem = '00010'.
item_data-usehieritm = '1'.
item_data-batch = '20483602'.
item_data-dlv_qty = 2.
append item_data.
item_serial_no-deliv_numb = '0080740827'.
item_serial_no-itm_number = '90001'.
item_serial_no-serialno = '74714'.
append item_serial_no.
item_serial_no-deliv_numb = '0080740827'.
item_serial_no-itm_number = '90001'.
item_serial_no-serialno = '74755'.
append item_serial_no.
CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'
EXPORTING
header_data =
header_control =
delivery = delivery
TECHN_CONTROL =
TABLES
HEADER_PARTNER =
HEADER_PARTNER_ADDR =
HEADER_DEADLINES =
item_data = item_data
item_control = item_control
item_serial_no = item_serial_no
SUPPLIER_CONS_DATA =
EXTENSION1 =
EXTENSION2 =
return = return.
TOKENREFERENCE =
When I run the program, the system has error and ask me to put in header_data and header_control. I dont want to change the header_data, I just want to change the item data, how do I fill in header_data and header_control? is my parameters correct?
‎2005 Nov 22 10:00 AM
Hi,
You have to go to the transaction BAPI, to check what are the requiere fields for this BAPI.
Rgd
Frédéric
‎2005 Nov 22 10:03 AM
declare internal table for header_data and header_control. and dont append any values to it. simply assign it.
CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'
EXPORTING
header_data = header_data
header_control = header_control
delivery = delivery
TECHN_CONTROL =
TABLES
HEADER_PARTNER =
HEADER_PARTNER_ADDR =
HEADER_DEADLINES =
item_data = item_data
item_control = item_control
item_serial_no = item_serial_no
SUPPLIER_CONS_DATA =
EXTENSION1 =
EXTENSION2 =
return = return.
TOKENREFERENCE =
May be it will solve your problem.
Thanks
Muthappan
‎2005 Nov 22 10:33 AM
tried that, but the return table shows:
E |VLBAPI |004 |
W |VL |268 |
E |VLBAPI |004 |
W |VL |268 |
There is no message appear, there is no way for me to know what the problem. Anybody can help?
‎2005 Nov 22 10:47 AM
‎2007 Jul 08 4:54 PM
Hi,
Can you let me know how did you resolve the issue of inserting batch split for line items in a delivery?
Regards,
Senthil G.
‎2009 Apr 23 1:58 PM
Hey,
I too am facing the same problem.
Can anyone please help.
Thanks a ton in advance.
Regards,
Ravi