Skip to Content


Hi Team,

I am using the BAPI "BAPI_MATERIAL_SAVEDATA" to extend the plant data (MARC table fields). In this BAPI, i have the section "PLANTDATA" & "PLANTDATAX".

I would like to update the "MRP Controller" as "010", "MRP Type" as "PD", Lot Size as "FX" and Schedule Margin key as "030" & execute the BAPI, i am getting the below error.

Message: "Key fields for use data PLANTDATA and checkbox structure PLANTDATAX are different"

What is the importance of the section "PLANTDATAX"?

How to solve this?


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jan 09, 2015 at 04:53 AM

    Hi sk ,

       same data you have to pass , plantdata as well as plantdatax.

    compare field by field can find the solution.

    At the same please check , in header data are you passing platadata value.



    Add comment
    10|10000 characters needed characters exceeded

    • Hello SK

      datax tells to the BAPI which fields should be managed

      In your example, MRP Type will be updated, Purchase Group not, since in DATAX you are "saying" that PUR_GRP = ' ' (not to be managed)

  • avatar image
    Former Member
    Jan 09, 2015 at 08:45 AM

    Hi SK,

    BAPI_MATERIAL_SAVEDATA -  Function module used to Create and Change Material Master Data.

    Below is a brief description of the FM Functionality :


    You use this method to create new material master data or to change existing material master data. The data on a material can be transferred for each call.

    When creating material master data, you must transfer the material number, the material type, and the industry sector to the method. You must also enter a material description and its language.

    When changing material master data, you need enter only the material number.

    In the header data, you must select at least one view for which data is to be created. Depending on the view selected, you must maintain other required parameters. If you do not enter values for all of the required parameters, the method is ended with an error message.

    The corresponding fields in the tables (such as PLANTDATA) must first be supplied with data by the calling program. An indicator must also be set for each of these fields so that the data is written to the database by the method.This requires the calling program to supply the corresponding field with the indicator in a checkbox table (for example, PLANTDATAX).

    Thanks & Regards,


    Add comment
    10|10000 characters needed characters exceeded