Run an internal procedure or user-defined function
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Methods to run an ABL internal procedure and user-defined function of a persistent procedure (ProcObject) are indistinguishable in client code. These methods:
- Run only in the context of a defining ProcObject
- Require a ProcObject ID in the SOAP request header, which is the object ID of the defining ProcObject
This is the ABL prototype for the sample user-defined function,
GetTotalOrdersByNumber( ):
ABL prototype for a user-defined function
|
This is a VB.NET declaration for the ABL user-defined function method,
GetTotalOrdersByNumber( ):
|
The following is a sample method call for the user-defined function method,
GetTotalOrdersByNumber, which is an interface method on
the sample ProcObject, CustomerOrder:
|
Note that user-defined function methods return a value whose data type maps to the ABL data type of the user-defined function's return value.
This is a sample Doc/Lit SOAP request that might be generated from invoking
the GetTotalOrdersByNumber( ) method to execute the ABL
user-defined function, passing in a Threshold order value
of 2150.99:
|
Note the object ID for the ProcObject, CustomerOrder, sent to make the request on a method of the ProcObject.
This is the SOAP response returning a function value of 5, which is the total number of orders that satisfy the specified
order Threshold value:
|