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

Sample program to Display BOM data in ALV Tree

Can any one please provide me the sample program to display material BOM data in ALV Tree Strucure as mentioned below. Material MAT3 and MAT33 itself have assemblies.I want any icon on MAT3 and MAT33 lines because of Assembly and when user click on that icon it expand the corresponding data.

Level MATNR

1 MAT1

1 MAT2

1 MAT3

|_2 MAT31

|_2 MAT32

|_2 MAT33

__|_3 MAT331

__|_3 MAT332

1 MAT4

1 MAT5

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Oct 09, 2005 at 04:12 AM

    Hi, I find a function module 'BROWSE_BILLOFMAT_STRUCTURE', here is the sample code:

    REPORT ZBOMDISPLAY.

    parameters: matnr like RC29L-MATNR MEMORY ID mat default '1300-1400',

    werks like RC29L-WERKS MEMORY ID wrk default '3000',

    capid like RC29L-CAPID MEMORY ID csa default 'PP01'.

    CALL FUNCTION 'BROWSE_BILLOFMAT_STRUCTURE'

    EXPORTING

    APPLICATION = capid

    • BOMUSAGE = ' '

    materialnumber = matnr

    plant = werks

    • VALIDFROM = SYST-DATUM

    • DOCKING_CONTAINER =

    • ALTERNATIVE =

    EXCEPTIONS

    NO_CAPID_AND_STLAN = 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

    • Former Member Durairaj Athavan Raja

      I am confused with the following subroutire in the program BCALV_TREE_DEMO.

      add_carrid_line

      add_connid_line

      I have nor worked too much OPPS programming. Can any one please provide me the SAmple program for my requirements.

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.