Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV GRID capable to trigger multiple pages

Former Member
0 Likes
851

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.

4 REPLIES 4
Read only

Former Member
0 Likes
601

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>

Read only

Clemenss
Active Contributor
0 Likes
601

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

Read only

Former Member
0 Likes
601

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

Read only

Former Member
0 Likes
601

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.