declare
  l_row STAR_REPORTS%rowtype;
  l_id  STAR_REPORTS.sr_uid%type;
  
  procedure insert_star_report_parameter_links(p_SR STAR_REPORTS%rowtype) is
  begin
   for srp_row in (select * from star_report_parameter_links rpl
                    where exists(
                    select *
                      from STAR_REPORT_PARAMETERs n where n.srp_uid = rpl.srp_uid
                      and sr_uid = l_uid
                      and parameter_name in ('Exclude If Contracted After',
                            'Folder', 'Cash Flow Type', 'Cash Flow Sub Type', 'Contract Number List',
                            'Cash Flow Status', 'Entity', 'Portfolio Code', 'Portfolio Sub Code',
                            'Contract Code', 'Contract Sub Code', 'Currencies', 'Base Currency', 'Exchange Rate Type',
                            'Spot FX rates on', 'Rounding', 'Contingent Liabilities', 'Counterparty', 'FX Conversion',
                            'Report Title', 'Flow Direction', 'End Date (Inclusive)', 'Start Date (Inclusive)',
                            'Include Contracts Based On'))
                    ) loop
      srp_row.sr_uid   := p_SR.sr_uid;
      srp_row.srpl_uid := STAR_REPORT_PARAMETER_LINK_SEQ.nextval;
      srp_row.AMENDED_BY := null;
      srp_row.date_entered := sysdate;
      dbms_output.put_line(p_SR.sr_uid);
      insert into STAR_REPORT_PARAMETER_LINKS values srp_row;
    end loop; 
  end;

begin
  for rec in (select * from STAR_REPORTS where lower(report_title) like 'all cashflows between dates - by value date%' and report_format in('E')) loop

  -- this param is passed to next procedure
    l_id := rec.sr_uid;

    rec.sr_uid := STAR_REPORT_SEQ.nextval;
    rec.report_title := 'Cashflow Projection';
    rec.date_entered := sysdate;
    rec.report_order := 103;
    rec.report_name  := 'RPA00440';
    insert into STAR_REPORTS values rec;
    insert_star_report_parameter_links(rec);
  end loop;
end;
/
  -- New Menue Item Script
PROMPT INSERT INTO star menu items licensed RPA00440
declare
 l_menue_item_name varchar2(400) := 'Cashflow Projection';
 l_row_smi  star_menu_items%rowtype;
 l_row_smil star_menu_items_licensed%rowtype;
begin
  l_row_smi.smi_uid          := star_menu_item_seq.NEXTVAL;
  l_row_smi.menu_item        := 'RPA00440';
  l_row_smi.item_type        := 'R'; /*Form, Report, yyy*/
  l_row_smi.menu_module      := 'Reports';
  l_row_smi.item_description := 'Cashflow Projection';
  l_row_smi.notes            := null;
  l_row_smi.entered_by       := user;
  l_row_smi.date_entered     := sysdate;
  l_row_smi.status           := '1';
  insert into star_menu_items values l_row_smi;
  
  l_row_smil.smil_uid          := STAR_MENU_ITEM_LICENSED_SEQ.NextVal;
  l_row_smil.sl_uid            := 1;
  l_row_smil.smi_uid           := l_row_smi.smi_uid;
  l_row_smil.entered_by        := user;
  l_row_smil.date_entered      := sysdate;
  l_row_smil.status            := '1';
  l_row_smil.enhanced_security := 'Y';
  insert into star_menu_items_licensed values l_row_smil;
end;
/

-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-- create global temporary table
  truncate table EXCEL_EXPORT_TABLE
  drop table EXCEL_EXPORT_TABLE;
  CREATE GLOBAL TEMPORARY TABLE EXCEL_EXPORT_TABLE
   (ROW_NUM NUMBER,
    SJS_UID	NUMBER(15,0),
	ROW_TYPE VARCHAR2(1 BYTE) DEFAULT 'D',
    CASHFLOWS VARCHAR2(512 BYTE)
   ) ON COMMIT PRESERVE ROWS ;

begin
  for i in 1..996 loop
    dbms_output.put_line(i);
    execute immediate 'alter table EXCEL_EXPORT_TABLE add  COL' || i || ' CLOB';
  end loop;
end;
/
---------------------------
drop table star_sql;
CREATE TABLE STAR_SQL (
  ss_uid NUMBER GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
  code varchar2(100)  NOT NULL UNIQUE,
  query CLOB,
  description VARCHAR2(400)
);
----------------------
GRANT SELECT, INSERT, UPDATE, DELETE ON EXCEL_EXPORT_TABLE TO STAR_ENQUIRY;
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
  CREATE OR REPLACE EDITIONABLE VIEW RPA00440_EXCELOUTPUT (ROW_TYPE, ROW_ENTRY) AS 
  select row_type, nvl(cashflows, '')||chr(9)||nvl(COL1, '')||chr(9)||nvl(COL2, '')||chr(9)||nvl(COL3, '')||chr(9)||nvl(COL4, '')||chr(9)||nvl(COL5, '')||chr(9)||nvl(COL6, '')||chr(9)||nvl(COL7, '')||chr(9)||nvl(COL8, '')||chr(9)||nvl(COL9, '')||chr(9)||nvl(COL10, '')||chr(9)||
       nvl(COL11, '')||chr(9)||nvl(COL12, '')||chr(9)||nvl(COL13, '')||chr(9)||nvl(COL14, '')||chr(9)||nvl(COL15, '')||chr(9)||nvl(COL16, '')||chr(9)||nvl(COL17, '')||chr(9)||nvl(COL18, '')||chr(9)||nvl(COL19, '')||chr(9)||nvl(COL20, '')||chr(9)||
       nvl(COL21, '')||chr(9)||nvl(COL22, '')||chr(9)||nvl(COL23, '')||chr(9)||nvl(COL24, '')||chr(9)||nvl(COL25, '')||chr(9)||nvl(COL26, '')||chr(9)||nvl(COL27, '')||chr(9)||nvl(COL28, '')||chr(9)||nvl(COL29, '')||chr(9)||nvl(COL30, '')||chr(9)||
       nvl(COL31, '')||chr(9)||nvl(COL32, '')||chr(9)||nvl(COL33, '')||chr(9)||nvl(COL34, '')||chr(9)||nvl(COL35, '')||chr(9)||nvl(COL36, '')||chr(9)||nvl(COL37, '')||chr(9)||nvl(COL38, '')||chr(9)||nvl(COL39, '')||chr(9)||nvl(COL40, '')||chr(9)||
       nvl(COL41, '')||chr(9)||nvl(COL42, '')||chr(9)||nvl(COL43, '')||chr(9)||nvl(COL44, '')||chr(9)||nvl(COL45, '')||chr(9)||nvl(COL46, '')||chr(9)||nvl(COL47, '')||chr(9)||nvl(COL48, '')||chr(9)||nvl(COL49, '')||chr(9)||nvl(COL50, '')||chr(9)||
       nvl(COL51, '')||chr(9)||nvl(COL52, '')||chr(9)||nvl(COL53, '')||chr(9)||nvl(COL54, '')||chr(9)||nvl(COL55, '')||chr(9)||nvl(COL56, '')||chr(9)||nvl(COL57, '')||chr(9)||nvl(COL58, '')||chr(9)||nvl(COL59, '')||chr(9)||nvl(COL60, '')||chr(9)||
       nvl(COL61, '')||chr(9)||nvl(COL62, '')||chr(9)||nvl(COL63, '')||chr(9)||nvl(COL64, '')||chr(9)||nvl(COL65, '')||chr(9)||nvl(COL66, '')||chr(9)||nvl(COL67, '')||chr(9)||nvl(COL68, '')||chr(9)||nvl(COL69, '')||chr(9)||nvl(COL70, '')||chr(9)||
       nvl(COL71, '')||chr(9)||nvl(COL72, '')||chr(9)||nvl(COL73, '')||chr(9)||nvl(COL74, '')||chr(9)||nvl(COL75, '')||chr(9)||nvl(COL76, '')||chr(9)||nvl(COL77, '')||chr(9)||nvl(COL78, '')||chr(9)||nvl(COL79, '')||chr(9)||nvl(COL80, '')||chr(9)||
       nvl(COL81, '')||chr(9)||nvl(COL82, '')||chr(9)||nvl(COL83, '')||chr(9)||nvl(COL84, '')||chr(9)||nvl(COL85, '')||chr(9)||nvl(COL86, '')||chr(9)||nvl(COL87, '')||chr(9)||nvl(COL88, '')||chr(9)||nvl(COL89, '')||chr(9)||nvl(COL90, '')||chr(9)||
       nvl(COL91, '')||chr(9)||nvl(COL92, '')||chr(9)||nvl(COL93, '')||chr(9)||nvl(COL94, '')||chr(9)||nvl(COL95, '')||chr(9)||nvl(COL96, '')||chr(9)||nvl(COL97, '')||chr(9)||nvl(COL98, '')||chr(9)||nvl(COL99, '')||chr(9)||nvl(COL100, '')||chr(9)||
       nvl(COL101, '')||chr(9)||nvl(COL102, '')||chr(9)||nvl(COL103, '')||chr(9)||nvl(COL104, '')||chr(9)||nvl(COL105, '')||chr(9)||nvl(COL106, '')||chr(9)||nvl(COL107, '')||chr(9)||nvl(COL108, '')||chr(9)||nvl(COL109, '')||chr(9)||nvl(COL110, '')||chr(9)||
       nvl(COL111, '')||chr(9)||nvl(COL112, '')||chr(9)||nvl(COL113, '')||chr(9)||nvl(COL114, '')||chr(9)||nvl(COL115, '')||chr(9)||nvl(COL116, '')||chr(9)||nvl(COL117, '')||chr(9)||nvl(COL118, '')||chr(9)||nvl(COL119, '')||chr(9)||nvl(COL120, '')||chr(9)||
       nvl(COL121, '')||chr(9)||nvl(COL122, '')||chr(9)||nvl(COL123, '')||chr(9)||nvl(COL124, '')||chr(9)||nvl(COL125, '')||chr(9)||nvl(COL126, '')||chr(9)||nvl(COL127, '')||chr(9)||nvl(COL128, '')||chr(9)||nvl(COL129, '')||chr(9)||nvl(COL130, '')||chr(9)||
       nvl(COL131, '')||chr(9)||nvl(COL132, '')||chr(9)||nvl(COL133, '')||chr(9)||nvl(COL134, '')||chr(9)||nvl(COL135, '')||chr(9)||nvl(COL136, '')||chr(9)||nvl(COL137, '')||chr(9)||nvl(COL138, '')||chr(9)||nvl(COL139, '')||chr(9)||nvl(COL140, '')||chr(9)||
       nvl(COL141, '')||chr(9)||nvl(COL142, '')||chr(9)||nvl(COL143, '')||chr(9)||nvl(COL144, '')||chr(9)||nvl(COL145, '')||chr(9)||nvl(COL146, '')||chr(9)||nvl(COL147, '')||chr(9)||nvl(COL148, '')||chr(9)||nvl(COL149, '')||chr(9)||nvl(COL150, '')||chr(9)||
       nvl(COL151, '')||chr(9)||nvl(COL152, '')||chr(9)||nvl(COL153, '')||chr(9)||nvl(COL154, '')||chr(9)||nvl(COL155, '')||chr(9)||nvl(COL156, '')||chr(9)||nvl(COL157, '')||chr(9)||nvl(COL158, '')||chr(9)||nvl(COL159, '')||chr(9)||nvl(COL160, '')||chr(9)||
       nvl(COL161, '')||chr(9)||nvl(COL162, '')||chr(9)||nvl(COL163, '')||chr(9)||nvl(COL164, '')||chr(9)||nvl(COL165, '')||chr(9)||nvl(COL166, '')||chr(9)||nvl(COL167, '')||chr(9)||nvl(COL168, '')||chr(9)||nvl(COL169, '')||chr(9)||nvl(COL170, '')||chr(9)||
       nvl(COL171, '')||chr(9)||nvl(COL172, '')||chr(9)||nvl(COL173, '')||chr(9)||nvl(COL174, '')||chr(9)||nvl(COL175, '')||chr(9)||nvl(COL176, '')||chr(9)||nvl(COL177, '')||chr(9)||nvl(COL178, '')||chr(9)||nvl(COL179, '')||chr(9)||nvl(COL180, '')||chr(9)||
       nvl(COL181, '')||chr(9)||nvl(COL182, '')||chr(9)||nvl(COL183, '')||chr(9)||nvl(COL184, '')||chr(9)||nvl(COL185, '')||chr(9)||nvl(COL186, '')||chr(9)||nvl(COL187, '')||chr(9)||nvl(COL188, '')||chr(9)||nvl(COL189, '')||chr(9)||nvl(COL190, '')||chr(9)||
       nvl(COL191, '')||chr(9)||nvl(COL192, '')||chr(9)||nvl(COL193, '')||chr(9)||nvl(COL194, '')||chr(9)||nvl(COL195, '')||chr(9)||nvl(COL196, '')||chr(9)||nvl(COL197, '')||chr(9)||nvl(COL198, '')||chr(9)||nvl(COL199, '')||chr(9)||nvl(COL200, '')||chr(9)||
       nvl(COL201, '')||chr(9)||nvl(COL202, '')||chr(9)||nvl(COL203, '')||chr(9)||nvl(COL204, '')||chr(9)||nvl(COL205, '')||chr(9)||nvl(COL206, '')||chr(9)||nvl(COL207, '')||chr(9)||nvl(COL208, '')||chr(9)||nvl(COL209, '')||chr(9)||nvl(COL210, '')||chr(9)||
       nvl(COL211, '')||chr(9)||nvl(COL212, '')||chr(9)||nvl(COL213, '')||chr(9)||nvl(COL214, '')||chr(9)||nvl(COL215, '')||chr(9)||nvl(COL216, '')||chr(9)||nvl(COL217, '')||chr(9)||nvl(COL218, '')||chr(9)||nvl(COL219, '')||chr(9)||nvl(COL220, '')||chr(9)||
       nvl(COL221, '')||chr(9)||nvl(COL222, '')||chr(9)||nvl(COL223, '')||chr(9)||nvl(COL224, '')||chr(9)||nvl(COL225, '')||chr(9)||nvl(COL226, '')||chr(9)||nvl(COL227, '')||chr(9)||nvl(COL228, '')||chr(9)||nvl(COL229, '')||chr(9)||nvl(COL230, '')||chr(9)||
       nvl(COL231, '')||chr(9)||nvl(COL232, '')||chr(9)||nvl(COL233, '')||chr(9)||nvl(COL234, '')||chr(9)||nvl(COL235, '')||chr(9)||nvl(COL236, '')||chr(9)||nvl(COL237, '')||chr(9)||nvl(COL238, '')||chr(9)||nvl(COL239, '')||chr(9)||nvl(COL240, '')||chr(9)||
       nvl(COL241, '')||chr(9)||nvl(COL242, '')||chr(9)||nvl(COL243, '')||chr(9)||nvl(COL244, '')||chr(9)||nvl(COL245, '')||chr(9)||nvl(COL246, '')||chr(9)||nvl(COL247, '')||chr(9)||nvl(COL248, '')||chr(9)||nvl(COL249, '')||chr(9)||nvl(COL250, '')||chr(9)||
       nvl(COL251, '')||chr(9)||nvl(COL252, '')||chr(9)||nvl(COL253, '')||chr(9)||nvl(COL254, '')||chr(9)||nvl(COL255, '')||chr(9)||nvl(COL256, '')||chr(9)||nvl(COL257, '')||chr(9)||nvl(COL258, '')||chr(9)||nvl(COL259, '')||chr(9)||nvl(COL260, '')||chr(9)||
       nvl(COL261, '')||chr(9)||nvl(COL262, '')||chr(9)||nvl(COL263, '')||chr(9)||nvl(COL264, '')||chr(9)||nvl(COL265, '')||chr(9)||nvl(COL266, '')||chr(9)||nvl(COL267, '')||chr(9)||nvl(COL268, '')||chr(9)||nvl(COL269, '')||chr(9)||nvl(COL270, '')||chr(9)||
       nvl(COL271, '')||chr(9)||nvl(COL272, '')||chr(9)||nvl(COL273, '')||chr(9)||nvl(COL274, '')||chr(9)||nvl(COL275, '')||chr(9)||nvl(COL276, '')||chr(9)||nvl(COL277, '')||chr(9)||nvl(COL278, '')||chr(9)||nvl(COL279, '')||chr(9)||nvl(COL280, '')||chr(9)||
       nvl(COL281, '')||chr(9)||nvl(COL282, '')||chr(9)||nvl(COL283, '')||chr(9)||nvl(COL284, '')||chr(9)||nvl(COL285, '')||chr(9)||nvl(COL286, '')||chr(9)||nvl(COL287, '')||chr(9)||nvl(COL288, '')||chr(9)||nvl(COL289, '')||chr(9)||nvl(COL290, '')||chr(9)||
       nvl(COL291, '')||chr(9)||nvl(COL292, '')||chr(9)||nvl(COL293, '')||chr(9)||nvl(COL294, '')||chr(9)||nvl(COL295, '')||chr(9)||nvl(COL296, '')||chr(9)||nvl(COL297, '')||chr(9)||nvl(COL298, '')||chr(9)||nvl(COL299, '')||chr(9)||nvl(COL300, '')||chr(9)||
       nvl(COL301, '')||chr(9)||nvl(COL302, '')||chr(9)||nvl(COL303, '')||chr(9)||nvl(COL304, '')||chr(9)||nvl(COL305, '')||chr(9)||nvl(COL306, '')||chr(9)||nvl(COL307, '')||chr(9)||nvl(COL308, '')||chr(9)||nvl(COL309, '')||chr(9)||nvl(COL310, '')||chr(9)||
       nvl(COL311, '')||chr(9)||nvl(COL312, '')||chr(9)||nvl(COL313, '')||chr(9)||nvl(COL314, '')||chr(9)||nvl(COL315, '')||chr(9)||nvl(COL316, '')||chr(9)||nvl(COL317, '')||chr(9)||nvl(COL318, '')||chr(9)||nvl(COL319, '')||chr(9)||nvl(COL320, '')||chr(9)||
       nvl(COL321, '')||chr(9)||nvl(COL322, '')||chr(9)||nvl(COL323, '')||chr(9)||nvl(COL324, '')||chr(9)||nvl(COL325, '')||chr(9)||nvl(COL326, '')||chr(9)||nvl(COL327, '')||chr(9)||nvl(COL328, '')||chr(9)||nvl(COL329, '')||chr(9)||nvl(COL330, '')||chr(9)||
       nvl(COL331, '')||chr(9)||nvl(COL332, '')||chr(9)||nvl(COL333, '')||chr(9)||nvl(COL334, '')||chr(9)||nvl(COL335, '')||chr(9)||nvl(COL336, '')||chr(9)||nvl(COL337, '')||chr(9)||nvl(COL338, '')||chr(9)||nvl(COL339, '')||chr(9)||nvl(COL340, '')||chr(9)||
       nvl(COL341, '')||chr(9)||nvl(COL342, '')||chr(9)||nvl(COL343, '')||chr(9)||nvl(COL344, '')||chr(9)||nvl(COL345, '')||chr(9)||nvl(COL346, '')||chr(9)||nvl(COL347, '')||chr(9)||nvl(COL348, '')||chr(9)||nvl(COL349, '')||chr(9)||nvl(COL350, '')||chr(9)||
       nvl(COL351, '')||chr(9)||nvl(COL352, '')||chr(9)||nvl(COL353, '')||chr(9)||nvl(COL354, '')||chr(9)||nvl(COL355, '')||chr(9)||nvl(COL356, '')||chr(9)||nvl(COL357, '')||chr(9)||nvl(COL358, '')||chr(9)||nvl(COL359, '')||chr(9)||nvl(COL360, '')||chr(9)||
       nvl(COL361, '')||chr(9)||nvl(COL362, '')||chr(9)||nvl(COL363, '')||chr(9)||nvl(COL364, '')||chr(9)||nvl(COL365, '')||chr(9)||nvl(COL366, '')||chr(9)||nvl(COL367, '')||chr(9)||nvl(COL368, '')||chr(9)||nvl(COL369, '')||chr(9)||nvl(COL370, '')||chr(9)||
       nvl(COL371, '')||chr(9)||nvl(COL372, '')||chr(9)||nvl(COL373, '')||chr(9)||nvl(COL374, '')||chr(9)||nvl(COL375, '')||chr(9)||nvl(COL376, '')||chr(9)||nvl(COL377, '')||chr(9)||nvl(COL378, '')||chr(9)||nvl(COL379, '')||chr(9)||nvl(COL380, '')||chr(9)||
       nvl(COL381, '')||chr(9)||nvl(COL382, '')||chr(9)||nvl(COL383, '')||chr(9)||nvl(COL384, '')||chr(9)||nvl(COL385, '')||chr(9)||nvl(COL386, '')||chr(9)||nvl(COL387, '')||chr(9)||nvl(COL388, '')||chr(9)||nvl(COL389, '')||chr(9)||nvl(COL390, '')||chr(9)||
       nvl(COL391, '')||chr(9)||nvl(COL392, '')||chr(9)||nvl(COL393, '')||chr(9)||nvl(COL394, '')||chr(9)||nvl(COL395, '')||chr(9)||nvl(COL396, '')||chr(9)||nvl(COL397, '')||chr(9)||nvl(COL398, '')||chr(9)||nvl(COL399, '')||chr(9)||nvl(COL400, '')||chr(9)||
       nvl(COL401, '')||chr(9)||nvl(COL402, '')||chr(9)||nvl(COL403, '')||chr(9)||nvl(COL404, '')||chr(9)||nvl(COL405, '')||chr(9)||nvl(COL406, '')||chr(9)||nvl(COL407, '')||chr(9)||nvl(COL408, '')||chr(9)||nvl(COL409, '')||chr(9)||nvl(COL410, '')||chr(9)||
       nvl(COL411, '')||chr(9)||nvl(COL412, '')||chr(9)||nvl(COL413, '')||chr(9)||nvl(COL414, '')||chr(9)||nvl(COL415, '')||chr(9)||nvl(COL416, '')||chr(9)||nvl(COL417, '')||chr(9)||nvl(COL418, '')||chr(9)||nvl(COL419, '')||chr(9)||nvl(COL420, '')||chr(9)||
       nvl(COL421, '')||chr(9)||nvl(COL422, '')||chr(9)||nvl(COL423, '')||chr(9)||nvl(COL424, '')||chr(9)||nvl(COL425, '')||chr(9)||nvl(COL426, '')||chr(9)||nvl(COL427, '')||chr(9)||nvl(COL428, '')||chr(9)||nvl(COL429, '')||chr(9)||nvl(COL430, '')||chr(9)||
       nvl(COL431, '')||chr(9)||nvl(COL432, '')||chr(9)||nvl(COL433, '')||chr(9)||nvl(COL434, '')||chr(9)||nvl(COL435, '')||chr(9)||nvl(COL436, '')||chr(9)||nvl(COL437, '')||chr(9)||nvl(COL438, '')||chr(9)||nvl(COL439, '')||chr(9)||nvl(COL440, '')||chr(9)||
       nvl(COL441, '')||chr(9)||nvl(COL442, '')||chr(9)||nvl(COL443, '')||chr(9)||nvl(COL444, '')||chr(9)||nvl(COL445, '')||chr(9)||nvl(COL446, '')||chr(9)||nvl(COL447, '')||chr(9)||nvl(COL448, '')||chr(9)||nvl(COL449, '')||chr(9)||nvl(COL450, '')||chr(9)||
       nvl(COL451, '')||chr(9)||nvl(COL452, '')||chr(9)||nvl(COL453, '')||chr(9)||nvl(COL454, '')||chr(9)||nvl(COL455, '')||chr(9)||nvl(COL456, '')||chr(9)||nvl(COL457, '')||chr(9)||nvl(COL458, '')||chr(9)||nvl(COL459, '')||chr(9)||nvl(COL460, '')||chr(9)||
       nvl(COL461, '')||chr(9)||nvl(COL462, '')||chr(9)||nvl(COL463, '')||chr(9)||nvl(COL464, '')||chr(9)||nvl(COL465, '')||chr(9)||nvl(COL466, '')||chr(9)||nvl(COL467, '')||chr(9)||nvl(COL468, '')||chr(9)||nvl(COL469, '')||chr(9)||nvl(COL470, '')||chr(9)||
       nvl(COL471, '')||chr(9)||nvl(COL472, '')||chr(9)||nvl(COL473, '')||chr(9)||nvl(COL474, '')||chr(9)||nvl(COL475, '')||chr(9)||nvl(COL476, '')||chr(9)||nvl(COL477, '')||chr(9)||nvl(COL478, '')||chr(9)||nvl(COL479, '')||chr(9)||nvl(COL480, '')||chr(9)||
       nvl(COL481, '')||chr(9)||nvl(COL482, '')||chr(9)||nvl(COL483, '')||chr(9)||nvl(COL484, '')||chr(9)||nvl(COL485, '')||chr(9)||nvl(COL486, '')||chr(9)||nvl(COL487, '')||chr(9)||nvl(COL488, '')||chr(9)||nvl(COL489, '')||chr(9)||nvl(COL490, '')||chr(9)||
       nvl(COL491, '')||chr(9)||nvl(COL492, '')||chr(9)||nvl(COL493, '')||chr(9)||nvl(COL494, '')||chr(9)||nvl(COL495, '')||chr(9)||nvl(COL496, '')||chr(9)||nvl(COL497, '')||chr(9)||nvl(COL498, '')||chr(9)||nvl(COL499, '')||chr(9)||nvl(COL500, '')||chr(9)||
       nvl(COL501, '')||chr(9)||nvl(COL502, '')||chr(9)||nvl(COL503, '')||chr(9)||nvl(COL504, '')||chr(9)||nvl(COL505, '')||chr(9)||nvl(COL506, '')||chr(9)||nvl(COL507, '')||chr(9)||nvl(COL508, '')||chr(9)||nvl(COL509, '')||chr(9)||nvl(COL510, '')||chr(9)||
       nvl(COL511, '')||chr(9)||nvl(COL512, '')||chr(9)||nvl(COL513, '')||chr(9)||nvl(COL514, '')||chr(9)||nvl(COL515, '')||chr(9)||nvl(COL516, '')||chr(9)||nvl(COL517, '')||chr(9)||nvl(COL518, '')||chr(9)||nvl(COL519, '')||chr(9)||nvl(COL520, '')||chr(9)||
       nvl(COL521, '')||chr(9)||nvl(COL522, '')||chr(9)||nvl(COL523, '')||chr(9)||nvl(COL524, '')||chr(9)||nvl(COL525, '')||chr(9)||nvl(COL526, '')||chr(9)||nvl(COL527, '')||chr(9)||nvl(COL528, '')||chr(9)||nvl(COL529, '')||chr(9)||nvl(COL530, '')||chr(9)||
       nvl(COL531, '')||chr(9)||nvl(COL532, '')||chr(9)||nvl(COL533, '')||chr(9)||nvl(COL534, '')||chr(9)||nvl(COL535, '')||chr(9)||nvl(COL536, '')||chr(9)||nvl(COL537, '')||chr(9)||nvl(COL538, '')||chr(9)||nvl(COL539, '')||chr(9)||nvl(COL540, '')||chr(9)||
       nvl(COL541, '')||chr(9)||nvl(COL542, '')||chr(9)||nvl(COL543, '')||chr(9)||nvl(COL544, '')||chr(9)||nvl(COL545, '')||chr(9)||nvl(COL546, '')||chr(9)||nvl(COL547, '')||chr(9)||nvl(COL548, '')||chr(9)||nvl(COL549, '')||chr(9)||nvl(COL550, '')||chr(9)||
       nvl(COL551, '')||chr(9)||nvl(COL552, '')||chr(9)||nvl(COL553, '')||chr(9)||nvl(COL554, '')||chr(9)||nvl(COL555, '')||chr(9)||nvl(COL556, '')||chr(9)||nvl(COL557, '')||chr(9)||nvl(COL558, '')||chr(9)||nvl(COL559, '')||chr(9)||nvl(COL560, '')||chr(9)||
       nvl(COL561, '')||chr(9)||nvl(COL562, '')||chr(9)||nvl(COL563, '')||chr(9)||nvl(COL564, '')||chr(9)||nvl(COL565, '')||chr(9)||nvl(COL566, '')||chr(9)||nvl(COL567, '')||chr(9)||nvl(COL568, '')||chr(9)||nvl(COL569, '')||chr(9)||nvl(COL570, '')||chr(9)||
       nvl(COL571, '')||chr(9)||nvl(COL572, '')||chr(9)||nvl(COL573, '')||chr(9)||nvl(COL574, '')||chr(9)||nvl(COL575, '')||chr(9)||nvl(COL576, '')||chr(9)||nvl(COL577, '')||chr(9)||nvl(COL578, '')||chr(9)||nvl(COL579, '')||chr(9)||nvl(COL580, '')||chr(9)||
       nvl(COL581, '')||chr(9)||nvl(COL582, '')||chr(9)||nvl(COL583, '')||chr(9)||nvl(COL584, '')||chr(9)||nvl(COL585, '')||chr(9)||nvl(COL586, '')||chr(9)||nvl(COL587, '')||chr(9)||nvl(COL588, '')||chr(9)||nvl(COL589, '')||chr(9)||nvl(COL590, '')||chr(9)||
       nvl(COL591, '')||chr(9)||nvl(COL592, '')||chr(9)||nvl(COL593, '')||chr(9)||nvl(COL594, '')||chr(9)||nvl(COL595, '')||chr(9)||nvl(COL596, '')||chr(9)||nvl(COL597, '')||chr(9)||nvl(COL598, '')||chr(9)||nvl(COL599, '')||chr(9)||nvl(COL600, '')||chr(9)||
       nvl(COL601, '')||chr(9)||nvl(COL602, '')||chr(9)||nvl(COL603, '')||chr(9)||nvl(COL604, '')||chr(9)||nvl(COL605, '')||chr(9)||nvl(COL606, '')||chr(9)||nvl(COL607, '')||chr(9)||nvl(COL608, '')||chr(9)||nvl(COL609, '')||chr(9)||nvl(COL610, '')||chr(9)||
       nvl(COL611, '')||chr(9)||nvl(COL612, '')||chr(9)||nvl(COL613, '')||chr(9)||nvl(COL614, '')||chr(9)||nvl(COL615, '')||chr(9)||nvl(COL616, '')||chr(9)||nvl(COL617, '')||chr(9)||nvl(COL618, '')||chr(9)||nvl(COL619, '')||chr(9)||nvl(COL620, '')||chr(9)||
       nvl(COL621, '')||chr(9)||nvl(COL622, '')||chr(9)||nvl(COL623, '')||chr(9)||nvl(COL624, '')||chr(9)||nvl(COL625, '')||chr(9)||nvl(COL626, '')||chr(9)||nvl(COL627, '')||chr(9)||nvl(COL628, '')||chr(9)||nvl(COL629, '')||chr(9)||nvl(COL630, '')||chr(9)||
       nvl(COL631, '')||chr(9)||nvl(COL632, '')||chr(9)||nvl(COL633, '')||chr(9)||nvl(COL634, '')||chr(9)||nvl(COL635, '')||chr(9)||nvl(COL636, '')||chr(9)||nvl(COL637, '')||chr(9)||nvl(COL638, '')||chr(9)||nvl(COL639, '')||chr(9)||nvl(COL640, '')||chr(9)||
       nvl(COL641, '')||chr(9)||nvl(COL642, '')||chr(9)||nvl(COL643, '')||chr(9)||nvl(COL644, '')||chr(9)||nvl(COL645, '')||chr(9)||nvl(COL646, '')||chr(9)||nvl(COL647, '')||chr(9)||nvl(COL648, '')||chr(9)||nvl(COL649, '')||chr(9)||nvl(COL650, '')||chr(9)||
       nvl(COL651, '')||chr(9)||nvl(COL652, '')||chr(9)||nvl(COL653, '')||chr(9)||nvl(COL654, '')||chr(9)||nvl(COL655, '')||chr(9)||nvl(COL656, '')||chr(9)||nvl(COL657, '')||chr(9)||nvl(COL658, '')||chr(9)||nvl(COL659, '')||chr(9)||nvl(COL660, '')||chr(9)||
       nvl(COL661, '')||chr(9)||nvl(COL662, '')||chr(9)||nvl(COL663, '')||chr(9)||nvl(COL664, '')||chr(9)||nvl(COL665, '')||chr(9)||nvl(COL666, '')||chr(9)||nvl(COL667, '')||chr(9)||nvl(COL668, '')||chr(9)||nvl(COL669, '')||chr(9)||nvl(COL670, '')||chr(9)||
       nvl(COL671, '')||chr(9)||nvl(COL672, '')||chr(9)||nvl(COL673, '')||chr(9)||nvl(COL674, '')||chr(9)||nvl(COL675, '')||chr(9)||nvl(COL676, '')||chr(9)||nvl(COL677, '')||chr(9)||nvl(COL678, '')||chr(9)||nvl(COL679, '')||chr(9)||nvl(COL680, '')||chr(9)||
       nvl(COL681, '')||chr(9)||nvl(COL682, '')||chr(9)||nvl(COL683, '')||chr(9)||nvl(COL684, '')||chr(9)||nvl(COL685, '')||chr(9)||nvl(COL686, '')||chr(9)||nvl(COL687, '')||chr(9)||nvl(COL688, '')||chr(9)||nvl(COL689, '')||chr(9)||nvl(COL690, '')||chr(9)||
       nvl(COL691, '')||chr(9)||nvl(COL692, '')||chr(9)||nvl(COL693, '')||chr(9)||nvl(COL694, '')||chr(9)||nvl(COL695, '')||chr(9)||nvl(COL696, '')||chr(9)||nvl(COL697, '')||chr(9)||nvl(COL698, '')||chr(9)||nvl(COL699, '')||chr(9)||nvl(COL700, '')||chr(9)||
       nvl(COL701, '')||chr(9)||nvl(COL702, '')||chr(9)||nvl(COL703, '')||chr(9)||nvl(COL704, '')||chr(9)||nvl(COL705, '')||chr(9)||nvl(COL706, '')||chr(9)||nvl(COL707, '')||chr(9)||nvl(COL708, '')||chr(9)||nvl(COL709, '')||chr(9)||nvl(COL710, '')||chr(9)||
       nvl(COL711, '')||chr(9)||nvl(COL712, '')||chr(9)||nvl(COL713, '')||chr(9)||nvl(COL714, '')||chr(9)||nvl(COL715, '')||chr(9)||nvl(COL716, '')||chr(9)||nvl(COL717, '')||chr(9)||nvl(COL718, '')||chr(9)||nvl(COL719, '')||chr(9)||nvl(COL720, '')||chr(9)||
       nvl(COL721, '')||chr(9)||nvl(COL722, '')||chr(9)||nvl(COL723, '')||chr(9)||nvl(COL724, '')||chr(9)||nvl(COL725, '')||chr(9)||nvl(COL726, '')||chr(9)||nvl(COL727, '')||chr(9)||nvl(COL728, '')||chr(9)||nvl(COL729, '')||chr(9)||nvl(COL730, '')||chr(9)||
       nvl(COL731, '')||chr(9)||nvl(COL732, '')||chr(9)||nvl(COL733, '')||chr(9)||nvl(COL734, '')||chr(9)||nvl(COL735, '')||chr(9)||nvl(COL736, '')||chr(9)||nvl(COL737, '')||chr(9)||nvl(COL738, '')||chr(9)||nvl(COL739, '')||chr(9)||nvl(COL740, '')||chr(9)||
       nvl(COL741, '')||chr(9)||nvl(COL742, '')||chr(9)||nvl(COL743, '')||chr(9)||nvl(COL744, '')||chr(9)||nvl(COL745, '')||chr(9)||nvl(COL746, '')||chr(9)||nvl(COL747, '')||chr(9)||nvl(COL748, '')||chr(9)||nvl(COL749, '')||chr(9)||nvl(COL750, '')||chr(9)||
       nvl(COL751, '')||chr(9)||nvl(COL752, '')||chr(9)||nvl(COL753, '')||chr(9)||nvl(COL754, '')||chr(9)||nvl(COL755, '')||chr(9)||nvl(COL756, '')||chr(9)||nvl(COL757, '')||chr(9)||nvl(COL758, '')||chr(9)||nvl(COL759, '')||chr(9)||nvl(COL760, '')||chr(9)||
       nvl(COL761, '')||chr(9)||nvl(COL762, '')||chr(9)||nvl(COL763, '')||chr(9)||nvl(COL764, '')||chr(9)||nvl(COL765, '')||chr(9)||nvl(COL766, '')||chr(9)||nvl(COL767, '')||chr(9)||nvl(COL768, '')||chr(9)||nvl(COL769, '')||chr(9)||nvl(COL770, '')||chr(9)||
       nvl(COL771, '')||chr(9)||nvl(COL772, '')||chr(9)||nvl(COL773, '')||chr(9)||nvl(COL774, '')||chr(9)||nvl(COL775, '')||chr(9)||nvl(COL776, '')||chr(9)||nvl(COL777, '')||chr(9)||nvl(COL778, '')||chr(9)||nvl(COL779, '')||chr(9)||nvl(COL780, '')||chr(9)||
       nvl(COL781, '')||chr(9)||nvl(COL782, '')||chr(9)||nvl(COL783, '')||chr(9)||nvl(COL784, '')||chr(9)||nvl(COL785, '')||chr(9)||nvl(COL786, '')||chr(9)||nvl(COL787, '')||chr(9)||nvl(COL788, '')||chr(9)||nvl(COL789, '')||chr(9)||nvl(COL790, '')||chr(9)||
       nvl(COL791, '')||chr(9)||nvl(COL792, '')||chr(9)||nvl(COL793, '')||chr(9)||nvl(COL794, '')||chr(9)||nvl(COL795, '')||chr(9)||nvl(COL796, '')||chr(9)||nvl(COL797, '')||chr(9)||nvl(COL798, '')||chr(9)||nvl(COL799, '')||chr(9)||nvl(COL800, '')||chr(9)||
       nvl(COL801, '')||chr(9)||nvl(COL802, '')||chr(9)||nvl(COL803, '')||chr(9)||nvl(COL804, '')||chr(9)||nvl(COL805, '')||chr(9)||nvl(COL806, '')||chr(9)||nvl(COL807, '')||chr(9)||nvl(COL808, '')||chr(9)||nvl(COL809, '')||chr(9)||nvl(COL810, '')||chr(9)||
       nvl(COL811, '')||chr(9)||nvl(COL812, '')||chr(9)||nvl(COL813, '')||chr(9)||nvl(COL814, '')||chr(9)||nvl(COL815, '')||chr(9)||nvl(COL816, '')||chr(9)||nvl(COL817, '')||chr(9)||nvl(COL818, '')||chr(9)||nvl(COL819, '')||chr(9)||nvl(COL820, '')||chr(9)||
       nvl(COL821, '')||chr(9)||nvl(COL822, '')||chr(9)||nvl(COL823, '')||chr(9)||nvl(COL824, '')||chr(9)||nvl(COL825, '')||chr(9)||nvl(COL826, '')||chr(9)||nvl(COL827, '')||chr(9)||nvl(COL828, '')||chr(9)||nvl(COL829, '')||chr(9)||nvl(COL830, '')||chr(9)||
       nvl(COL831, '')||chr(9)||nvl(COL832, '')||chr(9)||nvl(COL833, '')||chr(9)||nvl(COL834, '')||chr(9)||nvl(COL835, '')||chr(9)||nvl(COL836, '')||chr(9)||nvl(COL837, '')||chr(9)||nvl(COL838, '')||chr(9)||nvl(COL839, '')||chr(9)||nvl(COL840, '')||chr(9)||
       nvl(COL841, '')||chr(9)||nvl(COL842, '')||chr(9)||nvl(COL843, '')||chr(9)||nvl(COL844, '')||chr(9)||nvl(COL845, '')||chr(9)||nvl(COL846, '')||chr(9)||nvl(COL847, '')||chr(9)||nvl(COL848, '')||chr(9)||nvl(COL849, '')||chr(9)||nvl(COL850, '')||chr(9)||
       nvl(COL851, '')||chr(9)||nvl(COL852, '')||chr(9)||nvl(COL853, '')||chr(9)||nvl(COL854, '')||chr(9)||nvl(COL855, '')||chr(9)||nvl(COL856, '')||chr(9)||nvl(COL857, '')||chr(9)||nvl(COL858, '')||chr(9)||nvl(COL859, '')||chr(9)||nvl(COL860, '')||chr(9)||
       nvl(COL861, '')||chr(9)||nvl(COL862, '')||chr(9)||nvl(COL863, '')||chr(9)||nvl(COL864, '')||chr(9)||nvl(COL865, '')||chr(9)||nvl(COL866, '')||chr(9)||nvl(COL867, '')||chr(9)||nvl(COL868, '')||chr(9)||nvl(COL869, '')||chr(9)||nvl(COL870, '')||chr(9)||
       nvl(COL871, '')||chr(9)||nvl(COL872, '')||chr(9)||nvl(COL873, '')||chr(9)||nvl(COL874, '')||chr(9)||nvl(COL875, '')||chr(9)||nvl(COL876, '')||chr(9)||nvl(COL877, '')||chr(9)||nvl(COL878, '')||chr(9)||nvl(COL879, '')||chr(9)||nvl(COL880, '')||chr(9)||
       nvl(COL881, '')||chr(9)||nvl(COL882, '')||chr(9)||nvl(COL883, '')||chr(9)||nvl(COL884, '')||chr(9)||nvl(COL885, '')||chr(9)||nvl(COL886, '')||chr(9)||nvl(COL887, '')||chr(9)||nvl(COL888, '')||chr(9)||nvl(COL889, '')||chr(9)||nvl(COL890, '')||chr(9)||
       nvl(COL891, '')||chr(9)||nvl(COL892, '')||chr(9)||nvl(COL893, '')||chr(9)||nvl(COL894, '')||chr(9)||nvl(COL895, '')||chr(9)||nvl(COL896, '')||chr(9)||nvl(COL897, '')||chr(9)||nvl(COL898, '')||chr(9)||nvl(COL899, '')||chr(9)||nvl(COL900, '')||chr(9)||
       nvl(COL901, '')||chr(9)||nvl(COL902, '')||chr(9)||nvl(COL903, '')||chr(9)||nvl(COL904, '')||chr(9)||nvl(COL905, '')||chr(9)||nvl(COL906, '')||chr(9)||nvl(COL907, '')||chr(9)||nvl(COL908, '')||chr(9)||nvl(COL909, '')||chr(9)||nvl(COL910, '')||chr(9)||
       nvl(COL911, '')||chr(9)||nvl(COL912, '')||chr(9)||nvl(COL913, '')||chr(9)||nvl(COL914, '')||chr(9)||nvl(COL915, '')||chr(9)||nvl(COL916, '')||chr(9)||nvl(COL917, '')||chr(9)||nvl(COL918, '')||chr(9)||nvl(COL919, '')||chr(9)||nvl(COL920, '')||chr(9)||
       nvl(COL921, '')||chr(9)||nvl(COL922, '')||chr(9)||nvl(COL923, '')||chr(9)||nvl(COL924, '')||chr(9)||nvl(COL925, '')||chr(9)||nvl(COL926, '')||chr(9)||nvl(COL927, '')||chr(9)||nvl(COL928, '')||chr(9)||nvl(COL929, '')||chr(9)||nvl(COL930, '')||chr(9)||
       nvl(COL931, '')||chr(9)||nvl(COL932, '')||chr(9)||nvl(COL933, '')||chr(9)||nvl(COL934, '')||chr(9)||nvl(COL935, '')||chr(9)||nvl(COL936, '')||chr(9)||nvl(COL937, '')||chr(9)||nvl(COL938, '')||chr(9)||nvl(COL939, '')||chr(9)||nvl(COL940, '')||chr(9)||
       nvl(COL941, '')||chr(9)||nvl(COL942, '')||chr(9)||nvl(COL943, '')||chr(9)||nvl(COL944, '')||chr(9)||nvl(COL945, '')||chr(9)||nvl(COL946, '')||chr(9)||nvl(COL947, '')||chr(9)||nvl(COL948, '')||chr(9)||nvl(COL949, '')||chr(9)||nvl(COL950, '')||chr(9)||
       nvl(COL951, '')||chr(9)||nvl(COL952, '')||chr(9)||nvl(COL953, '')||chr(9)||nvl(COL954, '')||chr(9)||nvl(COL955, '')||chr(9)||nvl(COL956, '')||chr(9)||nvl(COL957, '')||chr(9)||nvl(COL958, '')||chr(9)||nvl(COL959, '')||chr(9)||nvl(COL960, '')||chr(9)||
       nvl(COL961, '')||chr(9)||nvl(COL962, '')||chr(9)||nvl(COL963, '')||chr(9)||nvl(COL964, '')||chr(9)||nvl(COL965, '')||chr(9)||nvl(COL966, '')||chr(9)||nvl(COL967, '')||chr(9)||nvl(COL968, '')||chr(9)||nvl(COL969, '')||chr(9)||nvl(COL970, '')||chr(9)||
       nvl(COL971, '')||chr(9)||nvl(COL972, '')||chr(9)||nvl(COL973, '')||chr(9)||nvl(COL974, '')||chr(9)||nvl(COL975, '')||chr(9)||nvl(COL976, '')||chr(9)||nvl(COL977, '')||chr(9)||nvl(COL978, '')||chr(9)||nvl(COL979, '')||chr(9)||nvl(COL980, '')||chr(9)||
       nvl(COL981, '')||chr(9)||nvl(COL982, '')||chr(9)||nvl(COL983, '')||chr(9)||nvl(COL984, '')||chr(9)||nvl(COL985, '')||chr(9)||nvl(COL986, '')||chr(9)||nvl(COL987, '')||chr(9)||nvl(COL988, '')||chr(9)||nvl(COL989, '')||chr(9)||nvl(COL990, '')||chr(9)||
       nvl(COL991, '')||chr(9)||nvl(COL992, '')||chr(9)||nvl(COL993, '')||chr(9)||nvl(COL994, '')||chr(9)||nvl(COL995, '')||chr(9)||nvl(COL996, '') as row_entry
       from EXCEL_EXPORT_TABLE
      order by row_num;

-- BIG query:
DECLARE
  v_id     NUMBER;
  v_clob   CLOB;

  v_chunk1 VARCHAR2(32000) := 
q'[
  with params as (
--     select 304 base_cur_uid, 101 ERT_UID, to_date('31/01/2025', 'DD/MM/YYYY') ERT_DATE, 'STRING' cashflow_str from dual),
     select :row_no as row_no, 
            :base_cur_uid as base_cur_uid, 
            :ert_uid as ert_uid, 
            :ert_date as ert_date,
            :title as title,
            'PROJECTION_REPORT' as report_name
       from dual),
     site as (select cur_uid_base from star_site_parameters where current_site = 'Y')
     select min(p.row_no), 
            null, 
            min('D'), 
            min(p.title), 
            decode(sum(to_number(e.col1))  , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col1)  , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col2))  , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col2)  , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col3))  , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col3)  , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col4))  , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col4)  , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col5))  , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col5)  , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col6))  , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col6)  , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col7))  , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col7)  , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col8))  , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col8)  , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col9))  , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col9)  , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col10)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col10) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col11)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col11) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col12)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col12) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col13)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col13) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col14)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col14) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col15)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col15) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col16)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col16) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col17)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col17) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col18)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col18) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col19)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col19) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col20)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col20) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col21)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col21) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col22)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col22) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col23)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col23) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col24)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col24) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col25)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col25) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col26)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col26) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col27)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col27) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col28)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col28) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col29)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col29) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col30)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col30) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col31)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col31) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col32)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col32) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col33)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col33) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col34)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col34) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col35)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col35) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col36)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col36) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col37)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col37) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col38)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col38) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col39)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col39) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col40)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col40) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col41)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col41) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col42)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col42) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col43)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col43) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col44)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col44) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col45)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col45) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col46)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col46) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col47)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col47) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col48)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col48) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col49)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col49) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col50)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col50) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col51)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col51) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col52)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col52) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col53)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col53) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col54)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col54) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col55)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col55) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col56)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col56) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col57)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col57) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col58)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col58) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col59)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col59) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col60)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col60) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col61)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col61) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col62)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col62) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col63)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col63) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col64)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col64) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col65)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col65) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col66)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col66) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col67)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col67) , null, p.ert_uid, p.ert_date, 'N'))),]';
  v_chunk2 VARCHAR2(32000) :=
         q'[decode(sum(to_number(e.col68)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col68) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col69)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col69) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col70)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col70) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col71)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col71) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col72)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col72) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col73)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col73) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col74)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col74) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col75)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col75) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col76)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col76) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col77)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col77) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col78)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col78) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col79)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col79) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col80)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col80) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col81)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col81) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col82)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col82) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col83)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col83) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col84)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col84) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col85)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col85) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col86)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col86) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col87)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col87) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col88)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col88) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col89)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col89) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col90)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col90) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col91)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col91) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col92)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col92) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col93)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col93) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col94)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col94) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col95)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col95) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col96)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col96) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col97)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col97) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col98)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col98) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col99)) , null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col99) , null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col100)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col100), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col101)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col101), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col102)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col102), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col103)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col103), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col104)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col104), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col105)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col105), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col106)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col106), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col107)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col107), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col108)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col108), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col109)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col109), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col110)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col110), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col111)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col111), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col112)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col112), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col113)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col113), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col114)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col114), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col115)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col115), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col116)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col116), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col117)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col117), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col118)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col118), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col119)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col119), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col120)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col120), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col121)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col121), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col122)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col122), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col123)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col123), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col124)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col124), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col125)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col125), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col126)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col126), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col127)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col127), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col128)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col128), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col129)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col129), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col130)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col130), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col131)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col131), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col132)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col132), null, p.ert_uid, p.ert_date, 'N'))),]';
  v_chunk3 VARCHAR2(32000) :=
         q'[decode(sum(to_number(e.col133)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col133), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col134)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col134), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col135)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col135), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col136)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col136), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col137)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col137), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col138)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col138), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col139)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col139), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col140)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col140), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col141)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col141), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col142)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col142), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col143)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col143), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col144)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col144), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col145)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col145), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col146)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col146), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col147)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col147), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col148)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col148), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col149)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col149), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col150)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col150), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col151)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col151), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col152)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col152), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col153)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col153), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col154)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col154), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col155)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col155), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col156)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col156), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col157)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col157), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col158)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col158), null, p.ert_uid, p.ert_date, 'N'))),]';
  v_chunk4 VARCHAR2(32000) :=
         q'[decode(sum(to_number(e.col159)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col159), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col160)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col160), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col161)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col161), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col162)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col162), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col163)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col163), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col164)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col164), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col165)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col165), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col166)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col166), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col167)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col167), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col168)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col168), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col169)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col169), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col170)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col170), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col171)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col171), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col172)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col172), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col173)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col173), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col174)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col174), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col175)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col175), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col176)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col176), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col177)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col177), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col178)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col178), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col179)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col179), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col180)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col180), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col181)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col181), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col182)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col182), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col183)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col183), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col184)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col184), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col185)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col185), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col186)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col186), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col187)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col187), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col188)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col188), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col189)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col189), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col190)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col190), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col191)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col191), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col192)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col192), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col193)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col193), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col194)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col194), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col195)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col195), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col196)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col196), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col197)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col197), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col198)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col198), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col199)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col199), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col200)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col200), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col201)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col201), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col202)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col202), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col203)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col203), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col204)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col204), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col205)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col205), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col206)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col206), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col207)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col207), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col208)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col208), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col209)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col209), null, p.ert_uid, p.ert_date, 'N'))), 
            decode(sum(to_number(e.col210)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col210), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col211)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col211), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col212)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col212), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col213)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col213), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col214)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col214), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col215)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col215), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col216)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col216), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col217)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col217), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col218)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col218), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col219)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col219), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col220)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col220), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col221)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col221), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col222)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col222), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col223)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col223), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col224)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col224), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col225)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col225), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col226)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col226), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col227)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col227), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col228)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col228), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col229)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col229), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col230)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col230), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col231)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col231), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col232)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col232), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col233)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col233), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col234)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col234), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col235)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col235), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col236)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col236), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col237)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col237), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col238)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col238), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col239)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col239), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col240)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col240), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col241)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col241), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col242)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col242), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col243)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col243), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col244)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col244), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col245)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col245), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col246)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col246), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col247)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col247), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col248)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col248), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col249)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col249), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col250)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col250), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col251)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col251), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col252)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col252), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col253)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col253), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col254)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col254), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col255)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col255), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col256)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col256), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col257)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col257), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col258)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col258), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col259)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col259), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col260)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col260), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col261)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col261), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col262)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col262), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col263)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col263), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col264)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col264), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col265)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col265), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col266)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col266), null, p.ert_uid, p.ert_date, 'N'))),]';
  v_chunk5 VARCHAR2(32000) :=
         q'[decode(sum(to_number(e.col267)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col267), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col268)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col268), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col269)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col269), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col270)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col270), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col271)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col271), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col272)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col272), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col273)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col273), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col274)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col274), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col275)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col275), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col276)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col276), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col277)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col277), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col278)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col278), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col279)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col279), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col280)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col280), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col281)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col281), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col282)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col282), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col283)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col283), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col284)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col284), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col285)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col285), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col286)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col286), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col287)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col287), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col288)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col288), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col289)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col289), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col290)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col290), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col291)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col291), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col292)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col292), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col293)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col293), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col294)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col294), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col295)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col295), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col296)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col296), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col297)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col297), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col298)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col298), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col299)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col299), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col300)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col300), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col301)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col301), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col302)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col302), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col303)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col303), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col304)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col304), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col305)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col305), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col306)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col306), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col307)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col307), null, p.ert_uid, p.ert_date, 'N'))),]';
  v_chunk6 VARCHAR2(32000) :=
         q'[decode(sum(to_number(e.col308)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col308), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col309)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col309), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col310)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col310), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col311)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col311), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col312)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col312), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col313)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col313), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col314)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col314), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col315)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col315), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col316)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col316), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col317)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col317), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col318)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col318), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col319)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col319), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col320)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col320), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col321)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col321), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col322)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col322), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col323)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col323), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col324)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col324), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col325)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col325), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col326)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col326), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col327)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col327), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col328)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col328), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col329)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col329), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col330)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col330), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col331)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col331), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col332)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col332), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col333)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col333), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col334)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col334), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col335)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col335), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col336)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col336), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col337)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col337), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col338)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col338), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col339)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col339), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col340)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col340), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col341)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col341), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col342)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col342), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col343)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col343), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col344)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col344), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col345)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col345), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col346)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col346), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col347)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col347), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col348)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col348), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col349)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col349), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col350)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col350), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col351)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col351), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col352)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col352), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col353)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col353), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col354)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col354), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col355)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col355), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col356)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col356), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col357)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col357), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col358)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col358), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col359)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col359), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col360)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col360), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col361)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col361), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col362)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col362), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col363)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col363), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col364)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col364), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col365)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col365), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col366)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col366), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col367)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col367), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col368)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col368), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col369)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col369), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col370)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col370), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col371)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col371), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col372)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col372), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col373)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col373), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col374)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col374), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col375)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col375), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col376)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col376), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col377)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col377), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col378)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col378), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col379)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col379), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col380)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col380), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col381)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col381), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col382)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col382), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col383)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col383), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col384)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col384), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col385)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col385), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col386)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col386), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col387)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col387), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col388)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col388), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col389)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col389), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col390)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col390), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col391)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col391), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col392)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col392), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col393)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col393), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col394)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col394), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col395)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col395), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col396)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col396), null, p.ert_uid, p.ert_date, 'N'))),]';
  v_chunk7 VARCHAR2(32000) :=
         q'[decode(sum(to_number(e.col397)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col397), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col398)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col398), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col399)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col399), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col400)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col400), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col401)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col401), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col402)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col402), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col403)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col403), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col404)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col404), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col405)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col405), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col406)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col406), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col407)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col407), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col408)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col408), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col409)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col409), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col410)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col410), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col411)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col411), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col412)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col412), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col413)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col413), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col414)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col414), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col415)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col415), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col416)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col416), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col417)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col417), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col418)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col418), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col419)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col419), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col420)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col420), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col421)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col421), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col422)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col422), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col423)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col423), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col424)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col424), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col425)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col425), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col426)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col426), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col427)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col427), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col428)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col428), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col429)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col429), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col430)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col430), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col431)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col431), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col432)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col432), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col433)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col433), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col434)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col434), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col435)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col435), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col436)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col436), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col437)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col437), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col438)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col438), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col439)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col439), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col440)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col440), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col441)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col441), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col442)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col442), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col443)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col443), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col444)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col444), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col445)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col445), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col446)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col446), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col447)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col447), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col448)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col448), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col449)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col449), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col450)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col450), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col451)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col451), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col452)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col452), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col453)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col453), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col454)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col454), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col455)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col455), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col456)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col456), null, p.ert_uid, p.ert_date, 'N'))),]';
  v_chunk8 VARCHAR2(32000) :=
         q'[decode(sum(to_number(e.col457)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col457), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col458)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col458), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col459)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col459), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col460)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col460), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col461)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col461), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col462)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col462), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col463)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col463), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col464)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col464), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col465)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col465), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col466)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col466), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col467)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col467), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col468)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col468), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col469)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col469), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col470)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col470), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col471)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col471), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col472)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col472), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col473)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col473), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col474)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col474), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col475)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col475), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col476)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col476), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col477)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col477), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col478)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col478), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col479)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col479), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col480)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col480), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col481)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col481), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col482)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col482), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col483)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col483), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col484)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col484), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col485)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col485), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col486)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col486), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col487)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col487), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col488)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col488), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col489)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col489), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col490)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col490), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col491)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col491), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col492)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col492), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col493)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col493), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col494)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col494), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col495)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col495), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col496)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col496), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col497)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col497), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col498)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col498), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col499)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col499), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col500)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col500), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col501)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col501), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col502)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col502), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col503)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col503), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col504)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col504), null, p.ert_uid, p.ert_date, 'N'))),]';
  v_chunk9 VARCHAR2(32000) :=
         q'[decode(sum(to_number(e.col505)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col505), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col506)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col506), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col507)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col507), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col508)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col508), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col509)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col509), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col510)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col510), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col511)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col511), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col512)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col512), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col513)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col513), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col514)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col514), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col515)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col515), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col516)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col516), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col517)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col517), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col518)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col518), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col519)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col519), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col520)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col520), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col521)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col521), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col522)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col522), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col523)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col523), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col524)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col524), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col525)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col525), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col526)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col526), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col527)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col527), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col528)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col528), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col529)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col529), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col530)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col530), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col531)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col531), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col532)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col532), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col533)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col533), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col534)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col534), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col535)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col535), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col536)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col536), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col537)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col537), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col538)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col538), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col539)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col539), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col540)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col540), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col541)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col541), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col542)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col542), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col543)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col543), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col544)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col544), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col545)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col545), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col546)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col546), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col547)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col547), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col548)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col548), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col549)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col549), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col550)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col550), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col551)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col551), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col552)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col552), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col553)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col553), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col554)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col554), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col555)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col555), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col556)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col556), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col557)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col557), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col558)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col558), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col559)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col559), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col560)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col560), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col561)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col561), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col562)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col562), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col563)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col563), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col564)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col564), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col565)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col565), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col566)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col566), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col567)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col567), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col568)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col568), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col569)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col569), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col570)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col570), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col571)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col571), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col572)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col572), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col573)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col573), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col574)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col574), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col575)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col575), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col576)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col576), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col577)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col577), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col578)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col578), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col579)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col579), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col580)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col580), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col581)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col581), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col582)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col582), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col583)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col583), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col584)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col584), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col585)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col585), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col586)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col586), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col587)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col587), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col588)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col588), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col589)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col589), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col590)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col590), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col591)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col591), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col592)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col592), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col593)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col593), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col594)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col594), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col595)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col595), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col596)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col596), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col597)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col597), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col598)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col598), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col599)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col599), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col600)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col600), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col601)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col601), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col602)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col602), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col603)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col603), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col604)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col604), null, p.ert_uid, p.ert_date, 'N'))),]';
  v_chunk10 VARCHAR2(32000) :=
         q'[decode(sum(to_number(e.col605)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col605), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col606)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col606), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col607)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col607), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col608)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col608), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col609)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col609), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col610)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col610), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col611)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col611), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col612)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col612), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col613)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col613), null, p.ert_uid, p.ert_date, 'N'))),]';
  v_chunk11 VARCHAR2(32000) :=
         q'[decode(sum(to_number(e.col614)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col614), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col615)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col615), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col616)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col616), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col617)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col617), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col618)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col618), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col619)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col619), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col620)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col620), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col621)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col621), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col622)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col622), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col623)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col623), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col624)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col624), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col625)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col625), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col626)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col626), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col627)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col627), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col628)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col628), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col629)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col629), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col630)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col630), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col631)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col631), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col632)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col632), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col633)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col633), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col634)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col634), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col635)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col635), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col636)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col636), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col637)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col637), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col638)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col638), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col639)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col639), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col640)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col640), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col641)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col641), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col642)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col642), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col643)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col643), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col644)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col644), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col645)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col645), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col646)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col646), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col647)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col647), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col648)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col648), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col649)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col649), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col650)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col650), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col651)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col651), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col652)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col652), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col653)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col653), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col654)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col654), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col655)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col655), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col656)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col656), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col657)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col657), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col658)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col658), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col659)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col659), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col660)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col660), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col661)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col661), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col662)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col662), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col663)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col663), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col664)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col664), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col665)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col665), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col666)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col666), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col667)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col667), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col668)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col668), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col669)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col669), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col670)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col670), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col671)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col671), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col672)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col672), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col673)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col673), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col674)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col674), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col675)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col675), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col676)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col676), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col677)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col677), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col678)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col678), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col679)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col679), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col680)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col680), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col681)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col681), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col682)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col682), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col683)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col683), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col684)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col684), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col685)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col685), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col686)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col686), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col687)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col687), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col688)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col688), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col689)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col689), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col690)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col690), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col691)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col691), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col692)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col692), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col693)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col693), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col694)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col694), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col695)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col695), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col696)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col696), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col697)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col697), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col698)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col698), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col699)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col699), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col700)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col700), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col701)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col701), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col702)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col702), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col703)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col703), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col704)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col704), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col705)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col705), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col706)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col706), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col707)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col707), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col708)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col708), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col709)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col709), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col710)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col710), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col711)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col711), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col712)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col712), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col713)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col713), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col714)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col714), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col715)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col715), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col716)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col716), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col717)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col717), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col718)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col718), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col719)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col719), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col720)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col720), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col721)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col721), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col722)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col722), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col723)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col723), null, p.ert_uid, p.ert_date, 'N'))),]';
  v_chunk12 VARCHAR2(32000) :=
         q'[decode(sum(to_number(e.col724)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col724), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col725)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col725), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col726)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col726), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col727)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col727), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col728)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col728), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col729)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col729), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col730)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col730), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col731)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col731), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col732)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col732), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col733)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col733), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col734)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col734), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col735)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col735), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col736)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col736), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col737)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col737), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col738)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col738), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col739)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col739), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col740)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col740), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col741)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col741), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col742)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col742), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col743)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col743), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col744)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col744), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col745)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col745), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col746)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col746), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col747)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col747), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col748)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col748), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col749)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col749), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col750)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col750), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col751)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col751), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col752)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col752), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col753)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col753), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col754)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col754), null, p.ert_uid, p.ert_date, 'N'))),]';
  v_chunk13 VARCHAR2(32000) :=
         q'[decode(sum(to_number(e.col755)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col755), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col756)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col756), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col757)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col757), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col758)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col758), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col759)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col759), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col760)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col760), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col761)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col761), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col762)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col762), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col763)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col763), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col764)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col764), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col765)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col765), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col766)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col766), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col767)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col767), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col768)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col768), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col769)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col769), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col770)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col770), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col771)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col771), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col772)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col772), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col773)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col773), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col774)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col774), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col775)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col775), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col776)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col776), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col777)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col777), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col778)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col778), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col779)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col779), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col780)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col780), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col781)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col781), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col782)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col782), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col783)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col783), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col784)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col784), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col785)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col785), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col786)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col786), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col787)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col787), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col788)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col788), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col789)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col789), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col790)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col790), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col791)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col791), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col792)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col792), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col793)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col793), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col794)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col794), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col795)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col795), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col796)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col796), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col797)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col797), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col798)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col798), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col799)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col799), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col800)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col800), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col801)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col801), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col802)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col802), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col803)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col803), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col804)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col804), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col805)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col805), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col806)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col806), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col807)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col807), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col808)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col808), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col809)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col809), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col810)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col810), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col811)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col811), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col812)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col812), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col813)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col813), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col814)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col814), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col815)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col815), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col816)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col816), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col817)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col817), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col818)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col818), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col819)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col819), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col820)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col820), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col821)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col821), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col822)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col822), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col823)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col823), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col824)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col824), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col825)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col825), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col826)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col826), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col827)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col827), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col828)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col828), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col829)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col829), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col830)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col830), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col831)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col831), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col832)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col832), null, p.ert_uid, p.ert_date, 'N'))),]';
  v_chunk14 VARCHAR2(32000) :=
         q'[decode(sum(to_number(e.col833)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col833), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col834)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col834), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col835)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col835), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col836)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col836), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col837)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col837), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col838)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col838), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col839)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col839), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col840)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col840), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col841)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col841), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col842)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col842), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col843)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col843), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col844)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col844), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col845)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col845), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col846)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col846), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col847)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col847), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col848)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col848), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col849)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col849), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col850)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col850), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col851)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col851), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col852)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col852), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col853)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col853), null, p.ert_uid, p.ert_date, 'N'))),]';
  v_chunk15 VARCHAR2(32000) :=
         q'[decode(sum(to_number(e.col854)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col854), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col855)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col855), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col856)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col856), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col857)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col857), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col858)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col858), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col859)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col859), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col860)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col860), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col861)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col861), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col862)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col862), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col863)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col863), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col864)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col864), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col865)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col865), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col866)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col866), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col867)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col867), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col868)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col868), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col869)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col869), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col870)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col870), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col871)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col871), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col872)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col872), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col873)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col873), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col874)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col874), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col875)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col875), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col876)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col876), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col877)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col877), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col878)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col878), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col879)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col879), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col880)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col880), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col881)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col881), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col882)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col882), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col883)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col883), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col884)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col884), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col885)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col885), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col886)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col886), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col887)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col887), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col888)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col888), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col889)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col889), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col890)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col890), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col891)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col891), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col892)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col892), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col893)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col893), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col894)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col894), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col895)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col895), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col896)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col896), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col897)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col897), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col898)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col898), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col899)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col899), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col900)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col900), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col901)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col901), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col902)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col902), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col903)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col903), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col904)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col904), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col905)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col905), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col906)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col906), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col907)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col907), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col908)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col908), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col909)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col909), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col910)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col910), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col911)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col911), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col912)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col912), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col913)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col913), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col914)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col914), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col915)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col915), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col916)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col916), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col917)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col917), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col918)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col918), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col919)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col919), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col920)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col920), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col921)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col921), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col922)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col922), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col923)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col923), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col924)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col924), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col925)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col925), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col926)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col926), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col927)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col927), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col928)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col928), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col929)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col929), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col930)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col930), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col931)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col931), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col932)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col932), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col933)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col933), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col934)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col934), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col935)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col935), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col936)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col936), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col937)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col937), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col938)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col938), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col939)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col939), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col940)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col940), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col941)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col941), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col942)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col942), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col943)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col943), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col944)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col944), null, p.ert_uid, p.ert_date, 'N'))),]';
  v_chunk16 VARCHAR2(32000) :=
         q'[decode(sum(to_number(e.col945)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col945), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col946)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col946), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col947)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col947), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col948)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col948), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col949)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col949), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col950)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col950), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col951)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col951), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col952)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col952), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col953)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col953), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col954)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col954), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col955)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col955), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col956)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col956), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col957)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col957), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col958)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col958), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col959)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col959), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col960)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col960), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col961)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col961), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col962)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col962), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col963)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col963), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col964)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col964), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col965)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col965), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col966)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col966), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col967)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col967), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col968)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col968), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col969)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col969), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col970)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col970), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col971)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col971), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col972)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col972), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col973)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col973), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col974)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col974), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col975)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col975), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col976)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col976), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col977)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col977), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col978)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col978), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col979)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col979), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col980)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col980), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col981)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col981), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col982)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col982), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col983)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col983), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col984)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col984), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col985)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col985), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col986)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col986), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col987)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col987), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col988)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col988), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col989)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col989), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col990)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col990), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col991)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col991), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col992)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col992), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col993)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col993), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col994)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col994), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col995)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col995), null, p.ert_uid, p.ert_date, 'N'))),
            decode(sum(to_number(e.col996)), null, null, sum( star_reporting_pack.convert_to_base_currency(p.report_name, s.cur_uid_base, p.base_cur_uid, to_number(c.cur_uid), to_number(e.col996), null, p.ert_uid, p.ert_date, 'N')))
       from EXCEL_EXPORT_TABLE e,
            currencies c,
            site s,
            params p
      where 1 = 1
        and row_num > (select row_num
                         from EXCEL_EXPORT_TABLE
                               where cashflows = 'Total Cashflows by CCY:')
        and c.code = e.cashflows]';

BEGIN
  -- 1) Empty clob created in the database
  INSERT INTO STAR_SQL (code, query, description)
  VALUES ('BASE_CURRENCY_TOTAL', EMPTY_CLOB(), 'Create base currency total for Projection Report')
  RETURNING ss_uid, query INTO v_id, v_clob;

  -- 2) appned the chunks one by one
  DBMS_LOB.WRITEAPPEND(v_clob, LENGTH(v_chunk1), v_chunk1);
  DBMS_LOB.WRITEAPPEND(v_clob, LENGTH(v_chunk2), v_chunk2);
  DBMS_LOB.WRITEAPPEND(v_clob, LENGTH(v_chunk3), v_chunk3);
  DBMS_LOB.WRITEAPPEND(v_clob, LENGTH(v_chunk4), v_chunk4);
  DBMS_LOB.WRITEAPPEND(v_clob, LENGTH(v_chunk5), v_chunk5);
  DBMS_LOB.WRITEAPPEND(v_clob, LENGTH(v_chunk6), v_chunk6);
  DBMS_LOB.WRITEAPPEND(v_clob, LENGTH(v_chunk7), v_chunk7);
  DBMS_LOB.WRITEAPPEND(v_clob, LENGTH(v_chunk8), v_chunk8);
  DBMS_LOB.WRITEAPPEND(v_clob, LENGTH(v_chunk9), v_chunk9);
  DBMS_LOB.WRITEAPPEND(v_clob, LENGTH(v_chunk10), v_chunk10);
  DBMS_LOB.WRITEAPPEND(v_clob, LENGTH(v_chunk11), v_chunk11);
  DBMS_LOB.WRITEAPPEND(v_clob, LENGTH(v_chunk12), v_chunk12);
  DBMS_LOB.WRITEAPPEND(v_clob, LENGTH(v_chunk13), v_chunk13);
  DBMS_LOB.WRITEAPPEND(v_clob, LENGTH(v_chunk14), v_chunk14);
  DBMS_LOB.WRITEAPPEND(v_clob, LENGTH(v_chunk15), v_chunk15);
  DBMS_LOB.WRITEAPPEND(v_clob, LENGTH(v_chunk16), v_chunk16);
  COMMIT;
END;
/

   