cancel
Showing results for 
Search instead for 
Did you mean: 

SAP ME SDK Sampling - ERP INSPECTION UNIT ID

former_member418351
Discoverer
0 Kudos
318

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member418351
Discoverer
0 Kudos

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

Answers (0)