Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Routing script debugging in ME 15

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.

Tags:
Former Member
Former Member replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question