Skip to Content
0

SAP ME SDK Sampling - ERP INSPECTION UNIT ID

Jun 16, 2017 at 10:18 AM

26

avatar image

Hi,

we are developing an own ME POD Plugin for Sampling. We need to create an erp-inspection-unit-id in the database table WIP.SAMPLING_GROUP_SFC. I´m using the DomainService to create a Sampling group and a sampling group sfc.

DomainServiceInterface<SamplingGroupDO> samplingGroupDOService = DomainServiceFactory.getServiceByClass(SamplingGroupDO.class);

For the ERP QM Integration we need to get an valid ERP_INSPECTION_UNIT_ID but i can´t find any function to get it.

If we can get the next valid erp inspection unit id, it should work.

Is there any service- or function-call in ME Services we can use?

regards

Sascha Köhler

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Sascha Köhler Jun 21, 2017 at 07:58 AM
0

Found the service :)

NumberingServiceInterface numberingService = Services.getService("com.sap.me.numbering", "NumberingService");

GenerateNextNumberRequest request = new GenerateNextNumberRequest(NextNumberTypeEnum.ERPINSPECTIONUNITID, new BigDecimal(1));

numberingService.generateNextNumber(request);

Regards

Share
10 |10000 characters needed characters left characters exceeded