Automate

 View Only
  • 1.  Get a result after script running

    Posted 06-26-2023 11:28

    Good Morning All,

    I was wondering if there is a way to get the result of script transaction after completion ? For exemple, i have a script that create a new position (PO13). After the execution, i have to manually search this new position (the code/number).

    Is there something i am missing that would provide me with the position number after its creation ?

    Thank you in advance for your help!



    ------------------------------
    amina mokhtari
    Conseil de ecoles publiques de l'Est de l'Ontario (CEPEO)
    ON
    ------------------------------


  • 2.  RE: Get a result after script running

    Employee
    Posted 06-26-2023 16:19

    Hi Amina, 

    In some tcodes, the object number generated is available.  For PO13, it is generated prior to the save.  In my PO13 script I click save and go back to the main screen with all of the infotypes, it's from there you will be able to download the #.

    I hit enter on that screen and then exit.

    You will need to go to Expert mode in the mapping tab, then click view and check disabled fields.  Go toward the bottom and you'll see it.  If not, you can always add the above line.

    Another method includes modifying the output message to only include the new object number, but for this tcode, you don't have to do that.

    Best Regards,

    Sigrid



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



  • 3.  RE: Get a result after script running

    Posted 07-11-2023 09:01

    Hi Sigrid,

    Thank you so much for this explanation,

    Have a nice day"



    ------------------------------
    amina mokhtari
    Conseil de ecoles publiques de l'Est de l'Ontario (CEPEO)
    ON
    ------------------------------