on 06-07-2011 11:43 AM
Hello All
I released one SFC (QTY=2), and started it . and then I scrap the SFC by using the scrap API as following source code, but the Production_Log table's QTY_START is blank. why? How can I set QTY_START = 2 ?
=======Source Code Start==========
String site = "JPN";
String sfc="JPN20";
String userId="SITE_ADMIN";
String qty = 2;
SFCBOInterface sfcBO = Services.getService("com.sap.me.demand", "SFCBO");
Data inData = new Data();
inData.put("SITE", site);
inData.put("SFC_BO", new SFCBOHandle(site, sfc));
inData.put("USER_BO", new UserBOHandle(site, userId));
inData.put("QTY", new BigDecimal(qty));
inData.put("ACTIVITY", "SU580");
inData.put("SFC_STATUS_BO", new StatusBOHandle(site,"407"));
inData.put("DISABLE_UPDATE_SFC_ROUTING", "true");
inData.put("LOG_RESOURCE_BO", "ResourceBO:CHN,COIL");
inData.put("LOG_ROUTER_BO", XXXXXX);
inData.put("LOG_STEP_ID", "010");
Data outData = sfcBO.scrap(inData);
================Source Code End====================
=========Production_Log===============
SITE QTY SFC STEP_ID RESRCE QTY_STARTED QTY_SCRAPPED .......
JPN 2.00 JPN20 010 COIL 0.0 2.0
There currently is no way to do this in core ME. The core ME methods to scrap() always leave the QTY_STARTED as null, which is logged as 0.0 in the database.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.