Automate

 View Only
  • 1.  BAPI_MATERIAL_SAVEDATA

    Posted 03-18-2020 04:20
    Hi 

    When using this BAPI to update Material Master - Profit Centre, it is not updating it. Any Reason?

    Thanks

    Vin

    ------------------------------
    Thanks

    Vin
    ------------------------------


  • 2.  RE: BAPI_MATERIAL_SAVEDATA

    Posted 03-19-2020 03:15
    Hi,
    I think you need to give us more details.
    Does it work when updating other fields than profit center?
    Did you remember about 'X' tables for each table that you're updating?
    Did you test this FM directly in SAP via SE37 (if you have access)?
    Did you give all the details that might be required in this table? That part is difficult to figure out, but normally it's expected that you provideorg. data within that table to update certain fields.

    ------------------------------
    Radoslaw Poziomek | BSC Continuous Improvement Specialist
    Owens Illinois | *
    ------------------------------



  • 3.  RE: BAPI_MATERIAL_SAVEDATA

    Posted 03-19-2020 04:07

    Hi Radoslaw

     

    I did have the X parameter populated.

     

    Out of about 50 materials, it somehow managed to update about 5 of them with Profit Centre. The others it did not. The value of the profit centre was the same for all materials...

     

    I will double check with BAPI directly in SAP.

     

    Thanks & Regards

     

    Vin Khokhrai

     






  • 4.  RE: BAPI_MATERIAL_SAVEDATA

    Employee
    Posted 03-20-2020 09:50
    Hi Vin - can you please attach your script?  BAPIs are great to use with SAP, but this particular on is very picky on including the proper X's for the view(s), as well as the fields in each view.
    Thanks
    Sigrid

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------



  • 5.  RE: BAPI_MATERIAL_SAVEDATA

    Posted 03-20-2020 10:23

    Hi Sigrid

     

    PFA.

     

    Thanks & Regards

     

    Vin Khokhrai

     






  • 6.  RE: BAPI_MATERIAL_SAVEDATA

    Employee
    Posted 03-20-2020 10:35
    Hi Vin

    Your script looks great overall - great work!.   I saw that Profit Center field in the X table (PlantDataX) did not have an "X" in it.  You'll need to do that if you want to set/update it.

    HTH
    Sigrid

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------



  • 7.  RE: BAPI_MATERIAL_SAVEDATA

    Posted 03-20-2020 11:04

    Oh. I am pretty sure I did have it when I ran it. as out of about 50 materials about 5 or so did get updated...maybe whilst I have checking I may well have deactivated it by accident.

     

    Thanks for that anyways.

     

    Thanks & Regards

     

    Vin Khokhrai