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

how to 'split screen' for alv

Former Member
0 Likes
2,969

hi,

i have a very 'special' question:

i am using REUSE_ALV_GRID_DISPLAY for displaying an alv-table.

before that i have a selection screen to select data.

now i want to have this selection screen and the ALV-table on ONE screen ! so the user can select in the above 'half' and gets the alv-result in the beyond 'half'.

is this possible ?

reg, Martin

hi,

i have a very 'special' question:

i am using REUSE_ALV_GRID_DISPLAY for displaying an alv-table.

before that i have a selection screen to select data.

now i want to have this selection screen and the ALV-table on ONE screen ! so the user can select in the above 'half' and gets the alv-result in the beyond 'half'.

is this possible ?

reg, Martin

9 REPLIES 9
Read only

Former Member
0 Likes
1,678

Hi,

Below logic will help you.

*Creating the container

CREATE OBJECT w_container1

EXPORTING

container_name = c_container

EXCEPTIONS

cntl_error = 1

cntl_system_error = 2

create_error = 3

lifetime_error = 4

lifetime_dynpro_dynpro_link = 5

others = 6.

IF sy-subrc <> 0.

  • MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

  • WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

  • CREATE THE SPLITTER CONTROL

CREATE OBJECT w_split

EXPORTING

parent = w_container1

orientation = 0

sash_position = 0

with_border = 0

EXCEPTIONS

cntl_error = 1

cntl_system_error = 2

others = 3.

IF sy-subrc NE 0.

ENDIF.

  • GET THE CONTAINERS OF THE SPLITTER CONTROL

w_contnr1_top = w_split->top_left_container.

w_contnr1_bot = w_split->bottom_right_container.

ENDIF.

*Creating the ALV GRID

CREATE OBJECT w_grid

EXPORTING

i_parent = w_contnr1_bot

i_appl_events = c_check

EXCEPTIONS

error_cntl_create = 1

error_cntl_init = 2

error_cntl_link = 3

error_dp_create = 4

others = 5.

IF sy-subrc <> 0.

  • MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

  • WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

Thanks,

Sree

Read only

Former Member
0 Likes
1,678

Yes it is.

But you will need to define your own selection screen as a subscreen.

Then create a normal screen to call the subscreen and also create a grid container in that screen.

Read only

0 Likes
1,678

i can't use OO !!! i have to use the 'old style' FM'S

is this also possible ?

reg, martin

Read only

0 Likes
1,678

using the FM's it is not possible. using the OO ALV and container approach it is possible.

Read only

0 Likes
1,678

well, i am not experienced with the OO modules for ALV. and used to the 'old' FM'S.

is it hard to rewrite an abap from fm's to OO concerning ALV ??? is there really no possibility to do it 'old style' ?

reg, martin

Read only

0 Likes
1,678

> is there really no possibility to do it 'old style' ?

it is not possible.

you have to proceed with the ALV OO ( for selection screen + ALV Grid) learn OO ALV it is very easy.

check the programs BCALV_GRID_* examples.

Read only

Former Member
0 Likes
1,678

Hi,

Without OOPS ......the only possibility is to use BLOCKED ALV.....Where you can top ALV as a Selection Screen and the second one for the result display.....

Read only

0 Likes
1,678

what is BLOCKED ALV ?? how to use it ???

reg, Martin

Read only

0 Likes
1,678

check the program BALVBT01, that is example program on Block list.