2008 Oct 07 2:59 PM
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
2008 Oct 07 3:04 PM
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
2008 Oct 07 3:05 PM
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.
2008 Oct 07 3:10 PM
i can't use OO !!! i have to use the 'old style' FM'S
is this also possible ?
reg, martin
2008 Oct 07 3:12 PM
using the FM's it is not possible. using the OO ALV and container approach it is possible.
2008 Oct 07 3:17 PM
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
2008 Oct 07 3:21 PM
> 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.
2008 Oct 07 5:51 PM
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.....
2008 Oct 08 8:17 AM
2008 Oct 08 8:22 AM
check the program BALVBT01, that is example program on Block list.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |