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

alvs

• Created an interactive report in the form of ALV Tree, which lists the customer details in the basic list and the corresponding Sales order details, Billing details and Invoice details in secondary lists

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2008 at 09:50 AM

    REPORT ZALV_HEIRARCHY .

    DATA: IT_VBRK LIKE VBRK OCCURS 1 WITH HEADER LINE,

    IT_VBRP LIKE VBRP OCCURS 1 WITH HEADER LINE.

    TYPE-POOLS: SLIS.

    DATA: WA_KEYINFO TYPE SLIS_KEYINFO_ALV.

    SELECT-OPTIONS: S_VBELN FOR IT_VBRK-VBELN.

    SELECT *

    FROM VBRK

    INTO TABLE IT_VBRK

    WHERE VBELN IN S_VBELN.

    SELECT *

    FROM VBRP

    INTO TABLE IT_VBRP

    WHERE VBELN IN S_VBELN.

    WA_KEYINFO-header01 = 'VBELN'.

    WA_KEYINFO-item01 = 'VBELN'.

    CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'

    EXPORTING

    • I_INTERFACE_CHECK = ' '

    I_CALLBACK_PROGRAM = 'ZALV_HEIRARCHY'

    • I_CALLBACK_PF_STATUS_SET = ' '

    • I_CALLBACK_USER_COMMAND = ' '

    • IS_LAYOUT =

    • 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_VBRK'

    I_TABNAME_ITEM = 'IT_VBRP'

    I_STRUCTURE_NAME_HEADER = 'VBRK'

    I_STRUCTURE_NAME_ITEM = 'VBRP'

    IS_KEYINFO = WA_KEYINFO

    • IS_PRINT =

    • IS_REPREP_ID =

    • I_BUFFER_ACTIVE =

    • I_BYPASSING_BUFFER =

    • IMPORTING

    • E_EXIT_CAUSED_BY_CALLER =

    • ES_EXIT_CAUSED_BY_USER =

    TABLES

    T_OUTTAB_HEADER = IT_VBRK

    T_OUTTAB_ITEM = IT_VBRP

    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

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2008 at 10:16 AM

    hi

    good

    follow the below procedure.

    1- go to se38

    2- put BCALV*

    3- press F4

    BCALV_TREE_01 ALV tree control: build up the hierarchy tree

    BCALV_TREE_02 ALV tree control: event handling

    BCALV_TREE_03 ALV tree control: use an own context menu

    BCALV_TREE_04 ALV tree control: add a button to the toolbar

    BCALV_TREE_05 ALV tree control: add a menu to the toolbar

    BCALV_TREE_06 ALV tree control: Icon column and icon for nodes/items

    BCALV_TREE_DEMO Demo for ALV tree control

    CHECK these reports.

    thanks

    muryunt

    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.