Skip to Content
author's profile photo Former Member
Former Member

Display result of standard report RPTEDT00 within BSP

Dear experts,

I have to display the result of a SAP standard program (RPTEDT00) within a own developted BSP - but how?

Do somebody know, how I can include a such display functionality into my BSP?

Thank you in advance!

Regards

Heinz

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Feb 27, 2006 at 09:17 AM

    submit the report within your event handler exporting list to memeory , read the list from memory, convert to html and display it in layout.

    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.

    loop at html.

    concatenate output_str html_wa into output_str.

    endloop .

    <u>layout:</u>

    <%= output_str %>

    Regards

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Dear Raja,

      As per your post, i tried to convert ALV Report in BSP but it is not working. Please confirm what should i pass in listobject.

      data: listobject type standard table of abaplist,

      html type standard table of w3html.

      data: html_wa type w3html,

      report_html type string.

      submit zrej_stock

      using selection-set 'ZVAR'

      exporting list to memory and return.

      * submit zrej_stock and return exporting list to memory.

      call function 'LIST_FROM_MEMORY'

      tables

      listobject = listobject

      exceptions

      not_found = 1

      others = 2.

      call function 'WWW_HTML_FROM_LISTOBJECT'

      exporting

      report_name = 'ZREJ_STOCK'

      tables

      html = html

      listobject = listobject.

      clear: report_html , html_wa .

      loop at html into html_wa.

      concatenate report_html html_wa into report_html.

      clear html_wa .

      endloop.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.