Methods Available for Routing Scripts
The following methods are available for routing scripts:
exit()
Stops the script execution and returns a value to the Next Step
logic
This value is used to determine which next step is used.
getItemProperty()
[SFC, Operation, Resource, User]
Allows the script to get a single property from the material, SFC number, operation, resource, or user object
If more than one property is needed, the script should use the getEJBProperties()
method instead.
getCustomItemProperty()
[SFC, Operation, Resource]
Allows the script to get a single custom property from the material, SFC number, operation, or resource object
getEJBProperties()
Allows the script to get column values from EJBs associated with database tables
You can use this method to retrieve simple fields or subtables (for example, Operation Certifications
).
callEJB()
Allows the script to call any method on an EJB
The method is complex and requires knowledge of the EJB being called. We recommend using this method only as a last resort. Contact your SAP consultants for more information about using this method.
print(value,…)
Prints one or more values to the application server console/log file.
This method should only be used for debugging and testing purposes.
printAll()
Prints all of the variables available to the script
This method should only be used for debugging and testing purposes.
executeQuery(<SQLString>)
Executes a single SQL query and returns the results in a Data
object
This may be null if no records are found.
getOpenNCs()
Returns any open NCs for the SFC number being completed
This returns a Data
object containing the NC_DATA
information. See the javadoc for NCDataBOBean.getOpenNCs()
for details.