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: 

Hi I am facing a Problem in Blocked Alv

Former Member
0 Kudos
102

Hi Gurus,

I am having a strange requirement from the client side. I am using a Blocked alv to Display the report in which the Block1 , Block2 , Block3 is there

Block1

Block 2

Block3

in this way the blocks are displayed in the program.

I want to set the position of the Block2 next to Block 1 which is

Block 1 Block2

Block3

Can this be done ...

Thanks in advance

Regards

Shankar

1 ACCEPTED SOLUTION

Former Member
0 Kudos
70

Hi,

I think you can display in object alv by designing the containers in desired way like as below

container1 container2

container3

But I am not sure .try this

Thanks,

suma.

5 REPLIES 5

former_member188685
Active Contributor
0 Kudos
70

No it is not possible

you have to go for Object orieneted ALV

0 Kudos
70

How can we do it through object alv ... Can you send me the Sample code for the same .

Regards

Shankar

Former Member
0 Kudos
71

Hi,

I think you can display in object alv by designing the containers in desired way like as below

container1 container2

container3

But I am not sure .try this

Thanks,

suma.

MarcinPciak
Active Contributor
0 Kudos
70

Hi,

You can use splitter container (cl_gui_splitter_container class) as well. You then split one custom container into 4 pieces like this:

container_part1 container_part2

container_part3 container_part4

Now you place your blocks in corresponding container part. What kind of block do you excatly need?

This solution will be useful for all SAP controls like. ALVs, trees, dynamic documents etc, thus you can place how many blocks (controls) you want.

Regards

Marcin

Former Member
0 Kudos
70

you can append blocks using this function module but input needs to be provided.if you need more i will give you my program

CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'

EXPORTING

it_fieldcat = fieldtab1

is_layout = layout

i_tabname = 'REPORT1'

it_events = events

i_text = text-0b3

TABLES

t_outtab = report1.

gt_print-reserve_lines = 2.

CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'

EXPORTING

it_fieldcat = fieldtab2

is_layout = layout

i_tabname = 'REPORT2'

it_events = events

i_text = text-0b3

TABLES

t_outtab = report2.

gt_print-reserve_lines = 2.

CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'

EXPORTING

it_fieldcat = fieldtab3

is_layout = layout

i_tabname = 'REPORT3'

it_events = events

i_text = text-0b3

TABLES

t_outtab = report3.

gt_print-reserve_lines = 2.