Hi,
I have a VBA Excel macro that create SOs in SAP ERP (T Code: VA01) based on information provided in Sheet1 in Excel. It creates the BOM and adds the sub-materials to it. However, it does not link/loop the sub-materials to the BOM like how we do it manually in "Items details: Configuration" section. It automatically adds values on the tabs in "Characteristic Value Assignment" and so the Services (i.e. SAPLCEI0 screen) but it does not link the same under "Configuration Structure" section.
Please advise.
P.S.: I am giving an example code that adds values in the "Characteristic Value Assignment" but I am looking for a similar code(s) that will loop the materials/services under BOM.
session.findById("wnd[0]/usr/subCE_INSTANCE:SAPLCEI0:1105/tabsTABSTRIP_CHAR/tabpTAB3").Select
session.findById("wnd[0]/usr/subCE_INSTANCE:SAPLCEI0:1105/tabsTABSTRIP_CHAR/tabpTAB3/ssubCHARACTERISTICS:SAPLCEI0:1400/tblSAPLCEI0CHARACTER_VALUES/ctxtRCTMS-MWERT[1,0]").Text = Sheets("Sheet1").Range("Y" & i)
session.findById("wnd[0]/usr/subCE_INSTANCE:SAPLCEI0:1105/tabsTABSTRIP_CHAR/tabpTAB3/ssubCHARACTERISTICS:SAPLCEI0:1400/tblSAPLCEI0CHARACTER_VALUES/ctxtRCTMS-MWERT[1,1]").Text = Sheets("Sheet1").Range("Z" & i)
session.findById("wnd[0]/usr/subCE_INSTANCE:SAPLCEI0:1105/tabsTABSTRIP_CHAR/tabpTAB3/ssubCHARACTERISTICS:SAPLCEI0:1400/tblSAPLCEI0CHARACTER_VALUES/ctxtRCTMS-MWERT[1,5]").Text = Sheets("Sheet1").Range("AA" & i)
session.findById("wnd[0]/usr/subCE_INSTANCE:SAPLCEI0:1105/tabsTABSTRIP_CHAR/tabpTAB3/ssubCHARACTERISTICS:SAPLCEI0:1400/tblSAPLCEI0CHARACTER_VALUES/ctxtRCTMS-MWERT[1,7]").Text = Sheets("Sheet1").Range("AB" & i)
Regards,
Dilli.