Skip to Content
author's profile photo
Former Member

Error while posting MM invoice.

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 across this issue and a way to resolve. Any kind of help will be appreciated.

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Best Answer
    author's profile photo
    Former Member
    Posted on May 05, 2011 at 08:43 PM

    Please look at the field status of the GL Account. I am guessing in the field status group for that GL Account, it might have material as a required field.

    Every company code must be assigned to a field status variant which can be checked at

    Financial Accounting --> Fin accounting global settings --> document --> line item --> controls -->assign company code to field status variants.

    Get that variant and go to

    Financial Accounting --> Fin accounting global settings --> document --> line item --> controls --> maintain field status variants.

    Here look for the field status group that you have assigned to the GL Account number (FS00) and see if the material is required entry or not.

    Shail

    Add comment
    10|10000 characters needed characters exceeded