10-27-2009 10:26 AM
Hello,
I am trying to Post Incoming Vendor Invoice in to SAP using INVOIC01 and IDOC_INPUT_INVOIC_MRM Function Module. I am adding values INVO for Invoice, CRMO for Credit Memo in the Field E1EDK01-BSART to Post the Invoice with different Invoice Types. However, the Invoice for the PO gets Posted only as Invoice, no matter what I populate in the Segment Field E1EDK01-BSART. What could be the issue? Please let me know.
Thank You,
Venkata Phani Prasad K.
10-29-2009 10:36 AM
This issue has been Resolved. A Sub routine MRM_DOCUMENT_COMPLETE is called in the Function Module IDOC_INPUT_INVOIC_MRM in which the value of the USING Parameter MRM_RBKPV-TCODE is being hard coded to MR1M. Since I am using a Z-Version of this Function Module, I've changed the value of the above field to MIRO after the Subroutine call which solved the issue.
MRM_RBKPV-TCODE = 'MIRO'.
The Values to be Passed to the Field BSART in the Segment E1EDK01 are
E1EDK01-BSART = 'INVL' - For Invoice
E1EDK01-BSART = 'CRME' - For Credit Memo
Thanks,
Venkata Phani Prasad K