on 09-06-2012 6:19 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
74 | |
8 | |
8 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.