ORACLE EBS by transaction consolidation的详细流程(二)[@more@]
1. post动作,在进行post动作的时候,应该是首先将GL_JE_BATCHES表中的batch记录进行标记,然后提交post的request,所以post动作是以batch为单位的。单独post某个batch,可以通过GL_AUTOPOST_PKG中的POST_BATCHES procedure来实现。同时,ERP中有一个autopost的request可以实现批量post的,但首先得设定一个规则。
2. 关于consolidation的drilldown.
Consolidation的drilldown只能在inquiry中by account来drilldown. 而且子帐与父帐都是通过gl_import_references来关联的.
若是通过by transaction consolidation的,很简单,每一条目标sob journal line可drilldown回一条源SOB的journal line, gl_import_references表中记录的
Reference_4,reference_3,references_9栏位分别存储的je_batch_id, je_header_id, je_line_num.
若是通过by balance consolidation的, 则drilldown可能不准确,因为是通过journal line与account之间对应来drilldown的,而不是通过对应的journal line. 同样也需要通过gl_import_references表. gl_import_references表中记录的
Reference_3,reference_7,references_8栏位分别存储的code_combination_id, sob_id, je_line_num.
若consolidation的时候有勾选create summary journal, 那么可能一条目标SOB的journal line回在gl_import_references表中存在多条记录, 每一条对应一个源SOB的account, drilldown的时候,系统通过该account, sob_id, period_name来找源SOB下的所有journal line.
若consolidation的时候没有勾选create summary journal,那么一条目标SOB的journal line在gl_import_references表中存在一条记录,每条对应一个源SOB的account. Drilldown方法同上.
实际上,通过by transaction drilldown的journal,如果要drilldown,可以不通过gl_import_references表,直接通过gl_je_lines表中的数据就可以了,相关栏位对应如下:
references_1 : consolidation_id
references_2 : consolidation_run_id
references_3 : subsidiary je_header_id
references_4 : subsidiary je_line_num
references_5 : subsidiary code_combination_id
references_6 : comsolidation method
references_7 :SOURCEsob_id
references_8 :SOURCEperiod_name
references_9 : subsidiary je_batch_id
3. 整个过程中涉及的package有如下:GL_JOURNAL_IMPORT_PKG,GL_AUTOPOST_PKG.
4. consolidation的后续步骤,无论是一起程序自动提交还是跑完一个步骤以后手动提交,ORACLE都可以自动识别为consolidation的后续动作,所以都会update gl_consolidation_history中相关记录的栏位。
5. 程序实现consolidation过程如下:
apps.gl_cons_history_pkg.insert_row
apps.gl_cons_batches_pkg.insert_consolidation_batches
fnd_request.submit_request
('SQLGL',
'GLCCON',
'',
'',
FALSE,
TO_CHAR(p_consolidation_id),--consolidation_id
p_usage_code,--usage_code
p_from_period_name,--from_period
NULL, --from_date
p_to_period_name,--to_period
NULL, --to start date
NULL, --budget_fiscal_year
C_AMOUNT_TYPE,--amount_type
p_journal_import_flag,--journal_import_flag
p_method_code,--consolidation method
p_consolidation_run_id,--consolidation_run_id
'A', --actual flag
NULL, --from_budget_name
NULL, --to_budget_name
p_audit_mode_flag,--audit_mode_flag
'N', --create summary journal flag
'N', --all accounts flag
p_journal_posting_flag,--posting flag
'N', --remote flag
CHR(0)
);
6. journal import动作的实现
apps.gl_journal_import_pkg.populate_interface_control
fnd_request.submit_request
('SQLGL',
'GLLEZL',
'',
'',
FALSE,
TO_CHAR(v_interface_run_id),
TO_CHAR(p_set_of_books_id),
'N', --post_errors_to_suspense
NULL, --start date
NULL, --end date
'N', --create_summary_journals
'N', --import_descriptive_flex
CHR(0)
);
7. post动作的实现
apps.gl_autopost_pkg.post_batches
来自 “ ITPUB博客 ” ,链接:/767125/viewspace-910993/,如需转载,请注明出处,否则将追究法律责任。
如果觉得《ORACLE ERP consolidation流程(二)》对你有帮助,请点赞、收藏,并留下你的观点哦!