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

Problem in ALV (GRID Display)

Former Member
0 Likes
906

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
868

Hi,

Check this link very use full.

http://www.sapdevelopment.co.uk/reporting/alvhome.htm

Thanks.

5 REPLIES 5
Read only

Former Member
0 Likes
868

USe REUSE_ALV_GRID_DISPLAY.

BALVST03_GRID

BALVST02_GRID

check these programs.

regards

vijay

Message was edited by: Vijay Babu Dudla

Read only

Former Member
0 Likes
869

Hi,

Check this link very use full.

http://www.sapdevelopment.co.uk/reporting/alvhome.htm

Thanks.

Read only

Former Member
0 Likes
868

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

Read only

Former Member
0 Likes
868

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

Read only

Former Member
0 Likes
868

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