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

Output Layout through ALV

Former Member
0 Likes
929

Hi all,

I am unaware of OO ALV. I went thru many post in sdn got a brief idea. I have a requirement to display a table in an ALV format. The ALV format is bit different. It has 1 column and 2 rows next to it...

and the column has header data of contract, company code and 1st row contains billing data (Line tiems) and 2nd row contains revenue item data.. Please let me know how should i go...

I went thru the docking container.. not sure how ll this work out...

regards,

Poonam

Edited by: Poonam Naik on May 5, 2010 7:05 AM

Hi all,

I am unaware of OO ALV. I went thru many post in sdn got a brief idea. I have a requirement to display a table in an ALV format. The ALV format is bit different. It has 1 column and 2 rows next to it...

and the column has header data of contract, company code and 1st row contains billing data (Line tiems) and 2nd row contains revenue item data.. Please let me know how should i go...

I went thru the docking container.. not sure how ll this work out...

regards,

Poonam

Edited by: Poonam Naik on May 5, 2010 7:05 AM

6 REPLIES 6
Read only

Former Member
0 Likes
890

Hi Poonam,

I think you have to use Hierarchical Display.

if so Please refer these programs,

BCALV_TEST_HIERSEQ_LIST,

BCALV_TEST_HIERSEQ_LIST_EVENTS.

Regards,

Raghava Channooru

Read only

0 Likes
890

Hi i want somethig like this.... the second column has 2 different values one is billing and second is revenue...

can it be done like this? this is the second approach... the reqt was something different before..

Contract Billing/revenue

A B C AA

Bb

Cc

Aa

Cd

Dd

recommended was:

Contract Billing

A B C AA

Bb

Cc

revenue

Aa

Cd

Dd

let me know how to go

Read only

0 Likes
890

Hello!

I could add some more approaches to solve your task.

1. You can use trees represented by class CL_GUI_ALV_TREE, for example.

2. You can use two ALV Grids. One of them shows header data while another shows item data. Both grids you should place in docking container. Futhermore, you should handle a hotspot or double click event in the ALV Grid with header data.

Best regards, Eugene.

Read only

0 Likes
890

can you add some more points to docking container.. will this be applicable to my second approach or recommended one?

just to add. I have just one internal table which is having both header n line items...

Read only

0 Likes
890

If you have one internal table and can't split it in two, you can choose between FM REUSE_ALV_HIERSEQ_LIST_DISPLAY and class CL_GUI_ALV_TREE. So in case of this choice you don't need to use a docking container, just an ordinary CL_GUI_CUSTOM_CONTAINER instead. If you'd prefer to use two ALV Grids, you'd better use class CL_GUI_EASY_SPLITTER_CONTAINER as a container.

Best regards, Eugene.

Read only

Former Member
0 Likes
890

not answered