cancel
Showing results for 
Search instead for 
Did you mean: 

Routing script debugging in ME 15

Former Member
0 Kudos

Hi Experts,

I am working routing script and during dovelopment , if i want to make sure I am getting required values in the variables, I am using methods print(value,…) and printAll(). However I have not found any entries in the NW Log..

Can somebody tell me whare exactly i should check the logs?

and I have heard that we can use PAPIs in routing scripts, what is the procedure to use PAPI in routing script.?

sample code would be helpful..

Thanks, Eswar.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Eswar

To trace, use:

Utils.traceMsg(string, Utils.DEBUGGING);

and make sure you have ME debugging on.

Calling PAPIs are not trivial - you should have a programming experience, preferably using the ME SDK.

Some code snippets, where this is placing a Future hold on a list of SFCs:

importClass(Packages.com.visiprise.frame.configuration.ServiceReference);

importClass(Packages.com.visiprise.frame.service.ServiceLocator);

ref=new ServiceReference("com.sap.me.production","HoldService");

holdService = ServiceLocator.getService(ref);

request = new PlaceFutureHoldGroupRequest();

request.setFields.....etc

holdService.placeSfcOnFutureHold(request);

Refer to the Javadocs for usage of the PAPIs.

Stuart

Former Member
0 Kudos

Hi Stuart,

Thanks for the quick reply.

do you mean ME debugging on is keeping NW VM parameter in debug mode?

Thanks, Eswar.

Former Member
0 Kudos

Eswar

I mean the Debugging option is ticked in the manufacturing-admin page, and also Debug level is set in NW for the trace location.

Former Member
0 Kudos

Hi Stuart,

Thanks got it.

Answers (0)