Documente Academic
Documente Profesional
Documente Cultură
Account
Generator
[ID
216831.1]
Modified 28-
SEP-2010
Type FAQ
Status
PUBLISHED
Applies to:
Oracle Purchasing
Purpose
PURCHASE ORDERS: Account Generator - Release 10.7, 11.0, 11.5.X
Frequently reported how-to questions relating to product specific programs.
I have been using the Flex builder rules in Release 10.7 to build the accounts.
Can I continue using the same setup in account generator in 11.x also?
Yes. The same setup can be used with account generator also. To achieve this, the following
actions should be performed on up gradation to account generator.
- Run the program in $FND_TOP/bin/FNDFBPLS. This will create a PL/SQL package that will
contain all the flex builder rules.
- Apply the newly created PL/SQL file to the database. This will create a package called
PO_PO_CHARGE_ACCOUNT /
PO_REQ_CHARGE_ACCOUNT
- Verify that the package is created successfully and that it is valid in database.
- Choose the Account Generator Top level process as Generate Account Using Flex Builder.
- Test the account generator.
What are the steps to generate the WFSTAT output for Account Generator?
1. Set the following profiles:
- Account Generator: Run in Debug Mode=> Yes
- Account Generator: Purge Runtime Data=> No
PO: Set Debug Workflow On => Yes
2. Make sure that the concurrent program "Purge Workflow Obsolete Runtime Data" is NOT
running.
3. Open Purchase Order/Requisitions form, go to the distributions window, enter necessary fields
and click on charge account field to start generating the charge account. After the account
generator has done building the account, or errors out, do the following from the toolbar (DO
NOT exit the form or navigate to any other block or record, otherwise this information would be
lost):
Help=> Diagnostics => Examine
Enter in 1st field => parameter
Enter in 2nd field => charge_acc_wf_itemkey
Then tab out. The Item key will appear in the third field.
4. Now save the purchase order/requisition. If you are not able to save, then clear the distribution
record and navigate back to the shipment window and save the form. Saving the form is must,
because a commit is required to save the workflow information in tables, for generating the
wfstat output.
5. If step#3 could not give you an item key, then use the following query to identify the relevant
item key:
Select item_key, item_type, begin_date
from wf_items
where item_type = '&item_type'
order by begin_date desc;
For PO, use 'POWFPOAG' item type in above query, and for requisition, use 'POWFRQAG'.
6. To generate the WFSTAT output,
Run the sql in $FND_TOP/sql/wfstat.sql with above item_type and item_key. Spool the output.
7. To get the wf debug information, run the following query:
SELECT item_key, item_type, debug_message
FROM po_wf_debug
WHERE item_key = '&Item_key'
ORDER BY execution sequence;
What exactly does profile option "Account Generator: Run in Debug Mode"
do?
This profile option controls whether the account generator workflow process runs in synchronous
mode (workflow-on-a-fly) or asynchronous/persistent mode (save the runtime data).
When this profile is NULL or "No", the workflow runs in synchronous mode and it will NOT
store any runtime data in database. So you cannot generate the wfstat etc for debug purposes.
However once you set this profile option to "Yes", then the process would run in persistent
mode, thereby the runtime data would be stored in database. Now you can generate the wfstat
etc.
Will the account generator build the charge account based on project
information?
No. By default, the Account Generator process as seeded in Oracle Purchasing would not
consider the project information to build the account. To achieve this functionality, you should
customize the Account Generator to consider the project details. There is a dummy sub process
'Build Project Related Account' seeded in the Account Generator workflow, available for
customization. You would also have to modify function
PO_WF_PO_CHARGE_ACC.IS_PO_PROJECT_RELATED to return a value of "True".
For more information on how to customize the Account Generator, please refer to the manual
Oracle Purchasing Account Generator Workflow Customization Example.
Will the account be generated for amount based/one time item lines?
No the Account will not be generated if you are using the Account Generator as seeded in Oracle
Purchasing. Either the account should be manually entered or the account generator should be
customized.
If the account generator process raises a blank error message, what does it
mean?
Check the invalid objects in the database. Recompile the invalid objects.
mtl_secondary -
. . Asset mtl_secondary_inventories
. . . .
Expense . . expense_account -
mtl_system_items
default_code_combination_id
. (Req) -hr_employees_current_v
. . . .
st_eamcost_pub.get_direct_item_ch
WIP - type 6,7 arge_acct
. .
overhead_account -
. . Bom Id 5 wip_discrete_jobs
outside_processing_account -
. . 4 wip_discrete_jobs
resource_account -
. . 3 wip_discrete_jobs
material_overhead_account -
. . 2 wip_discrete_jobs
material_account -
. . 1 wip_discrete_jobs
. . . .
Shop Floor . . .
overhead_account -
. . Bom Id 5 wip_discrete_jobs
outside_processing_account -
. . 4 wip_discrete_jobs
resource_account -
. . 3 wip_discrete_jobs
material_overhead_account
. . 2 -wip_discrete_jobs
material_account -
. . 1 wip_discrete_jobs
. . NULL flex_value - fnd_flex_values_vl
. . . .
In this Document
Goal
Solution
Applies to:
Oracle Purchasing - Version: 11.0.3 to 12.1.3 -
Release: 11 to 12.1
Information in this document applies to any platform.
*** Checked for relevance on 11-NOV-2010 ***
Goal
- Application 1: Purchasing
- Application 2: Inventory
- Application 3: Projects
- leave all other parameters blank
- PO Account Generator
- PO Requisition Account Generator
Block: parameter
Field: charge_acc_wf_itemkey
Value: <The value you get here is the
item_key>
b) SQL> @$FND_TOP/sql/wfstat.sql
- Item type: POWFPOAG
- Item key: <Value of item_key from above>
- $PO_TOP/patch/115/import/US/poxwfpag.wft
- $PO_TOP/patch/115/import/US/poxwfrag.wft
Related
Products
Errors
Back to top