cancel
Showing results for 
Search instead for 
Did you mean: 

HOW TO SET PRODUCTION_LOG' QTY_STARTED FIELD WHEN CALL SCRAP API.

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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.