Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

'BAPI_GOODSMVT_CREATE' --261

HI,

we are facing problem in using BAPI_GOODSMVT_CREATE

for the movement type 261.can anybody help

i.e. what are the parameters do we need to pass to BAPI

for a production order...can u pl. look at the code

and correct anything is required..

*----Header

s_goodsmvt_header-pstng_date = '20060422'.

s_goodsmvt_header-doc_date = sy-datum.

s_goodsmvt_header-pr_uname = sy-uname.

s_goodsmvt_header-ref_doc_no = '000710000426'.

*----Item

i_goodsmvt_item-material = 'IT00PA 744 001' .

i_goodsmvt_item-plant = '7101'.

i_goodsmvt_item-stge_loc = '0148'.

i_goodsmvt_item-move_type = '261'.

  • i_goodsmvt_item-mvt_ind = 'F'.

  • i_goodsmvt_item-stck_type = space .

i_goodsmvt_item-ENTRY_UOM = 'SHT'.

i_goodsmvt_item-entry_qnt = '0.100'.

i_goodsmvt_item-batch = 'TEST_BCD1'.

i_goodsmvt_ITEM-ORDERID = '000710000426'.

  • i_goodsmvt_ITEM-RESERV_NO = 4379.

CALL FUNCTION 'BAPI_GOODSMVT_CREATE'

EXPORTING

GOODSMVT_HEADER = s_goodsmvt_header

GOODSMVT_CODE = '03'

IMPORTING

GOODSMVT_HEADRE = x_goodsmvt_header

MATERIALDOCUMENT = V_DOC

  • MATDOCUMENTYEAR =

TABLES

GOODSMVT_ITEM = i_goodsmvt_item

  • GOODSMVT_SERIALNUMBER =

RETURN = i_return.

if sy-subrc = 0.

commit work and wait.

endif.

Thanks,

Seshagiri

Tags:
Not what you were looking for? View more on this topic or Ask a question