Skip to Content
avatar image
Former Member

SAP PO 7.5 Adapter REST JSON response code

Dear Experts

I am presenting a problem with an interface of the type (IDOC-> PO-> REST) asynchronous of a SAP PO 7.5 SP 6.

The problem is on the REST Receiver adapter. 

In SOAPUI it is possible to display the endpoint's data in JSON format when there is an error and therefore you can have information about the execution of the message.
 

ERROR1 : error = No se puede importar o actualizar un item con stock disponible
ERROR2 : row = The input was not valid

However in SAP PO you do not get this error message to get it from the SAP PO application> Message Monitoring

Can you help me to move forward? From already thank you very much.
1.jpg (88.2 kB)
11.jpg (30.8 kB)
1.jpg (88.2 kB)
2.jpg (57.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jul 14, 2017 at 12:12 PM

    check this note.. see the erro handling

    2175250 - New Feature: Enhancements in custom error handling

    use the variable http_result to get that..

    http_statusThe http status code, such as 200, 403, etc.http_status_textThe http status text, such as "403 forbidden"http_resultThe content of the http call

    https://help.sap.com/viewer/5cf7d2de571a45cc81f91261668b7361/7.5.7/en-US/3a0796b585c645bdb470983a4c46e31d.html

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 14, 2017 at 02:58 PM
    -1

    In REST receiver, you have error handling tab.

    There you can use HTTP status code 200/201/400/401 etc., HTTP status text, JSON error text, and so many other error handlings. Accordingly, you can create a custom payload so that same can be sent back to the user.

    In case, if sender is async one then you can use standard module RequestResponseBean and ResponseOnewayBean to send error details to the sender.

    Thanks,

    Apu

    Add comment
    10|10000 characters needed characters exceeded