Home > Default > &column in report query

&column in report query

November 30Hits:0
Advertisement
Hi Friends,
I opened some of the complex reports in Oracle Applications and I see &column_name in the query.
Where does this variable column ask an input value for substitution?
I thought the input parameter is like this one > :P_INPUT
Thanks a lot

Answers

Hi again,
Please see before report or after trigger form.
Its a lexical parameter called in queryI tried to open an Oracle Apps report to study it (FAS400.rdf)
I found 3 queries:
Q_1
select count (*) from fa_system_controlsQ_2
SELECT
     &ACCT_FLEX_BAL_SEG     COMP_CODE,
     decode(TRANSACTION_TYPE,'B',RSV.RESERVE_ACCT, &ACCT_FLEX_ACCT_SEG )     GL_ACCOUNT,
     RSV.DEPRN_RESERVE_ACCT     RSV_ACCOUNT,
     &ACCT_FLEX_COST_SEG     COST_CENTER,
     AD.ASSET_NUMBER || '-' || AD.DESCRIPTION          
          ASSET_NUMBER,
     DATE_PLACED_IN_SERVICE          START_DATE,
     METHOD_CODE               METHOD,
     RSV.LIFE                    LIFE,
     RSV.RATE               ADJ_RATE,
     DS.BONUS_RATE               BONUS_RATE,
     RSV.CAPACITY               PROD,
     SUM(decode(transaction_type,'B',NULL,COST))               COST,
     SUM(RSV.DEPRN_AMOUNT)         DEPRN_AMOUNT,
     SUM(RSV.YTD_DEPRN)          YTD_DEPRN,
     SUM(RSV.DEPRN_RESERVE)          DEPRN_RESERVE,
     sum(decode(transaction_type,'B',NULL,nvl(PERCENT,0)))          PERCENT,
     TRANSACTION_TYPE          T_TYPE
FROM
     FA_RESERVE_LEDGER_GT     RSV,
     FA_ADDITIONS          AD,
     GL_CODE_COMBINATIONS     CC,
     &lp_fa_deprn_summary     DS
WHERE
     RSV.ASSET_ID          = AD.ASSET_ID
AND
     RSV.DH_CCID          = CC.CODE_COMBINATION_ID
AND
     DS.PERIOD_COUNTER (+)     = RSV.PERIOD_COUNTER     AND
     DS.BOOK_TYPE_CODE (+)     = :P_Book               AND
     DS.ASSET_ID (+)          = RSV.ASSET_ID
GROUP BY
     &ACCT_FLEX_BAL_SEG,
     decode(transaction_type,'B', RSV.RESERVE_ACCT,&ACCT_FLEX_ACCT_SEG),
     RSV.DEPRN_RESERVE_ACCT,
     &ACCT_FLEX_COST_SEG,
     AD.ASSET_NUMBER,
     AD.DESCRIPTION,
     DATE_PLACED_IN_SERVICE,
     METHOD_CODE,
     RSV.LIFE,
     RSV.RATE,
     RSV.CAPACITY,
     DS.BONUS_RATE,
     TRANSACTION_TYPE
ORDER BY
     1, 2, 3, 4, 5Q_3
SELECT Company_Name,
             Category_Flex_Structure,
             Location_Flex_Structure,
             Asset_Key_Flex_Structure,
             'P' a_partial_retirement,
             'F' a_full_retirement,
             'T' a_transfer_out,
             'N' a_non_depreciate,
             'R' a_reclass,
             'B' a_bonus
FROM   FA_SYSTEM_CONTROLSTriggers:
function AfterPForm return boolean is
begin
IF :p_ca_set_of_books_id <> -1999
THEN
  BEGIN
   select mrc_sob_type_code, currency_code
   into :p_mrcsobtype, :lp_currency_code
   from gl_sets_of_books
   where set_of_books_id = :p_ca_set_of_books_id;
  EXCEPTION
    WHEN OTHERS THEN
     :p_mrcsobtype := 'P';
  END;
ELSE
   :p_mrcsobtype := 'P';
END IF;
IF upper(:p_mrcsobtype) = 'R'
THEN
  :lp_fa_deprn_summary := 'FA_DEPRN_SUMMARY_MRC_V';
ELSE
  :lp_fa_deprn_summary := 'FA_DEPRN_SUMMARY';
END IF;
  return (TRUE);
end;
function BeforeReport return boolean is
begin
SRW.USER_EXIT('FND SRWINIT');
IF upper(:p_mrcsobtype) = 'R'
THEN
  fnd_client_info.set_currency_context(:p_ca_set_of_books_id);
END IF;
return (TRUE);
end;LEXICALS:
&ACCT_FLEX_BAL_SEG
&ACCT_FLEX_ACCT_SEG
&ACCT_FLEX_COST_SEG
&lp_fa_deprn_summaryReport Output Columns:
sset Number -  Date Placed Date                               Net Book     Proceeds of                                      Trans
Description     in Service  Retired        Cost Retired   Value Retired            Sale    Removal Cost       Gain/Loss     Number
--------------- ----------- ----------- --------------- --------------- --------------- --------------- --------------- ----------May question is ...instead of outputting it to the above....How can I create/make a "view" from the 3 queries?
Why is that I do not see any relation of the "lexicals" to the "afterform" and "beforereport" triggers?
Please help :(
Thanks a lot

Read other 5 answers

Tags:

Related Articles

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.591 s.