03-17-2009 10:35 AM
gmhead-pstng_date = sy-datum.
gmhead-doc_date = sy-datum.
gmhead-pr_uname = sy-uname.
gmcode-gm_code = '01'. "01 - MB01 - Goods Receipts for Purchase Order
itab-move_type = '101'.
itab-mvt_ind = 'B'.
itab-plant = 'FD11'.
itab-material = '0000900152'.
itab-entry_qnt = '1.000'.
itab-move_stloc = 'FG'.
itab-stge_loc = 'FG' .
itab-po_number = '5500004086'.
itab-DELIV_NUMB = '0171000465'.
itab-DELIV_ITEM = '10'.
itab-PO_ITEM = '10'.
call function 'BAPI_GOODSMVT_CREATE'
exporting
goodsmvt_header = gmhead
goodsmvt_code = gmcode
TESTRUN = ' '
IMPORTING
goodsmvt_headret = mthead
MATERIALDOCUMENT =
MATDOCUMENTYEAR =
tables
goodsmvt_item = itab
GOODSMVT_SERIALNUMBER =
return = errmsg
Error in function
Material document data and PO data do not match (Material)
i am getting this error
I am using this FM for migo against outbound delivery can i get
what parameters i have to pass for this FM for outbound delivery.
or any parameter is missing
03-17-2009 10:38 AM
Hi Rohit ,
try to convert Material into internal Format i.e 18chars ,i'm not sure of this error, but u can try that one.
regards
Prabhu
03-17-2009 12:09 PM
Dont hardcode the values instead take the PO no. line item and material no.
frm LIPS and LIKP table.