cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing the ERP_UNIT_OF_MEASURE field from custom development

former_member210324
Participant
0 Kudos

Hi,

I am trying to access the ERP_UNIT_OF_MEASURE field from a custom development. Unfortunately this is not part of the Shop Order Service.

Any hints how to access this?

Kind Regards,

Christoph Mertins

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hello Christoph,

If I am not mistaken the following code was used

import com.sap.me.demand.ShopOrderServiceInterface;
import com.sap.me.demand.ShopOrderFullConfiguration;
import com.sap.me.common.ObjectReference;

// get service
ShopOrderServiceInterface shopOrderService = Services.getService
("com.sap.me.demand",
                                                               "ShopOrde
rService");

// get reference
ObjectReference shopOrderRef=  new ObjectReference("ShopOrderBO:*,1");

// get order
ShopOrderFullConfiguration shopOrderFullConfiguration =
shopOrderService.readShopOrder(shopOrderRef);

which is supported starting ME 6.1 only.

Please, confirm.

Regards,

Alex.