Professional Documents
Culture Documents
Intercompany Bookings
Note
Intercompany matching does not mean elimination between entity and
intercompany. SPICDATA calculates the difference between an entity and
intercompany. SPICBOOKING books the difference between an entity and
intercompany.
SPICDATA
Use this procedure to copy the declarations of all entities, instead of a single entity, in
order of intercompany account. SPICDATA concentrates into a single entity the
declarations of all other entities. This mechanism allows you to run a report matching
all of an entity’s declarations against the declarations involving it from other entities,
without the need to assign to each owner read permits into other entities.
Launch this procedure using the following logic statement:
*RUN_STORED_PROCEDURE = SPICDATA (parameters list)
Example:
*RUN_STORED_PROCEDURE = SPICDATA([%APP%], [%CATEGORY_SET%],
[%TIME_SET%], [%CURRENCY_SET%], [%ENTITY_SET%],
[%ACCOUNT_SET%], [%ACCDETAIL_SET%], [%DATASRC_SET%], [],
[%LOGTABLE%], [%SCOPETABLE%])
The stored procedure requires several parameters that must be passed in the correct
order and format, as described in the following table:
DataSrc Dimension
The property IC_ORIGINE is used to define the debit and credit where the calculated
difference is to be written.
The following example shows how to set the IC_ORIGINE property value in the
DATASRC dimension:
INPUT and IC_INPUT have I in IC_ORIGINE as the input value.
Debit1, Credit1, Debit2, and Credit2 are set for the calculation of Debit and
Credit.
ICDIFF is going to be used for booking the difference by SPICBOOKING, which
should be set in the ICBooking rule table. See the SPICBOOKING section below
for more information.
ICDIFF Difference - M
Intercompany
Balance Balance
Note
IC_ORIGINE is a mandatory property in DATASRC to use Intercompany Booking,
SPICDATA, and SPICBOOKING.
Account Dimension
Accounts for Receivable and Payable should belong to the same parent for
SPICBOOKING.
Example:
Assume there are transactions among entities A, B, and C. These transactions could
be represented in EVDRE as the following:
Receivable Payable
IC_INPUT A B 100.00
IC_INPUT A C 123.00
IC_INPUT B A 95.00
IC_INPUT C A 130.00
As shown in this example, there are differences in the transactions among the
Receivable and Payable accounts among the entities. Assume you have permissions
for only A, but you need to know whether there are differences from other entities or
not. Finding this out is impossible because of security, but you can calculate them by
SPICDATA.
After running SPICDATA, DEBIT, and CREDIT, which have transactions generated to
the property DATASRC such as Debit1, Credit1, Debit2 and Credit2, the
following appears:
Calculated result between A and B:
A is the seller against B
A to B Payable 95.00
B to A Receivable 100.00
C to A Payable 123.00
A to C Receivable 130.00
SPICBOOKING
Use this procedure to automatically generate the bookings that make the
intercompany declarations match.
Launch this procedure using the following logic statement:
*RUN_STORED_PROCEDURE = SPICBOOKING(parameters list)
Example:
*RUN_STORED_PROCEDURE = SPICBOOKING([%APP%], [%CATEGORY_SET%],
[%TIME_SET%], [%CURRENCY_SET%], [], [%LOGTABLE%],
[%SCOPETABLE%])
The stored procedure requires several parameters that must be passed in the correct
order and format, as described in the following table:
clcICBooking_{app} table
The clcICBooking_{app} table defines the original DATASRC and destination
DATASRC.
DIFF_TYPE field
This field may contain the following values:
Seller Rule: Calculate differences between Receivable and Payable and make
corrections to the Buyer side.
Buyer Rule: Calculate differences between Receivable and Payable and make
correction to the Seller’s side.
Greatest Amount: Not currently supported.
DIMENSION field
No longer supported.
MAX_AMOUNT field
This field identifies the maximum amount to be calculated. For example, if
MAX_AMOUNT is set to 100, then values smaller than 100 are calculated.
In the case of <Buyer Rule>, fixed differences are booked on the seller accounts.
Example
Transaction between A and B using SPICDATA
Journal Entry
Exp - 95 A/P - 95
In this case, SPICBOOKING for DEBIT and CREDIT of B (Buyer) on the Seller’s rule
generates two journal entries in DEBIT and CREDIT of B as showing in the
following figure:
Journal Entry
Exp - 95 A/P - 95
A/P Other – 5 A/P (Payable) – 5
Exp – 5 Exp Other – 5
Example
Seller Rule
In most cases, the balance must be zero. However, this example shows a case
which involves a Seller’s rule with B/S except P/L.
This is an example used in SPICDATA. Assume there are the following transactions
among entities:
As illustrated, the two journal entries in ICDIFF are generated to each Buyer.
After the booking, we must run the SPICDATA procedure again, which results in the
following: