I am using BAPI BAPI_INCOMINGINVOICE_CREATE to develop a upload program for Custom (Import) invoice via MIRO transaction.
In Custom MIRO, we need to book delivery cost (including custom and excise charges) before GRN (MIGO transaction). For booking this cost we are trying to use above mentioned BAPI and getting error M8375: "Fill in mandatory field REF_DOC, REF_DOC_YEAR, REF_DOC_IT (table parameter ITEMDATA, row 000001)".
Please suggest how this error can be solved or any other work around.