Automate

 View Only
Expand all | Collapse all

MM01 - No Batch Input Error

  • 1.  MM01 - No Batch Input Error

    Posted 01-31-2022 17:55
    Hi all,

    I have been attempting to create an MM01 Create Material script that will work for all material types and it has been a struggle. I downloaded the official template listed on the community for MM01 and edited it to add in some fields that I would need. I am receiving the following Run Log error message: "No batch input data for dynpro (SAPLMGMM 4000 Main screens with 6 subscreens (tab page)) ". I realize it is something to do with one of the views my mapping is attempting to select during the run and I have turned off all default parameters in SAP. I have also made sure my view defaults in MM01 are turned off. I have tried a few different ways to either skip the view selection or delete it altogether and it gives me the same error.

    If anyone has encountered this before and has a solution, please advise. I will attach my script displaying the error I am receiving. Any help is appreciated.

    Thanks,
    Knavis

    ------------------------------
    Knavis McGowan | Master Data Specialist
    ABBOTT RAPID DX INTERNATIONAL LIMITED | 3212771499
    ------------------------------

    Attachment(s)

    Txr
    MM01_Create_Material.Txr   2.58 MB 1 version
    xlsx
    MM01_Create Material.xlsx   7 KB 1 version


  • 2.  RE: MM01 - No Batch Input Error

    Posted 02-01-2022 08:59
    Hi Knavis - have you tried debugging to see where the script stops?

    ------------------------------
    Krista Zinna | Master Data Specialist
    Timken Company | 234-262-2008
    ------------------------------



  • 3.  RE: MM01 - No Batch Input Error

    Posted 02-01-2022 13:23
    Hi Krista,

    Yes, I debugged and the script seemed to stop at the sales org. 2 screen in MM01. It looks like there is an issue with the view on lines 63-65 in my script that is causing this. I am going to try the "If" conditions as Sigrid stated below but any other recommendations are always appreciated.


    Thanks,
    Knavis




    ------------------------------
    Knavis McGowan | Master Data Specialist
    ABBOTT RAPID DX INTERNATIONAL LIMITED | 3212771499
    ------------------------------



  • 4.  RE: MM01 - No Batch Input Error

    Employee
    Posted 02-01-2022 09:26
    Hi Knavis

    We look at both flexibility and usability for doing something like that. 

    Flexibility often introduces complexity, so we look for common views.  For example, finished goods and semi-finished goods often have very similar views to fill in.  They might be good candidates to "group together" into one script.  But they are vastly different from raw materials, which are also quite different from parts, packaging, etc. 

    And to me,  it's more than getting the script to work for all materials you group together.  It's about the person filling out the template knowing what they need to fill out and what not to fill out - there's the usability part.

    So it's all about tradeoff's.  

    As Krista suggested, you'll only be able to know what is going wrong via DEBUG mode.  Have you tried that?  

    Also I took a quick look at your script.  You will likely need to use IF statements in Expert mode to only go to specific views based on the material type in column E.  You will need to consider that if you skip a view, you might need to adjust your OK codes to got to a different screen/view number, as well.
    for example, you won't want to go to the sales org data unless you sell it. 
    So SP04 would take you to sales area data if it's a FERT, but that view may be different for a ROH or HALB, and you may need to skip the entire set of sales views.

    so you might need to do something like this
    the first IF will take you to a different view if not a FERT - I made up the view number
    the second IF will only go to sales views if it's a FERT
    You would need to add more IF statements for all of the material types you wanted to support


    You could also use a BAPI, no view numbers to worry about, but you would still need IF statements around various view data:  BAPI_MATERIAL_SAVEDATA depending on the material type.

    My recommendation would be to create a simple spread sheet listing material types in rows, and view names across the top.  Put an X in a column if you fill in view data, and you'll easily be able to recognize patterns.  If you need to group them together, group similar materials together, noting view numbers may change depending on the material type and make good use of IF statements.

    Best Regards,
     Sigrid



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



  • 5.  RE: MM01 - No Batch Input Error

    Posted 02-01-2022 13:19
    Hi Sigrid, 

    Thank you for the quick and insightful response. Yes, I have attempted to debug and once it gets to sales org. 2 screen in mm01, that is when the error occurs. I will try adding the "If" conditions to make the script more flexible as you have stated. Also, this may need to be posted on a separate thread but I am also having an issue with tax classifications on the Sales Org. 1 tab in MM01. In SAP, each Sales Org automatically populates its own tax classifications into the list once it is selected. I have removed all SAP parameters and defaults but it still does this based on the sales org. Is this something you have seen before and could this also be something the "If" conditions can remedy? It seems like scripts in MM01, XD01, etc. can get messy with the tax classifications changing based on sales org. and some sales orgs requiring a longer list of tax data than others.


    Your help is greatly appreciated!
    Thanks,
    Knavis

    ------------------------------
    Knavis McGowan | Master Data Specialist
    ABBOTT RAPID DX INTERNATIONAL LIMITED | 3212771499
    ------------------------------



  • 6.  RE: MM01 - No Batch Input Error

    Posted 02-01-2022 13:44
    Yes, we manage our Tax Classifications with IF Statements.  Depending on how many you have, you can do an IF Statement per Sales Org, or you can group them.   For my scripts, I group them.  For instance, Sales Org 0210 and 0530 each have 12 Tax Classifications, but 0280 only has 1 (like your example in your screenshot).  I have another column in my data file that is called "Number of Tax Classifications" so that instead of having an IF Statement for each Sales Org, I just have an IF Statement for each Number of Tax Classification combos there are.  I have a VLookup in my data template that references the Sales Orgs and how many tax classes each has.   My IF Statement then uses the column "Number of Tax Classifications" to direct the script.  Keep in mind that either way, there is some ongoing script maintenance required if Sales Orgs are added and/or Tax Classifications are updated/added.

    ------------------------------
    Krista Zinna | Master Data Specialist
    Timken Company | 234-262-2008
    ------------------------------



  • 7.  RE: MM01 - No Batch Input Error

    Posted 02-01-2022 16:30
    Thank you Krista. I think that will help manage my tax classifications for each sales org. I will be working on my scripts tomorrow so I may have more questions then - I appreciate all the help!

    Thanks,
    Knavis

    ------------------------------
    Knavis McGowan | Master Data Specialist
    ABBOTT RAPID DX INTERNATIONAL LIMITED | 3212771499
    ------------------------------



  • 8.  RE: MM01 - No Batch Input Error

    Posted 02-02-2022 12:30
    Hi Krista, 

    Do you have an example of what you described above for the tax classifications? I think this idea will work for our different tax classes but I am having difficulties creating it how you have stated.

    Thanks,
    Knavis

    ------------------------------
    Knavis McGowan | Master Data Specialist
    ABBOTT RAPID DX INTERNATIONAL LIMITED | 3212771499
    ------------------------------



  • 9.  RE: MM01 - No Batch Input Error

    Posted 02-02-2022 12:51
    Sure, here is a script and data template for creating sales views.  My company doesn't always enter a "1" in the tax class, sometimes it's a "3" which is why each tax line has it's own column in my template. But if your company always uses "1" you can just have a fixed value rather than reading a column for each tax line.  The IF Statement is around column Q in my data template.

    ------------------------------
    Krista Zinna | Master Data Specialist
    Timken Company | 234-262-2008
    ------------------------------

    Attachment(s)



  • 10.  RE: MM01 - No Batch Input Error

    Posted 02-03-2022 09:10
    No Batch Input Error is related to the "Recording Mode" you are using to create the script.


    Try using Standard Mode or GUI Scripting mode instead.


    ------------------------------
    Cheryl ESPOSITO | SAP MASTER DATA MANAGER
    Baylor College of Medicine | 2817857084
    ------------------------------



  • 11.  RE: MM01 - No Batch Input Error

    Posted 02-03-2022 11:55
    Hi Cheryl,

    Thank you for that recommendation - I did not notice I wasn't recording on Standard mode. I will give this a try!

    Thanks,
    Knavis

    ------------------------------
    Knavis McGowan | Master Data Specialist
    ABBOTT RAPID DX INTERNATIONAL LIMITED | 3212771499
    ------------------------------



  • 12.  RE: MM01 - No Batch Input Error

    Employee
    Posted 02-03-2022 08:50
    Hi Knavis
    If you would consider a BAPI, you would be able to easily update a number of tax classes regardless of the position.  Normally you'd setup a loop, but you can also copy the tax classifications group and "flatten it out", and even default values in it, if you like - or expose them to the excel file
    example attached for 2 tax classes, which could be edited to handle 1 or dozens.

    Best Regards,
    Sigrid

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



  • 13.  RE: MM01 - No Batch Input Error

    Posted 02-03-2022 11:58
    Hi Sigrid,

    Would I need to create a separate script for just the tax classifications/plant/sales org extension after the material has been created or can this be done all in one? I think the BAPI option would be a good one, as long as it contains all the different screens from MM01 that I need:
    • Basic Data 1/2
    • Sales Org 1/2
    • Sales General/Plant
    • Foreign Trade Import/Export
    • Purchasing
    • Accounting
    • MRP 1/2/3/4
    • Plant Data / Storage 1/2
    • Quality Management

    I am looking into it now.

    Thanks again,
    Knavis

    ------------------------------
    Knavis McGowan | Master Data Specialist
    ABBOTT RAPID DX INTERNATIONAL LIMITED | 3212771499
    ------------------------------