I am currently working on a scenario where the data is coming from a external system for goods receipts and reversal of goods receipts for purchase orders. I am using a bapi_goodsmvmt_create(IDOC is MBGMCR). Can I use the same function module for the reversal of goods receipts too? Actually, the external system is sending "Accepted" if its a goods receipt (movement type = 101) and "Rejected" if its reversal (movement type =102). Can I use the fix value conversion to map this two fields like accepted - fixed value 101, rejected - fixed value 102. Also, Do I need to fill the IDOC control records during the mapping or if it takes the values from the XI message header automatically?
Looking forward to hearing from you all. Please help me.