Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

recursive loop

Former Member
0 Likes
620

i have to repeat the loop for different explosion levels .how to do this one?

Begin loop

Use each Material number from RESB-MATNR and go to Table AFPO-MATNR and get the corresponding Orders AFPO-AUFNR.

Using the Order number, AFPO-AUFNR go to Table AFKO get the corresponding Reservation numbers AFKO-RSNUM

Using each AFKO-RSNUM Go to Table RESB obtain the corresponding RESB-MATNR.

End loop

For the Explosion Report, repeat the above loop for the specified BOM level explosions required beyond the first level.

3 REPLIES 3
Read only

Former Member
0 Likes
565

use FM CS_BOM_EXPLOSION. it has a flag where you can tell it to explode just one level or completeley.

Read only

0 Likes
565

wat is the functionality of FM CS_BOM_EXPLOSION? CAN ANY ONE EXPLAIN?

wat r the inputs should be given wat r the outputs v ll get

Read only

0 Likes
565

hmmm well its name is lemme see "CS_BOM_EXPLOSION".

and yeah exactly it explodes BOMs single or multilevel.

like a proper FM it has a documentation. check it out in SE37.