Dear All:
I have defined dataType (VenderLot include one field: Vender_Lot ) for Assembl in datatype maintainance page, and then, I set the AssemblyDataType to VenderLot in BOM maintainance page.
1) I want to Assembl BOM's componet to SFC with the SDK API by Using the VenderLot info, I using the following the API is OK?
AssemblyServiceInterface [ Method: assembleComponents ]
2) using the above API , how can the parameter.
AssemblyComponent assemblyComponent = new AssemblyComponent();
assemblyComponent.setBomComponentRef( ? ); // Is this the ref of BOM's Component?
assemblyComponent.setResolvedFromIdentifier( ? ); // what will be set for this one?
assemblyComponent.setQty(new BigDecimal(1)); //this is OK?
//List<AssemblyDataField> assemblyDataFieldList = new ArrayList<AssemblyDataField>();
//AssemblyDataField assemblyDataField1 = new AssemblyDataField();
//assemblyDataField1.setAttribute( ? );
//assemblyDataField1.setSequence( ? );
//assemblyDataField1.setValue(value);
//assemblyDataFieldList.add(assemblyDataField1);
//assemblyComponent.setAssemblyDataFields(assemblyDataFieldList); // what will be set for this one?
List<AssemblyComponent> assComponentList = new ArrayList<AssemblyComponent>();
assComponentList.add(assemblyComponent );
AssembleComponentsRequest assComRequest = new AssembleComponentsRequest();
assComRequest.setComponentList(assComponentList);
AssemblyServiceInterface assemblyService = (AssemblyServiceInterface) com.sap.me.frame.ServiceLocator
.getService("AssemblyService");
assemblyService.assembleComponents(assComRequest);
Please help me resolve this problem.
thank you!