Skip to Content
avatar image
Former Member

How many parameters does a developer need to know like '~request_method'

<b>I am sorry to post it twice. I am not able to delete it!</b>

In SAP standard program 'RSHTTP01', "call method client->request->set_header_field exporting name 'request_method' value = 'GET'." is used. How many parameters do I need to know like 'request_method'? I cannot find any document to describe it.

Message was edited by: Paul Lee

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

8 Answers

  • Best Answer
    Aug 23, 2004 at 07:03 AM
    Add comment
    10|10000 characters needed characters exceeded

  • Aug 22, 2004 at 11:33 AM

    These are the HTTP request header parameters. You can find a list at

    http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html

    Regards

    Raja

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 22, 2004 at 02:12 PM

    Yes. I know the HTTP RFC has defined some request header fields, but some like '~request_method' are not defined in the document. I suppose they are defined by SAP.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 22, 2004 at 02:42 PM

    What you need to know has to do with what you want to do.

    For example if you are in SE80 and working on a BSP page and in the event handler you have the following code:

    client->request->set_header_field 
    

    If you double click on "client" or "request" or "set_header_field" you will be able to jump into the mehtod or class or object and from there you can explore what is available and what other methods and parameters are there.

    Are you working on a specific thing or just in general trying to learn?

    For BSP please take a look at this link:

    <a href="/people/brian.mckellar/blog/2004/06/11/bsp-trouble-shooting-getting-help">BSP Trouble Shooting: Getting Help</a>

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 22, 2004 at 11:46 PM

    'request_method' is not defined in HTTP RFC, nor SAP documentation. And 'server_protocol' is used in RSHTTP01, too. I can understand the meanings of these 2 parameter value, but where can I see the document? Are there more parameters value available? In the sample program, some values like '~request_method' are used, and some standard HTTP header field names are used. I don't know when to use standard and when to use SAP private.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Paul,

      Please look at the following links. It will help to explain how you can find all the documentation and how working with BSP's is done.

      These are weblog's created by Brian" target="_blank">https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/u/164">Brian McKellar, granted there's a lot, but it is worth it to yourself to read them at least once.

      In particular please take a look at the following:

      <a href="/people/brian.mckellar/blog/2003/09/30/bsp-in-depth-writing-an-http-handler">BSP In-Depth: Writing an HTTP Handler</a>

      <a href="/people/brian.mckellar/blog/2003/09/30/bsp-in-depth-writing-an-http-handler">BSP Trouble Shooting: Frequently Asked (Short) Questions</a>

      <a href="/people/brian.mckellar/blog/2004/06/11/bsp-trouble-shooting-getting-help">BSP Trouble Shooting: Getting Help</a>

      As for in ABAP seeing documentation for values, simply double click (or F1) on the parameter, if there are docs available you will usually get them. If the parameter is a reference to something by double clicking you usually get taken to the item, from there you try again to double click or F1 and see what you get.

      So what I did was typed your program in, in SE38 and then looked at the code and found this:

      if internal is initial.
            call method cl_http_client=>create
              exporting
                host               = host_str
                service            = service_str
                proxy_host         = proxy_host
                proxy_service      = proxy_service
      

      I assume this is where you are looking so I tried to double click on "proxy_service" - nothing, I tried F1 - nothing.

      So now I look at how this is a method call so I double click on "cl_http_client" and low and behold I am taking to the method itself. Now I go to the method "CREATE" (<i>cl_http_client=>create</i>) and I click on the "PARAMETERS" button at the top of the screen next to "EXCEPTIONS" I now see a bit of information and a list of all the parameters used in the create.

      From here you should be able to now play around see what all used and available with this method.

  • avatar image
    Former Member
    Aug 23, 2004 at 08:02 AM

    Thank you all of you, especially Rainer Liebisch.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Paul, since your response here looks as though you have your answer please be sure to reward Rainer with the appropriate points as well as any other reply and also to mark your message as "Problem Solved" look to the little yellow stars by each reply that was helpful.

  • avatar image
    Former Member
    Aug 23, 2004 at 08:51 AM

    I know why can't I search the help document. The linkage is located in help of mySAP ERP, not in SAP R/3 and R/3 Enterprise.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 23, 2004 at 09:28 AM

    Hi Paul,

    the link is also in SAP R/3, but ons has to know where to look at. The link is:

    http://help.sap.com/saphelp_470/helpdata/en/78/985278c06b11d4ad310000e83539c3/frameset.htm

    Regards,

    Rainer

    Add comment
    10|10000 characters needed characters exceeded