cancel
Showing results for 
Search instead for 
Did you mean: 

Recursive Material

Former Member
0 Kudos

Hi All,

I have a peculiar requirement

Please find it below.

There is a Select Options for Material.

Based on the Material BOM Explosion should happen.

Now in the resultant set of Materials if the Material (in Select Options) is present and this is treated as Recursive.

For Ex:

s_matnr = 1

now when material 1 is exploded its giving

2 3 4 1

Hence in the above case since 1 is appearing in the exploded set it is treated as "Directly Recursive"

Now again when 2 is exploded

we get 5 6 7

and when 3 is exploded

we get 8 9 10

and so on so forth.

If in any hierarchy / level the material in s_matnr ( 1 ) is appearing then its "Indirectly recursive".

The Explosion will continue for all the resultant set of exploded materials.

Please give me some kind of clue about this.'

The report they want is to display all the Materials with Direct/Indirect Recursive.

Waiting eagerly for your Hints/Replies

Hope you all have understood the requirement.

Please revert for further clarification i shall articulate the requirement .

Thanks

Sri

Accepted Solutions (0)

Answers (1)

Answers (1)

kesavadas_thekkillath
Active Contributor
0 Kudos

Check this wiki for recursive logic link:[http://wiki.sdn.sap.com/wiki/display/Snippets/InverseBOMExplosion-ABAP]

For sequential logic use function CSAP_MAT_BOM_READ instead of fm CS_WHERE_USED_MAT used in the above link.