Skip to Content

*{   REPLACE        D15K900923                                        1

*\  if service is initial.

  if service is initial and

     host_compatibility = abap_false.

*}   REPLACE

    if scheme = schemetype_http.

      service = ’80’.

    else.

      service = ‘443’.

    endif.

  else.

  • check validity of port number (16bit Integer)

    if ( strlen( service ) gt 5 )

    or ( service cn ‘0123456789’ ).

      raise argument_not_found.

    endif.

  endif.

     

The Example

Now that we are over that little mess, we can begin with the example at hand.

Step1: I signed up for my free account just like the first weblog said to do:Step2&3: I created a BSP application named ZES_WEATHER and then imported all the images from the original weblog:

image

To report this post you need to login first.

5 Comments

You must be Logged on to comment or reply to a post.

  1. Prakash Singh
    This is awesome. We should try to do this often. I hope user community appreciates our effort. I am hoping somebody develops this in PHP.

    Prakash

    (0) 
    1. Craig Cmehil
      The problem with PHP is that it would take hardly anytime at all to do 🙁 there are several PHP scripts out there already that do just this.
      (0) 
      1. Thomas Jung
        Believe me it didn’t take all that long to do in ABAP (once I got around that minor “bug” in the HTTP Client). 🙂 The real work was Prakash’s in creating the XSLT program which fortunetely is quite portable between environments. 

        I think this example demonstrates the “Many Tools in the ToolBox” theory (Java, ABAP, PHP).  More and more in the SAP environment you have the choice of the tool that best fits your skill set without having to give up functionality.  SAP’s customer stand to benefit a great deal from this range of choices.

        (0) 
  2. Thomas Jung
    The HTTP Client problem with the ports should soon be offically fixed.  Have a look at OSS note 858970 for the details.  Thanks goes to Brian McKellar for keeping on top of this.
    (0) 
  3. Michael Handschuh
    i think the dataelement OUT_HTML have to insert in the attrributes with type STRING. Am i wright?

    further: i get an HTTP 500 error is this the result of the described error with CL_HTTP_CLIENT class?

    thanks for answer.

    Ciao
    Mike

    (0) 

Leave a Reply