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

Start Routine

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 12, 2010 at 12:28 PM

    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.

    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.