Automate

 View Only
  • 1.  BAPI_MATERIAL_SAVEDATA

    Posted 08-04-2020 14:12
      |   view attached
    Hi all,

    Whenever I add fields from the UnitsOfMeasure table to a script using BAPI_MATERIAL_SAVEDATA, it always creates them a loop. I guess this would be expected since it's a table. However:
     
    1) Existing scripts that I have using this BAPI, as well as the template on the WS site for BAPI_MATERIAL_SAVEDATA - Add or Update Alternate Units of Message, do not have the UnitsOfMeasure fields as a loop. Did the BAPI change? If so, I'm surprised my existing scripts work.
    2) If the loop(s) is indeed needed, how do I make a loop for the X fields? Very odd having a loop for the UoM fields and another for the X fields.

    Thanks for any assistance!

    Brian

    BAPI loops


    ------------------------------
    Brian McNally | BA
    Versum Materials | 6105095098
    ------------------------------


  • 2.  RE: BAPI_MATERIAL_SAVEDATA

    Posted 08-04-2020 15:18
    I think I found that I can just delete the loops, but not positive if that will work.

    ------------------------------
    Brian McNally | BA
    Versum Materials | 6105095098
    ------------------------------



  • 3.  RE: BAPI_MATERIAL_SAVEDATA

    Employee
    Posted 08-04-2020 20:17
    Hi Brian - you can delete the loops in a BAPI script, and you can create new loops around a group of tables, as needed.  

    Hope it works for you!
    Sigrid

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



  • 4.  RE: BAPI_MATERIAL_SAVEDATA

    Posted 08-05-2020 07:13
    Thanks, Sigrid!

    ------------------------------
    Brian McNally | BA
    Versum Materials | 6105095098
    ------------------------------