2007 Dec 16 7:37 AM
Hi All,
I need some help on ALV grid display.
My requirement is :
I have got all my required data inside my final o/p internal table.
The first 2 columns of my o/p int table are MATNR (material no) and Location.
Now whenever this combination of MATNR and Location changes, I need to trigger a new page.
Also at te top of each page I will be displaying the material and location number.
I have to achieve this using ALV GRID display. I have tried this out in ALV LIST and its working but its not working incase ALV GRID is used.
I am giving an example of the scenerio for clear understanding
o/p Intarnal table (I_out)
<u>MATNR</u> <u>Location</u> <u>Details1</u> <u>Details 2</u> <u>Details3</u> ............
23 BE01 abc cde xyz
23 BE01 pqr efg rst
24 BE01 pqr efg rst
24 BE01 pqr efg rst
25 BE02 pqr efg rst
In this case, the 1st two records are for the same material and location details,
The 3rd and 4th record are for same material and Location details
and the last record is for a different combination of the material and location.
Hence the required o/p will be: (in ALV GRID display)
Material : 23
Location: BE01
<u>Detail1</u> <u>Detail2</u> <u>Detail3</u> .....................
abc cde xyz
pqr efg rst
Material : 24
Location: BE01
<u>Detail1</u> <u>Detail2</u> <u>Detail3</u> .....................
pqr efg rst
pqr efg rst
Material : 25
Location: BE02
<u>Detail1</u> <u>Detail2</u> <u>Detail3</u> .....................
pqr efg rst
This is the o/p format that i need to achieve and that too in ALV GRID display.
Please suggest suitable ways.
Hi All,
I need some help on ALV grid display.
My requirement is :
I have got all my required data inside my final o/p internal table.
The first 2 columns of my o/p int table are MATNR (material no) and Location.
Now whenever this combination of MATNR and Location changes, I need to trigger a new page.
Also at te top of each page I will be displaying the material and location number.
I have to achieve this using ALV GRID display. I have tried this out in ALV LIST and its working but its not working incase ALV GRID is used.
I am giving an example of the scenerio for clear understanding
o/p Intarnal table (I_out)
<u>MATNR</u> <u>Location</u> <u>Details1</u> <u>Details 2</u> <u>Details3</u> ............
23 BE01 abc cde xyz
23 BE01 pqr efg rst
24 BE01 pqr efg rst
24 BE01 pqr efg rst
25 BE02 pqr efg rst
In this case, the 1st two records are for the same material and location details,
The 3rd and 4th record are for same material and Location details
and the last record is for a different combination of the material and location.
Hence the required o/p will be: (in ALV GRID display)
Material : 23
Location: BE01
<u>Detail1</u> <u>Detail2</u> <u>Detail3</u> .....................
abc cde xyz
pqr efg rst
Material : 24
Location: BE01
<u>Detail1</u> <u>Detail2</u> <u>Detail3</u> .....................
pqr efg rst
pqr efg rst
Material : 25
Location: BE02
<u>Detail1</u> <u>Detail2</u> <u>Detail3</u> .....................
pqr efg rst
This is the o/p format that i need to achieve and that too in ALV GRID display.
Please suggest suitable ways.
2007 Dec 16 8:03 AM
Dear Ramesh,
If I understand you correctly, you want to display a hierarchial form of display. However this won't be possible in ALV GRID Display as the maximum number of rows that you can set would be three. There by restricting you from displaying further information.
For further information on the same please refer to the following link:
Best Regards,
Rajesh
<b>Please reward points if found helpful.</b>
2007 Dec 16 2:34 PM
Hi Ramesh,
a grid control is a GUI control to be displayed on your screen. A screen does not have pages.
You should consider a TREE control.
Regards,
Clemens
2007 Dec 17 4:05 AM
Thanks for the reply
Rajesh,
You mentioned that "this won't be possible in ALV GRID Display as the maximum number of rows that you can set would be three" Please elaborate this, I did not get this point.
Clemens:
Can you please provide me some sample code example involving Tree control so that i can test it and see if it fits my requirement.
Thanks in advance
Ramesh
2007 Dec 17 5:04 AM
Hi Ramesh
You can show the output like this only
put all of your requirement like -
Material : 23
Location: BE01
Detail1 Detail2 Detail3 .....................
abc cde xyz
pqr efg rst
in a loop. and using skip n lines you can show the 2ns output like this.
Please Reward points if it will be helpful to you.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |