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

batch split using BAPI_OUTB_DELIVERY_CHANGE

Former Member
0 Likes
1,489

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?

6 REPLIES 6
Read only

FredericGirod
Active Contributor
0 Likes
963

Hi,

You have to go to the transaction BAPI, to check what are the requiere fields for this BAPI.

Rgd

Frédéric

Read only

Former Member
0 Likes
963

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

Read only

0 Likes
963

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?

Read only

0 Likes
963

Read yourself the message with transaction SE91

Read only

0 Likes
963

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.

Read only

0 Likes
963

Hey,

I too am facing the same problem.

Can anyone please help.

Thanks a ton in advance.

Regards,

Ravi