Defining Event Codes and Action Codes

This topic provides an overview of event codes and action codes and discusses how to:

  • Define event codes.

  • Define action codes.

EDI transactions use event codes to specify what action the transaction calls for. For example, event codes specify whether the current transaction is a completely new transaction, a resubmitted transaction, or an update to a previous transaction.

EDI event codes come in two types, both of which can be specified for the same transaction:

  • Primary event codes, also called purpose codes, specify the status of the transaction: whether it is a new transaction, a cancellation, a duplicate, a status request, and so on. Every transaction has a primary event code.

  • Secondary event codes, also called transaction codes, specify the type of transaction in detail. For example, a transaction’s secondary event code could say that the transaction is a catalog order, a rush order, or a request for a sample. Not all transaction types have secondary event codes.

PeopleSoft applications, on the other hand, determine the action to take on a transaction using a single action code. Therefore, when an EDI agent processes an EDI transaction, it needs to convert its event codes into a PeopleSoft action code.

Using PeopleSoft EDI Manager, you specify which pairs of event codes are translated into which action codes. Because you may want to process transactions differently, depending on which trading partner they come from, EDI Manager enables you to define different event code-to-action code translations for each trading partner.

After you complete the following activities, you must specify a profile for each trading partner.

To define primary or secondary event codes:

  1. Select PeopleTools > EDI Manager > Convert EDI/PeopleSoft Code.

  2. Select Primary Event Codes orSecondary Event Codes.

    You can search for an existing value or add a new value by clicking the link.

  3. Enter the event code as it will appear in PeopleSoft business documents.

  4. Enter a description of the event code and save the page.

    This description is for your information only. It does not affect processing.

PeopleSoft delivers EDI Manager with a complete set of codes for the actions that standard PeopleSoft applications support. Add new action codes only if you create new programs that handle new actions.

To define an action code:

  1. Select PeopleTools > EDI Manager > Convert EDI/PeopleSoft Code > Action Codes.

  2. Click the Add a New Value tab.

  3. In the EC Action Code field, enter the action code as you want the EDI agent to write it in the electronic commerce staging tables.

    Click the Add button.

    The EC Action Code Definition page appears.

  4. Enter a description of the action code and save the page.

    This description is for your information only. It does not affect processing.