cancel
Showing results for 
Search instead for 
Did you mean: 

Send data to a third party URL

0 Kudos

Hi,

I want to send some data from ERP system  to a third party URL(https ) and update tables on that third party server.

How can i do that using  IF_HTTP_CLIENT and what all configurations are required?

also , do i need to use web services also along with this?

i Dont want to use SAP PI.

Thanks & Regards

Leena Khatri

View Entire Topic
jeroen_verbrugge2
Active Participant
0 Kudos

Hi,

An important part in your question is the use of HTTPS. When you want to use HTTPS it must be activated in your SAP system, check in SMICM if service HTTPS is running.You'll also have to deal with certificate which can be loaded into your system using transaction STRUST.

Without webservices:

Create an RFC destination of type G, fill in your settings and on the logon and security tab Activate SSL and choose the store where the certificate was loaded. Then test the RFC destination, only if the connection works you will be able to communicate successfully over HTTPS.

When using if_http_client, you can use the method create_by_destination.

Have look here: SAP_Help_Executing an HTTP Request

With webservices:

Also here you will have to deal with configuration parameters and certificate, depending on your system you can use lpconfig and choose to use RFC destination (same as described above) or use soamanager where no destination can be chosen but one is generated...

With or without webserice depends on your counterparty. If it's easy for them provide you with a WSDL it's of course an easier implementation. If this is not possible, it's not such a big deal to use if_http_client.

Rgds,

Jeroen

Former Member
0 Kudos

Hi Jeroen,

In the case of using "Without webservices" , do we need to install the SAP server certificate in the third party server before communication?, I am bit confused in this always, as HTTPS sometimes needs both a trusted sever as well as a trusted client  . In typical day to day applications Ex, GMAIL, the GMAIL server is not interested in verifying us - the client. The other way does happen though through GMAIL's certificate.

But, In the case of ERP apps, would it be that the third party server somehow has to trust the client? or how does this happen?..

Do correct me if I am wrong.

Thanks,

Venkat.

jeroen_verbrugge2
Active Participant
0 Kudos

Hi,

You have to install the other party certificate in your SAP system.

Jeroen.

Former Member
0 Kudos

Hi,

I know this sounds too basic, but i hope it clears me .Do we need to install the SAP certifcate in the 3rd party server?.

Thanks,

Venkat.

jeroen_verbrugge2
Active Participant
0 Kudos
Hi,  This is not needed for the scenario you described.  Rgds, Jeroen
0 Kudos

Hi,

Thanks for the detailed explanation.

If i use if_http_client,can i capture the response back somehow or is it only the one way communication,that is , sending the datsa to the URL.

Thanks & Regards

Leena Khatri