Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

To call external API's through ABAP

Former Member
0 Kudos

Hi Team,

I have a requirement where in I need to call external API's through SAP to basically push and pull data.

The API's are similar to those provided by the e-commerce channels. I need to call these API's and accordingly push and pull data, such as orders created for the sellers etc.

Can you kindly provide some help as I am not sure how to call these API's. Does it only involves Call Function..? or anything else. Also, the API's would be in different languages may be in cake php so need to do the development accordingly.

Kindly share details or provide some tips regarding the approach.

Thanks.

5 REPLIES 5

former_member182550
Active Contributor
0 Kudos

Hi,

You don't give very much information.

You can call external programs using RFC calls,  or function module SXPG_COMMAND_EXECUTE.  If the application you are claling is an OLE provider you can make use of the various objects and methods that it exposes.

You say thay may be in CakePHP...   As far as I am aware PHP is a web authoring language and is run with a PHP server sitting on the Web Server.   What is the database behing the system you are trying to get at ?  I'm almost absolutely certain that you will not be able to call any API's provided by your web application.

What you may be able to do though is to either access the various pages of your web application using the HTTP classes in ABAP,  or better still directly access the database behind the web application using EXEC SQL and DBCO.

It would,  however,  be easier to advise you if you were to be more explicit in your requirements.

Regards

Rich

0 Kudos

Hi Richard,

Basically I need to consume data through web based services API from a third party which is similar to say, amazon. Just as amazon provides API's to help the sellers get the data, similarly I need to call the API's and fetch the data from this e-commerce platform and feed it into SAP system.

So need some pointers on this.

Thanks.

0 Kudos

Hi,

Unless anyone comes up with a better idea I would look at going the other way round.  Write a web page that uses the API to get the data you require and then call an RFC in SAP to process it.

Rich

0 Kudos

0 Kudos

This message was moderated.