Skip to Content

PAPI - Error Response in SAP MII

Hi All,

I am using SAP MII 15.0 SP4 and I am trying to release the Order using SAP ME PAPI "ShopOrderRelease".

I am able to trace the success response.But Sometimes the service throws the error as "Material is not valid" like that,I cant able to trace the exact error.Catch action block also not able to give the error. Can anyone please help so that I can get the error response also?.

Regards

G.Partheeban

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Sep 24, 2015 at 02:26 PM

    You may be able to get more help by posting in the main manufacturing forum:

    SAP Manufacturing

    It looks like most of the ME related action happens there.

    If I had to guess you probably have to parse/check for the error out of the PAPI xml response.

    Regards,
    Christian

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 24, 2015 at 07:55 PM

    Hi G.Partheeban,

    When you Catch the exception from any PAPI, examine the PAPI Action Block Message parameter, that will contain the complete error message that caused the exception.

    Regards, Steve

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 02, 2015 at 07:10 PM

    Hi Partheeban,

    Check the response and request objects. It should give you a clue.


    Action, action failure would not give you a response. A catch block would help you get the correct message though, you can check transaction manager for detailed insight.

    Best Regards,

    Swaroop

    Add a comment
    10|10000 characters needed characters exceeded

    • Swaroop Anasane PARTHEEBAN GNANASAMBANDAN

      Hi Partheeban,

      Once you catch the error using catch action, use terminate action block and assign the catched message to terminate action's message and set terminate with error to "true".

      Now when the BLS fails, your ajax call will get into error state and provide you fatalerror which gets you the message that was captured by catch action block.

      Let me know if you need any further info.

      Best Regards,

      Swaroop

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.