on 10-18-2011 5:44 PM
hello,
Even if I'm pretty sure to know the answer, is there any way to adjust quantity on a "done" SFC (through SDK or whatever)
Thanks
Cheers
Olivier
Hi Olivier,
No, it's not possible. There is SFC Quantity Adjustment activity, but it doesn't allow modifying DONE SFCs.
Regards,
Konstantin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for tip, I tried to use this service, but got a business exception, here is a part of the stacktrace :
com.sap.me.frame.transitionutils.Exceptions$LegacyBusinessException
at com.sap.me.frame.transitionutils.Exceptions.convert(Exceptions.java:47)
at com.sap.me.production.impl.SfcStateService.convertAdjustSfcException(SfcStateService.java:990)
at com.sap.me.production.impl.SfcStateService.adjustSfcQuantity(SfcStateService.java:817)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
....
at com.sap.me.demand.ShopOrderBOBean.qtyAdjust(ShopOrderBOBean.java:3904)
So seems to me that the function failed when trying to update shop order qty...
Any idea what could be wrong ?
Here is an extract of my code :
BigDecimal qty = new BigDecimal(0);
req.setSfcRef("SFCBO:" + request.getSite() + ","
+ request.getSfc());
try {
qty = BigDecimal.valueOf(Double.valueOf(request.getNewQty()));
} catch (NumberFormatException e) {
InputMessageValidationFault f = new InputMessageValidationFault();
f.setMessage(e.getMessage());
throw new InputFault("Error parsing the qty", f);
}
req.setNewSfcQuantity(qty);
if (!(null == request.getOperation() || request.getOperation().equals(""))) {
req.setOperationRef(request.getOperation());
}
if (!(null == request.getResource() || request.getResource().equals(""))) {
req.setResourceRef(request.getResource());
}
Collection<AdjustSfcQuantityRequest> reqCol = new ArrayList<AdjustSfcQuantityRequest>();
reqCol.add(req);
try {
Collection<AdjustSfcQuantityResponse> respCol = sfcInterface.adjustSfcQuantity(reqCol);
resp.setMessage("Done");
} catch (SfcAdjustmentQuantityLessThanZeroException e) {
...
Hi,
Unfortunately, the quantity matches, but I was thinking also about the lot size, as by default it's 1 and I tried to update to 2. I changed the lot size, but now I still get a dump, and I can see somewhere "SITE is missing", even if I pass the site correctly...
Does anybody already used this API ? Can anybody paste a part of his code so I can see if I miss something ?
Thanks
Olivier
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.