Skip to Content
avatar image
Former Member

how to Display OO ALV with multiple headers

Hi Experts ,

I have a requirement to display header multiple times in an ALV. For every customer I need a header to be displayed in the ALV and the records related to the customer has to be displayed in the the below mentioned format. Similarly I need to have a header and a table to be displayed for each customer.

The output of the list should look like this.

date :

name :name1

address: city:

field 1     field 2       field 3        field 4

1            1            1               1
2            2            2               2
3            3            3               3

date :

name : name2

address:

city:

field 1  field 2  field 3   field 4

1          1          1        1

2          2          2        2
 
3          3          3        3

please advise on how this can be achieved in OO ALV.

Thank you

Samarth.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Sep 23, 2017 at 07:31 PM

    Shouldn't you just try to use the "CL_SALV_TREE" or something similar for that? See the sample-programs in your SAP-System of type "SALV_DEMO_TREE_*" or see a sample in the link ...

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 24, 2017 at 04:17 AM

    hi think ur requirement is some difficult.

    but u can reach above ur requirement in other way like below.

    Please see attached file.

    there are customer list and details view
    
    
    click perticular customer that customer details is display on details viewexcel.jpg
    Add comment
    10|10000 characters needed characters exceeded

    • I don't see how the attached file helps understanding what you propose (two-screen solution).

      I guess the following picture is more representative, i.e. select the customer on the left, and display the details on the right:

      gyo7b.png (39.7 kB)
  • Sep 23, 2017 at 06:04 AM

    Try, Blocked alv.

    Regards,

    Ramesh

    Add comment
    10|10000 characters needed characters exceeded

    • "Blocked alv" = ALV block list = maximum of 29 ALVs displayed at a time, via the old ABAP List technology.

      ALV features are very limited.

      To use it, either set the parameter IS_LAYOUT-LIST_APPEND of function module REUSE_ALV_LIST_DISPLAY,

      or use function modules REUSE_ALV_BLOCK_LIST_*.

      Demo programs:

      • BALVBT01
      • BCALV_TEST_LIST_APPEND
      • BCALV_TEST_LIST_APPEND_FORM

  • Sep 24, 2017 at 04:06 AM
    -1

    hi

    use method SET_FRONTEND_FIELDCATALOG in class

    CL_GUI_ALV_GRID

    Add comment
    10|10000 characters needed characters exceeded