Skip to Content
0
Former Member
Nov 24, 2009 at 07:22 AM

Bapi bapi_goodsmvt_create for goods receipt of process order

953 Views

Hello All ,

I am trying to a GR with MIGO for a process order .Its giving me error like

Content of order 2000002339: 100001374 transferred to interface (IMSEG): 100001374

I am not able to trace the error out .I am passing the below parameters .pls check

gmhead-pstng_date = sy-datum.

gmhead-doc_date = sy-datum.

gmhead-pr_uname = sy-uname.

gmcode-gm_code = '02'. "01 - MB01 - Goods Receipts for Purchase Order

itab-move_type = '101'.

itab-mvt_ind = 'F'.

itab-plant = '1AAE'.

itab-material = '100001374'.

itab-entry_qnt = '1'.

itab-move_stloc = 'B100'.

itab-stge_loc = 'B100'.

itab-orderid = '002000002339'.

append itab .

CALL FUNCTION 'BAPI_GOODSMVT_CREATE'

EXPORTING

goodsmvt_header = gmhead

goodsmvt_code = gmcode

  • TESTRUN = ' '

IMPORTING

goodsmvt_headret = wa_head

materialdocument = lv_mblnr

  • MATDOCUMENTYEAR =

TABLES

goodsmvt_item = itab

  • GOODSMVT_SERIALNUMBER =

return = errmsg

.

Pls reply ..

Thanks .