Automate

 View Only
  • 1.  Condition to Terminate creation record based on error message code

    Posted 06-02-2024 18:48

    Hi Team,

    Do you know how to terminate record creation based on SAP error message code?

    I am creating Purchase order in ME21N. I want to cancel record creation based on SAP error message code. My recording is creation PO and keeping in Held status.

    Thanks



    ------------------------------
    Balaji Choudhari
    Old World Industries, LLC
    Northbrook IL
    ------------------------------


  • 2.  RE: Condition to Terminate creation record based on error message code

    Employee
    Posted 06-12-2024 12:36

    Hi Balaji

    You might consider posting your PO in ME21N in a held status.  If the result of that script is good (check the log message ) then chain an ME22N (or I think ME29N does this too) script to release it.  I'd use an IF statement around the release script to only run if the ME21N was successful.

    Best Regards,

    Sigrid



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