on 11-16-2015 10:34 AM
Hi,
In the SAP ME Application help for "Methods Available for Routing Scripts" the last line says
"The methods are documented in more detail in the javadocs, in ScriptHelper.java (core.sys.server). Check the javadocs for the current definition"
I have downloaded the Javadocs zip file for both ME 15 and ME 6.0, but when looking through it I cannot find Scripthelper.java.
Can anyone help me in the right direction?
Best regards,
Johan
Hi Johan!
That file does not have any javadoc comments. I guess this is why the statement was removed in 15.0 help.
If you have a question about any specific method, please let me know.
Regards,
Sergiy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Johan
You can do something like this:
sfcHandle=COMPLETE_DATA.getHandle("SFC_BO");
stmt="select count(*) as COUNT from nc_data inner join nc_code on nc_code_bo=nc_code.handle and nc_code='NC1' where nc_context_gbo='" + sfcHandle + "'";
qry_result=executeQuery(stmt);
res=qry_result.get("COUNT");
if (res>3) exit(900); else exit(0);
Remember to replace NC1 with your NC code and have the other path with just
exit(500);
Stuart
Thank you Stuart.
I only added the check so that it does not count if the NC has been cancelled.
The final script looks like this:
sfcHandle=COMPLETE_DATA.getHandle("SFC_BO");
stmt="select count(*) as COUNT from nc_data inner join nc_code on nc_code_bo=nc_code.handle and nc_code='NC1' where nc_context_gbo='" + sfcHandle + "' and nc_state <> 'D'";
qry_result=executeQuery(stmt);
res=qry_result.get("COUNT");
if (res>3) exit(900); else exit(0);
/Johan
Hi Johan,
Some basic information still can be found in 5.1 guides:
https://websmp208.sap-ag.de/~sapidb/011000358700001374762008E/productionlinesetup.pdf
see pages since 61.
Br, Alex.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.