Skip to Content
author's profile photo Former Member
Former Member

Problem in ALV (GRID Display)

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2005 at 07:21 AM

    Hi,

    Check this link very use full.

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

    Thanks.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 30, 2005 at 07:16 AM

    USe REUSE_ALV_GRID_DISPLAY.

    BALVST03_GRID

    BALVST02_GRID

    check these programs.

    regards

    vijay

    Message was edited by: Vijay Babu Dudla

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2005 at 08: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2005 at 03: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 01, 2005 at 05: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.