Skip to Content

To call external API's through ABAP

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.


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 19, 2015 at 12:51 PM


    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.



    Add comment
    10|10000 characters needed characters exceeded