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

Two ALV in output using Object Oriented Model

Former Member
0 Likes
1,052

Hi,

<b>My requirement is:</b> I want to display two ALV in my report output.

I have two internal table. I want one ALV for each internal table.

It is almost same as that of Block list(can display multiple blocks in report output). But block list uses Function modules. I want same functionality but using Object oriented model.

Can any one help me please.

It will be great if you can give me ALV output in grid format

Warm Regards,

Izhar A Khan

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
978

No need for two threads for the same question.

Anyway, if you truly want two ALVs in one list like the block list, you must use the function module, this functionality does not exist using OO concepts.

Regards,

Rich Heilman

9 REPLIES 9
Read only

Former Member
0 Likes
978

Hi Izhar,

Create a dialog screen .

Put 2 subscreen on this screen.

In each of the subscreen PBO ,call ALV grid using OOP concept.

Hope that helps.

Regards

Mr Kapadia

Assigning points is the way to say thanks in SDN.

Read only

0 Likes
978

Thanx,

But friend my lead don't want to go for screen creation for this program. I had created my program the way only you suggested previously. But he want it to be normal report with Block list like functionality but not using normal FM but using object oriented classes.

Read only

0 Likes
978

hi

use

call screen 100. in the start-of-selection.

then in this screen use two custom control in the layout.

In PBO of this screen ,

create object of type CL_GUI_ALV_GRID and CL_GUI_CUSTOM_CONTAINER

and pass the internal table in the SET_TABLE_FOR_FIRST_DISPLAY method of the class CL_GUI_ALV_GRID.

this process has to be done for both the alv list output.

for reference see the Standard program: BCALV_GRID_01 OR BCALV_GRID_DEMO.

regards

Kothai

Read only

0 Likes
978

Thnx for the answer but I don't want to go for Screen creation as mention in my previous message.

Please refer to this link.

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/abap%2b-%2bprogram%2bfor%2balv%2bblock%2...

I want same functionality but using Object class rather then going for normal Function modules

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
979

No need for two threads for the same question.

Anyway, if you truly want two ALVs in one list like the block list, you must use the function module, this functionality does not exist using OO concepts.

Regards,

Rich Heilman

Read only

0 Likes
978

ooh ok !!

Thanx Rich.

Read only

0 Likes
978

Hi Rich!!

need one more help from u. In Block List we see the output in list formate. Is it possible to get the output in grid format ? (something like block grid ?)

Read only

0 Likes
978

It is not possible, you get the LIST format only.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
978

Thnx Guyz