ABAP Report to HTML in BSP

Hi,
I have read the very interesting posts about calling ABAP reports from BSP applications.
Nevertheless, I noticed 2 constraints in order for a Report to be called :
- the <b>sap/bc/report</b> must be active in Transaction SICF
- the report must have an <b>Authorization Group</b> defined
<b>Am i right, so far ?</b>
Besides, I tried to implement the solution given in the forum as follows :
DATA: html TYPE TABLE OF w3html. " occurs 10 with header line.
DATA: html_wa TYPE w3html.
DATA: listobject TYPE TABLE OF abaplist. " occurs 10.
DATA: report_name TYPE syrepid.
DATA: result TYPE string.
report_name = 'SHOWCOLO'.
SUBMIT (report_name) EXPORTING LIST TO MEMORY AND RETURN .
CALL FUNCTION 'LIST_FROM_MEMORY'
  TABLES
    listobject = listobject.
CALL FUNCTION 'WWW_HTML_FROM_LISTOBJECT'
  EXPORTING
    report_name = 'WEBREPORTING_REPORT'
  TABLES
    html        = html
    listobject  = listobject.
LOOP AT html INTO html_wa.
  CONCATENATE result html_wa INTO result SEPARATED BY space.
ENDLOOP.
The problem is that the 'WWW_HTML_FROM_LISTOBJECT' is fauly. There is a call to the FM 'RECORDER_PLAY_BACK' which itself calls 'ABAPLIST_VERSION %_RFC' and the code stops !
<b>Any idea why this is happening ?
Am I missing a service in SICF ?</b>
Of course, when I do the same code in a classic ABAP Program everything works fine...
Thanks in advance.
Cheers,
Guillaume
Message was edited by: Guillaume Garcia

<i> the sap/bc/report must be active in Transaction SICF
- the report must have an Authorization Group defined</i>
both the points above are correct, more than that, using sap/bc/report  you cannot pass selection screen values or variants.
regarding
'WWW_HTML_FROM_LISTOBJECT'
i have been using this and no problem at all. where is your BSP you wrote the logic using 'WWW_HTML_FROM_LISTOBJECT'.
also dose it generate a dump? if so can you give us the gist of the dump analysis.
REgards
Raja

Similar Messages

  • ABAP Report as HTML

    Hello,
    we have a couple of ABAP reports that generate a traditional list (with WRITE) and now I have to convert the output as HTML and display it (perhaps) in a new window of the browser. I´m not sure if function WWW_LIST_TO_HTML can be very helpful for that purpose.
    Has any one experience in this field that can tell me a couple of tricks on how to do it the best way ?? The reports will be called from BSP pages, of course.
    Thanks a lot

    if your report dosent have parameters or you dont need to supply any parameter simply call the following url
    http://<wasserver>.xxx.com:<port>/sabp/bc/report?report=<your report>
    else follow the following link for details
    Re: Conversion ABAP Report to BSP Application
    Regards
    Raja

  • Conversion of the ABAP Report (ALV based) into BSP Application

    Hello Friends,
    I tried to convert the abap report into a bsp application. I have followed all the steps mentoined in the previous threads regarding this topic.
    I have created a simple Z report in CRM, that displays the business partner details from the table BUT000 based on the partner entered. Partner is the input given to this report. I have defined the partner field in PARAMETERS.
    Now I have written all the code in the onInitialization of the BSP Page looking at the previous threads and also in the layout of the page.
    submit ZTEST_PARTNER
    exporting list to memory and return
    with p_part = 'HR10079430'.
    and also the rest of the code.
    It is working fine. The BSP page is displayed with all the Business Partner details.
    Now the problem is I have another Z report that displays the result in the ALV grid. The report uses the Function Module REUSE_ALV_GRID_DISPLAY to display the output.
    If I use the same method above this is giving a dump, I mean it says the page cannot be displayed.
    So, how should I use the above method to convert the ALV Grid based Z report into a BSP Application.
    Please give your suggestions.
    Thanks & Regards,
    Raju.

    you cannot .
    even if you use a normal report to
    submit the alv grid report
    exporting list to memory and return
    it will show the alv on screen and will nt just export the list to memory.

  • Convert ABAP Report to HTML & Send External Email Attachment

    Hi,
    I have a requirement described as below. A report is scheduled to run in the background creates a spool, to be converted to HTML format and send to Third Parties (External Email ID's) via Email. Please let me know whether the requirement is not clear. Can you please suggest me a suitable SAP Solution for this requirement?
    Thanks,
    Kannan.SA

    Hi,
    See below simple report to convert the internal table data to a HTML format data and stores in a internal table and then pass that internal table as an attachment to the external email using function module SO_NEW_DOCUMENT_ATT_SEND_API1.
    You need for create a spool also.
    REPORT  Z_HTML                                                      .
    include <icon>.
    types: begin of msg,
             type      like icon-id,
             text(140) type c,
           end of msg.
    constants: gc_marked type c value 'X',
               gc_ok     like icon-id  value '@5B@'.
    data:
       gt_msg         type standard table of msg,
       gs_msg         like line of  gt_msg,
       gv_msg(138)    type c,
    *-- html
       html_container type ref to cl_gui_custom_container,
       html_control   type ref to cl_gui_html_viewer,
       my_row_header like w3head   occurs 10 with header line,
       my_fields     like w3fields occurs 10 with header line,
       my_header     like w3head,
       my_html       type standard table of w3html  ,
       ok_code       like sy-ucomm.
      Start of Selection                                              *
    start-of-selection.
        clear gv_msg.
        gv_msg = 'MESSAGES for HTML'.
        do 3 times.
          perform message using  gc_ok gv_msg .
        enddo.
      End of   Selection                                              *
    end-of-selection.
        set screen 0100.
    *&      Form  message
    form message using    p_type
                          p_text.
      clear gs_msg.
      gs_msg-type  = p_type.
      gs_msg-text  = p_text.
      append gs_msg to gt_msg.
    endform.                    " MESSAGE
    *&      Module  STATUS_0100  OUTPUT
    module status_0100 output.
      perform convert_itab_html.
      set titlebar '100' .
      set pf-status 'MAIN100'.
      create object html_container
          exporting
              container_name = 'CONTAINER'.
      create object html_control
           exporting
                parent    = html_container
                saphtmlp  = gc_marked      .
      data: assigned_url type url.
      call method html_control->load_data
    EXPORTING
       URL                  = url
       TYPE                 = 'text'
       SUBTYPE              = 'html'
       SIZE                 = 0
       ENCODING             =
       CHARSET              =
        importing
          assigned_url         = assigned_url
        changing
          data_table           = my_html
    EXCEPTIONS
       DP_INVALID_PARAMETER = 1
       DP_ERROR_GENERAL     = 2
       CNTL_ERROR           = 3
       others               = 4
      if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
      call method html_control->show_url
        exporting
          url                    = assigned_url
       FRAME                  =
       IN_PLACE               = ' X'
    EXCEPTIONS
       CNTL_ERROR             = 1
       CNHT_ERROR_NOT_ALLOWED = 2
       CNHT_ERROR_PARAMETER   = 3
       DP_ERROR_GENERAL       = 4
       others                 = 5
      if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endmodule.                 " STATUS_0100  OUTPUT
    *&      Module  exit  INPUT
    module exit input.
      leave program.
    endmodule.                 " exit  INPUT
    *&      Module  user_command_0100  INPUT
          text
    module user_command_0100 input.
      case ok_code.
        when 'EXIT' or 'BACK'.
          leave program.
        when others.
          call method cl_gui_cfw=>dispatch.
      endcase.
    endmodule.                 " user_command_0100  INPUT
    *&      Form  convert_itab_html
    form convert_itab_html.
      data: lv_tabix like sy-tabix.
    *-- table header
      call function 'WWW_ITAB_TO_HTML_HEADERS'
        exporting
          field_nr = 1
          text     = 'Type'
          fgcolor  = 'navy'
          bgcolor  = 'red'
          font     = 'Arial'
        tables
          header   = my_row_header.
      call function 'WWW_ITAB_TO_HTML_HEADERS'
        exporting
          field_nr = 2
          text     = 'Message'
          fgcolor  = 'navy'
          bgcolor  = 'red'
          font     = 'Arial'
        tables
          header   = my_row_header.
    *-- table rows
      clear lv_tabix.
      loop at gt_msg into gs_msg.
        lv_tabix = sy-tabix.
            call function 'WWW_ITAB_TO_HTML_LAYOUT'
              exporting
                field_nr = 1
                line_nr  = lv_tabix
                icon     = gc_marked
              tables
                fields   = my_fields.
            call function 'WWW_ITAB_TO_HTML_LAYOUT'
              exporting
                field_nr = 2
                line_nr  = lv_tabix
                fgcolor  = 'red'
                bgcolor  = 'black'
                font     = 'Arial'
                size     = '2'
              tables
                fields   = my_fields.
      endloop.
    *-- header
      move 'Messages during program run' to my_header-text.
      move 'Arial'                       to my_header-font.
      move '2'                           to my_header-size.
      move 'Centered'                    to my_header-just.
      move 'red'                         to my_header-bg_color.
      move 'blue'                        to my_header-fg_color.
      refresh my_html.
      call function 'WWW_ITAB_TO_HTML'
       exporting
         table_header = my_header
       all_fields   = ' '
        tables
          html         = my_html
          fields       = my_fields
          row_header   = my_row_header
          itable       = gt_msg.
    endform.                    "convert_itab_html

  • ABAP reports or BSPs for publishing R/3 data to Enterprise Portal

    Dear Friends,
      We have got scenario where we need develop a product.As part of that we have got some data in SAP R/3 that need to be published through Enterprise Portal.
    Before me there are the below options.
    1.To write ABAP reports and publish with the help of ITS.
    2.To go for BSPs.(understood WAS should be > 6.10 )
    3.To write some BAPIs and build the interface using portal as middleware.
    Pl. suggest me which one would be best option considering If the reports contain some graphs also.
    Your suggestions are greatly appreciated.
    Thanks in advance
    Mrutyunjay

    Thanks Gopi for your inputs,
    But I heard graphs in ABAP are very resource intensive.
    I would request to through some light on presenting the data graphically through EP if the data is collected through BAPIs from SAP R/3.
    Thanks in advance.
    regards
    Mrutyunjay

  • How to call  an abap report in BSP..

    hi all,
    Please can anybody tell me how to call an abap report in BSP application.....since I am new to BSP....
    with regards,
    Santosh

    check this thread
    Urgent!!  How to call a custom transaction or an ABAP program in BSP?

  • How to call a abap report in BSP

    hi all,
    Please can anybody tell me how to call abap report in BSP..
    with regards,
    Santosh.

    Also see below BSP tutorial
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/101c3a1cf1c54be10000000a114084/content.htm
    Regards.

  • CALL BSP from ABAP report

    I want to execute a BSP from ABAP report. The BSP is the standar CRM CASE MANAGEMENT BSP.
    I have a CRM CASE list in ABAP report and when I make double-click on one case i want to call BSP to show this case. I don't want to execute the GUI transaction CRMD_CASE. I need to execute the BSP.

    Hello Ivan,
    To call the BSP from the ABAP report following thread will be helpful for you.
    Call BSP from SE38 Program ?
    Regards
    Aashish Garg
    Message was edited by:
            aashish garg

  • BSP App call from ABAP report.

    Hello,
    I need to call /IRM/GCRM_WS BSP application through ABAP Report. Call trnasaction '/IRM/GCRM_WS' does work fine.
    How can i call it for a particular document as we do it with set parameter before call transaction?
    pls provide ideas.
    Rgds.

    Hi,
    that depends on what you did with that transaction and how you call it. You don´t provide much information.
    Perhaps you have to add parameters to the URL: your_url?param1=value1&param2=value2
    Check first how that BSP is structured and what it expects as parameters.

  • Trash in BSP-Pages for ABAP-reports

    Hi,
    it´s strange that I´m getting trash in the BSP-Pages that represent an ABAP report. I just can´t identify how it is produced and shows up between Titel and real list. I use
              SUBMIT (progr_name)
                 WITH SELECTION-TABLE sel_table
                 EXPORTING LIST TO MEMORY AND RETURN.
    and then CALL FUNCTION 'LIST_FROM_MEMORY'
    later    CALL FUNCTION 'WWW_HTML_FROM_LISTOBJECT'
    I make a loop with the output and save all in a variable of type string, which is later used in the layout page.
    After execution, I get something like:
         Title       page Nr.      User name
         trash
         more trash
         even more trash
         list
    the data that I describe as trash is information from the list, but it also appears where it must.
    Has anyone experience with it ?? Thanks

    I am also getting some "trash" at the beginning of my report in some cases. The report list I am sending the FM contains Material Descriptions and our descriptions (can) contain a combination of slashes (/), colons ( and commas (,) (eg. SPARES:DISPLAY/GASKET,MONO,GEMINI) - I find that if I remove the commas from the descriptions during the reporting, that I do not have this problem. However this is not a viable solution. Any ideas would be very helpful.

  • How to send an abap report to an HTML file?

    hello this a two part question and This is the first question and I will post the next question after I am done with this.
    So here goes.
    My question is how do I send/download an abap report and convert it to an HTML file?
    Thanks guys take care!

    Hi Chand,
    This code will help.
    Generate an HTML file from a Report in ABAP  
    data: begin of itab occurs 0,
          matnr type mara-matnr,
          mtart type mara-mtart,
          matkl type mara-matkl,
          groes type mara-groes,
          end of itab.
    data: ifields type table of w3fields with header line.
    data: ihtml   type table of w3html   with header line.
    select * into corresponding fields of table itab
              from mara up to 100 rows.
    call function 'WWW_ITAB_TO_HTML'
    EXPORTING
    *   TABLE_ATTRIBUTES       = 'BORDER=1'
    *   TABLE_HEADER           =
        ALL_FIELDS             = 'X'
      tables
        html                   = ihtml
        fields                 = ifields
    *   ROW_HEADER             =
        itable                 = itab
    check sy-subrc = 0.
    call function 'GUI_DOWNLOAD'
         exporting          filename = 'c:test.html'
         tables          data_tab = ihtml

  • Mail a HTML atachment from ABAP report

    Hi Experts,
    I want to e-mail an HTML file( containing icons and gif images) as an attachment from an ABAP report. Could u provide assisteence on how this is to be done?
    Kindy help..
    Regards.

    Check the below links. I think, it may be useful.
    http://help.sap.com/saphelp_nw04/helpdata/en/04/9d5a23c19f49f1a40761e603286602/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/04/9d5a23c19f49f1a40761e603286602/frameset.htm
    http://www.geocities.com/rmtiwari/
    Regards,
    Maha

  • ABAP report in Webdynpro iview

    Hi All
    I have to show output of an ABAP report in a webdynpro iview. The original report output is in list format. How to show this report output in webdynpro iview?
    Please help.
    Thanks
    Raktim

    alternatively you could do something like below (this is what we do if we need to output in bsp pages)
    submit (report_name) and return exporting list to memory.
      call function 'LIST_FROM_MEMORY'
           tables
                listobject = listobject.
      call function 'WWW_HTML_FROM_LISTOBJECT'
           exporting
                report_name = report_name
           tables
                html        = html
                listobject  = listobject.
    html would hold the html version of the list which you can use it.
    Regards
    Raja

  • Calling an ABAP Report from the Web

    Hello all,
    Is there a way in WAD to have a web link call an ABAP report?  I am trying to provide a link in my web template to allow users to launch the BEx Analyzer.  When I look at transaction RRMX in the GUI, it appears to be calling the ABAP report RRMX_START_EXCEL.  Can I use BSP to accomplish this?
    Thanks in advance for any help you can provide,
    Chris

    OK, here is the code for my BSP page:
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <html>
    <% submit RRMX_START_EXCEL and return. %>
    </html>
    When I attempt to test it, however, I am receiving the following error:
    The following error text was processed in the system BWS : Screen output without connection to user.
    The error occurred on the application server sapbwsci_BWS_35 and in the work process 5 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Module: SEND_TAB of program SAPLGRAP
    Function: GRAPH_RECEIVE of program SAPLGRAP
    Function: REGISTRY_GET of program SAPLGRAP
    Form: PREPARE_LAUNCHER of program SAPLRSAH
    Function: RSAH_LAUNCH_EXCEL of program SAPLRSAH
    Form: START_EXCEL of program RRMX_START_EXCEL
    START-OF-SELECTION of program RRMX_START_EXCEL
    Any ideas??
    Thanks again!!

  • Web enabling of ABAP report

    Hello All,
    I am having a ABAP Report and willing to web enable the same. I know that ITS can be the option but since we r planning to go for WAS 6.4 I was looking whether it can be done through BSP. I created a HTML Template of my application and was wondering whether it can be used in Pages with Flow logic. With this I suppose it will use the template to generate HTML screen output with all the ABAP processing logic.
    Thanks in advance.
    regards
    Deepak

    Hi Deepak,
    Please search the fourm before posting a question. The answer for you question is there in the following threads
    Re: Conversion ABAP Report to BSP Application
    Re: REPORT RESULT  IN BSP APPLICATION
    Regards
    Raja

Maybe you are looking for

  • Fusion drive DIY not using SSD

    Hello community, Recently I have bought a SSD drive for my Mac Mini 2012, in order to make a dual hard drive installation ready to build a DIY Fusion Drive with Disk Utility. Apparently it works well, I have installed Yosemite without any problems an

  • Query - is this possible

    I am trying to create a query with the following columns and rows - simplified version Office     Mat group    sales total   sales totalcompany 01         aaa               100              1100 01         bbb                50              1250 02  

  • Notification to defined users for Material master specific field changes

    Dear All, I would like to check the feasibility and way to fulfil the below requirement. We would like to send notification per mail or Pop UP to the defined users whenever there is a change in particular filed in Material Master (Like MVKE-VMSTA) us

  • N97 mini software issues

    It has been a week since I purchased a new N97 mini and I had to restart it almost 20 times since then. Here are the issues I see with this phone, Iam not sure if it is software/hardware/memory issue: 1. After downloading music from nokia music store

  • CS3 Education Version on Mac_Timeline Issue

    Premiere works fine most of the time, but occassionally I will have issues within the timeline. What happens is I will be zoomed in on some portion of the timeline, and I will grab a clip with the selection tool and simply try to drag it over to wher