Automate

 View Only
  • 1.  BAPI_OBJCL_CHANGE for MARA Characteristic Updates is showing Assignment Changed but data in SAP has not

    Posted 8 days ago
      |   view attached

    I have created a simple BAPI script to update one specific classification field in our material master. After originally getting an RFC_NO_AUTHORITY error I worked with our security to get access to BAPI_OBJCL_CHANGE. Now that I have access, I have been able to get the script to run with no apparent error. It states, "Saving changes to assignments Assignment changed" in the log when complete however the data in SAP has not been updated.

    Below are some screen shots and I have attached the script.

    I have tried using the Characteristic Value as well as the Description (both work using MM02).



    ------------------------------
    Ann Davis
    Technical Data Analyst
    ------------------------------

    Attachment(s)



  • 2.  RE: BAPI_OBJCL_CHANGE for MARA Characteristic Updates is showing Assignment Changed but data in SAP has not

    Employee
    Posted 8 days ago

    Hi Ann

    Great you are trying a BAPI to update class characteristics! :)

    Please check the commit required option on the workspace tab:

    Also, the BAPI will want you to use the characteristic field name and value - not the descriptions.  For example, I have a characteristic called SK-Color with the description of Color - the bapi will want SK-Color and then for the value I might have R for Red, B for Blue, G for Green.  It will want R or B or G - not Red or Blue or Green.

    Hope that helps,

    Sigrid



    ------------------------------
    Sigrid Kok
    Precisely Software Inc.
    ------------------------------



  • 3.  RE: BAPI_OBJCL_CHANGE for MARA Characteristic Updates is showing Assignment Changed but data in SAP has not

    Posted 7 days ago

    Thanks for looking at that. It updated the Stock Strategy as designed however it removed all the other data from the MATERIAL_INTERFACE Class. Can just one of the Characteristics be updated without all the data being touched?



    ------------------------------
    Ann Davis
    Technical Data Analyst
    ------------------------------



  • 4.  RE: BAPI_OBJCL_CHANGE for MARA Characteristic Updates is showing Assignment Changed but data in SAP has not

    Employee
    Posted 7 days ago

    Hi Ann

    That's not good behavior.  I just re-tried this in ECC and used these fields - note I mapped class number, but that shouldn't matter.  I used CHARACT and VALUE_CHAR to pass in the values - it's the characteristic field name and value (not descriptions) in ALLOCVALUESCHARNEW table - which I use for everything except numeric values.

    Before

    after

    The other values were left alone.

    What is different in your scenario?  If nothing obvious, you might want to check with your Basis team whether the BAPI is standard or customized and if not, open a support ticket.

    Best Regards,

    Sigrid



    ------------------------------
    Sigrid Kok
    Precisely Software Inc.
    ------------------------------



  • 5.  RE: BAPI_OBJCL_CHANGE for MARA Characteristic Updates is showing Assignment Changed but data in SAP has not

    Posted 6 days ago

    Thanks for your feedback



    ------------------------------
    Ann Davis
    Technical Data Analyst
    ------------------------------