Documente Academic
Documente Profesional
Documente Cultură
Revision History
System Owners
• Oracle Applications - Fixed Assets
IT Review
• Manager, Business Applications Analysts
• Manager, Business Application Development
Purpose
Overview
Oracle Fixed Assets generates accounts using a workflow process called FA
Account Generator. This process will be called by the application to generate an
asset related account when the account is needed to complete a transaction.
Oracle Fixed Assets can generate 25 different account types for a particular
asset.
Oracle Fixed Assets also has a concurrent process called Generate Accounts,
short name FAGDA (Fixed Assets Generate Distribution Accounts) that will
generate and store from 14 to 23 of the 25 accounts that may be needed by an
asset in it’s lifetime. The FAGDA concurrent process generates the accounts by
calling the FA Account Generator process for each active distribution for the
asset book for the process was run.
When a process or transaction needs an account, if the account is one of the pre-
generated accounts, it first checks this table and uses the pre-generated ccid if it
is populated therein. If the account is not present, then a call to workflow is
made and the account generated.
The type of account you want to build determines which process you need to
modify. If you want to modify an account driven by the category level (i.e.
defined in the asset categories form), you must use the Generate Category Level
account process. The following table lists all the Account Generator processes
and the names of the accounts that each process generates.
The default workflow for the Category Level accounts pulls the required
segments from three different account combinations:
• Expense account (DISTRIBUTION_CCID)
• Default account (DEFAULT_CCID)
• Various accounts from the category definition
The default workflow for the book level accounts is identical to the category level
except that the natural account segment comes from the Book Controls rather
than from the category.
After obtaining and modifying the workflow definition per requirements the
modified workflow needs to be tested.
CURSOR cur_fa_books (
p_lookup_code VARCHAR2 )IS
SELECT flv.lookup_code
FROM apps.fnd_lookup_values flv
WHERE flv.lookup_type = 'FA BOOKS'
AND flv.lookup_code = p_lookup_code
AND flv.LANGUAGE = 'US'
AND flv.enabled_flag = 'Y'
AND SYSDATE BETWEEN NVL(START_DATE_ACTIVE,SYSDATE)
Workflow Specification Template 1.0 Page 8 of 18 54327912.doc
AND NVL(END_DATE_ACTIVE,'31-DEC-4712');
l_book_name VARCHAR2(200);
l_default_ccid NUMBER;
-- l_uk_book VARCHAR2(20) := 'UK_BOOK';
-- l_in_book VARCHAR2(20) :='IN_BOOK' ;
l_custom VARCHAR2(20) := 'CUSTOM';
l_book_type_code1 apps.fnd_lookup_values.lookup_code%TYPE;
l_book_type_code2 apps.fnd_lookup_values.lookup_code%TYPE;
BEGIN
IF (funcmode = 'RUN') THEN
l_book_type_code1 :=
wf_engine.getitemattrtext(itemtype, itemkey, 'BOOK_TYPE_CODE');
l_default_ccid :=
wf_engine.getitemattrnumber(itemtype, itemkey, 'DEFAULT_CCID');
IF cur_fa_books%ISOPEN THEN
CLOSE cur_fa_books;
END IF;
-- RESULT := 'COMPLETE:'||l_in_book;
ELSE
RESULT := 'COMPLETE:';
RETURN;
END IF;
Make sure you are in a UK responsibility. Create a new asset in the Colorcon UK
book using the Asset Workbench forms. Navigation is > Fixed Assets >Assets >
Assets Workbench. On the Find Assets form click the Quick Additions button
located on the lower right hand side. The Quick Additions form will be presented
and you should complete the following fields:
• Asset Number = My initials + TEST + sequence. (I.E. MFTEST001)
• Description = Same as Asset number
• Category = 020.030.000
Navigate to the Book section of the form
• Book = COLORCON UK
• Cost = $10,000
Before navigating to the Assignments section of the form make sure the
Depreciate flag is checked.
• Units = 1
• Expense Account = 220.000.600.77027.000.000
• Location = 220.200.220.600.000
Hit the done button to commit the addition. For the next part of the test you will
need the asset Id and Book Type Code. From the form toolbar select > help >
diagnostics > examine. Change the field value from asset_number to asset_id
and note the value for the id. The Book Type Code is Colorcon UK.
When you obtain the necessary parameters for testing you can run the account
generator test which is located in the $FA_TOP/admin/sql directory and is called
faxagtst.sql. There are seven input parameters for this test: account_type,
book, flex_structure, distribution_ccid, account_segment, default_ccid and
account_ccid. The specifics regarding this test are documented in Metalink and
can be found using Doc ID: Note:131483.1. See reference in Appendix A of this
document.
User Interface
Execution Method
• The Concurrent Program that uses this workflow is called Generate
Accounts.
Code Structure
Pseudo code
<N/A>
Parameters
Workflow Definition
Filename faflxgrp.wft
Location $FND_TOP/bin/
Description Workflow used exclusively by the FA Account
Generator process
Item Type “FA Account Generator” within App or ”FAFLEXWF”
from command prompt
Program: XXXX
Description
Format
Style
Use in SRS
Other (Non-standard settings)
Parameters
SE Prompt Parameter/Tok Requir Displ Value Set Default Default
Q en ed ay Type Value
N/ N/A N/A N/A N/A N/A N/A N/A
A
Request Group(s)
• XXXX
Tables/Views
(All objects assumed to be visible to APPS user)
Modified Generate Book Level Accounts Process to have new function ‘Check
Book Type Code ‘ . This function does validation and take a route to custom
flow for UK book . For the other books Original standard flow is followed .
Function ‘Check Book Type Code ‘ uses databas package procedure
fa_acct_generator.check_Book_type .
The natural account (segment4) defined on this Categories form will be used by the default
work flow to complete the accounting flexfield for all the Category Level accounts.
The natural account (segment4) defined on this Book Controls form will be used by the
default work flow to complete the accounting flexfield for all the Book Level accounts. The
natural accounts depicted on this screenshot are located within the red box.
The Region (segment2), Cost Center (segment3), Project Code (segment5) and extra
segment (segment6) values defined in the Account Generator Defaults section of this form
will be used by the default workflow process to complete the accounting flexfield for all Book
Level accounts. The default accounts are located at the bottom of this form within the red
circle.