Call points and action codes

Call points can be used in conjunction with business rules to allow the system to perform a set of business rules at a specified point within a system function.

Call point condition statements are added to an event profile after the IF statement that identifies the system function. The call points that are available for selection depend on this system function.

In a simple example, you may want to display certain information only after a journal line is posted. The event profile conditions would look like this:

Command Value 1 Operator Value 2
IF Function Code = Ledger Entry
IF Call Point = Each Journal Line Posted

In a more complex example, you may want to call another COBOL application using the CALL command, after a journal has been posted and has returned its journal number.

The business rules that apply to the call point are defined in a rule set as normal. However, the rules are only invoked at the point in the function that you have selected as the call point.

Note:  If a call point is not specified in an event profile for entry functions, the End of Line call point is used as the default.

Using Action Codes

An action code can be used in conjunction with a call point to further specify the point at which the business rules should be applied. The action codes relate to the Action buttons and other commands available to the user within a function.

For example, you may want to invoke a rule using the Posting Data call point in Sales Order Entry, but only if the user selects the Held action to place the line on hold.

Note:  Action codes do not exist for all of the system functions and only apply to particular system function/call point combinations.

What Call Points and Action Codes are Available?

Business rules can be defined for several SunSystems functions and for some of these functions there are a large number of call points and action codes available.

When you add a call point statement to an event profile for a system function, the system only lists the call points that are valid for that function. So you are only able to choose from a short and accurate list of options. Similarly, when you define an action code statement for a system function and call point, the system only lists the action codes available for this combination.

The following topics list the call points and actions for each SunSystems module:

  • Financials Call Points and Actions
  • Static Data Call Points and Actions
  • Order Fulfilment Call Points and Actions.

Listing the Call Points

If you require a complete list of the call points available in the system, you can use the following SQL command on the CALL_POINT table. This will list the call points available.

use <insert your database name here e.g. SUN51DB>

select CMMNT, CALL_POINT_NUM from CALL_POINT