Skip to Content
0

how to Display OO ALV with multiple headers

Sep 22, 2017 at 11:10 AM

108

avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded

Please format your text with the "code" button, because each field appears on a different line.

0
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Nic Teunckens Sep 23, 2017 at 07:31 PM
1

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 ...

Share
10 |10000 characters needed characters left characters exceeded
Krishna Murthy Sep 24, 2017 at 04:17 AM
1

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

excel.jpg (36.1 kB)
Show 1 Share
10 |10000 characters needed characters left 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)
0
Venkatramesh V Sep 23, 2017 at 06:04 AM
1

Try, Blocked alv.

Regards,

Ramesh

Show 1 Share
10 |10000 characters needed characters left 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

1
Krishna Murthy Sep 24, 2017 at 04:06 AM
-1

hi

use method SET_FRONTEND_FIELDCATALOG in class

CL_GUI_ALV_GRID

Share
10 |10000 characters needed characters left characters exceeded