Skip to Content
avatar image
Former Member

SAP ME SDK Sampling - ERP INSPECTION UNIT ID

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Jun 21, 2017 at 07:58 AM

    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

    Add comment
    10|10000 characters needed characters exceeded