Automate

 View Only
  • 1.  How to create script for mass item creation MM01 in SAP MM

    Posted 04-16-2021 22:49
      |   view attached
    I tried to run the script that I made in Winshuttle for mass item creation however only item one was created successfully. The other item on the list encountered an error which states, "No batch input data for screen (SAPLCLFM 1101 Clfy 99: From Object, Assign Object to Classes and Classify)". I have attached a snip of the error that I encountered.

    So I was wondering if maybe the script that I made was only applicable for one item creation only.

    Appreciate your help on this. Thanks in advanced!

    ------------------------------
    Hannah Mae Valensoy | SAP Material Master Analyst
    Chevron Corporation | +63 27934524
    ------------------------------


  • 2.  RE: How to create script for mass item creation MM01 in SAP MM

    Employee
    Posted 04-19-2021 10:14
    Hi Hannah Mae

    Scripts can definitely load more than one material.

    It's always helpful to run in DEBUG mode and watch what is happening. 

    At first glance based on the message, it looks like you're adding a material class.  If so, the first time, which means the first material, it will prompt you for the class type:
    After the first material, it will assume it's the same class type and you won't be prompted.   If you open up SAP and go through MM01 twice, you'll see this is the behavior.

    If you swap to Expert mode, you will see something like the highlighted section
    Highlight those lines and click to add an IF statement - choose if first transaction
    It will now look something like this

    We have these IF types - If First and If Not First because in some tcodes, SAP will go through a different set of steps after the first one.

    Please give it a try.  If this isn't the issue, it would be helpful if  you attached your script.  

    Best Regards,
    Sigrid

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



  • 3.  RE: How to create script for mass item creation MM01 in SAP MM

    Posted 04-20-2021 11:02
    Hi, Sigrid.

    I tried the suggestion you indicated above and it perfectly worked on my script.

    Thank you so much for the help!!

    ------------------------------
    Hannah Mae Valensoy | SAP Material Master Analyst
    Chevron Corporation | +63 27934524
    ------------------------------



  • 4.  RE: How to create script for mass item creation MM01 in SAP MM

    Employee
    Posted 04-20-2021 11:25
    Happy to hear that, Hannah Mae! 

    You were very close, but SAP sometimes makes it a bit tricky to automate something.

    Best Regards,
    Sigrid

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