Skip to Content
author's profile photo Former Member
Former Member

HTTP_POST module fail in background job, Help!

Dear all:

I use http_post module in frontend. It runs smoothly.

Now I want to trigger http_post module periodically.

I create a background job. But when the job runs, http_post raise exception "communication error".

I don't know what different between frontend and background job. Why I can only run http_post in frontend but fail in background job

Thank you

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Dec 15, 2004 at 01:12 PM

    What are you using for the RFC_DESTINATION importing parameter of this function module. There are two ways this function can run - from the SAPGui Frontend (RFC Destination SAPHTTP) or from the Application Server (RFC Destination SAPHTTPA). It sounds like this is probably trying to run from the Frontend. I would try forcing to SAPHTTPA and checking in SM59 to make sure this RFC destination is setup correctly. SAPHTTPA should start program saphttp on the application server. It should be a TCP/IP COnnection RFC Type.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 15, 2004 at 01:09 PM

    I have used cl_http_client instead of HTTP_POST and it works fine in background.

    Regarding HTTP_POST i need to check.

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.