So what I am trying to do with my Query is to get all the Materials belonging to a certain Product Hierarchy and then the Pricing conditions.
In general the Query works just fine, the Product Hierarchy is ok and the Price is ok but the problem lies within the several materials.
The hierarchy contains 8 materials.
First I tried this code:
CLEAR RP_MATERIAL.
SELECT SINGLE MATNR FROM MARA
INTO RP_MATERIAL
WHERE PRDHA = RP_PRODH.
But this only gave me the first of the 8 materials. Logical probably because it is Select SINGLE I guess.
So then I tried this code:
CLEAR RP_MATERIAL.
SELECT MATNR FROM MARA
INTO RP_MATERIAL
WHERE PRDHA = RP_PRODH.
ENDSELECT.
But then I only get the last material of the 8. Logical because it probably overwrites the first 7.
So now I heard I would need to use Select( ) INTO TABLE....
But I have no clue how to alter my code to make it work...
I really am looking for a very basic and simple solution. Nothing fancy.
Thanks!