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: 

regd: MB_CREATE_GOODS_MOVEMENT

Former Member
0 Kudos

Hi Guru's,

I am using MB_CREATE_GOODS_MOVEMENT to perform Goods reciept for

an outbound delivery(STO). Its creating material document successfully, but

i am facing issue when the material that i receive is serial managed or has serial numbers w.ref to delivery. How do i handle serial numbers here?

Are there any parameters that i need to populate? please help.

Thanks,

Das.

2 REPLIES 2

Former Member
0 Kudos

Hi,

Below is the function module which u can used to update the serial numbers for each delivery line item.

FORM serial_no_update TABLES p_it_returns STRUCTURE ztpi_dlvreturn.

CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'

EXPORTING

header_data = it_header_data (delivery number alone is sufficient)

header_control = it_header_control (delivery number alone is sufficient)

delivery = v_delivery (delivery number alone is sufficient)

  • TECHN_CONTROL =

TABLES

  • HEADER_PARTNER =

  • HEADER_PARTNER_ADDR =

  • HEADER_DEADLINES =

  • ITEM_DATA =

  • ITEM_CONTROL =

item_serial_no = it_item_serial_no

  • SUPPLIER_CONS_DATA =

  • EXTENSION1 =

  • EXTENSION2 =

return = it_return

  • TOKENREFERENCE =

.

READ TABLE it_return WITH KEY type = 'E'.

IF sy-subrc NE 0.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'.

regards

0 Kudos

Hi ,

Thanks for response. But i dont want to update delivery. Delivery is already made

with serial numbers . I want to do a goods receipt (GR) for the outbound delivery using MIGO . So i am using MB_CREATE_GOODS_MOVEMENT. But i am not able to figure out how to populate data into it so that serial no.s get update while performing GR.

Please help.

Thanks,

Das