Using Function Calls
Reuse of existing functions through a function call prevents duplicate code. Refer to these guidelines when using function calls:
Always put a comma between each parameter. Optionally, you can add a space for readability.
If the function has a return value, always check the return of the function for errors or a valid value.
Use jdeCallObject to call another business function.
When calling functions with long parameter lists, the function call should not be wider than 80 characters.
Break the parameter list into one or more lines, aligning the first parameter of proceeding lines with the first parameter in the parameter list.
Make sure the data types of the parameters match the function prototype.
When intentionally passing variables with data types that do not match the prototype, explicitly cast the parameters to the correct data type.