Call Object
Tags are used to call business functions on the server.
This sample code shows how to use callObject:
<?xml version='1.0' ?> <jdeRequest type='callmethod' user='steve' pwd='xyz' role='*ALL' environment='prod'> <callMethod name='myfunc' app='P42101'> <params> <param name='CostCtr'> 1001</param> <param name='ExpDate'>1999/10/31</param> <param name='Quantity'>12</param> </params> </callMethod> </jdeRequest>
The callMethod element details which function to call and in what context it is being called. The name attribute specifies which business function to call, and the application attribute enables the business function to know who is calling it.
The parameters and parameter elements define the data structure of the business function. Each parameter element describes one data structure member. The caller is required to give only the name attribute.
If no parameter element value is given for an input data structure member, then the value will be treated as if it were NULL or zero.