Automate

 View Only
  • 1.  Need Help to Create a Condition in Studio Script to Skip Fields

    Posted 15 days ago
      |   view attached

    I am trying to create a condition where MM01 warehouse views are created in all plants with the exception of 1012. Our 1012 material master does not have any configured warehouse. My attempts are allowing the non-1012 plants to create but my 1012 plant is producing an error.



    ------------------------------
    Ann Davis
    Technical Data Analyst
    ------------------------------

    Attachment(s)

    xlsx
    MM01_20240924_155136.xlsx   6 KB 1 version


  • 2.  RE: Need Help to Create a Condition in Studio Script to Skip Fields

    Posted 14 days ago

    hi Ann, can you share your script(.txr) instead of excel ? seems that when you put condition from line 130 to 142,  there is missing ok code to call screen 4000. have you tried debug the creation?

    Rado



    ------------------------------
    Radoslav Magal
    baa
    PPG Industries International, Inc. – Hong Kong Branch
    ------------------------------



  • 3.  RE: Need Help to Create a Condition in Studio Script to Skip Fields

    Posted 14 days ago
      |   view attached

    I have attached the script.



    ------------------------------
    Ann Davis
    Technical Data Analyst
    ------------------------------

    Attachment(s)

    Txr
    MM01_20240924_155136.Txr   4.93 MB 1 version


  • 4.  RE: Need Help to Create a Condition in Studio Script to Skip Fields

    Employee
    Posted 14 days ago

    Hi Ann

    When adding conditions like this, you have to accommodate the View, which you likely have, but also the OK code prior to that view. 

    The OK code prior to going to the view you want to skip has to have an IF - if plant with warehouse then go to warehouse view else go to view after that.

    Don't have time to look at your script right now, but those are the two factors to look at when skipping over views in the MM, and for lots of other tcodes when you want to conditionally execute something.

    Best Regards,

    Sigrid



    ------------------------------
    Sigrid Kok
    Precisely Software Inc.
    ------------------------------



  • 5.  RE: Need Help to Create a Condition in Studio Script to Skip Fields

    Employee
    Posted 13 days ago

    agree with the others, check the ok-code in the previous step to make sure the script can find the next screen when your IF condition is true and not true. 



    ------------------------------
    Jayasri Varyani
    SE
    Precisely Software Inc.
    ------------------------------