Hello,
I am facing problem with this bapi such as BAPI_GOODSMVT_CREATE. when i consumed 2 quantity for 2 serial numbers such as
serial number : ABC1,ABC2. for 261 movment type that time 2 quantity gets consumed but its related only 1 serial number(ABC1) gets consumed for 261 movement type. another serial no : ABC2 not gets consumed for 261 movment type . please tell that how to fulfill this requirement.
currently i am passing this parameters to this BAPI.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = gmhead
goodsmvt_code = gmcode
* TESTRUN = 'X'
IMPORTING
goodsmvt_headret = mthead
materialdocument = log_data-mat_doc
matdocumentyear = log_data-doc_year
TABLES
goodsmvt_item = item
goodsmvt_serialnumber = srno
return = errmsg. "