Previous  Next          Contents  Index  Navigation    Library

Collecting Transactions Using the Open Interface Directly

Oracle Sales Compensation provides a facility for collecting transactions from an external source such as your own Billing system or non-Oracle Receivables system by populating an interim CN_COMM_LINES_API table within Oracle Sales Compensation. Once the transactions have been populated into the CN_COMM_LINES_API table, then the "Transaction Interface Loader" concurrent program is run to bring the transactions into the main transaction table called CN_COMMISSION_LINES. Oracle Sales Compensation will calculate the transactions in the CN_COMMISSION_LINES table and update these transactions with the calculated amounts.

The CN_COMM_LINES_API table contains many of the same columns as the CN_COMMISSION_LINES table in which Oracle Sales Compensation stores all information relevant to a transaction as it is processed. In general, the CN_COMM_LINES_API table excludes those columns of the CN_COMMISSION_LINES table which are filled in with information during transaction processing.

The structure of the CN_COMM_LINES_API table is as follows:

SALESREP_ID NOT NULL NUMBER (15) Enter the id of the salesperson who is the direct credit receiver. Required.
PROCESSED_DATE NOT NULL DATE Enter the date of the transaction.
PROCESSED_PERIOD_ID NUMBER (15) Optionally, enter the period the process date falls in.
TRANSACTION_ AMOUNT NOT NULL NUMBER Enter the amount of sales credit
TRX_TYPE NOT NULL VARCHAR2 (30) Enter a value such as INVOICE.
REVENUE_CLASS_ID NUMBER (15) Optionally, enter the ID of the revenue class for this transaction.
LOAD_STATUS VARCHAR2 (30) Enter NULL when the record is first entered; this field is updated to LOADED when Load.API is run.
ATTRIBUTE1 through ATTRIBUTE45 VARCHAR2 (80) Descriptive flexfield columns. These columns map to the attribute columns in CN_COMMISSION_LINES table.
EMPLOYEE_NUMBER NUMBER(15) Should be the salesrep number in the Sale workbench.
SALESREP_NUMBER NUMBER(15) Not used.
ROLLUP_DATE DATE Not used.
ROLLUP_PERIOD_ID NUMBER(15) The period-id for creating rollup transactions.
SOURCE_DOC_ID NUMBER(15) Not used.
SOURCE_DOC_TYPE VARCHAR2(30) To say what source sales compensation is being fed from an AR or OE etc.
TRANSACTION_CURRENCY_CODE VARCHAR2(15) Transaction currency code.
EXCHANGE_RATE NUMBER If transaction currency code is not the same as the functional currency, then the exchange rate has to be entered which is multiplied by the transaction amount to get the functional currency.
ACCTD_TRANSACTION_AMOUNT NUMBER The system updates this column with functional currency amount.
TRX_ID NUMBER(15) Used by AR collection.
TRX_LINE_ID NUMBER(15) Used by AR collection.
TRX_SALES_LINE_ID NUMBER(15) Used by AR collection.
QUANTITY NUMBER(10) To enter the quantity on a transaction.

Attributes 1 through 45 are the descriptive flexfield columns you use to specify information not included in the base table. See Oracle Sales Compensation Technical Reference Manual Update for detailed information on Oracle Sales Compensation tables and columns.

Before populating the CN_COMM_LINES_API table and running the Transaction Interface Loader program, you should:

   To collect transactions using the open interface:

At this point there is no easy way to figure out why sometransactions fail to be collected. The only way to check is from SQLPLUS. The currently reported Errors in the LOAD_STATUS column,are:

Error Description
ERROR - TRX_TYPE Incorrect transaction type. Not in the list of ('INV', 'PMT', 'WO', 'CBK', 'GBK', 'CM').
ERROR - REVENUE_CLASS Incorrect revenue_class_id was entered but it does not exist in the CN_Revenue_Classes.
ERROR - NO EXCH RATE GIVEN For entering the multi-currency transactions the exchange rate for the foreign currency needs to be also entered.
ERROR - INCORRECT CONV GIVEN Incorrect conversion rate given.
ERROR - CANNOT CONV/DEFAULT Cannot convert the given acct_transaction_amount.
SALESREP ERROR The Salesrep Number is not valid.
PERIOD ERROR The Processed_Date/Processed_Period_ID does not exist in the CN_SRP_PERIODS table. That is, the Processed_date does not fall in between the salesrep's Active_From and Active_To periods.


         Previous  Next          Contents  Index  Navigation    Library