Http data from report

I would like to create a very simple report that
1) takes as input the url of a web site
2) open an http connection to the site taking its html
3) print the html as proof of hit
I want to do it the SAP server and not the GUI with fm like call_browser. What I have to do exactly if I want my sap server open an http connection to an external url.
Thanks in advance
Gabriele

solved:
wf_string = 'http://www.google.com'.
  CALL METHOD cl_http_client=>create_by_url
    EXPORTING
      url                = wf_string
    IMPORTING
      client             = http_client
    EXCEPTIONS
      argument_not_found = 1
      plugin_not_active  = 2
      internal_error     = 3
      OTHERS             = 4.
  CALL METHOD http_client->send
    EXCEPTIONS
      http_communication_failure = 1
      http_invalid_state         = 2.
  CALL METHOD http_client->receive
    EXCEPTIONS
      http_communication_failure = 1
      http_invalid_state         = 2
      http_processing_failed     = 3.
  CLEAR result .
  result = http_client->response->get_cdata( ).

Similar Messages

  • How to make smartform get data from report painter???

    hi all!
    please tell me how to get data from report painter?
    i has a report painter zabc ( create through t-code ke31).
    I want  get data from Zabc after run and show data by smartform.
    plz help me!
    thanks

    Hi ,
    Please check this link [SMARTFORM|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf]
    Regards,
    Smart

  • Failed to read data from report file Reason: The table could not be found.

    BO Enterprise XI R2, cannot publish crystal reports using the publishing wizard.
    Failed to read data from report file Reason: The table could not be found.
    Any ideas to get around this would really help out.
    Regards

    Connection used Views, ODBC System DSN is setup properly.
    Approach for import from business view manager and import wizard.  both methods failed to import the Business View and underlying reports.
    I figure I may have imported the Business View wrong? From Business View Manager I exported from my dev server then imported to prod server.
    Apparently I learned exporting my business view also includes the Data Connections that the Business Views are dependent upon.
    So which ever folder you specify it copies it there. Originally the all Data Connections Resides on the root folder. To return it to the original location. I deleted what I had exported. Exported this time to the root folder, then only deleted the business views, foundation, elements. Then exported again to the folder where I intended then only deleted the Data Connection.
    Makes any sense? So I then had to re point the business views and all the dependent objects to the data connection that resides in the root folder.
    I tested the connection, it works fine. I properly updated my crystal reports to the business view in production. Did a sample extract it works as expected.
    However when i try to publish, either from Crystal or Publish wizard i get the same error?
    As a work around i am thinking, after updating the business view in the crystal reports, shall i re map the fields?? or reexport the business views again?
    Any help will be surely appreciated.

  • Failed to read data from report file, failed to read parameter object

    Error message when doing a u201CSchedule List of Valuesu201D
    failed to read data from report file,
    c:\docume~1\user........
    failed to read parameter object
    Earlier in the day it worked just fine nothing had been changed.
    I have admin right on the windows server and in central management console
    Can someone please help with this issue.

    Hi Glenn
    Please let us know the following:
    1.What is the exact version of Crystal Reports Designer?
    2.What is the version of Business objects Enterprise installed on the machine?
    3.Are reports based on Business views,Deski,Webi?
    4.Are the reports migrated from older version of Crystal Reports to new Version?
    Thanks
    Shraddha

  • Failed to read data from report file : Reason: Crystal Reports: Print Engin

    Hi,
    When we try to migrate the crystal reports from BO R2 to BO R3, some of the reports are faling with the error:
    Failed to create a new Report.Reason: Failed to read data from report file C:\DOCUME~1\xxxxx.rpt. Reason: Crystal Reports: Print Engine Error
    Would please someone help me in fixing the issue.
    Thanks and Regards,

    Few quick checks to identify the cause -
    1. Are you able to run report in your R2 system?
    2. In XI3.1, check SIA running on which account.
    3. Check the acount have sufficient rights on file system and registry.
    4. What's your web server?
    Give proper rights and import again. Hopefully it will resolve.
    Edited by: Das on Dec 6, 2010 9:47 PM

  • Failed to read data from report file

    Hello ,
    When iam trying to publish crystal report to Bo enterprise using Publish wizard, i get below error
    *"Failed to read data from report file C:\Users\prakash\Desktop\new_obj.rpt. Reason: File I/O error. File ~cidbc64f360135e0.rpt."*
    can you please help me in resolving it
    Regards,
    KumarTP

    Please post this to the [Business Objects Enterprise Administration|BI Platform; forum.
    - Ludek

  • How to export data from report to excel using report 10g

    Hi,
    usnig report 10g, can we export the data from report to excel.
    Regards
    Randhir

    Hi,
    have a look at metalink note 209770.1: Getting Reports Ouput to MS Excel - Techniques and References
    Regards
    Rainer

  • Final data from report painter

    hi experts,
    i dont hv knowledge on report painter but i need to grab the data from it urgently.
    how do i know what is the internal table that stores the final data result...
    pls advise..
    thanks

    Hi,
    We don't use the Internal table in Report painter/writer.
    We use the tables like CCSS and COFIT  for FI/CO data reporting.
    It have Rows and Columns  that are to be designed using Characteristics and key Figures.
    So it is completely different from general reporting.
    Go through the sap Doc or the link below for further details.
    For Report Painter
    http://help.sap.com/saphelp_47x200/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/content.htm
    For Report Writer
    http://help.sap.com/saphelp_47x200/helpdata/en/66/bc7dc143c211d182b30000e829fbfe/content.htm
    Regards,
    Anji
    Message was edited by:
            Anji Reddy Vangala

  • Need to export data from reporting server to SharePoint List

    I have built a rudimentary dashboard using Excel and PowerPivot Gallery on SharePoint 2010.  I successfully exported the first dataset to a SharePoint List that I can access from my dashhboard, making it fairly portable. (Whoop!)  I've also found
    that I can create a bunch of new lists.  But I have not figured out how to update these lists daily.
    The most critical is an existing Odata connection:
    DataFeed_2_teams-company-com IMData.  I am trying to update that list from the new report (.xls format).  After saving it as .xlsx then closing and reopening, Odata and the existing connection are now enabled.  But when I try to connect,
    Excel tells me, "We can't use the data from this feed.  Make sure the external data feed server is available and that your connection information is correct."  The connection is available and I'm using the "authenticated user's account".
    I really don't mind if the data is deleted every day.
    Any ideas?
    -=-=-=-=-=-=-=-=-
    Another thing I've tried is exporting the data through the Table menu.  But since the list already exists, I can't do anything with it.
    Adios, Clay Harryman

    Hi,
    Do you have your Odata connection stored in a sharepoint list zo you can reference to that point?
    Maurice
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer. Thank You

  • Downloading data from report painter report in background

    Hi Guy,
    I have a requirement where in have to schedule the job and download the data on application server from report which is been written report writter. there is an option to save the export paramater but i can download it only in forground.
    Any one have any idea on this...or the other idea is to run the function and get the values from report written in report writer ...so i can use it in my program and  download.
    Atul

    Hi,
    If you run program in Background job sheduled then goto Spool - > there you can file your report - You can download that report.
    Regards
    Md.MahaboobKhan

  • Passing data from report to abap webdynpro

    Hello,
    I'm calling an abap webdynpro from an abap report through CALL_BROWSER MF.
    I need to pass data from a report to a webdynpro. It is a table that I want to pass. I've tried to user memory ids, but as I was suspecting, it doesn't work.
    Is there a way of doing it?
    Thanks and best regards,
    Vasco Brandã

    Hi,
    Please read this thread : Is it possible to pass a table as input parameter to a web dynpro app?
    Regards,
    Pierre

  • Cross Tab Report not matching Data from report

    I created a report showing the number of orders created by each department per year for the last 5 years.  I double checked the data, and 2005, 2006, 2007, 2008, and 2009 all are correct. 
    I then created a cross-tab for quick reference for my department head.  2005, 2006, 2007, and 2009 are all correct.  2008 is not. It shows 500 more orders than the data in the report for that year.
    I double checked my  "Group options" to make sure that they were the same in both the data and in the crosstabs.  Any idea what I could be missing?
    Thank you.

    Try this, limit the report to only 2008, show details, add date to detail section, and add the record number (From special fields)
    see if this count matches what you think it should be, or is 500 over like the crosstab indicates.  You could group by date, by month, add a summary (Count) by date, and see what that comes up to.  If your extra records fall in a certain date range, double check the database to make sure there are not duplicate records.

  • Data from report modified in Crystal not pulling in software

    Hi - I use an Industry specific software called Buy Back Pro and I have created a custom report by simply modifying an existing report in buy back pro through crystal reports. 
    I did not change any of the fields just added a header and footer, and added a new column to the reports.  When i run the report in Buy back none of the data is pulling from buy back pro.  Is there something I need to do differently?

    Hello,
    Never heard of that program. If it works in CR Designer your only option is to wait for someone else who may use their software also or post you question to them for help.
    Thank you
    Don

  • Error while drilling down the data from reports

    Hi friends,
    I have created dimension hierarchies in rpd for drilling down the data.. While i drill down its showing no results at some level when i am clicking on the data.. but when i am clicking on the same levels column header its drilling down properly and i can view the next level for the data item which has shown no results while clicked on it.. Please help me and helps will be appreciated..

    Hi,
    >when i click on 2000 results displaying is no results
    but when i click on the header year its showing the results with 3 for 2000.
    So you are able to drill when you click on header..Go to column properties and make heading interaction to no interaction under column format,put value interaction to default and try to drill clicking on value.
    in RPD i have some derived columns like month .I created month as derived column from date using logical formula and i used this derived columns as the key.. Is it a problem?No I dont think its a problem
    Regards,
    Srikanth

  • Data from Report 2.5 to Excel.

    Hi all,
    I want to perform a report in Reportwriter (2.5) an have the results in a Excel sheet.
    Can send it to file and separately start Excel and read the produced file, no prob.
    Is there any way that it starts automatically Excel at the end of the report and puts the data already in it?
    Best regards,
    Ronald.

    You could probably use the built-in DDE or OLE2 packages to do this (although you may run into problems having reports close after invoking excel).
    I don't have any sample code for this though, so you'd need to review the DDE and OLE APIs that Excel provides to see if it's applicable.
    Incidentally, in 6i it's possible to run a report on the web, return a csv file and have Excel automatically open (assuming the mimetype is set correctly). You may want to look closer at this solution (which would require an upgrade).
    Hope this helps,
    Danny

Maybe you are looking for

  • How to link a radio button selection to a submit destination ?

    Hi, I am working on a JSP page. Depending on the check from a radio button on a form, the form will be submitted to a different destination. Does anyone know how to do that? Any code samples? Thanks! wyp

  • How to handle expired sessions in portals

    Hai all,   we have implemented a logic which is given in the following blog (to handle expired sessions). (Blog from--Thomas Jung) /people/thomas.jung3/blog/2004/12/06/bsp-developers-journal-part-xv--stateful-bsp-and-timeouts this is working fine whe

  • Exporting "CSS and images (.htm.)" from Fireworks CS4?

    Is this an effective process for developing CSS based layouts? Are there any proven tricks to improve the quality of the resulting structure?

  • Restore FF 15 to original settings without reinstalling.

    How to restore firefox 15.0.1 to original settings without having to reinstall. It seems as if FF has been infected with something. Cannot use Google search, click on any links on the results page it always takes me to an ad for revlon make-up.

  • Exclamation point and short message transfer rejected

    I recieved a short message with an exclamation point, which I googled to be "urgent message", when I tried to reply I got "short message transfer rejected". I know that the person messaging me is trying to keep his number secret, which is why I was s