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

Table Display in for OO ALV Grid

Hello All,

I have an internal table with the following setup:

DATA: BEGIN OF mat_locs OCCURS 0,

matid LIKE /sapapo/matloc-matid,

locid LIKE /sapapo/matloc-locid,

pegids TYPE /sapapo/om_pegid_tab,

END OF mat_locs.

The PEGIDS is a Table of GUIDs. It is possible that the PEGIDS table can have more than one entry for each MATID and LOCID. Currently, I am only able to have one line item appear in the ALV grid when there are two in PEGIDS. Is there a setting that I am missing to display this correctly? Thanks for your help in advance.

John

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Oct 24, 2006 at 03:14 PM

    Example declaration for nested int tabs:

    types: begin of meein_purchase_doc_print,

    xekko like ekko,

    xpekko like pekko,

    xekpa like msgpa occurs 0,

    xekpo like ekpo occurs 0,

    xpekpo like pekpo occurs 0,

    xeket like eket occurs 0,

    xekkn like ekkn occurs 0,

    xekek like ekek occurs 0,

    xekeh like ekeh occurs 0,

    xaend type meein_xaend occurs 0,

    xtkomv type komv occurs 0,

    end of meein_purchase_doc_print.

    data: itab type table of meein_purchase_doc_print.

    Regards,

    Ravi

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 24, 2006 at 03:12 PM

    duplicates MATID for each PEGIDS

    or change the method, use CL_GUI_ALV_TREE.

    Fred

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 24, 2006 at 03:14 PM

    Hi,

    I am not sure how to display second level internal table in an ALV grid..

    But I can suggest you one thing..

    Create an internal table with the following fields..

    DATA: BEGIN OF ITAB OCCURS 0,

    matid LIKE /sapapo/matloc-matid,

    locid LIKE /sapapo/matloc-locid.

    INCLUDE STRUCTURE /sapapo/om_pegid. "GIVE THE STRUCTURE and not the table type..

    DATA: END OF ITAB.

    • Populate the data..

    Create a sort order for the fields matid & locid..And then display the records..

    Thanks,

    Naren

    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.