Skip to Content

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Oct 22, 2005 at 11:53 AM

    <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

    Add a comment
    10|10000 characters needed characters exceeded

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.