Application Development and Automation 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: 

HTTP Post from ABAP

Former Member
0 Kudos
509

Hi,

I am trying to send some data from ABAP to a servlet through http post. I am calling function module HTTP_POST and passing data as REQUEST_ENTITY_BODY. when i am testing the function HTTP_POST with address of my servlet it is working fine. but when i am calling this function from a program it is not working. it is giving a short dump saying "Connection closed".

This function has two tables for response header and body which are not optional. when testing from se37 i am not entering anything in it and when calling from program i am passing blank tables in that.

Can anyone tell me why the function is not working. do i have to pass something in those tables.

Thanks,

Komal

2 REPLIES 2

franois_henrotte
Active Contributor
0 Kudos
209

you should not send blank tables as they are optional

also check if you test function with same destination parameter

0 Kudos
209

Gentlemen,

I'm trying to pass a 'HTTPS://' link from ABAP to an external system that in return will send back a response as text. Using internet explorer will achieve that.

My understanding that, using HTTP_POST function module will allow this? Do you have an example of what is required as parameters to run the single test for this function module. Also any specific setting is required for the RFC-Destination TCP/IP setting?.

We are on release 4.7.

Appreciate your responce.

Mike.