Using WebServcie to get Material/Version given a SFC

Hi Everyone,
Is there a way to get Material and Version for a unit through WebServcie, given the boards SFC?
Regards
Per Nilsson

There is no out-of-the-box web service to get this information.  In ME 5.2, there is a public API method to get this information:
public SfcBasicData com.sap.me.production.SfcStateServiceInterface.findSfcById(String sfc)
Given an SFC identifier, you can get a DTO, SfcBasicData, which contains an ItemRef which can be used to get the Material and Revision.  If you want to expose this method as a web service you can use the SDK to write a wrapper exposing the wrapper class using @WebService and the wrapper method with @WebMethod.  Compile, put in a web war, deploy that and you're done.
We've written a tool that will create web services for all public API methods for ME 5.2 and it's being tested now and should be released shortly.
-tim

Similar Messages

Maybe you are looking for