on 02-12-2010 5:21 AM
Hi SAP Experts,
I have a start routine as coded below
Read all the material which has the same Prod hier
SELECT MATERIAL PROD_HIER /BIC/ZTACOIND FROM /BI0/PMATERIAL
INTO TABLE it_material
for all entries in SOURCE_PACKAGE
WHERE PROD_HIER = SOURCE_PACKAGE-prod_hier AND
MATL_TYPE = 'FERT'.
SORT it_material by prod_hier material /BIC/ZTACOIND ascending.
The scenario is that i have many materials of the type "FERT" tied up to to the same product hierarchy
example material product Hierarchy
M1 P1
M2 P1
M3 P1
The above routine helps me to fetch only the first record and not able to fetch the remaining
materials in it_material table. Can anyone please help me modify this
code to help bring the remaining materials also.
thank you in advance for your continued support and help
Regards,
sanjeev
Hi Sanjeev,
When you use 'for all entries' in your select statement it's mandatory to use all the key fields in your select (for selecting).
So try using all the key fields in your select from the table /BI0/PMATERIAL and let me know.
Regards,
Siva.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
9 | |
4 | |
3 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.