Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Invoice Type not being Updated while Posting INVOIC01 - Incoming Invoice

Former Member
0 Kudos

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.

1 REPLY 1

Former Member
0 Kudos

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