Automate

 View Only
  • 1.  SAP Material Master Creation using Winshuttle and BAPI_MATERIAL_SAVEDATA

    Posted 09-04-2023 05:54
      |   view attached

    Dear colleagues - I developed a Winshuttle script based on SAP BAPI BAPI_MATERIAL_SAVEDATA. All works well except for field CLIENTDATA -TRANS_GRP (Transportation Group); CLIENTDATAX-TRANS_GRP = X. The SAP MARA table field does not get updated regardless of whether the value is uploaded from the spreadsheet or hardcoded in the script. Has anyone encountered this issue? If so, is there a solution to getting this field value to populate in the SAP MARA table?

    Thanks in advance,

    Pam Bostian



    ------------------------------
    pamela bostian
    Shutterfly, Inc.
    SC
    ------------------------------

    Attachment(s)



  • 2.  RE: SAP Material Master Creation using Winshuttle and BAPI_MATERIAL_SAVEDATA

    Posted 09-05-2023 11:00

    hi Pamela,

    I've been using that BAPI for several years now. 

    The field MARA-TRAGR does get updated correctly with it (CLIENTDATA) and the "X" in CLIENTDATAX

    The script does need the SALES_VIEW box ticked in the HEADDATA.

    best, Jan



    ------------------------------
    jan ketele
    Xeikon Manufacturing NV
    ------------------------------



  • 3.  RE: SAP Material Master Creation using Winshuttle and BAPI_MATERIAL_SAVEDATA

    Posted 09-05-2023 11:08

    Yes, Jan, I have done that successfully too. The tricky part about that field is that it is on the Sales view, but it is a MARA field. I have also found that ..If you do a regular transaction script(instead of a Direct script)  it will grey out on the sales screen  after  you  populated it for  the first time. So you have to give it a value of  '/' on the spreadsheet  after the first time...

     

    Thersha Cowley

    Specialist SAP Developer

    Flowers Bakeries, LLC

    thersha.cowley@flocorp.com

     






  • 4.  RE: SAP Material Master Creation using Winshuttle and BAPI_MATERIAL_SAVEDATA

    Posted 09-05-2023 11:09

    Hi Jan - thank you for your reply! I discovered this too when testing the BAPI. Now all works as expected. Thank you again!  Pam



    ------------------------------
    pamela bostian
    Shutterfly, Inc.
    SC
    ------------------------------