Matrix report with dynamic and fixed columns

Hi all,
I have a matrix report which has dynamic as well as few fixed columns.
It is a fixed asset Report in which the sum(cost) in cell should be grouped according to column and row-wise.
The row consists of the activity such as additions, retirements etc and the dynamic column is the category and other fixed columns such as CIP cost, CWIP cost will be grouped only according to row.
the actual layout should be like this
                 | category 1 | category 2 | category 3 ...... | CIP cost | CWIP cost
Additions    | Sum(cost) | Sum(cost)  | Sum(cost)  .......| 1234      | 4500
retirements | Sum(cost) | Sum(cost)  | Sum(cost)  .......| 1000      | 2500but due to fixed colums in the layout the report builder pushes the fixed colums to the next row with single query i get
                 | category 1 | category 2 | category 3 ...... |
Additions    | Sum(cost) | Sum(cost)  | Sum(cost)  .......|
                  CIP cost     | CWIP cost
                   1234        | 4500
retirements | Sum(cost) | Sum(cost)  | Sum(cost)  .......|
                  CIP cost     | CWIP cost
                   1000        | 2500if i try to add those columns alone in a seperate query and then build the report i get the layout like this
                 | category 1 | category 2 | category 3 ...... |
Additions    | Sum(cost) | Sum(cost)  | Sum(cost)  .......|
retirements | Sum(cost) | Sum(cost)  | Sum(cost)  .......|
CIP cost     | CWIP cost
2234        | 7000This is my query, i have used union to get the row-wise column activity
/* Formatted on 03-Sep-12 5:23:11 PM (QP5 v5.114.809.3010) */
  SELECT   DISTINCT /*ASSET_ID
                    SUM (cost),
                    SUM (cip_cost),
                    SUM (cip_cost_pk),
                    cat_desc--,sub_cat_desc
                    ,activity
    FROM   (-- cip cost
            SELECT   DISTINCT asset_id,
                              cost,
                              ytd_deprn,
                              deprn_amount,
                              deprn_reserve acc_deprn,
                              cost - deprn_reserve net_bk_val,
                              cip_cost,
                              cip_cost_pk,
                              description cat_desc,
                              fat_desc sub_cat_desc,
                              activity
              FROM   (SELECT   DISTINCT
                               fb.asset_id,
                               fb.cost,
                               facc.cost cip_cost,
                               0 cip_cost_pk,
                               ds.ytd_deprn,
                               ds.deprn_reserve,
                               fc.description,
                               fat.description fat_desc,
                               ds.deprn_amount,
                               DECODE (
                                     facc.asset_type
                                  || '-'
                                  || fc.segment1
                                  || '-'
                                  || di.transtype,
                                     'CIP'
                                  || '-'
                                  || fc.segment1
                                  || '-'
                                  || 'TRANSFER',
                                  'CIP T/F',
                                  'CIP-0012-' || di.transtype,
                                  'Additions Project Khalifa assets',
                                  'CAPITALIZED-' || fc.segment1 || di.transtype,
                                  '0',
                                  'Additions'
                                  activity
                        FROM   fa_books fb,
                               fa_additions_b fa,
                               fa_methods fm,
                               fa_financial_inquiry_cost_v fic,
                               fa_categories_vl fc,
                               fa_capitalize_cip_v facc,
                               fa_additions_tl fat,
                               fa_deprn_summary ds,
                               fa_distribution_inquiry_v di
                       WHERE       ds.asset_id = fa.asset_id
                               AND fb.asset_id = fa.asset_id
                               AND fb.asset_id = fic.asset_id
                               AND di.asset_id = fb.asset_id
                               AND fb.life_in_months = fm.life_in_months
                               AND fb.book_type_code = ds.book_type_code
                               AND fb.book_type_code = fic.book_type_code
                               AND fa.last_update_date >
                                     TO_DATE (
                                           '01'
                                        || 'JAN'
                                        || TO_CHAR (SYSDATE, 'RRRR'),
                                        'DD-MON-RRRR'
                               AND ds.deprn_run_date =
                                     (SELECT   DISTINCT MAX (deprn_run_date)
                                        FROM   fa_deprn_summary
                                       WHERE   asset_id = fb.asset_id)
                               AND fic.transaction_header_id_in =
                                     (SELECT   DISTINCT
                                               MAX (transaction_header_id_in)
                                        FROM   fa_financial_inquiry_cost_v
                                       WHERE   asset_id = fb.asset_id)
                               AND fb.date_effective =
                                     (SELECT   DISTINCT MAX (date_effective)
                                        FROM   fa_books
                                       WHERE   asset_id = fb.asset_id)
                               AND di.transaction_header_id =
                                     (SELECT   DISTINCT
                                               MAX (transaction_header_id)
                                        FROM   fa_distribution_inquiry_v
                                       WHERE   asset_id = fb.asset_id)
                               AND fa.attribute_category_code =
                                     fc.segment1 || '-' || fc.segment2
                               AND fc.segment1 <> '0012'
                               AND fb.asset_id = facc.asset_id
                               AND fa.asset_id = fat.asset_id
                               --AND facc.asset_type <> 'CAPITALIZED'
                               AND fb.deprn_method_code = fm.method_code
                               AND ds.deprn_source_code <> 'BOOKS'
                               AND DECODE (
                                     facc.asset_type || '-' || fc.segment1,
                                     'CIP-0012',
                                     'Additions Project Khalifa assets',
                                     'CAPITALIZED-' || fc.segment1,
                                     '0',
                                     'Additions'
                                  ) <> '0'/*ORDER BY fb.asset_id*/
            UNION
            --cip cost pk
            SELECT   DISTINCT asset_id,
                              cost,
                              ytd_deprn,
                              deprn_amount,
                              deprn_reserve acc_deprn,
                              cost - deprn_reserve net_bk_val,
                              cip_cost,
                              cip_cost_pk,
                              description cat_desc,
                              fat_desc sub_cat_desc,
                              activity
              FROM   (SELECT   DISTINCT
                               fb.asset_id,
                               fb.cost,
                               0 cip_cost,
                               facc.cost cip_cost_pk,
                               ds.ytd_deprn,
                               ds.deprn_reserve,
                               fc.description,
                               fat.description fat_desc,
                               ds.deprn_amount,
                               DECODE (
                                     facc.asset_type
                                  || '-'
                                  || fc.segment1
                                  || '-'
                                  || di.transtype,
                                     'CIP'
                                  || '-'
                                  || fc.segment1
                                  || '-'
                                  || 'TRANSFER',
                                  'CIP T/F',
                                  'CIP-0012-' || di.transtype,
                                  'Additions Project Khalifa assets',
                                  'CAPITALIZED-' || fc.segment1 || di.transtype,
                                  '0',
                                  'Additions'
                                  activity
                        FROM   fa_books fb,
                               fa_additions_b fa,
                               fa_methods fm,
                               fa_financial_inquiry_cost_v fic,
                               fa_categories_vl fc,
                               fa_capitalize_cip_v facc,
                               fa_additions_tl fat,
                               fa_deprn_summary ds,
                               fa_distribution_inquiry_v di
                       WHERE       ds.asset_id = fa.asset_id
                               AND fb.asset_id = fa.asset_id
                               AND fb.asset_id = fic.asset_id
                               AND di.asset_id = fb.asset_id
                               AND fb.life_in_months = fm.life_in_months
                               AND fb.book_type_code = ds.book_type_code
                               AND fb.book_type_code = fic.book_type_code
                               AND fa.last_update_date >
                                     TO_DATE (
                                           '01'
                                        || 'JAN'
                                        || TO_CHAR (SYSDATE, 'RRRR'),
                                        'DD-MON-RRRR'
                               AND ds.deprn_run_date =
                                     (SELECT   DISTINCT MAX (deprn_run_date)
                                        FROM   fa_deprn_summary
                                       WHERE   asset_id = fb.asset_id)
                               AND fic.transaction_header_id_in =
                                     (SELECT   DISTINCT
                                               MAX (transaction_header_id_in)
                                        FROM   fa_financial_inquiry_cost_v
                                       WHERE   asset_id = fb.asset_id)
                               AND fb.date_effective =
                                     (SELECT   DISTINCT MAX (date_effective)
                                        FROM   fa_books
                                       WHERE   asset_id = fb.asset_id)
                               AND di.transaction_header_id =
                                     (SELECT   DISTINCT
                                               MAX (transaction_header_id)
                                        FROM   fa_distribution_inquiry_v
                                       WHERE   asset_id = fb.asset_id)
                               AND fa.attribute_category_code =
                                     fc.segment1 || '-' || fc.segment2
                               AND fc.segment1 = '0012'
                               AND fb.asset_id = facc.asset_id
                               AND fa.asset_id = fat.asset_id
                               --AND facc.asset_type <> 'CAPITALIZED'
                               AND fb.deprn_method_code = fm.method_code
                               AND ds.deprn_source_code <> 'BOOKS'
                               AND DECODE (
                                     facc.asset_type || '-' || fc.segment1,
                                     'CIP-0012',
                                     'Additions Project Khalifa assets',
                                     'CAPITALIZED-' || fc.segment1,
                                     '0',
                                     'Additions'
                                  ) <> '0'/*ORDER BY fb.asset_id*/
            UNION
            -- Disposal / Transferred / Retired
            (                                                       -- retired
             SELECT   DISTINCT asset_id,
                               cost,
                               ytd_deprn,
                               deprn_amount,
                               deprn_reserve acc_deprn,
                               cost - deprn_reserve net_bk_val,
                               cip_cost,
                               cip_cost_pk,
                               description cat_desc,
                               fat_desc sub_cat_desc,
                               activity
               FROM   (SELECT   DISTINCT
                                fb.asset_id,
                                fb.cost,
                                0 cip_cost,
                                0 cip_cost_pk,
                                ds.ytd_deprn,
                                ds.deprn_reserve,
                                fc.description,
                                fat.description fat_desc,
                                ds.deprn_amount,
                                'Disposal / Transferred / Retired' activity
                         FROM   fa_books fb,
                                fa_additions_b fa,
                                fa_methods fm,
                                fa_financial_inquiry_cost_v fic,
                                fa_categories_vl fc,
                                fa_additions_tl fat,
                                fa_deprn_summary ds,
                                fa_mass_ext_retirements_v ret
                        WHERE       ds.asset_id = fa.asset_id
                                AND fb.asset_id = fa.asset_id
                                AND fb.asset_id = fic.asset_id
                                AND fb.life_in_months = fm.life_in_months
                                AND fb.book_type_code = ds.book_type_code
                                AND fb.book_type_code = fic.book_type_code
                                AND fa.last_update_date >
                                      TO_DATE (
                                            '01'
                                         || 'JAN'
                                         || TO_CHAR (SYSDATE, 'RRRR'),
                                         'DD-MON-RRRR'
                                AND ds.deprn_run_date =
                                      (SELECT   DISTINCT MAX (deprn_run_date)
                                         FROM   fa_deprn_summary
                                        WHERE   asset_id = fb.asset_id)
                                AND fic.transaction_header_id_in =
                                      (SELECT   DISTINCT
                                                MAX (transaction_header_id_in)
                                         FROM   fa_financial_inquiry_cost_v
                                        WHERE   asset_id = fb.asset_id)
                                AND fb.date_effective =
                                      (SELECT   DISTINCT MAX (date_effective)
                                         FROM   fa_books
                                        WHERE   asset_id = fb.asset_id)
                                AND fa.attribute_category_code =
                                      fc.segment1 || '-' || fc.segment2
                                AND fb.asset_id = ret.asset_id
                                AND fa.asset_id = fat.asset_id
                                AND fb.deprn_method_code = fm.method_code
                                AND ds.deprn_source_code <> 'BOOKS'/*ORDER BY fb.asset_id*/
             UNION
             --transfer
             SELECT   DISTINCT asset_id,
                               cost,
                               ytd_deprn,
                               deprn_amount,
                               deprn_reserve acc_deprn,
                               cost - deprn_reserve net_bk_val,
                               cip_cost,
                               cip_cost_pk,
                               description cat_desc,
                               fat_desc sub_cat_desc,
                               activity
               FROM   (SELECT   DISTINCT
                                fb.asset_id,
                                fb.cost,
                                facc.cost cip_cost,
                                0 cip_cost_pk,
                                ds.ytd_deprn,
                                ds.deprn_reserve,
                                fc.description,
                                fat.description fat_desc,
                                ds.deprn_amount,
                                'Disposal / Transferred / Retired' activity
                         FROM   fa_books fb,
                                fa_additions_b fa,
                                fa_methods fm,
                                fa_financial_inquiry_cost_v fic,
                                fa_categories_vl fc,
                                fa_capitalize_cip_v facc,
                                fa_additions_tl fat,
                                fa_deprn_summary ds,
                                fa_distribution_inquiry_v di
                        WHERE       ds.asset_id = fa.asset_id
                                AND fb.asset_id = fa.asset_id
                                AND fb.asset_id = fic.asset_id
                                AND di.asset_id = fb.asset_id
                                AND fb.life_in_months = fm.life_in_months
                                AND fb.book_type_code = ds.book_type_code
                                AND fb.book_type_code = fic.book_type_code
                                AND fa.last_update_date >
                                      TO_DATE (
                                            '01'
                                         || 'JAN'
                                         || TO_CHAR (SYSDATE, 'RRRR'),
                                         'DD-MON-RRRR'
                                AND ds.deprn_run_date =
                                      (SELECT   DISTINCT MAX (deprn_run_date)
                                         FROM   fa_deprn_summary
                                        WHERE   asset_id = fb.asset_id)
                                AND fic.transaction_header_id_in =
                                      (SELECT   DISTINCT
                                                MAX (transaction_header_id_in)
                                         FROM   fa_financial_inquiry_cost_v
                                        WHERE   asset_id = fb.asset_id)
                                AND fb.date_effective =
                                      (SELECT   DISTINCT MAX (date_effective)
                                         FROM   fa_books
                                        WHERE   asset_id = fb.asset_id)
                                AND di.transaction_header_id =
                                      (SELECT   DISTINCT
                                                MAX (transaction_header_id)
                                         FROM   fa_distribution_inquiry_v
                                        WHERE   asset_id = fb.asset_id
                                                AND transtype = 'TRANSFER')
                                AND fa.attribute_category_code =
                                      fc.segment1 || '-' || fc.segment2
                                AND fb.asset_id = facc.asset_id
                                AND fa.asset_id = fat.asset_id
                                AND facc.asset_type = 'CAPITALIZED'
                                AND fb.deprn_method_code = fm.method_code
                                AND ds.deprn_source_code <> 'BOOKS'/*ORDER BY fb.asset_id*/
GROUP BY   cat_desc, activity                                   
ORDER BY   activityBrgds,
Max

Hi all,
I have a matrix report which has dynamic as well as few fixed columns.
It is a fixed asset Report in which the sum(cost) in cell should be grouped according to column and row-wise.
The row consists of the activity such as additions, retirements etc and the dynamic column is the category and other fixed columns such as CIP cost, CWIP cost will be grouped only according to row.
the actual layout should be like this
                 | category 1 | category 2 | category 3 ...... | CIP cost | CWIP cost
Additions    | Sum(cost) | Sum(cost)  | Sum(cost)  .......| 1234      | 4500
retirements | Sum(cost) | Sum(cost)  | Sum(cost)  .......| 1000      | 2500but due to fixed colums in the layout the report builder pushes the fixed colums to the next row with single query i get
                 | category 1 | category 2 | category 3 ...... |
Additions    | Sum(cost) | Sum(cost)  | Sum(cost)  .......|
                  CIP cost     | CWIP cost
                   1234        | 4500
retirements | Sum(cost) | Sum(cost)  | Sum(cost)  .......|
                  CIP cost     | CWIP cost
                   1000        | 2500if i try to add those columns alone in a seperate query and then build the report i get the layout like this
                 | category 1 | category 2 | category 3 ...... |
Additions    | Sum(cost) | Sum(cost)  | Sum(cost)  .......|
retirements | Sum(cost) | Sum(cost)  | Sum(cost)  .......|
CIP cost     | CWIP cost
2234        | 7000This is my query, i have used union to get the row-wise column activity
/* Formatted on 03-Sep-12 5:23:11 PM (QP5 v5.114.809.3010) */
  SELECT   DISTINCT /*ASSET_ID
                    SUM (cost),
                    SUM (cip_cost),
                    SUM (cip_cost_pk),
                    cat_desc--,sub_cat_desc
                    ,activity
    FROM   (-- cip cost
            SELECT   DISTINCT asset_id,
                              cost,
                              ytd_deprn,
                              deprn_amount,
                              deprn_reserve acc_deprn,
                              cost - deprn_reserve net_bk_val,
                              cip_cost,
                              cip_cost_pk,
                              description cat_desc,
                              fat_desc sub_cat_desc,
                              activity
              FROM   (SELECT   DISTINCT
                               fb.asset_id,
                               fb.cost,
                               facc.cost cip_cost,
                               0 cip_cost_pk,
                               ds.ytd_deprn,
                               ds.deprn_reserve,
                               fc.description,
                               fat.description fat_desc,
                               ds.deprn_amount,
                               DECODE (
                                     facc.asset_type
                                  || '-'
                                  || fc.segment1
                                  || '-'
                                  || di.transtype,
                                     'CIP'
                                  || '-'
                                  || fc.segment1
                                  || '-'
                                  || 'TRANSFER',
                                  'CIP T/F',
                                  'CIP-0012-' || di.transtype,
                                  'Additions Project Khalifa assets',
                                  'CAPITALIZED-' || fc.segment1 || di.transtype,
                                  '0',
                                  'Additions'
                                  activity
                        FROM   fa_books fb,
                               fa_additions_b fa,
                               fa_methods fm,
                               fa_financial_inquiry_cost_v fic,
                               fa_categories_vl fc,
                               fa_capitalize_cip_v facc,
                               fa_additions_tl fat,
                               fa_deprn_summary ds,
                               fa_distribution_inquiry_v di
                       WHERE       ds.asset_id = fa.asset_id
                               AND fb.asset_id = fa.asset_id
                               AND fb.asset_id = fic.asset_id
                               AND di.asset_id = fb.asset_id
                               AND fb.life_in_months = fm.life_in_months
                               AND fb.book_type_code = ds.book_type_code
                               AND fb.book_type_code = fic.book_type_code
                               AND fa.last_update_date >
                                     TO_DATE (
                                           '01'
                                        || 'JAN'
                                        || TO_CHAR (SYSDATE, 'RRRR'),
                                        'DD-MON-RRRR'
                               AND ds.deprn_run_date =
                                     (SELECT   DISTINCT MAX (deprn_run_date)
                                        FROM   fa_deprn_summary
                                       WHERE   asset_id = fb.asset_id)
                               AND fic.transaction_header_id_in =
                                     (SELECT   DISTINCT
                                               MAX (transaction_header_id_in)
                                        FROM   fa_financial_inquiry_cost_v
                                       WHERE   asset_id = fb.asset_id)
                               AND fb.date_effective =
                                     (SELECT   DISTINCT MAX (date_effective)
                                        FROM   fa_books
                                       WHERE   asset_id = fb.asset_id)
                               AND di.transaction_header_id =
                                     (SELECT   DISTINCT
                                               MAX (transaction_header_id)
                                        FROM   fa_distribution_inquiry_v
                                       WHERE   asset_id = fb.asset_id)
                               AND fa.attribute_category_code =
                                     fc.segment1 || '-' || fc.segment2
                               AND fc.segment1 <> '0012'
                               AND fb.asset_id = facc.asset_id
                               AND fa.asset_id = fat.asset_id
                               --AND facc.asset_type <> 'CAPITALIZED'
                               AND fb.deprn_method_code = fm.method_code
                               AND ds.deprn_source_code <> 'BOOKS'
                               AND DECODE (
                                     facc.asset_type || '-' || fc.segment1,
                                     'CIP-0012',
                                     'Additions Project Khalifa assets',
                                     'CAPITALIZED-' || fc.segment1,
                                     '0',
                                     'Additions'
                                  ) <> '0'/*ORDER BY fb.asset_id*/
            UNION
            --cip cost pk
            SELECT   DISTINCT asset_id,
                              cost,
                              ytd_deprn,
                              deprn_amount,
                              deprn_reserve acc_deprn,
                              cost - deprn_reserve net_bk_val,
                              cip_cost,
                              cip_cost_pk,
                              description cat_desc,
                              fat_desc sub_cat_desc,
                              activity
              FROM   (SELECT   DISTINCT
                               fb.asset_id,
                               fb.cost,
                               0 cip_cost,
                               facc.cost cip_cost_pk,
                               ds.ytd_deprn,
                               ds.deprn_reserve,
                               fc.description,
                               fat.description fat_desc,
                               ds.deprn_amount,
                               DECODE (
                                     facc.asset_type
                                  || '-'
                                  || fc.segment1
                                  || '-'
                                  || di.transtype,
                                     'CIP'
                                  || '-'
                                  || fc.segment1
                                  || '-'
                                  || 'TRANSFER',
                                  'CIP T/F',
                                  'CIP-0012-' || di.transtype,
                                  'Additions Project Khalifa assets',
                                  'CAPITALIZED-' || fc.segment1 || di.transtype,
                                  '0',
                                  'Additions'
                                  activity
                        FROM   fa_books fb,
                               fa_additions_b fa,
                               fa_methods fm,
                               fa_financial_inquiry_cost_v fic,
                               fa_categories_vl fc,
                               fa_capitalize_cip_v facc,
                               fa_additions_tl fat,
                               fa_deprn_summary ds,
                               fa_distribution_inquiry_v di
                       WHERE       ds.asset_id = fa.asset_id
                               AND fb.asset_id = fa.asset_id
                               AND fb.asset_id = fic.asset_id
                               AND di.asset_id = fb.asset_id
                               AND fb.life_in_months = fm.life_in_months
                               AND fb.book_type_code = ds.book_type_code
                               AND fb.book_type_code = fic.book_type_code
                               AND fa.last_update_date >
                                     TO_DATE (
                                           '01'
                                        || 'JAN'
                                        || TO_CHAR (SYSDATE, 'RRRR'),
                                        'DD-MON-RRRR'
                               AND ds.deprn_run_date =
                                     (SELECT   DISTINCT MAX (deprn_run_date)
                                        FROM   fa_deprn_summary
                                       WHERE   asset_id = fb.asset_id)
                               AND fic.transaction_header_id_in =
                                     (SELECT   DISTINCT
                                               MAX (transaction_header_id_in)
                                        FROM   fa_financial_inquiry_cost_v
                                       WHERE   asset_id = fb.asset_id)
                               AND fb.date_effective =
                                     (SELECT   DISTINCT MAX (date_effective)
                                        FROM   fa_books
                                       WHERE   asset_id = fb.asset_id)
                               AND di.transaction_header_id =
                                     (SELECT   DISTINCT
                                               MAX (transaction_header_id)
                                        FROM   fa_distribution_inquiry_v
                                       WHERE   asset_id = fb.asset_id)
                               AND fa.attribute_category_code =
                                     fc.segment1 || '-' || fc.segment2
                               AND fc.segment1 = '0012'
                               AND fb.asset_id = facc.asset_id
                               AND fa.asset_id = fat.asset_id
                               --AND facc.asset_type <> 'CAPITALIZED'
                               AND fb.deprn_method_code = fm.method_code
                               AND ds.deprn_source_code <> 'BOOKS'
                               AND DECODE (
                                     facc.asset_type || '-' || fc.segment1,
                                     'CIP-0012',
                                     'Additions Project Khalifa assets',
                                     'CAPITALIZED-' || fc.segment1,
                                     '0',
                                     'Additions'
                                  ) <> '0'/*ORDER BY fb.asset_id*/
            UNION
            -- Disposal / Transferred / Retired
            (                                                       -- retired
             SELECT   DISTINCT asset_id,
                               cost,
                               ytd_deprn,
                               deprn_amount,
                               deprn_reserve acc_deprn,
                               cost - deprn_reserve net_bk_val,
                               cip_cost,
                               cip_cost_pk,
                               description cat_desc,
                               fat_desc sub_cat_desc,
                               activity
               FROM   (SELECT   DISTINCT
                                fb.asset_id,
                                fb.cost,
                                0 cip_cost,
                                0 cip_cost_pk,
                                ds.ytd_deprn,
                                ds.deprn_reserve,
                                fc.description,
                                fat.description fat_desc,
                                ds.deprn_amount,
                                'Disposal / Transferred / Retired' activity
                         FROM   fa_books fb,
                                fa_additions_b fa,
                                fa_methods fm,
                                fa_financial_inquiry_cost_v fic,
                                fa_categories_vl fc,
                                fa_additions_tl fat,
                                fa_deprn_summary ds,
                                fa_mass_ext_retirements_v ret
                        WHERE       ds.asset_id = fa.asset_id
                                AND fb.asset_id = fa.asset_id
                                AND fb.asset_id = fic.asset_id
                                AND fb.life_in_months = fm.life_in_months
                                AND fb.book_type_code = ds.book_type_code
                                AND fb.book_type_code = fic.book_type_code
                                AND fa.last_update_date >
                                      TO_DATE (
                                            '01'
                                         || 'JAN'
                                         || TO_CHAR (SYSDATE, 'RRRR'),
                                         'DD-MON-RRRR'
                                AND ds.deprn_run_date =
                                      (SELECT   DISTINCT MAX (deprn_run_date)
                                         FROM   fa_deprn_summary
                                        WHERE   asset_id = fb.asset_id)
                                AND fic.transaction_header_id_in =
                                      (SELECT   DISTINCT
                                                MAX (transaction_header_id_in)
                                         FROM   fa_financial_inquiry_cost_v
                                        WHERE   asset_id = fb.asset_id)
                                AND fb.date_effective =
                                      (SELECT   DISTINCT MAX (date_effective)
                                         FROM   fa_books
                                        WHERE   asset_id = fb.asset_id)
                                AND fa.attribute_category_code =
                                      fc.segment1 || '-' || fc.segment2
                                AND fb.asset_id = ret.asset_id
                                AND fa.asset_id = fat.asset_id
                                AND fb.deprn_method_code = fm.method_code
                                AND ds.deprn_source_code <> 'BOOKS'/*ORDER BY fb.asset_id*/
             UNION
             --transfer
             SELECT   DISTINCT asset_id,
                               cost,
                               ytd_deprn,
                               deprn_amount,
                               deprn_reserve acc_deprn,
                               cost - deprn_reserve net_bk_val,
                               cip_cost,
                               cip_cost_pk,
                               description cat_desc,
                               fat_desc sub_cat_desc,
                               activity
               FROM   (SELECT   DISTINCT
                                fb.asset_id,
                                fb.cost,
                                facc.cost cip_cost,
                                0 cip_cost_pk,
                                ds.ytd_deprn,
                                ds.deprn_reserve,
                                fc.description,
                                fat.description fat_desc,
                                ds.deprn_amount,
                                'Disposal / Transferred / Retired' activity
                         FROM   fa_books fb,
                                fa_additions_b fa,
                                fa_methods fm,
                                fa_financial_inquiry_cost_v fic,
                                fa_categories_vl fc,
                                fa_capitalize_cip_v facc,
                                fa_additions_tl fat,
                                fa_deprn_summary ds,
                                fa_distribution_inquiry_v di
                        WHERE       ds.asset_id = fa.asset_id
                                AND fb.asset_id = fa.asset_id
                                AND fb.asset_id = fic.asset_id
                                AND di.asset_id = fb.asset_id
                                AND fb.life_in_months = fm.life_in_months
                                AND fb.book_type_code = ds.book_type_code
                                AND fb.book_type_code = fic.book_type_code
                                AND fa.last_update_date >
                                      TO_DATE (
                                            '01'
                                         || 'JAN'
                                         || TO_CHAR (SYSDATE, 'RRRR'),
                                         'DD-MON-RRRR'
                                AND ds.deprn_run_date =
                                      (SELECT   DISTINCT MAX (deprn_run_date)
                                         FROM   fa_deprn_summary
                                        WHERE   asset_id = fb.asset_id)
                                AND fic.transaction_header_id_in =
                                      (SELECT   DISTINCT
                                                MAX (transaction_header_id_in)
                                         FROM   fa_financial_inquiry_cost_v
                                        WHERE   asset_id = fb.asset_id)
                                AND fb.date_effective =
                                      (SELECT   DISTINCT MAX (date_effective)
                                         FROM   fa_books
                                        WHERE   asset_id = fb.asset_id)
                                AND di.transaction_header_id =
                                      (SELECT   DISTINCT
                                                MAX (transaction_header_id)
                                         FROM   fa_distribution_inquiry_v
                                        WHERE   asset_id = fb.asset_id
                                                AND transtype = 'TRANSFER')
                                AND fa.attribute_category_code =
                                      fc.segment1 || '-' || fc.segment2
                                AND fb.asset_id = facc.asset_id
                                AND fa.asset_id = fat.asset_id
                                AND facc.asset_type = 'CAPITALIZED'
                                AND fb.deprn_method_code = fm.method_code
                                AND ds.deprn_source_code <> 'BOOKS'/*ORDER BY fb.asset_id*/
GROUP BY   cat_desc, activity                                   
ORDER BY   activityBrgds,
Max

Similar Messages

  • How to create a report with dynamic no of columns

    Hi All,
    we have a report with 6 columns.
    and its been access by 10-20 people.
    the user dont want to have a fix report with 6 columns rather they want to have a flexibility to select the columns from the report they want to see.
    i.e. user one one time wasnt to see only one columns
    another time he want to see only column 2 and 4 of the report.
    its like there can be a multiple select option from where he can select the columns in the existing report and then see the same report with only that much column.
    Please tell me how to implement it.

    Abhip i thin you didnt get the problem.
    there is s exeiting report with 6 column
    Currently when i logging to OBIEE and see that report
    i will be getting report with 6 column
    but now i want a flexibility of selecting only 2 or 3 or 1 or 4 or 5 as i wish columns from this report and see the result only for that
    so is there by any chance i can have a check box for each column which i can check in dashborad to select that column
    and show the result were as by default it will show the report with 6 column.
    Thanks

  • How to generate report with dynamic variable number of columns?

    How to generate report with dynamic variable number of columns?
    I need to generate a report with varying column names (state names) as follows:
    SELECT AK, AL, AR,... FROM States ;
    I get these column names from the result of another query.
    In order to clarify my question, Please consider following table:
    CREATE TABLE TIME_PERIODS (
    PERIOD     VARCHAR2 (50) PRIMARY KEY
    CREATE TABLE STATE_INCOME (
         NAME     VARCHAR2 (2),
         PERIOD     VARCHAR2 (50)     REFERENCES TIME_PERIODS (PERIOD) ,
         INCOME     NUMBER (12, 2)
    I like to generate a report as follows:
    AK CA DE FL ...
    PERIOD1 1222.23 2423.20 232.33 345.21
    PERIOD2
    PERIOD3
    Total 433242.23 56744.34 8872.21 2324.23 ...
    The TIME_PERIODS.Period and State.Name could change dynamically.
    So I can't specify the state name in Select query like
    SELECT AK, AL, AR,... FROM
    What is the best way to generate this report?

    SQL> -- test tables and test data:
    SQL> CREATE TABLE states
      2    (state VARCHAR2 (2))
      3  /
    Table created.
    SQL> INSERT INTO states
      2  VALUES ('AK')
      3  /
    1 row created.
    SQL> INSERT INTO states
      2  VALUES ('AL')
      3  /
    1 row created.
    SQL> INSERT INTO states
      2  VALUES ('AR')
      3  /
    1 row created.
    SQL> INSERT INTO states
      2  VALUES ('CA')
      3  /
    1 row created.
    SQL> INSERT INTO states
      2  VALUES ('DE')
      3  /
    1 row created.
    SQL> INSERT INTO states
      2  VALUES ('FL')
      3  /
    1 row created.
    SQL> CREATE TABLE TIME_PERIODS
      2    (PERIOD VARCHAR2 (50) PRIMARY KEY)
      3  /
    Table created.
    SQL> INSERT INTO time_periods
      2  VALUES ('PERIOD1')
      3  /
    1 row created.
    SQL> INSERT INTO time_periods
      2  VALUES ('PERIOD2')
      3  /
    1 row created.
    SQL> INSERT INTO time_periods
      2  VALUES ('PERIOD3')
      3  /
    1 row created.
    SQL> INSERT INTO time_periods
      2  VALUES ('PERIOD4')
      3  /
    1 row created.
    SQL> CREATE TABLE STATE_INCOME
      2    (NAME   VARCHAR2 (2),
      3       PERIOD VARCHAR2 (50) REFERENCES TIME_PERIODS (PERIOD),
      4       INCOME NUMBER (12, 2))
      5  /
    Table created.
    SQL> INSERT INTO state_income
      2  VALUES ('AK', 'PERIOD1', 1222.23)
      3  /
    1 row created.
    SQL> INSERT INTO state_income
      2  VALUES ('CA', 'PERIOD1', 2423.20)
      3  /
    1 row created.
    SQL> INSERT INTO state_income
      2  VALUES ('DE', 'PERIOD1', 232.33)
      3  /
    1 row created.
    SQL> INSERT INTO state_income
      2  VALUES ('FL', 'PERIOD1', 345.21)
      3  /
    1 row created.
    SQL> -- the basic query:
    SQL> SELECT   SUBSTR (time_periods.period, 1, 10) period,
      2             SUM (DECODE (name, 'AK', income)) "AK",
      3             SUM (DECODE (name, 'CA', income)) "CA",
      4             SUM (DECODE (name, 'DE', income)) "DE",
      5             SUM (DECODE (name, 'FL', income)) "FL"
      6  FROM     state_income, time_periods
      7  WHERE    time_periods.period = state_income.period (+)
      8  AND      time_periods.period IN ('PERIOD1','PERIOD2','PERIOD3')
      9  GROUP BY ROLLUP (time_periods.period)
    10  /
    PERIOD             AK         CA         DE         FL                                             
    PERIOD1       1222.23     2423.2     232.33     345.21                                             
    PERIOD2                                                                                            
    PERIOD3                                                                                            
                  1222.23     2423.2     232.33     345.21                                             
    SQL> -- package that dynamically executes the query
    SQL> -- given variable numbers and values
    SQL> -- of states and periods:
    SQL> CREATE OR REPLACE PACKAGE package_name
      2  AS
      3    TYPE cursor_type IS REF CURSOR;
      4    PROCEDURE procedure_name
      5        (p_periods   IN     VARCHAR2,
      6         p_states    IN     VARCHAR2,
      7         cursor_name IN OUT cursor_type);
      8  END package_name;
      9  /
    Package created.
    SQL> CREATE OR REPLACE PACKAGE BODY package_name
      2  AS
      3    PROCEDURE procedure_name
      4        (p_periods   IN     VARCHAR2,
      5         p_states    IN     VARCHAR2,
      6         cursor_name IN OUT cursor_type)
      7    IS
      8        v_periods          VARCHAR2 (1000);
      9        v_sql               VARCHAR2 (4000);
    10        v_states          VARCHAR2 (1000) := p_states;
    11    BEGIN
    12        v_periods := REPLACE (p_periods, ',', ''',''');
    13        v_sql := 'SELECT SUBSTR(time_periods.period,1,10) period';
    14        WHILE LENGTH (v_states) > 1
    15        LOOP
    16          v_sql := v_sql
    17          || ',SUM(DECODE(name,'''
    18          || SUBSTR (v_states,1,2) || ''',income)) "' || SUBSTR (v_states,1,2)
    19          || '"';
    20          v_states := LTRIM (SUBSTR (v_states, 3), ',');
    21        END LOOP;
    22        v_sql := v_sql
    23        || 'FROM     state_income, time_periods
    24            WHERE    time_periods.period = state_income.period (+)
    25            AND      time_periods.period IN (''' || v_periods || ''')
    26            GROUP BY ROLLUP (time_periods.period)';
    27        OPEN cursor_name FOR v_sql;
    28    END procedure_name;
    29  END package_name;
    30  /
    Package body created.
    SQL> -- sample executions from SQL:
    SQL> VARIABLE g_ref REFCURSOR
    SQL> EXEC package_name.procedure_name ('PERIOD1,PERIOD2,PERIOD3','AK,CA,DE,FL', :g_ref)
    PL/SQL procedure successfully completed.
    SQL> PRINT g_ref
    PERIOD             AK         CA         DE         FL                                             
    PERIOD1       1222.23     2423.2     232.33     345.21                                             
    PERIOD2                                                                                            
    PERIOD3                                                                                            
                  1222.23     2423.2     232.33     345.21                                             
    SQL> EXEC package_name.procedure_name ('PERIOD1,PERIOD2','AK,AL,AR', :g_ref)
    PL/SQL procedure successfully completed.
    SQL> PRINT g_ref
    PERIOD             AK         AL         AR                                                        
    PERIOD1       1222.23                                                                              
    PERIOD2                                                                                            
                  1222.23                                                                              
    SQL> -- sample execution from PL/SQL block
    SQL> -- using parameters derived from processing
    SQL> -- cursors containing results of other queries:
    SQL> DECLARE
      2    CURSOR c_period
      3    IS
      4    SELECT period
      5    FROM   time_periods;
      6    v_periods   VARCHAR2 (1000);
      7    v_delimiter VARCHAR2 (1) := NULL;
      8    CURSOR c_states
      9    IS
    10    SELECT state
    11    FROM   states;
    12    v_states    VARCHAR2 (1000);
    13  BEGIN
    14    FOR r_period IN c_period
    15    LOOP
    16        v_periods := v_periods || v_delimiter || r_period.period;
    17        v_delimiter := ',';
    18    END LOOP;
    19    v_delimiter := NULL;
    20    FOR r_states IN c_states
    21    LOOP
    22        v_states := v_states || v_delimiter || r_states.state;
    23        v_delimiter := ',';
    24    END LOOP;
    25    package_name.procedure_name (v_periods, v_states, :g_ref);
    26  END;
    27  /
    PL/SQL procedure successfully completed.
    SQL> PRINT g_ref
    PERIOD             AK         AL         AR         CA         DE         FL                       
    PERIOD1       1222.23                           2423.2     232.33     345.21                       
    PERIOD2                                                                                            
    PERIOD3                                                                                            
    PERIOD4                                                                                            
                  1222.23                           2423.2     232.33     345.21                       

  • Matrix report with two across groups

    Hi all,
    I am facing a problem in making a multi line matrix report.
    actually I need to make a matrix report with two "across groups", but unable to get desired result.
    if any body has any idea, please share with me.
    regards
    Ata

    No,
    you must have only 1 query which extracts all your data:
    A,q1,10
    A,q2,20
    A,q3,30
    B,q1,40
    B,q3,50
    C,q2,60
    C,q3,70
    Open report builder and create a new report from wizard.
    Select the first option accordingly with your requirements and go next.
    Type a name for your report in the title field then select "Matrix" as layout and go next.
    Select SQL Query and go next.
    Type your query.
    Select the data you want on the rows (i.e. A, B, C...) and click on the ">" button in the Matrix Row Fields section, then go next.
    Select the data you want on the columns (i.e. q1, q2, q3...) and click on the ">" button in the Matrix Column Fields section, then go next.
    Select the data you want on the cells(i.e. 10,20,30...) and click on the "Sum >" button in the Matrix Cell Fields section, then go next.
    Add some totals, if you need them.
    Go next and finish.
    Now you have a report with the following layout:
             Q1           Q2            Q3       TOT
    A        10           20            30        60
    B        40                         50        90
    C                     60            70       130
    TOT      50           80           150       280Bye
    Raffy

  • Submit report with dynamic selections

    Hi All,
    I am trying to Submit a report with dynamic selections. I am using the option SUBMIT REPORT WITH FREE SELECTIONS.
    But the dynamic selections are not getting passed.
    Request you to kindly provide some inputs
    My code is
    DATA: trange TYPE rsds_trange,
          trange_line LIKE LINE OF trange,
          trange_frange_t_line LIKE LINE OF trange_line-frange_t,
          trange_frange_t_selopt_t_line LIKE LINE OF trange_frange_t_line-selopt_t,
          texpr TYPE rsds_texpr.
    trange_line-tablename = 'PA0002'.
    *trange_frange_t_line-tablename = 'PA0002'.
    trange_frange_t_line-fieldname = 'GBJHR'.
    trange_frange_t_selopt_t_line-sign   = 'I'.
    trange_frange_t_selopt_t_line-option = 'EQ'.
    trange_frange_t_selopt_t_line-low    = '1987'.
    trange_frange_t_selopt_t_line-high   = '1987'.
    APPEND trange_frange_t_selopt_t_line TO   trange_frange_t_line-selopt_t.
    APPEND trange_frange_t_line TO trange_line-frange_t.
    APPEND trange_line TO trange.
    CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
      EXPORTING
        field_ranges = trange
      IMPORTING
        expressions  = texpr.
    submit RPCADVQ0
    VIA SELECTION-SCREEN
                    WITH SELECTION-TABLE rspar_tab
                    WITH FREE SELECTIONS it_texpr
                    and returN.
    Kindly provide your inputs
    Regards
    Reshma

    Hi Reshma,
    Use the FM - RS_REFRESH_FROM_DYNAMICAL_SEL before FREE_SELECTIONS_RANGE_2_EX.
      data: trange  type rsds_trange,
              g_repid type sy-repid.
    g_repid = 'RPCADVQ0'.
      call function 'RS_REFRESH_FROM_DYNAMICAL_SEL'
        exporting
          curr_report        = g_repid
          mode_write_or_move = 'M'
        importing
          p_trange           = trange
        exceptions
          not_found          = 1
          wrong_type         = 2
          others             = 3.
      if sy-subrc eq 0.
    " Do the changes to the trange
    CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
    EXPORTING
    field_ranges = trange
    IMPORTING
    expressions = texpr.
    submit RPCADVQ0
    VIA SELECTION-SCREEN
    WITH SELECTION-TABLE rspar_tab
    WITH FREE SELECTIONS it_texpr
    and returN.
    endif.
    Cheers,
    Kothand

  • How to schedule a report with dynamic parameters

    We need to schedule a Webi report with dynamic parameters then email the different result to different email groups.  Is it possible to do this in scheduler? Please advise. Thanks.

    there are 2 schedulers
    1st  CMS
    the reports which does not have any input parameters, only then t can be scheduled in CMS
    2nd in Infoview
    if report has input parameters and if you want to schedule it, then you may need to schedule the report from Infoview
    To have a email notification
    configure the SMTP server in report JOB Server
    Thanks,
    Ganesh

  • Is there any ECC report with PurchOrder and Purchase Requisition Selection

    Hi there,
    for one of my BI report reconciliation with ECC requirement, I would like to know how many POs are there without Purchase requisitions, same way want to know how many POs are there with Purchase requisition.
    I know some tables where we can find this info, unfortunately I cannot ask my user to go and check in Tables for Acceptance testing. So I am looking for any standard ECC report with POs and PRs as Columns
    Due to time constraints, I cannot go build any ABAP queries in ECC at the moment,
    Any insights are greatly appreciated.
    Thanks

    Hi Curious ,
    Check if the following link is helpful. The link is from the SDN Wiki for creating a Z Report in R/3 for Purchase Requisition.
    http://wiki.sdn.sap.com/wiki/display/ABAP/PurchaseRequisitionDetail+Report
    Or try the following transactions:
    ME5A - Purchase Requisitions: List Display
    ME53  - Display Purchase Requisition
    ME53N - Display Purchase Requisition
    Hope this helps your cause.
    Regards,
    Kush Kashyap

  • Report with more than 30 columns

    XML Pub Gurus,
    I have a requirement where I need to create a table layout with proper spacing for more than 30 columns and I asked this question in Open World XML Pub team and they responded to my question as "The page size in word has to be increased to allow to add those many columns". I was satisfied with the answer without knowing that Word will not allow more than 22" long in landscape. So, I am puzzled with the answer in Open World.
    So, could somebody please give me guide lines to create this type of report for more than 30 Columns. This is very common requirement for us to report some of the stuff from the db.
    Thanks in advance
    Ram G

    What do you want your final destination format to be? I'm thinking you'll probably want to go out to HTML or Excel. I would think that would be the only place where you could read and use a report with more than 30 columns.
    Here's an idea if you want to go to excel and if you are using the 10.1.3.2 Enterprise (standalone) version.
    1. Create your query with as many columns as you want.
    2. Don't create a layout at all
    3. Launch Excel Analyzer.
    4. From within Excel, build your report based off the downloaded data (for example add a pivot table).
    5. Upload your excel Analyzer template back to the server
    This template can now be scheduled and delivered like normal templates or updated with current data directly from within Excel.

  • Internal table with Dynamic and Non dynamic fileds

    Hi Experts,
    How to get the internal table with Dynamic and Non-Dynamic Fields.
    Could u please help me.
    Thanks,
    Varun

    Hi,
       Execute the below sample code or analyze it there is appropriate description provided.
    *& Report  ZTEST_PRM_DYN_ALV
    REPORT  ZTEST_PRM_DYN_ALV.
    type-pools: slis.
    field-symbols: <dyn_table> type standard table,
    <dyn_wa>.
    data: alv_fldcat type slis_t_fieldcat_alv,
    it_fldcat type lvc_t_fcat.
    selection-screen begin of block b1 with frame title text-001.
    parameters: p_flds(5) type c.
    selection-screen end of block b1.
    start-of-selection.
    *build the dynamic internal table
    perform build_dyn_itab.
    *write 5 records to the alv grid
    do 5 times.
    perform build_report.
    enddo.
    *call the alv grid.
    perform call_alv.
    *Build_dyn_itab
    form build_dyn_itab.
    data: new_table type ref to data,
    new_line type ref to data,
    wa_it_fldcat type lvc_s_fcat.
    *Create fields .
    clear wa_it_fldcat.
    wa_it_fldcat-fieldname = 'name1'.
    wa_it_fldcat-datatype = 'mara-matnr'.
    wa_it_fldcat-intlen = 5.
    append wa_it_fldcat to it_fldcat .
    *clear wa_it_fldcat.
    wa_it_fldcat-fieldname = sy-index.
    wa_it_fldcat-datatype = 'CHAR'.
    wa_it_fldcat-intlen = 5.
    append wa_it_fldcat to it_fldcat .
    do p_flds times.
    clear wa_it_fldcat.
    wa_it_fldcat-fieldname = sy-index.
    wa_it_fldcat-datatype = 'CHAR'.
    wa_it_fldcat-intlen = 6.
    append wa_it_fldcat to it_fldcat .
    enddo.
    *Create dynamic internal table and assign to FS
    call method cl_alv_table_create=>create_dynamic_table
    exporting
    it_fieldcatalog = it_fldcat
    importing
    ep_table = new_table.
    assign new_table->* to <dyn_table>.
    *Create dynamic work area and assign to FS
    create data new_line like line of <dyn_table>.
    assign new_line->* to <dyn_wa>.
    endform.
    *Form build_report
    form build_report.
    data: fieldname(20) type c.
    data: fieldvalue(5) type c.
    data: index(3) type c.
    field-symbols: <fs1>.
    do p_flds times.
    index = sy-index.
    *Set up fieldvalue
    concatenate 'FLD' index into
    fieldvalue.
    condense fieldvalue no-gaps.
    assign component index of structure <dyn_wa> to <fs1>.
    <fs1> = fieldvalue.
    enddo.
    *Append to the dynamic internal table
    append <dyn_wa> to <dyn_table>.
    endform.
    *CALL_ALV
    form call_alv.
    data: wa_cat like line of alv_fldcat.
    *clear wa_cat.
    wa_cat-fieldname = 'matnr'.
    wa_cat-seltext_s = sy-index.
    wa_cat-outputlen = '10'.
    append wa_cat to alv_fldcat.
    do p_flds times.
    clear wa_cat.
    wa_cat-fieldname = sy-index.
    wa_cat-seltext_s = sy-index.
    wa_cat-outputlen = '6'.
    append wa_cat to alv_fldcat.
    enddo.
    *Call ABAP List Viewer (ALV)
    call function 'REUSE_ALV_GRID_DISPLAY'
    exporting
    it_fieldcat = alv_fldcat
    tables
    t_outtab = <dyn_table>.
    endform.
    Hope this will help, reward if found usefull.
    Cheers,
    Ram.

  • Reports with more than 100 columns

    I am using Apex 3.2. I am using a classic report with more than 100 columns. So to use the custom heading in the report, I exported the page,did modification in exported sql file and imported back.
    But when I am passing the parameters from a input screen for the first time either it is showing the all data avilable in the database or with only header. If I do the refresh in input screen and try it then it is working as intended. I am updating at the below loaction of the page.Let me know if I have to update anything more in the sql file.
    declare
    s varchar2(32767) := null;
    begin
    s := null;
    wwv_flow_api.create_report_columns (
    p_id=> 200100535534034253 + wwv_flow_api.g_id_offset,
    p_region_id=> 2003453533453 + wwv_flow_api.g_id_offset,
    p_flow_id=> wwv_flow.g_flow_id,
    p_query_column_id=> 157,
    p_form_element_id=> null,
    p_column_alias=> 'XYZ',
    p_column_display_sequence=> 157,
    p_column_heading=> 'XYZ 123',
    p_column_alignment=>'LEFT',
    p_disable_sort_column=>'Y',
    p_sum_column=> 'N',
    p_hidden_column=> 'N',
    p_display_as=>'WITHOUT_MODIFICATION',
    p_pk_col_source=> s,
    p_column_comment=>'');
    end;
    /

    Hi,
    Its just a general thought and I realize you know your application and user community better I do, but do you think your users are going to be very happy when they are presented with a report with more than a hundred columns? Have you considered maybe presenting the data in some sort of rolled up form from which the user can then drill down to the data they are particularly interested in. Also, I'm sure your LAN administrator would be happy not to see 100+ column by x number row reports being regularly shipped across the network.
    Also, 100+ column reports suggests tables with 100+ columns which are probably not designed in a very relationally compliant way. I find that good DB design usually results in applications that have to make less compromises, such as hacking export files in order to fool the API into making ridiculous, unsupported and unsupportable compromises.
    Just a thought..................
    Regards
    Andre

  • Matrix report with group.

    dear all,
    can anyone guide me how to build a matrix report with group using scott schema.
    i can not be able to build a query.
    Thanks
    Muhammad Nadeem

    The example given by Oracle (from the above link) using the following SQL for a matrix report is flawed.
    SELECT DEPTNO, JOB, SUM(SAL)
    FROM EMP
    GROUP BY DEPTNO, JOB
    ORDER BY DEPTNO, JOB
    The SUM function handled by the query restricts you from doing so many things - especially when you want the empty fields to be filled by 0 (by using the Value if Null property).
    If the query is changed to ''SELECT DEPTNO, JOB, SAL FROM EMP' , and use the SUM function in the wizard to build the Matrix cell, then the 'Value if Null' property can be used without any issues.
    This also makes Section 25.6 (Add zeroes in place of blanks) of the documentation a joke.
    Anyway, that's my cents worth....

  • How to create user editable Crystal Report with dynamic dataset

    What I would like to achieve:
    A program loads a report in runtime updates list of database fields (possibly includes sample data), open report in "Crystal Reports 2011" (or 2008) where user customizes report and saves it. Later on the program loads the report, fills actualized data and displays it in .net report viewer.
    What I do:
    CrReport = New CrystalDecisions.CrystalReports.Engine.ReportDocument
    CrReport.Load(TemplateFilename)
    Dim Results As DataTable
    DataTable is filled from a database
    CrReport.SetDataSource(mResults)
    CrReport.SaveAs(NewReportPath, True)
    The NewReportPath is opened in the default program.
    What are the problems
    The report is open in preview mode (not in design).
    When the field is added to the report the designer asks for XML datasource on preview.

    The short answer is that it is not possible. I broke the question to other two: How to save a report that it opens without preview? and How to create user editable Crystal Report with dynamic dataset, where it is possible to find details. Key answer is Re: How to create an editable previewable report?

  • I'm getting the below issue when I try to deploy a report with Dynamic parameters, when I deploy it with static parameters I'm not getting this issue.

    I’m getting the below issue when I try to deploy a crystal report with Dynamic parameters in BI Launch Pad, when I deploy the same report with static parameters I can deploy and run it. I have Restarted the BI server, still the issue exitno use. kindly help me on this issue.
    “This error occurred: Adding Crystal Report "CrystalReport1.rpt" failed. The server with kind rptappserver returned an error result. Failed to copy the report file to the report object. Refreshing the report object properties might have failed. Failed to read data from report file CrystalReport1. Reason: Failed to read parameter object”.

    BO does not run dynamic params through the report as would happen without BusinessObjects (BO) or Crystal Reports Server (CRS).  When you publish a report with dynamic parameters to BO/CRS, the prompt is published to the repository so that it can be accessed through the Business View Manager (which can be installed as part of the client tools).  In order for this to work a couple of things need to happen:
    1.  You need to be sure that you check the "Update Repository" box on the Save As screen the first time you publish the report.
    2.  Your BO/CRS user needs to have "view" access to the Crystal2013ReportApplicationServer in the Servers section in the CMC - in fact, the Everyone group should be given view access to the server in order for dynamic prompts to work correctly.
    3.  In the Business View Manager, the Administrator user needs to give your user, or, even better, a Crystal Developers group full control access to the "Dynamic Cascading Prompts" folder.
    Best practice for dynamic prompts in a BO/CRS environment is to actually create the prompts in the Business View Manager.  This will allow you to create a single data connection that can be reused and also create lists of values such that the same list or prompt can be reused by multiple reports.  If you just create the prompts in Crystal, you will end up with multiple data connections to the same database, the prompts will use the whole query for the reports to get the dynamic values instead of just a focused query to the lookup table that contains the values, and there ends up being lots of duplication and chaos.
    -Dell

  • Tree Matrix Report with double line heading

    Hi,
    I am very new to HTML-DB and HTML as well.
    I need to create a matrix report with a tree functionality and with two line heading.
    Basically This is what I need to generate
    REGION1 REGION2 REGION3
    COL1 COL2 TOTAL COL1 COL2 TOTAL COL1 COL2 TOTAL
    ===========================================================
    CAT1+
    Sub_CAT1
    Sub_CAT2
    CAT2+
    Sub_SCAT3
    Sub_SCAT4
    Where CAT1 , CAT2 needs to be collapsible rows. SCAT1..SCAT4 are sub categories under main categories.
    REGION1.... REGION3 are top level headings. And COL1,COL2 are sub headings under top level headings.
    Thanks,
    Shri

    Please help me on this!
    Thanks,
    Shri

  • I want to create a report with more than  64 column's.

    I want to create a report with more than 64 column's. I have generated Query the XML.When I tried to create a template for the report.I have Inserted the colum's Wizard and finish it throughing error message. "you cannot create atable with more that 63 coloum's "

    Hi ,
    Can u Check the below thread
    More than 63 columns in rtf template

Maybe you are looking for

  • Error- "Unable to capture video..."

    What is the solution to allow video capture in the preferred WMV mode. I know AVI mode works but compression sucks. Plus, my laptop was always able to capture vid in WMV until recently. Now i get this error!!!!!!!!!!! Pls advice on this error: "Unabl

  • Validation of more than one control in a report

    Hi, I have two textboxes and submit buttons in my report.One is for Name Search and another one for submitting.  If the user doesnt know the name he can enter a part of the name and redirect to a search page.Otherwise if he knows the name,he can ente

  • Mp3 does not play in iTunes but plays in Windows Media Player

    Dear group, iTunes will not play a particular group of mp3s I have but the same mp3s play fine in Windows Media Player. Winamp cannot play them either. I've searched the net a bit and found many mentions of it but no solutions which work for me. Also

  • Syncing and streaming

    I got my first Apple TV and am very happy with it. I set it up to stream from my macPro and it works well, but for some movies... it often takes long to stream before it starts playing. Is there a way to sync part of my library, and stream the rest?

  • How can I set the date today as default value in a parameter?

    Hi, I have in my report a date parameter and I want to set as default value the date today. How can I do this? Thanks in advance