CREATE A USERCALC CUSTOM FUNCTION
Back to current versionRestore this version

CREATE A USERCALC CUSTOM FUNCTION#



Defining the Custom Function in the Application#

  1. Go to IMLN and identify the custom function in the X_UC_FUNCTIONS lexicon.
    • Saved Value
      This field holds the unique ten character code that is stored in the data base.
      Best practice: Use your customer code and a sequential number (e.g. GT02).
      Please note the Saved Value may not be longer than four characters.
    • Displayed Value
      This field holds the function name as declared in the data base.
    • Meaning
      This field holds the product that the function is intended to be used with.
  2. Invoke the custom function in your UserCalc using an operand type of 'CF'.

Defining the Custom Function in the Data Base#

  1. The custom function must be named P2K_xxx (must start with P2K).

    As a best practice, it is recommended that you include your customer code in the name of the function, which will ensure it is not overlaid at some future point by any new development.

    For workflow oriented custom functions, a recommended best practice is to also include the table/product name in the function name. For example, a custom function created for the WF_EASD table might be named P2K_CF_EASD_xxx_yyyy where xxx is your customer code and yyyy is some kind of descriptive value to aid in remembering what the function does.

2. Create the function in the data base as a data base function returning VARCHAR or NUMBER or BOOLEAN (true/false)


Notes #

Click to create a new notes page