HI Experts,
I have a requirement to download multilevel Bom's as shown in transaction CS12. I am using Bapi "CS_BOM_EXPL_MAT_V2_RFC" to build this requirement.
I am able to build the script for one material .The script basically depends on the loop id column i.e I need to know beforehand how many component/level are under it so that I can insert D's in loop id column.
Can somebody help me to automate this part .? I basically need to run this script for multiple materials . How can we adjust the loop condition in this case.? or is there a way we could create a script to read the number of lines in CS12 and link it to this script so that the insertion of D's in loop id column in automated in the excel template.
I am attaching here my version of the scripts & template.
------------------------------
AAKANSHA GUPTA | SAP Data migration consultant
Moog GmbH |
------------------------------