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

Calling an existing ALV report in WD4A

Im going to try to call an existing ALV report using WD4A.

Was wondering if anybody has used the "SUBMIT <report> EXPORTING LIST TO MEMORY" option to get the results table, then after IMPORTING from memory, display this in ALV in Webdynpro abap?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Oct 08, 2010 at 04:02 AM

    K,

    I've done this in the past to provide a simple way to have both backend and portal based views of the same reports. (was in WDJ not WDA). In the end I decided that it wasn't a good solution.

    Now all reports I build, I build them in a MVC design - and reuse the model in my WDA (or more usually POWL) implementation of the same report.

    Chris

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 08, 2010 at 03:19 PM

    I was able to acomplish the following way...

    My WD4A component has an assistance class, has a method fetch_results, in that method, I pass my selection criteria which calls a function.

    The function does this...

      SUBMIT  REPORTXYZ
      USING SELECTION-SET lv_variant 
      AND RETURN
        WITH pnppernr IN pnppernr
        WITH pnpbegps EQ act_begda
        WITH pnpendps EQ act_endda
        WITH pnpbegda EQ act_begda
        WITH pnpendda EQ act_endda
        WITH pnptimed EQ blank
        WITH p_layout EQ '/MGR SEP'
        WITH p_portal EQ 'X'.
    

    My p_portal parameter is a flag that REPORTXYZ will use to export the it_output to memory.

    I then import that table to the function module which returns to WD4A alv.

      IMPORT zit_output TO tbl_output FROM MEMORY ID
        lv_flag.
    

    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.