Skip to Content
Former Member
May 05, 2011 at 05:43 PM

Error: "Field Material is a required field for G/L account 3862 21201000".


We are trying to post and Rack purchase Invoice using "BAPI_INCOMINGINVOICE_CREATE" but the BAPI fails and the error message that we are getting is "Field Material is a required field for G/L account 3862 21201000". We checked the GLACCOUNT data that is getting passed into the BAPI but there is no material field available in the structure. Even posting online using MIRO returns the same error.

Just to give you a quick background on the issue with MATNR. The automatic posting is generating an entry to account 21201000, which is set to require MATNR on the GLACCOUNT posting details. Online in core MIRO the MATNR field does not show up, but you can set the screen variant to allow it to show and therefore enter a value, however, even if you do this if you attempt to cancel the invoice with standard TCode MR8M it again fails because the MATNR is not carried through to posting. There are a couple of OSS notes that relate to this issue, but we are not sure if it will solve our problem. We need to be able to pass a value in MATNR for GLACCOUNTDATA (not MATERIALDATA) so the posting can be effected.

Please let me know if anybody has come acroos this issue and a way to resolve. Any kind of help will be appreciated.