Skip to Content
Author's profile photo Thomas Jung

BSP: Create a weather magnet using xml feed from

*{   REPLACE        D15K900923                                        1

*\  if service is initial.

  if service is initial and

     host_compatibility = abap_false.


    if scheme = schemetype_http.

      service = ’80’.


      service = ‘443’.



  • check validity of port number (16bit Integer)

    if ( strlen( service ) gt 5 )

    or ( service cn ‘0123456789’ ).

      raise argument_not_found.




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:


Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member
      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.


      Author's profile photo Former Member
      Former Member
      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.
      Author's profile photo Thomas Jung
      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.

      Author's profile photo Thomas Jung
      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.
      Author's profile photo Michael Handschuh
      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.