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

Get ALV_OUTPUT table from Custom program

I have a sap program that display the table in ALV_OUTPUT. I want to create custom program to call the sap program and get the resulting ALV_OUTPUT table back into my custom program without modifying the sap program. Any help will be greatly appreciated.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Oct 11, 2005 at 05:17 PM

    Does it present to the user as a ALV Grid or a classical ALV list. If a list, then you might be able to SUBMIT the report and EXPORT LIST TO MEMEORY. Then retrieve the LIST_FROM_MEMORY.

    If it is a ALV grid, then I'm afraid you are out of luck.

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

    • The only other thing would be to copy the program into a "Z" program, then comment out the call to the ALV and just pass the ALV_OUTPUT to a memory id. The import it in your other program. Or you could comment out the call to ALV and just write it out with basic WRITE statements, then you would be able to use the EXPORT LIST TO MEMORY code.

      Regards,

      Rich Heilman

  • author's profile photo Former Member
    Former Member
    Posted on Oct 11, 2005 at 05:23 PM

    here is the code to call the sap program

    SUBMIT rhpe_expired_quali

    WITH pchplvar = pchplvar

    WITH pchotype = pchotype

    WITH pchobjid IN pchobjid

    WITH pchbegda = se_begd

    WITH pchendda = se_endd

    WITH h_qual = h_qual

    WITH h_events = h_events

    AND RETURN.

    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.