I am using function module HTTP_POST to get xml from web. My object is working perfectly fine when I execute it in foreground (online) but the same when executed as a background job is not returning me anything.
1. Is it possible to use this function module in a background job?
2. What can be errors in this case?
3. Solution please....
Points guranteed for the solution or helpful replies.
My code for reference:
CALL FUNCTION 'HTTP_POST'
ABSOLUTE_URI = urlstring
REQUEST_ENTITY_BODY_LENGTH = reqlen
RFC_DESTINATION = 'SAPHTTP'
REQUEST_ENTITY_BODY = xmldoc
RESPONSE_ENTITY_BODY = response_body
RESPONSE_HEADERS = response_header
REQUEST_HEADERS = request_header
CONNECT_FAILED = 1
TIMEOUT = 2
INTERNAL_ERROR = 3
TCPIP_ERROR = 4
SYSTEM_FAILURE = 5
COMMUNICATION_FAILURE = 6
OTHERS = 7.