Application Development 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: 

ALV Display

Former Member
0 Kudos

Hi,

I need to display the GL number and and corresponding entries like

151233 XXXXXXXX 121 122

XXXXXXXX 222 222

xxxxxxxx 252 252

IN the above 151233 G/L should be merged for all the rows for their corresponding entries.

For this which alv FM is to used.

Please provide me the code. How to download to excel?

Please let me know.

Thanks,

Pavan.

Message was edited by: Pavan Panduru

Message was edited by: Pavan Panduru

Message was edited by: Pavan Panduru

5 REPLIES 5

Manohar2u
Active Contributor
0 Kudos

You can use REUSE_ALV_GRID_DISPLAY and with sort on GL Account number.

http://www.sap-img.com/abap/alv-grid.htm

Regds

Manohar

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

All you need to do is sort by the GL number, then the column will merge like GL accounts.

Regards,

Rich Heilman

0 Kudos

Hi,

When I sort by gl account the alv display screen is going down.

Please let me know what is the reason?

Thanks,

Pavan.

Message was edited by: Pavan Panduru

0 Kudos

Going down? It might be due the entire list has one GL account. Or one GL has 100+ items?

Regds

Manohar