cancel
Showing results for 
Search instead for 
Did you mean: 

HTTPS - Send ABAP Extract

Former Member
0 Kudos

Hi All,

I would like to know the steps involved in sending an ABAP extract(Vendor Name and Number) through the https connection using Web Application Server based on 6.20.

1. Steps involved in setting up a HTTPS connection.

2. How to send an ABAP extract via https.

Please advise.

Meghna

Accepted Solutions (1)

Accepted Solutions (1)

athavanraja
Active Contributor
0 Kudos

you can use cl_http_client for this case, if the receiving server is on https, then you need to download their certificate and load it in sap system (txn STRUSTSSO2)

cl_http_client code should be something like below.

call method cl_http_client=>create

exporting

host = 'www.xxxx.com'

service = '80'

scheme = '2'

proxy_host = wf_proxy

proxy_service = wf_port

importing

client = http_client.

call method http_client->request->set_cdata

exporting

data = wf_string

offset = 0

length = rlength.

call method http_client->send

exceptions

http_communication_failure = 1

http_invalid_state = 2.

call method http_client->receive

exceptions

http_communication_failure = 1

http_invalid_state = 2

http_processing_failed = 3.

Regards

Raja

Answers (0)