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

Oops ALV.

Hi Gurus,

I need to diaply two alv grid on the ouput screen,

For that i have searched the forum and come to know thats how i can develop the same In module pool screen

But i am not able to find that how i can do the same in the a SIMPLE report. (which is not a module pool report.)

Kindly explain me the prrocess of the same.

many thanks

Anuj.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 28, 2010 at 09:41 AM

    Hi,

    1) You need to define a screen in the report program.

    2) call screen <screen no>

    3) In PBO of the screen you need to add code to call a container and display an ALV output in the container.

    4) In PAI of the screen, you can add the code to BACK./EXIT based on OK_CODE

    Note: Create a custom screen in SE51 and define a container(In your case two containers)

    Create/instantiate a container object from your report program using the below class-method

    * Declare reference variables to the ALV grid and the container
       DATA:
         go_grid             TYPE REF TO cl_gui_alv_grid,
         go_custom_container TYPE REF TO cl_gui_custom_container.
    
    * Create objects
         IF go_custom_container IS INITIAL.
           CREATE OBJECT go_custom_container
             EXPORTING container_name = 'ALV_CONTAINER'.
    
           CREATE OBJECT go_grid
             EXPORTING
               i_parent = go_custom_container.
    
    * Load data into the grid and display them
         CALL METHOD go_grid->set_table_for_first_display
           EXPORTING i_structure_name = '<Tablename>'
           CHANGING  it_outtab        = <Output internal table>.

    Hope this helps

    Regards

    Shiva

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 28, 2010 at 09:31 AM

    Look at the examples in SAP: search with ALV or GRID

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 28, 2010 at 09:32 AM

    Read the Weblog by Uwe [Against All Odds - Programming of Communicating (S)ALV Grid Controls|/people/uwe.schieferstein/blog/2010/10/12/against-all-odds--programming-of-communicating-salv-grid-controls].

    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.