您好,登錄后才能下訂單哦!
|
How to Identify Account Code Combinations That Are Misclassified And Have An Account_type Different From Account (文檔 ID 259210.1) |
Applies to:Oracle General Ledger - Version 11.5.10.2 and laterInformation in this document applies to any platform. GoalHow to identify account code combinations which have a different account_type to that defined in the Account Flexfield Segment Value, in order to prevent balance problems related to misclassified accounts in the beginning of a new year? Solution
The following script should be able to identify the misclassified code combinations.
Query for R11i:
select c.chart_of_accounts_id coa, c.concatenated_segments code_combination, c.code_combination_id ccid, c.gl_account_type type_is, substr(v.compiled_value_attributes,5,1) should_be from gl_code_combinations_kfv c, fnd_flex_values v, fnd_id_flex_segments s, gl_sets_of_books b where b.short_name = '&SOBNAME' and c.chart_of_accounts_id = s.id_flex_num and c.template_id is null and c.chart_of_accounts_id = b.chart_of_accounts_id and s.application_id = 101 and s.id_flex_code = 'GL#' and s.segment_num = &&SEGNUM and s.flex_value_set_id = v.flex_value_set_id and v.flex_value = c.segment&&SEGNUM and c.gl_account_type != substr(v.compiled_value_attributes,5,1) ;
Query for R12:
SELECT c.chart_of_accounts_id coa, c.concatenated_segments code_combination, c.code_combination_id ccid, c.gl_account_type type_is, SUBSTR(v.compiled_value_attributes,5,1) should_be FROM gl_code_combinations_kfv c, fnd_flex_values v, fnd_id_flex_segments s, gl_ledgers b WHERE b.short_name = '&LEDGERNAME' AND c.chart_of_accounts_id = s.id_flex_num AND c.template_id IS NULL AND c.chart_of_accounts_id = b.chart_of_accounts_id AND s.application_id = 101 AND s.id_flex_code = 'GL#' AND s.segment_num = &SEGNUM AND s.flex_value_set_id = v.flex_value_set_id AND v.flex_value = c.SEGMENT&SEGNUM AND c.gl_account_type != SUBSTR(v.compiled_value_attributes,5,1) ;
SELECT glsob.name,
glsob.short_name, glsob.set_of_books_id FROM gl_sets_of_books glsob WHERE glsob.chart_of_accounts_id = &ChartOfAccountsId; 向AI問一下細(xì)節(jié)
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。 猜你喜歡最新資訊
相關(guān)推薦相關(guān)標(biāo)簽AI
助 手 |