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

'REUSE_ALV_HIERSEQ_LIST_DISPLAY'

HI,

i'm not getting any output for this function. output is some blank columns. plz help me to sort it out.

points guaranteeeeeeee

CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'

EXPORTING

  • I_INTERFACE_CHECK = ' '

I_CALLBACK_PROGRAM = v_progname

  • I_CALLBACK_PF_STATUS_SET = ' '

  • I_CALLBACK_USER_COMMAND = ' '

IS_LAYOUT = WA_LAYOUT

IT_FIELDCAT = IT_FIELDCAT1

  • IT_EXCLUDING =

  • IT_SPECIAL_GROUPS =

  • IT_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 = 'X'

I_SAVE = 'A'

  • IS_VARIANT =

IT_EVENTS = IT_EVENTCAT

  • IT_EVENT_EXIT =

i_tabname_header = 'IT_HEADER'

i_tabname_item = 'IT_ITEMS'

  • I_STRUCTURE_NAME_HEADER =

  • I_STRUCTURE_NAME_ITEM =

is_keyinfo = WA_keyinfo

  • IS_PRINT =

  • IS_REPREP_ID =

  • I_BYPASSING_BUFFER =

  • I_BUFFER_ACTIVE =

  • IR_SALV_HIERSEQ_ADAPTER =

  • IT_EXCEPT_QINFO =

  • I_SUPPRESS_EMPTY_DATA = ABAP_FALSE

  • IMPORTING

  • E_EXIT_CAUSED_BY_CALLER =

  • ES_EXIT_CAUSED_BY_USER =

tables

t_outtab_header = IT_HEADER

t_outtab_item = IT_ITEMS

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 08:49 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 08:54 AM

    Hi

    Please check whether you have populated the keyinfo correctly.

    Thanks

    VIjay

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 08:56 AM

    Hi,

    Use this code

    REPORT ALV_HIRARCHECIAL_REPORT.

    TABLES : VBAK.

    TYPE-POOLS SLIS.

    SELECT-OPTIONS : S_VBELN FOR VBAK-VBELN.

    DATA : IT_VBAK LIKE VBAK OCCURS 0 WITH HEADER LINE,

    IT_VBAP LIKE VBAP OCCURS 0 WITH HEADER LINE,

    IT_KEYINFO TYPE SLIS_KEYINFO_ALV,

    IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,

    WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV.

    DATA : R_NAME LIKE SY-REPID.

    INITIALIZATION.

    R_NAME = SY-REPID.

    START-OF-SELECTION.

    SELECT * FROM VBAK INTO TABLE IT_VBAK

    WHERE VBELN IN S_VBELN.

    SELECT * FROM VBAP INTO TABLE IT_VBAP

    WHERE VBELN IN S_VBELN.

    *PERFORM FIELDCAT.

    IT_KEYINFO-HEADER01 = 'VBELN'.

    IT_KEYINFO-ITEM01 = 'VBELN'.

    CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'

    EXPORTING

    • I_INTERFACE_CHECK = ' '

    I_CALLBACK_PROGRAM = R_NAME

    • I_CALLBACK_PF_STATUS_SET = ' '

    • I_CALLBACK_USER_COMMAND = ' '

    • IS_LAYOUT =

    • IT_FIELDCAT = IT_FIELDCAT

    • IT_EXCLUDING =

    • IT_SPECIAL_GROUPS =

    • IT_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 = 'X'

    • I_SAVE = ' '

    • IS_VARIANT = ' '

    • IT_EVENTS =

    • IT_EVENT_EXIT =

    I_TABNAME_HEADER = 'IT_VBAK'

    I_TABNAME_ITEM = 'IT_VBAP'

    I_STRUCTURE_NAME_HEADER = 'VBAK'

    I_STRUCTURE_NAME_ITEM = 'VBAP'

    IS_KEYINFO = IT_KEYINFO

    • IS_PRINT =

    • IS_REPREP_ID =

    • IMPORTING

    • E_EXIT_CAUSED_BY_CALLER =

    • ES_EXIT_CAUSED_BY_USER =

    TABLES

    T_OUTTAB_HEADER = IT_VBAK

    T_OUTTAB_ITEM = IT_VBAP

    • 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.

    &----


    *& Form FIELDCAT

    &----


    • text

    ----


    FORM FIELDCAT.

    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

    EXPORTING

    I_PROGRAM_NAME = R_NAME

    • I_INTERNAL_TABNAME =

    I_STRUCTURE_NAME = 'IT_VBAK'

    • I_CLIENT_NEVER_DISPLAY = 'X'

    I_INCLNAME = R_NAME

    I_BYPASSING_BUFFER = 'X'

    • I_BUFFER_ACTIVE =

    CHANGING

    CT_FIELDCAT = IT_FIELDCAT

    • EXCEPTIONS

    • INCONSISTENT_INTERFACE = 1

    • PROGRAM_ERROR = 2

    • OTHERS = 3

    .

    IF SY-SUBRC <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    ENDFORM. " FIELDCAT

    Reward Points If useful

    Rajneesh Gupta

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 08:58 AM

    i_tabname_header = 'IT_HEADER'

    i_tabname_item = 'IT_ITEMS'

    the internal tables shoult no be in quotes.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 09:03 AM

    Hi,

    1. check the header table & item table, whether atleast one field should be similar.

    2. Also chk the fiedcatalogue, u have given the same common fields.

    reply back..

    With Rgds,

    S.Barani

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 09:25 AM

    resolved

    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.