FA Reserve Summary - draft

Description
Categories: BI Publisher
Application: Assets
Source: Reserve Summary Report (XML) - Not Supported: Reserved For Future Use
Short Name: FASRSVES_XML
DB package: FA_FASRSVES_XMLP_PKG
SELECT
	&ACCT_FLEX_BAL_SEG					COMP_CODE,
	NVL (&ACCT_FLEX_ACCT_SEG, BAL.Category_Books_Account)	ACCOUNT,
	BAL.Category_Books_Account Category_Books_Account,
	&ACCT_FLEX_COST_SEG					COST_CTR,
	round(SUM (DECODE (BAL.Source_Type_Code, 
		'BEGIN', NVL(BAL.Amount,0), NULL)) ,:PRECISION) 				BEGIN,
	round(SUM (DECODE (BAL.Source_Type_Code, 
		'ADDITION', NVL(BAL.Amount,0), NULL)) ,:PRECISION) 				ADDITION,
	round(SUM (DECODE (BAL.Source_Type_Code, 
		'DEPRECIATION', NVL(BAL.Amount,0), NULL)) ,:PRECISION) 			DEPRECIATION,
	round(SUM (DECODE (BAL.Source_Type_Code, 
		'RECLASS', NVL(BAL.Amount,0), NULL)),:PRECISION) 	 			RECLASS,
	round(SUM (DECODE (BAL.Source_Type_Code, 
		'RETIREMENT', -NVL(BAL.Amount,0), NULL)),:PRECISION) 				RETIREMENT,
	round(SUM (DECODE (BAL.Source_Type_Code, 
		'REVALUATION', NVL(BAL.Amount,0), NULL)),:PRECISION) 	 			REVALUATION,
	round(SUM (DECODE (BAL.Source_Type_Code, 
		'TAX', NVL(BAL.Amount,0), NULL)) ,:PRECISION) 					TAX,
	round(SUM (DECODE (BAL.Source_Type_Code, 
		'TRANSFER', NVL(BAL.Amount,0), NULL)) ,:PRECISION) 	TRANSFER,
	round(SUM (DECODE (BAL.Source_Type_Code, 
		'END', NVL(BAL.Amount,0), NULL)),:PRECISION) 	 				END, 
	fnd_flex_xml_publisher_apis.process_kff_combination_1('comp_code_dsp', 'SQLGL', 'GL#', dhcc.CHART_OF_ACCOUNTS_ID, NULL, dhcc.CODE_COMBINATION_ID, 'GL_BALANCING', 'Y', 'VALUE') COMP_CODE_DSP, 
	FA_FASRSVES_XMLP_PKG.bal_out_of_balanceformula(:BAL_BEGIN, :BAL_ADD, :BAL_DEPRN, :BAL_RECLASS, :BAL_RETIRE, :BAL_ADJUST, :BAL_TRANS, :BAL_END) BAL_OUT_OF_BALANCE, 
	fnd_flex_xml_publisher_apis.process_kff_combination_1('account_dsp', 'SQLGL', 'GL#', ajcc.CHART_OF_ACCOUNTS_ID, NULL, ajcc.CODE_COMBINATION_ID, 'GL_ACCOUNT', 'Y', 'VALUE') ACCOUNT_DSP_1,
	FA_FASRSVES_XMLP_PKG.acct_out_of_balanceformula(:ACCT_BEGIN, :ACCT_ADD, :ACCT_DEPRN, :ACCT_RECLASS, :ACCT_RETIRE, :ACCT_ADJUST, :ACCT_TRANS, :ACCT_END) ACCT_OUT_OF_BALANCE, 
	fnd_flex_xml_publisher_apis.process_kff_combination_1('cost_ctr_dsp', 'SQLGL', 'GL#', dhcc.CHART_OF_ACCOUNTS_ID, NULL, dhcc.CODE_COMBINATION_ID, 'FA_COST_CTR', 'Y', 'VALUE') COST_CTR_DSP,
	FA_FASRSVES_XMLP_PKG.adjustformula(round ( SUM ( DECODE ( BAL.Source_Type_Code , 'TAX' , NVL ( BAL.Amount , 0 ) , NULL ) ) , :PRECISION ), round ( SUM ( DECODE ( BAL.Source_Type_Code , 'REVALUATION' , NVL ( BAL.Amount , 0 ) , NULL ) ) , :PRECISION )) ADJUST, 
	FA_FASRSVES_XMLP_PKG.out_of_balanceformula(round ( SUM ( DECODE ( BAL.Source_Type_Code , 'BEGIN' , NVL ( BAL.Amount , 0 ) , NULL ) ) , :PRECISION ), round ( SUM ( DECODE ( BAL.Source_Type_Code , 'ADDITION' , NVL ( BAL.Amount , 0 ) , NULL ) ) , :PRECISION ), round ( SUM ( DECODE ( BAL.Source_Type_Code , 'DEPRECIATION' , NVL ( BAL.Amount , 0 ) , NULL ) ) , :PRECISION ), round ( SUM ( DECODE ( BAL.Source_Type_Code , 'RECLASS' , NVL ( BAL.Amount , 0 ) , NULL ) ) , :PRECISION ), round ( SUM ( DECODE ( BAL.Source_Type_Code , 'RETIREMENT' , - NVL ( BAL.Amount , 0 ) , NULL ) ) , :PRECISION ), :ADJUST, round ( SUM ( DECODE ( BAL.Source_Type_Code , 'TRANSFER' , NVL ( BAL.Amount , 0 ) , NULL ) ) , :PRECISION ), round ( SUM ( DECODE ( BAL.Source_Type_Code , 'END' , NVL ( BAL.Amount , 0 ) , NULL ) ) , :PRECISION )) OUT_OF_BALANCE, 
	FA_FASRSVES_XMLP_PKG.reval_tax_flagformula(round ( SUM ( DECODE ( BAL.Source_Type_Code , 'REVALUATION' , NVL ( BAL.Amount , 0 ) , NULL ) ) , :PRECISION ), round ( SUM ( DECODE ( BAL.Source_Type_Code , 'TAX' , NVL ( BAL.Amount , 0 ) , NULL ) ) , :PRECISION )) REVAL_TAX_FLAG
FROM
	FA_BALANCES_REPORT_GT BAL,
	GL_CODE_COMBINATIONS DHCC,
	GL_CODE_COMBINATIONS AJCC
WHERE
	DHCC.Code_Combination_ID	= BAL.Distribution_CCID
AND	
	AJCC.Code_Combination_ID (+)	= BAL.Adjustment_CCID
AND
	:DO_INSERT = 1
GROUP BY
	&ACCT_FLEX_BAL_SEG,
	NVL (&ACCT_FLEX_ACCT_SEG, BAL.Category_Books_Account),
	&ACCT_FLEX_COST_SEG,
	--ADDED
    fnd_flex_xml_publisher_apis.process_kff_combination_1('comp_code_dsp', 'SQLGL', 'GL#', dhcc.CHART_OF_ACCOUNTS_ID, NULL, dhcc.CODE_COMBINATION_ID, 'GL_BALANCING', 'Y', 'VALUE'),fnd_flex_xml_publisher_apis.process_kff_combination_1('account_dsp', 'SQLGL', 'GL#', ajcc.CHART_OF_ACCOUNTS_ID, NULL, ajcc.CODE_COMBINATION_ID, 'GL_ACCOUNT', 'Y', 'VALUE'),fnd_flex_xml_publisher_apis.process_kff_combination_1('cost_ctr_dsp', 'SQLGL', 'GL#', dhcc.CHART_OF_ACCOUNTS_ID, NULL, dhcc.CODE_COMBINATION_ID, 'FA_COST_CTR', 'Y', 'VALUE'), BAL.Category_Books_Account
ORDER BY
		COMP_CODE,ACCOUNT,COST_CTR
	--1,2,3
Parameter Name SQL text Validation
Report Type
 
To Period
 
LOV Oracle
From Period
 
LOV Oracle
Set of Books Currency
 
LOV Oracle
Book
 
LOV Oracle
Ask a question