Automate

 View Only
  • 1.  MM01

    Posted 01-22-2020 11:48
    Hello! I'm a new Winshuttle developer and need some advice on using BAPI_MATERIAL_SAVEDATA to create items.
    I'm working on editing a script that a previous staff created. The full create template uses at least 5 different scripts. Theoretically, I just need to add a couple of fields onto one script, using BAPI_MATERIAL_SAVEDATA,
    Has anyone been successful doing this? Would it be better to re-create the whole script rather than adding the missing fields?

    ------------------------------
    Jaime Jost Satko | Data Solutions Engineer I
    Patterson Companies | 6514054989
    ------------------------------


  • 2.  RE: MM01

    Posted 01-23-2020 02:50
    Hi Jaime,
    It's easy to add some fields to a BAPI_MATERIAL_SAVEDATA. I'm frequently using such a chain of scripts for MM-creation too, I've done such edits several times.
    Just go to  View, Expert view, tick the box 'Disabled fields'.
    One thing you should be aware of when adding a specific field within the BAPI: there are always 2 fields with the same name you must enable: the one that selects the actual data and the one with an X. The field with the actual data will get its input from the column in Excel, the one with an X will get fixed value 'X' for just about any field (some fields must also get entry from Excel for this X-entry, the 'type&length' will be different from 'char 2').
    for example: the Size/dimensions field


    Enjoy scripting !

    ------------------------------
    Jan Ketele | Sr engineer release management
    Xeikon Manufacturing NV | +3234431875
    ------------------------------



  • 3.  RE: MM01

    Posted 01-27-2020 11:20
    Thank you!

    ------------------------------
    Jaime Satko | Data Solutions Engineer I
    Patterson Companies | 6514054989
    ------------------------------



  • 4.  RE: MM01

    Posted 01-31-2020 14:43
    Hi Jan--

    What if the BAPI itself has been updated? Have you dealt with that? 

    Thank you, 
    Jaime

    ------------------------------
    Jaime Satko | Data Solutions Engineer I
    Patterson Companies | 6514054989
    ------------------------------



  • 5.  RE: MM01

    Posted 02-05-2020 08:27
    hi Jaime,

    Not sure what you mean; if you mean a SAP-update of the BAPI, I wouldn't worry : I 've never seen an update forced from SAP in the 3 years of my using Winshuttle.
    I did obviously make a number of fresh Direct Scripts from BAPI's; you can find a number of very useful explanatory videos (webinars) on the Winshuttle website.

    best regards, jan

    ------------------------------
    Jan Ketele | Sr engineer release management
    Xeikon Manufacturing NV | +3234431875
    ------------------------------



  • 6.  RE: MM01

    Employee
    Posted 02-06-2020 08:19
    HI Jaime,

    For almost 10 years I've been creating Winshuttle scripts.   BAPIs have not changed and the scripts keep running.  I agree with Jan that it's a safe bet.

    There are some differences between BAPIs in ECC and S/4Hana, as well as if you're using an industry specific system, like S/4Hana FMS vs ECC Retail for materials/articles.   But even then, it's optional to use the industry-related tables/fields.

    Best Regards,
    Sigrid

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