For Subcontracting Purchase Order Item, we are using the BDC Call Transaction method for the TCode
MIGO in the program 'ZMIGO_TEST'.
When we are testing the Program 'ZMIGO_TEST' through SE38 it is running successfuly and document is also posted but problem is when we schedule the same program 'ZMIGO_TEST' in SM36, same BDC code for MIGO Transaction is not working and giving the Error in IST_BDCMSGCOLL as folloow.
MSGID: - DC
MSGTYP: - S
MSGNR: - 006
DYNAME: - 0001
MSGV4: - SAPLMIGO
NOTE: - We can not use the BAPI 'BAPI_GOODSMVT_CREATE' because we have to update the Challan Number and Challan Year also for each PO Line Item and this BAPI does not have thses two fields in its Parameter Interface.
Thanks & Regards