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

Call a BSP page and save the output

I have a BSP page, and an other one that acts as a report. From the first one I would like to call the second one to save its output as binary data. Can anyone help? Thaks in advance.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2004 at 02:50 PM

    Check out these weblogs:

    /people/sap.user72/blog/2004/11/10/bsphowto-generate-pdf-output-from-a-bsp

    The beginning of this weblog also has links to two other items of very important reading for this topic.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 01, 2004 at 03:20 PM

    This code may help you.

    report = 'ZREPORT'.

    submit (report) LINE-SIZE 360

    with

    s_bukrs = '0030' sign 'I'

    with s_bldat between FROM_DATE and to_date sign 'I'

    EXPORTING LIST TO MEMORY and return.

    call function 'LIST_FROM_MEMORY'

    tables

    listobject = LISTOBJECT

    • EXCEPTIONS

    • NOT_FOUND = 1

    • OTHERS = 2

    .

    store listobject in data base or export to memory.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 03, 2004 at 11:24 AM

    An alternative would be that you call the BSP via it's URL, using the mothods of the cl_http_client class.

    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.