Skip to Content
0
Former Member
Aug 24, 2007 at 08:55 AM

reg:bapi BAPI_GOODSMVT_CREATE (goods issue for production order)

600 Views

Hi to all,

I had used BAPI_GOODSMVT_CREATE for goods issue for production order.

li_rsitem-ORDER_ITNO = IT_5010-order_line+0(4).

li_rsitem-entry_qnt = IT_5010-quantity.

li_rsitem-entry_uom = IT_5010-logistic_unit.

li_rsitem-material = IT_5010-material_number.

li_rsitem-orderid = IT_5010-order_number.

li_rsitem-WITHDRAWN = 'X'.

*li_rsitem-MVT_IND = 'F'.

READ TABLE LT_RESB WITH KEY RSPOS = IT_5010-order_line+0(4)

MATNR = IT_5010-material_number+0(18) .

if sy-subrc = 0.

li_rsitem-plant = LT_RESB-WERKS.

li_rsitem-STGE_LOC = '01' .

  • li_rsitem-reserv_no = LT_RESB-RSNUM.

li_rsitem-res_type = lt_resb-rsart.

li_rsitem-move_type = LT_RESB-BWART.

  • li_rsitem-RES_ITEM = LT_RESB-RSPOS.

endif.

I had populated the field li_rsitem-WITHDRAWN with X.After succesfull updation of production order but it is not showing X in the table RESB for field RESB-KZEAR (Final Issue for this reservation) has not been set .

could any one help me out .

Thanks & Regards,

Gangadhar.S