Skip to Content
avatar image
Former Member

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    May 29, 2015 at 01:17 PM

    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

    Add comment
    10|10000 characters needed characters exceeded