2005 Nov 30 7:06 AM
Hi All,
I have an alv with 2 tables header & detailed.
I am using REUSE_ALV_HIERSEQ_LIST_DISPLAY to display.
it's working absolutly fine.
i just want to use GRID_DISPLAY, can anybody give the Function name for this.
please Find the Code below.
'GT_HEADER' is header table & 'GT_ITEM is the detailed table.
CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
i_callback_program = g_repid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
is_layout = gs_layout
it_fieldcat = gt_fieldcat[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
it_sort = gt_sort[]
IT_FILTER =
IS_SEL_HIDE =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
i_default = 'A'
i_save = g_save
is_variant = g_variant
it_events = gt_events[]
IT_EVENT_EXIT =
i_tabname_header = 'GT_HEADER'
i_tabname_item = 'GT_ITEM'
I_STRUCTURE_NAME_HEADER =
I_STRUCTURE_NAME_ITEM =
is_keyinfo = gs_keyinfo
IS_PRINT =
IS_REPREP_ID =
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab_header = gt_header
t_outtab_item = gt_item
EXCEPTIONS
program_error = 1
OTHERS = 2.
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 in Advance
Arun
2005 Nov 30 7:21 AM
Hi All,
I have an alv with 2 tables header & detailed.
I am using REUSE_ALV_HIERSEQ_LIST_DISPLAY to display.
it's working absolutly fine.
i just want to use GRID_DISPLAY, can anybody give the Function name for this.
please Find the Code below.
'GT_HEADER' is header table & 'GT_ITEM is the detailed table.
CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
i_callback_program = g_repid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
is_layout = gs_layout
it_fieldcat = gt_fieldcat[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
it_sort = gt_sort[]
IT_FILTER =
IS_SEL_HIDE =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
i_default = 'A'
i_save = g_save
is_variant = g_variant
it_events = gt_events[]
IT_EVENT_EXIT =
i_tabname_header = 'GT_HEADER'
i_tabname_item = 'GT_ITEM'
I_STRUCTURE_NAME_HEADER =
I_STRUCTURE_NAME_ITEM =
is_keyinfo = gs_keyinfo
IS_PRINT =
IS_REPREP_ID =
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab_header = gt_header
t_outtab_item = gt_item
EXCEPTIONS
program_error = 1
OTHERS = 2.
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 in Advance
Arun
2005 Nov 30 7:16 AM
USe REUSE_ALV_GRID_DISPLAY.
BALVST03_GRID
BALVST02_GRID
check these programs.
regards
vijay
Message was edited by: Vijay Babu Dudla
2005 Nov 30 7:21 AM
2005 Nov 30 8:53 AM
Hi Arun,
To Display Header & Line Item data in Hierarchical sequense there is only REUSE_ALV_HIERSEQ_LIST_DISPLAY available. No FM like grid_display available.
But If you merge your two internal table in one single internal table then u can use REUSE_ALV_GRID_DISPLAY.
And Pass that single internal table to FM.
Regards,
Digesh Panchal
2005 Nov 30 3:50 PM
Hi Arun,
Its not possible to use ALV Grid to display both Header and Details.
You can merge both the internal tables into one table and then you can pass this single table to the FM REUSE_ALV_GRID_DISPLAY.
To display Header and Details separately you have to use FM
REUSE_ALV_HIERSEQ_LIST_DISPLAY.
Thanks and Regards,
Arshad
2005 Dec 01 5:05 AM
Dear All,
I Thank you all for your kind reply.
I am using REUSE_ALV_HIERSEQ_LIST_DISPLAY & the client is happy wih this.
Regards
Arun.
Message was edited by: Arun Kumar
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |