Skip to Content
0
Former Member
Jan 07, 2011 at 06:14 AM

When I create SFC By Using API, Exception Happened!

56 Views

Hi All

I want create SFC in SDK by Using following API,but an Exception had happened when I get the Service.

CreateSfcServiceInterface createSfcSvc = Services.getService("com.sap.me.production", "CreateSfcService");

CreateSfcRequest d = new CreateSfcRequest();

d.setDateTime(XXXX);//current time

d.setItemRef(XXXX);

d.setOperationRef(XXXX); //First Operation

d.setQuantity(XXXX); // SFC Qty

d.setResourceRef(value); //the resource to the first operation

d.setSfc(XXXX) // gennerated SFC Number

CreateSfcServiceInterface.createSFC(d);

EXCEPTION:

「An exception occurred: com.visiprise.frame.proxy.ServiceInitializationException」