cancel
Showing results for 
Search instead for 
Did you mean: 

Create an Output Type to call APIs

0 Kudos

Hello,

We have REST APIs that we want to be called each time a sales order and delivery is created or saved. One of the option we were interested in was to automate this with output types instead of writing multiple user exits.

Question is can an output type call a REST API?

Jelena
Active Contributor
0 Kudos

Please search before posting. Patrick already provided an answer but there is no reason you couldn't have just found it on your own simply by checking what options exist in the output configuration.

Accepted Solutions (1)

Accepted Solutions (1)

weberpat
Contributor
0 Kudos

Hi Pise,

You could use transmission medium "8 - Special Function" for your output and and point it to code that will call your REST API using the standard SAP HTTP classes. Another possibility (if you want better traceability and visibility into the data that is sent) would be to generate an IDoc that you send to an ABAP port where you can again call the REST API. If you go for the latter and have a PI system, you might be better off sending the IDoc to PI and have PI deal with the REST API.

Regards,

Patrick

0 Kudos

Thank you. I will try these options out.

Answers (0)