10-24-2006 4:10 PM
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
10-24-2006 4: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
10-24-2006 4:12 PM
duplicates MATID for each PEGIDS
or change the method, use CL_GUI_ALV_TREE.
Fred
10-24-2006 4: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
10-24-2006 4: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