04-10-2009 8:26 AM
Hi Experts,
I need to display alv output of 3 types. one for Production Order , one for Purchase Order and
other for Purchase Requisition. with differnts column item and header also. Please help me with relevent
example.
04-10-2009 8:33 AM
04-10-2009 9:02 AM
Hi,
for such type of output go for BLOCKED ALV...
FM's
1. CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
2. CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
3. CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
based on the no of different outputs we should call APPEND FM that many times.
Regards,
Pavan
04-10-2009 9:05 AM
Hi,
use the FM REUSE_ALV_BLOCK_LIST_DISPLAY Check this demp program BCALV_TEST_BLOCK_LIST for the code.
04-10-2009 11:05 AM
Hi,
It can be achieved using OOPs ALV and custom container in module pool.
Create 3 custom container namely ALV1, ALV2, ALV3 in a screen and link them with grid using OOPs ALV concept.
You can refer the standard demo program BCALV_GRID_05.
DATA: g_custom_container1 TYPE REF TO cl_gui_custom_container.
CREATE OBJECT g_custom_container1
EXPORTING
container_name = 'ALV1'. " simlarly for 3 containers
04-13-2009 8:31 AM
Hello Asaha,
You can very well do that,
You have to make 3 containers on a single screen and 3 REFERENCE variables to class CL_GUI_CUSTOM_CONTAINER, further more make 3 ALV grids to hold data in similar fashion; using class CL_GUI_ALV_GRID.
Now call 3 methods;
CALL METHOD ref_gridcntrl1->set_table_for_first_display.
CALL METHOD ref_gridcntrl2->set_table_for_first_display.
CALL METHOD ref_gridcntrl3->set_table_for_first_display.
Regards,
Zahack
04-13-2009 8:50 AM
Hi,
[http://www.sapfans.com/forums/viewtopic.php?t=11601[http://www.geocities.com/mpioud/Abap_programs.html]]
Regards,
Vijaya Lakshmi.T
04-13-2009 10:16 AM
Hi,
Check with the below DEMO PROGRAM
BCALV_TEST_BLOCK_LIST
Hope this helps.
Regards,
Anki Reddy
04-14-2009 8:21 AM
Hi Asha,
You can check out the Demo Program BCALV_TEST_GRID_DRAG_DROP. Though its for the drag & drop functionality but here they have displayed 2 ALV reports in the same screen.
04-14-2009 8:34 AM
Try This with OO ALV:
Data: custom_container TYPE REF TO cl_gui_custom_container,
splitter TYPE REF TO cl_gui_splitter_container,
graphic_parent1 TYPE REF TO cl_gui_container,
graphic_parent2 TYPE REF TO cl_gui_container.
DATA ref_grid TYPE REF TO cl_gui_alv_grid.
DATA ref_grid1 TYPE REF TO cl_gui_alv_grid.
create container in which to place splitter
(place it in the custom control named CONTAINER
defined using screenpainter in dynpro 100)
CREATE OBJECT custom_container
EXPORTING
container_name = 'CONTAINER'. "use uppercase letters!
*
create splitter container in which to place graphics
CREATE OBJECT splitter
EXPORTING
parent = custom_container
rows = 2
columns = 1
align = 15. " (splitter fills the hole custom container)
get part of splitter container for 1st table
CALL METHOD splitter->get_container
EXPORTING
row = 1
column = 1
RECEIVING
container = graphic_parent1.
get part of splitter container for 2nd table
CALL METHOD splitter->get_container
EXPORTING
row = 2
column = 1
RECEIVING
container = graphic_parent2.
CREATE OBJECT ref_grid EXPORTING i_parent = graphic_parent1.
Display first ALV
PERFORM set_display.
CREATE OBJECT ref_grid1 EXPORTING i_parent = graphic_parent2.
Display second ALV
PERFORM set_display1.
&----
*& Form set_display
&----
text Display first ALV
----
FORM set_display.
CALL METHOD ref_grid->set_table_for_first_display
EXPORTING
is_variant = st_var
i_save = save
is_layout = loyo
CHANGING
it_outtab = itab_final[]
it_fieldcatalog = fcat.
ENDFORM. "set_display
&----
*& Form set_display1
&----
text Display second ALV
----
FORM set_display1.
CALL METHOD ref_grid1->set_table_for_first_display
EXPORTING
is_variant = st_var
i_save = save
is_layout = loyo1
CHANGING
it_outtab = itab_final1[]
it_fieldcatalog = fcat1.
ENDFORM. "set_display1
05-23-2009 4:45 AM