Automate

 View Only
  • 1.  MM01 Material extension (sales org), how to populate tax class

    Posted 08-05-2022 06:14
    Hi,

    I'm trying to create a script that will extend an existing Material into a new sales org. 
    However, the tax data view is different from one sales org to another (countries, tax categories etc.).  Also, depending on the reference I've taken, the missing fields vary.
    Has someone found a way to mass populate the tax class? I'm more than happy to have "1" in all of them. 
    Thanks!
    Aitor

    ------------------------------
    Aitor Aizpurua |
    Yara International Asa |
    ------------------------------


  • 2.  RE: MM01 Material extension (sales org), how to populate tax class

    Posted 08-08-2022 02:52
      |   view attached
    Hi Aitor, this works for me: working with BAPI_MATERIAL_SAVEDATA (direct), and to gather all countries needed, I included  a loop. Script in attachment


    ------------------------------
    jan ketele | Sr engineer release mgt
    Xeikon Manufacturing NV | +3234431875
    ------------------------------

    Attachment(s)

    Txr
    Taxclass_upload.Txr   931 KB 1 version


  • 3.  RE: MM01 Material extension (sales org), how to populate tax class

    Posted 03-07-2024 06:25
    Edited by Reema Rughani 03-07-2024 07:20

    Hi, 

    Thank you for this.  I have got it to work great but its only working on existing materials. I wanted to use it to create new material extentions to the Sales org view (ie, MM01).  Any idea on how i do that?



    ------------------------------
    Reema Rughani
    SAP Data Architect Lead
    SUN CHEMICAL LTD
    Slough
    ------------------------------



  • 4.  RE: MM01 Material extension (sales org), how to populate tax class

    Posted 08-08-2022 10:14

    Hi Aitor,

    I agree with Jan Ketele for using Direct for this.

    But if you have to use Transaction I guess you will also use a loop for this. I would then suggest to use a fixed value 1 for the tax class.



    ------------------------------
    Jan van Asseldonk | Consultant
    CTAC | +31629078169
    ------------------------------



  • 5.  RE: MM01 Material extension (sales org), how to populate tax class
    Best Answer

    Posted 08-09-2022 02:18
    I have been using a transaction script. Try this;
    In SAP, go into SalesView in MM01 or MM02 and type =PB07 in the command bar and see what happens (in short, it will provide a list entry instead of only like 4 rows).
    If you do this i think you will get the point.

    (however, with Direct is also an option)

    ------------------------------
    Ed Meiners | Team leader Business Applications – Master Data Integration Management
    Royal Wessanen nv | +31 (0)20 3123353
    ------------------------------