Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Table Display in for OO ALV Grid

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

former_member181962
Active Contributor
0 Kudos

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

3 REPLIES 3

FredericGirod
Active Contributor
0 Kudos

duplicates MATID for each PEGIDS

or change the method, use CL_GUI_ALV_TREE.

Fred

former_member181962
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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