Filter data dynamically in reports

Hello,
Is it possible to filter a report dynamically?
Ex:I have a table with 1 million rows.In a report i want the data to be displayed dynamically based on a dashboard prompt.
I know i can do static filters for a column like ticket number in ('123','234').But, what i want to do is "select date,year where ticket number in (prompt for ticketnumber)" some thing like this instead of static values.
Is it possible?Please let me know.
Thanks in advance

Yes. You can do it. I assume that you talk about answer when you write report.
Check this oracle by example tutorial : Section "Using Dashboard Prompts and Presentation Variables"
http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/saw/saw.html#t8

Similar Messages

  • How to filter data in BIP Report fetched from Integration Object

    Hi,
    I have a requirement where I am extracting data of Account records of a Customer. Customer can have multiple types of Accounts. In BIP report, I want to different types of Customer Accounts in different tables. Is it possible? I tried but Conditional Region and Conditional Format options are not working for me. I am using BI Publisher desktop 10.1.3.4.1 version addon for MS Word.
    I am pasting below sample XML for this.
    <?xml version="1.0" encoding="UTF-8"?><ListofIO
    <ListOfBipStarsFincorpAccount
    <FincorpAccount
    <Id
    1-LZ6-46</Id
    <Created
    05/21/2005 19:15:21</Created
    <CreatedBy
    0-1</CreatedBy
    <ABANumber
    Makkah Main</ABANumber
    <AccountName
    سلامه مصطفى ابراهيم سلامه</AccountName
    <AccountType
    Time Deposit</AccountType
    <Acct_Num_Mid_7_7
    7539940</Acct_Num_Mid_7_7
    <Acct_Num_Mid_1_6
    104142</Acct_Num_Mid_1_6
    <AccountNumber
    1041427539940</AccountNumber
    <AcctGen-PrimaryContactId
    1-K5B-445</AcctGen-PrimaryContactId
    <Currency
    SAR</Currency
    <CurrentBalance
    </CurrentBalance
    <CustomerNumber
    </CustomerNumber
    <IntegrationId
    940784</IntegrationId
    <ProductId
    1-DFPY</ProductId
    <RB1ODS
    8290755</RB1ODS
    <STARSAccountBranchArabicName
    مكة المكرمة</STARSAccountBranchArabicName
    <STARSContactId
    </STARSContactId
    <STARSContactToRelation
    </STARSContactToRelation
    </FincorpAccount
    <FincorpAccount
    <Id
    1-LZ6-227</Id
    <Created
    05/21/2005 19:15:21</Created
    <CreatedBy
    0-1</CreatedBy
    <ABANumber
    Makkah Branch</ABANumber
    <AccountName
    عبد العزيز محمدعلي درويش الصبحي</AccountName
    <AccountType
    Time Deposit</AccountType
    <Acct_Num_Mid_7_7
    469940</Acct_Num_Mid_7_7
    <Acct_Num_Mid_1_6
    104143</Acct_Num_Mid_1_6
    <AccountNumber
    1041430469940</AccountNumber
    <AcctGen-PrimaryContactId
    1-K5B-226</AcctGen-PrimaryContactId
    <Currency
    SAR</Currency
    <CurrentBalance
    </CurrentBalance
    <CustomerNumber
    </CustomerNumber
    <IntegrationId
    941674</IntegrationId
    <ProductId
    1-DFPY</ProductId
    <RB1ODS
    8290758</RB1ODS
    <STARSAccountBranchArabicName
      مكة المكرمة</STARSAccountBranchArabicName
    <STARSContactId
    </STARSContactId
    <STARSContactToRelation
    </STARSContactToRelation
    </FincorpAccount
    <FincorpAccount
    <Id
    1-LZ6-228</Id
    <Created
    05/21/2005 19:15:21</Created
    <CreatedBy
    0-1</CreatedBy
    <ABANumber
    Makkah Main</ABANumber
    <AccountName
    خالد جابر عبدالله الحربي</AccountName
    <AccountType
    Time Deposit</AccountType
    <Acct_Num_Mid_7_7
    1259940</Acct_Num_Mid_7_7
    <Acct_Num_Mid_1_6
    104143</Acct_Num_Mid_1_6
    <AccountNumber
    1041431259940</AccountNumber
    <AcctGen-PrimaryContactId
    1-K5E-241</AcctGen-PrimaryContactId
    <Currency
    SAR</Currency
    <CurrentBalance
    </CurrentBalance
    <CustomerNumber
    </CustomerNumber
    <IntegrationId
    942454</IntegrationId
    <ProductId
    1-DFPY</ProductId
    <RB1ODS
    8290759</RB1ODS
    <STARSAccountBranchArabicName
    مكة المكرمة</STARSAccountBranchArabicName
    <STARSContactId
    </STARSContactId
    <STARSContactToRelation
    </STARSContactToRelation
    </FincorpAccount
    <FincorpAccount
    <Id
    1-LZ6-229</Id
    <Created
    05/21/2005 19:15:21</Created
    <CreatedBy
    0-1</CreatedBy
    <ABANumber
    Makkah Branch</ABANumber
    <AccountName
    غميض مسفر مسيفر الهذلي</AccountName
    <AccountType
    Saving Account</AccountType
    <Acct_Num_Mid_7_7
    1509940</Acct_Num_Mid_7_7
    <Acct_Num_Mid_1_6
    104143</Acct_Num_Mid_1_6
    <AccountNumber
    1041431509940</AccountNumber
    <AcctGen-PrimaryContactId
    1-5W6-1401</AcctGen-PrimaryContactId
    <Currency
    SAR</Currency
    <CurrentBalance
    </CurrentBalance
    <CustomerNumber
    -1</CustomerNumber
    <IntegrationId
    942464</IntegrationId
    <ProductId
    1-DFPY</ProductId
    <RB1ODS
    8290760</RB1ODS
    <STARSAccountBranchArabicName
      مكة المكرمة</STARSAccountBranchArabicName
    <STARSContactId
    </STARSContactId
    <STARSContactToRelation
    </STARSContactToRelation
    </FincorpAccount
    <FincorpAccount
    <Id
    1-LZ6-230</Id
    <Created
    05/21/2005 19:15:21</Created
    <CreatedBy
    0-1</CreatedBy
    <ABANumber
    Makkah Main</ABANumber
    <AccountName
    مرزوق رده راسن السعيدي</AccountName
    <AccountType
    Current Account</AccountType
    <Acct_Num_Mid_7_7
    2909940</Acct_Num_Mid_7_7
    <Acct_Num_Mid_1_6
    104143</Acct_Num_Mid_1_6
    <AccountNumber
    1041432909940</AccountNumber
    <AcctGen-PrimaryContactId
    1-K5E-269</AcctGen-PrimaryContactId
    <Currency
    SAR</Currency
    <CurrentBalance
    </CurrentBalance
    <CustomerNumber
    </CustomerNumber
    <IntegrationId
    942794</IntegrationId
    <ProductId
    1-DFPY</ProductId
    <RB1ODS
    8290762</RB1ODS
    <STARSAccountBranchArabicName
    مكة المكرمة</STARSAccountBranchArabicName
    <STARSContactId
    </STARSContactId
    <STARSContactToRelation
    </STARSContactToRelation
    </FincorpAccount
    <FincorpAccount
    <Id
    1-LZ6-231</Id
    <Created
    05/21/2005 19:15:21</Created
    <CreatedBy
    0-1</CreatedBy
    <ABANumber
    Makkah Main</ABANumber
    <AccountName
    سلطان سلمان عليان المطرفي</AccountName
    <AccountType
    Current Account</AccountType
    <Acct_Num_Mid_7_7
    9409940</Acct_Num_Mid_7_7
    <Acct_Num_Mid_1_6
    104143</Acct_Num_Mid_1_6
    <AccountNumber
    1041439409940</AccountNumber
    <AcctGen-PrimaryContactId
    1-K5E-325</AcctGen-PrimaryContactId
    <Currency
    SAR</Currency
    <CurrentBalance
    </CurrentBalance
    <CustomerNumber
    </CustomerNumber
    <IntegrationId
    944194</IntegrationId
    <ProductId
    1-DFPY</ProductId
    <RB1ODS
    8290768</RB1ODS
    <STARSAccountBranchArabicName
    مكة المكرمة</STARSAccountBranchArabicName
    <STARSContactId
    </STARSContactId
    <STARSContactToRelation
    </STARSContactToRelation
    </FincorpAccount
    <FincorpAccount
    <Id
    1-LZ6-232</Id
    <Created
    05/21/2005 19:15:21</Created
    <CreatedBy
    0-1</CreatedBy
    <ABANumber
    Makkah Branch</ABANumber
    <AccountName
    محمد بابكر محمد بابكر</AccountName
    <AccountType
    Current Account</AccountType
    <Acct_Num_Mid_7_7
    9529940</Acct_Num_Mid_7_7
    <Acct_Num_Mid_1_6
    104143</Acct_Num_Mid_1_6
    <AccountNumber
    1041439529940</AccountNumber
    <AcctGen-PrimaryContactId
    1-K5E-68</AcctGen-PrimaryContactId
    <Currency
    SAR</Currency
    <CurrentBalance
    </CurrentBalance
    <CustomerNumber
    </CustomerNumber
    <IntegrationId
    944444</IntegrationId
    <ProductId
    1-DFPY</ProductId
    <RB1ODS
    8290769</RB1ODS
    <STARSAccountBranchArabicName
      مكة المكرمة</STARSAccountBranchArabicName
    <STARSContactId
    </STARSContactId
    <STARSContactToRelation
    </STARSContactToRelation
    </FincorpAccount
    <FincorpAccount
    <Id
    1-LZ6-233</Id
    <Created
    05/21/2005 19:15:21</Created
    <CreatedBy
    0-1</CreatedBy
    <ABANumber
    Makkah Main</ABANumber
    <AccountName
    عمر احمد آل عبدالمحسن القناوي</AccountName
    <AccountType
    Current Account</AccountType
    <Acct_Num_Mid_7_7
    759940</Acct_Num_Mid_7_7
    <Acct_Num_Mid_1_6
    104144</Acct_Num_Mid_1_6
    <AccountNumber
    1041440759940</AccountNumber
    <AcctGen-PrimaryContactId
    1-5W6-1257</AcctGen-PrimaryContactId
    <Currency
    SAR</Currency
    <CurrentBalance
    </CurrentBalance
    <CustomerNumber
    -1</CustomerNumber
    <IntegrationId
    944594</IntegrationId
    <ProductId
    1-DFPY</ProductId
    <RB1ODS
    8290770</RB1ODS
    <STARSAccountBranchArabicName
    مكة المكرمة</STARSAccountBranchArabicName
    <STARSContactId
    </STARSContactId
    <STARSContactToRelation
    </STARSContactToRelation
    </FincorpAccount
    <FincorpAccount
    <Id
    1-LZ6-8</Id
    <Created
    05/21/2005 19:15:21</Created
    <CreatedBy
    0-1</CreatedBy
    <ABANumber
    Makkah Main</ABANumber
    <AccountName
    بهاء عبد الله عبد الحفيظ مليح</AccountName
    <AccountType
    Current Account</AccountType
    <Acct_Num_Mid_7_7
    109940</Acct_Num_Mid_7_7
    <Acct_Num_Mid_1_6
    104108</Acct_Num_Mid_1_6
    <AccountNumber
    1041080109940</AccountNumber
    <AcctGen-PrimaryContactId
    1-K52-162</AcctGen-PrimaryContactId
    <Currency
    SAR</Currency
    <CurrentBalance
    </CurrentBalance
    <CustomerNumber
    </CustomerNumber
    <IntegrationId
    920224</IntegrationId
    <ProductId
    1-DFPY</ProductId
    <RB1ODS
    8290590</RB1ODS
    <STARSAccountBranchArabicName
    مكة المكرمة</STARSAccountBranchArabicName
    <STARSContactId
    </STARSContactId
    <STARSContactToRelation
    </STARSContactToRelation
    </FincorpAccount
    <FincorpAccount
    <Id
    1-LZ6-234</Id
    <Created
    05/21/2005 19:15:21</Created
    <CreatedBy
    0-1</CreatedBy
    <ABANumber
    Makkah Branch</ABANumber
    <AccountName
    عمر صدقة عمر قطب</AccountName
    <AccountType
    Current Account</AccountType
    <Acct_Num_Mid_7_7
    5769940</Acct_Num_Mid_7_7
    <Acct_Num_Mid_1_6
    104146</Acct_Num_Mid_1_6
    <AccountNumber
    1041465769940</AccountNumber
    <AcctGen-PrimaryContactId
    1-5WC-201</AcctGen-PrimaryContactId
    <Currency
    SAR</Currency
    <CurrentBalance
    </CurrentBalance
    <CustomerNumber
    -1</CustomerNumber
    <IntegrationId
    972664</IntegrationId
    <ProductId
    1-DFPY</ProductId
    <RB1ODS
    8290782</RB1ODS
    <STARSAccountBranchArabicName
      مكة المكرمة</STARSAccountBranchArabicName
    <STARSContactId
    </STARSContactId
    <STARSContactToRelation
    </STARSContactToRelation
    </FincorpAccount
    <Login
    SADMIN2</Login
    </ListOfBipStarsFincorpAccount
    </ListofIO
    Regards,
    Prashant

    I am trying to achieve this is ADF. I called a webservice which returns me data in the format as described above.
    It is returning me one data element for each column of the row. For eg. if we have 4 Rows X 5 Columns, it is returning me 20 data elements.
    I have to fall back on attributes of each data element to get the column name and row it belongs. If you the sample data above 'id' will point
    to Column Name and 'sequence' points to rownumber.
    How can I read through this data in java to get a specific column for each row. for eg. filter all data element where id='sch_name'.
    Webservice returns me an object of XMLElement class.

  • Filter data in reports

    I would like to filter data in my report as below
    A column >>> revenue value if percentage = "100"
    B column >>> revenue value if percentage <>"100"
    How can I do this? Anyone can help me? Thank you very much.

    If both of your columns are measures then click on Fx of both the columns and choose filter. Then select revenue field from the left hand side and put in the appropriate condition.
    More useful information could be found <a href = "http://forums.oracle.com/forums/thread.jspa?threadID=955229&tstart=0" target = "_blank">here in the forum itself</a>
    Edited by: Max_Payne on Sep 10, 2009 1:16 PM

  • Filter Data using LDB PNP

    Hi,
    I'm looking to filter data in a report which uses LDB PNP.
    When i enter the 'start dates' and 'end dates' the values goes into PN-BEGDA and PN-ENDDA respectively.
    I want to know whether the GET PERNR statement will filter out the data based on 'start dates' and 'end dates'
    or do i have to loop at each infotype and manually filter out.
    varun

    >
    Rajesh Paruchuru wrote:
    > [Here is the answer from SAP|http://help.sap.com/saphelp_47x200/helpdata/en/4f/d527ba575e11d189270000e8322f96/content.htm]
    >
    >
    GET PERNR fills the internal tables of infotypes that are declared for
    >  each employee  using the INFOTYPES statement. The internal infotype table
    >  is filled with all records existing  between the lowest and highest
    >  system date. The internal table has the name Pnnnn,  where nnnn is the
    > infotype number
    >
    > - Rajesh.
    That means its useless to give a selection criteria on the selection screen.
    GET PERNR will get all records, means it will just filter the employee numbers nothing else, everything you will have to do manually by using loops.
    Varun

  • R12: How to filter Open Item Revaluation Report based on GL Date

    Hi,
    Anybody know how to filter Open Item Revaluation Report based on GL Date from and GL Date to in R12?
    Since we just upgraded from 11.5.10 to 12.1.3 and found we cannot filter those report for specific date. It shown all data included the old data from 8 years ago also.
    We need to run the report only for specific date only. Please share with me if anyone know about this.
    Thanks.

    Pl do not post duplicates - R12: How to filter Open Item Revaluation Report based on GL Date

  • Problem in Data Display in Dynamic ALV Report

    Hi all,
    I am developing a Dynamic ALV report where I want display material batch (zjpack_base-charg) in column and Material (zjpack_base-matnr) & Qty (Zjpack_base-netwr) field row wise.My intention is to show report datewise for a material how many batch developed with there qty.I am sending you the code which i already wrote.Here column is developed batchwise but I am not able to show the qty against each batch.Please see my code and guide me how to display.
    REPORT  zdynamic_test                           .
    *REPORT  ztest_notepad.
    *& Declarations
    *Type-pools
    TYPE-POOLS: slis.
    *TABLES
    TABLES: zjpack_base.
    *Types
    TYPES:
          ty_fcat      TYPE lvc_s_fcat,
          ty_fcatalog  TYPE slis_fieldcat_alv.
    *Work areas
    DATA:
          wa_fcat      TYPE ty_fcat,
          wa_fcatalog  TYPE ty_fcatalog.
    *Internal tables
    DATA:
          it_fcat      TYPE STANDARD TABLE OF ty_fcat,
          it_fcatalog  TYPE STANDARD TABLE OF ty_fcatalog.
    *Type reference
    DATA:
          it_dyn_tab   TYPE REF TO data,
          wa_newline   TYPE REF TO data.
    *INTERNAL TABLE
    DATA: BEGIN OF it_itab OCCURS 0.
            INCLUDE STRUCTURE zjpack_base.
    DATA: END OF it_itab.
    *Filed symbols
    FIELD-SYMBOLS:
          <gt_table>   TYPE STANDARD TABLE,
          <fs_dyntable>,
          <fs_fldval>  TYPE ANY,
          <l_field>    TYPE ANY.
    *Variables
    DATA:
          l_fieldname  TYPE lvc_s_fcat-fieldname,
          l_tabname    TYPE lvc_s_fcat-tabname,
          l_fieldtext  TYPE lvc_s_fcat-seltext,
          l_index      TYPE char2.
    "Selection-screen
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-s11 .
    SELECT-OPTIONS:s_matnr FOR zjpack_base-matnr.
    SELECT-OPTIONS:s_charg FOR zjpack_base-charg.
    SELECT-OPTIONS:s_fdate FOR zjpack_base-fdate .
    SELECTION-SCREEN END OF BLOCK b1.
    PARAMETERS:
             p_colms   TYPE i.
    *& start-of-selection.
    START-OF-SELECTION.
      PERFORM select_data.
      PERFORM build_fieldcat.
      PERFORM create_dynamic_table.
    DO 20 TIMES.
       DO p_colms TIMES.
         l_index = sy-index.
         CONCATENATE 'FIELD' l_index INTO l_fieldname.
         ASSIGN COMPONENT l_fieldname OF STRUCTURE <fs_dyntable> TO <l_field>.
         <l_field> = sy-index.
       ENDDO.
       INSERT <fs_dyntable> INTO TABLE <gt_table>.
    ENDDO.
      LOOP AT it_itab.
        l_index = sy-tabix.
        CONCATENATE 'FIELD' l_index INTO l_fieldname.
        ASSIGN COMPONENT l_fieldname OF STRUCTURE <fs_dyntable> TO <l_field>.
        <l_field> = it_itab-matnr.
        INSERT <fs_dyntable> INTO TABLE <gt_table>.
      ENDLOOP.
      LOOP AT it_fcat INTO wa_fcat.
        PERFORM fieldcatalog1 USING: wa_fcat-fieldname
                                      wa_fcat-tabname
                                      wa_fcat-seltext.
      ENDLOOP.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program = 'ZTEST_NOTEPAD'
          it_fieldcat        = it_fcatalog
        TABLES
          t_outtab           = <gt_table>.
    *&      Form  BUILD_FIELDCAT
    FORM build_fieldcat .
    CLEAR: l_fieldname,
            l_tabname,
            l_fieldtext,
            l_index.
    DO  p_colms TIMES.
       CLEAR l_index.
       l_index = sy-index.
       CONCATENATE 'FIELD' l_index INTO l_fieldname.
       CONCATENATE 'Field' l_index INTO l_fieldtext.
       l_tabname = '<GT_TABLE>'.
       PERFORM fieldcatalog USING: l_fieldname
                                   l_tabname
                                   l_fieldtext.
    ENDDO.
    ENDFORM.                    " BUILD_FIELDCAT
    *&      Form  CREATE_DYNAMIC_TABLE
    FORM create_dynamic_table .
      CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = it_fcat
        IMPORTING
          ep_table        = it_dyn_tab.
      ASSIGN it_dyn_tab->* TO <gt_table>.
    Create dynamic work area and assign to FS
      CREATE DATA wa_newline LIKE LINE OF <gt_table>.
      ASSIGN wa_newline->* TO <fs_dyntable>.
    ENDFORM.                    " CREATE_DYNAMIC_TABLE
    *&      Form  FIELDCATALOG
    FORM fieldcatalog USING field table f_txt.
      wa_fcat-fieldname = field.
      wa_fcat-tabname   = table.
      wa_fcat-seltext = f_txt.
      APPEND wa_fcat TO it_fcat.
      CLEAR  wa_fcat.
    ENDFORM.                    " FIELDCATALOG
    *&      Form  FIELDCATALOG1
    FORM fieldcatalog1 USING field table f_txt.
      wa_fcatalog-fieldname = field.
      wa_fcatalog-tabname   = table.
      wa_fcatalog-seltext_m = f_txt.
      APPEND wa_fcatalog TO it_fcatalog.
      CLEAR  wa_fcatalog.
    ENDFORM.                    " FIELDCATALOG1
    *&      Form  SELECT_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM select_data .
    DATA: v_srlno TYPE i.
      SELECT matnr charg blqty
      INTO CORRESPONDING FIELDS OF it_itab
      FROM zjpack_base
      WHERE matnr IN s_matnr
      AND   charg IN s_charg
      AND   fdate IN s_fdate.
        COLLECT it_itab.
      ENDSELECT.
    v_srlno.
    LOOP AT it_itab.
       v_srlno = v_srlno + 1.
    ENDLOOP.
      CLEAR: l_fieldname,
              l_tabname,
              l_fieldtext,
              l_index.
    1st Field
    l_index = sy-tabix.
      CONCATENATE 'FIELD' '1' INTO l_fieldname.
      l_fieldtext = 'MATNR'.
      l_tabname = '<GT_TABLE>'.
      PERFORM fieldcatalog USING: l_fieldname
                                  l_tabname
                                  l_fieldtext.
    Other fields
      LOOP AT it_itab.
        CLEAR l_index.
        l_index = sy-tabix + 1.
        CONCATENATE 'FIELD' l_index INTO l_fieldname.
        CONCATENATE 'CHARG-' it_itab-charg INTO l_fieldtext.
        l_tabname = '<GT_TABLE>'.
        PERFORM fieldcatalog USING: l_fieldname
                                    l_tabname
                                    l_fieldtext.
      ENDLOOP.
    Please guide me how my problem will solve.
    Thanks & Regards
    Nirmal

    Hi all, I am developing a Dynamic ALV report where I want display material batch (zjpack_base-charg) in column and Material (zjpack_base-matnr) & Qty (Zjpack_base-netwr) field row wise.My intention is to show report datewise for a material how many batch developed with there qty.I am sending you the code which i already wrote.Here column is developed batchwise but I am not able to show the qty against each batch.Please see my code and guide me how to display.
    *& Report  ZDYNAMIC_TEST                                               *
    REPORT  zdynamic_test                           .
    *REPORT  ztest_notepad.
    *& Declarations
    *Type-pools
    TYPE-POOLS: slis.
    *TABLES
    TABLES: zjpack_base.
    *Types
    TYPES:
          ty_fcat      TYPE lvc_s_fcat,
          ty_fcatalog  TYPE slis_fieldcat_alv.
    *Work areas
    DATA:
          wa_fcat      TYPE ty_fcat,
          wa_fcatalog  TYPE ty_fcatalog.
    *Internal tables
    DATA:
          it_fcat      TYPE STANDARD TABLE OF ty_fcat,
          it_fcatalog  TYPE STANDARD TABLE OF ty_fcatalog.
    *Type reference
    DATA:
          it_dyn_tab   TYPE REF TO data,
          wa_newline   TYPE REF TO data.
    *INTERNAL TABLE
    DATA: BEGIN OF it_itab OCCURS 0.
            INCLUDE STRUCTURE zjpack_base.
    DATA: END OF it_itab.
    *Filed symbols
    FIELD-SYMBOLS:
          <gt_table>   TYPE STANDARD TABLE,
          <fs_dyntable>,
          <fs_fldval>  TYPE ANY,
          <l_field>    TYPE ANY.
    *Variables
    DATA:
          l_fieldname  TYPE lvc_s_fcat-fieldname,
          l_tabname    TYPE lvc_s_fcat-tabname,
          l_fieldtext  TYPE lvc_s_fcat-seltext,
          l_index      TYPE char2.
    "Selection-screen
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-s11 .
    SELECT-OPTIONS:s_matnr FOR zjpack_base-matnr.
    SELECT-OPTIONS:s_charg FOR zjpack_base-charg.
    SELECT-OPTIONS:s_fdate FOR zjpack_base-fdate .
    SELECTION-SCREEN END OF BLOCK b1.
    PARAMETERS:
             p_colms   TYPE i.
    *& start-of-selection.
    START-OF-SELECTION.
      PERFORM select_data.
      PERFORM build_fieldcat.
      PERFORM create_dynamic_table.
    *  DO 20 TIMES.
    *    DO p_colms TIMES.
    *      l_index = sy-index.
    *      CONCATENATE 'FIELD' l_index INTO l_fieldname.
    *      ASSIGN COMPONENT l_fieldname OF STRUCTURE <fs_dyntable> TO <l_field>.
    *      <l_field> = sy-index.
    *    ENDDO.
    *    INSERT <fs_dyntable> INTO TABLE <gt_table>.
    *  ENDDO.
      LOOP AT it_itab.
        l_index = sy-tabix.
        CONCATENATE 'FIELD' l_index INTO l_fieldname.
        ASSIGN COMPONENT l_fieldname OF STRUCTURE <fs_dyntable> TO <l_field>.
        <l_field> = it_itab-matnr.
        INSERT <fs_dyntable> INTO TABLE <gt_table>.
      ENDLOOP.
      LOOP AT it_fcat INTO wa_fcat.
        PERFORM fieldcatalog1 USING: wa_fcat-fieldname
                                      wa_fcat-tabname
                                      wa_fcat-seltext.
      ENDLOOP.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program = 'ZTEST_NOTEPAD'
          it_fieldcat        = it_fcatalog
        TABLES
          t_outtab           = <gt_table>.
    *&      Form  BUILD_FIELDCAT
    FORM build_fieldcat .
    *  CLEAR: l_fieldname,
    *         l_tabname,
    *         l_fieldtext,
    *         l_index.
    *  DO  p_colms TIMES.
    *    CLEAR l_index.
    *    l_index = sy-index.
    *    CONCATENATE 'FIELD' l_index INTO l_fieldname.
    *    CONCATENATE 'Field' l_index INTO l_fieldtext.
    *    l_tabname = '<GT_TABLE>'.
    *    PERFORM fieldcatalog USING: l_fieldname
    *                                l_tabname
    *                                l_fieldtext.
    *  ENDDO.
    ENDFORM.                    " BUILD_FIELDCAT
    *&      Form  CREATE_DYNAMIC_TABLE
    FORM create_dynamic_table .
      CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = it_fcat
        IMPORTING
          ep_table        = it_dyn_tab.
      ASSIGN it_dyn_tab->* TO <gt_table>.
    * Create dynamic work area and assign to FS
      CREATE DATA wa_newline LIKE LINE OF <gt_table>.
      ASSIGN wa_newline->* TO <fs_dyntable>.
    ENDFORM.                    " CREATE_DYNAMIC_TABLE
    *&      Form  FIELDCATALOG
    FORM fieldcatalog USING field table f_txt.
      wa_fcat-fieldname = field.
      wa_fcat-tabname   = table.
      wa_fcat-seltext = f_txt.
      APPEND wa_fcat TO it_fcat.
      CLEAR  wa_fcat.
    ENDFORM.                    " FIELDCATALOG
    *&      Form  FIELDCATALOG1
    FORM fieldcatalog1 USING field table f_txt.
      wa_fcatalog-fieldname = field.
      wa_fcatalog-tabname   = table.
      wa_fcatalog-seltext_m = f_txt.
      APPEND wa_fcatalog TO it_fcatalog.
      CLEAR  wa_fcatalog.
    ENDFORM.                    " FIELDCATALOG1
    *&      Form  SELECT_DATA
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM select_data .
    *  DATA: v_srlno TYPE i.
      SELECT matnr charg blqty
      INTO CORRESPONDING FIELDS OF it_itab
      FROM zjpack_base
      WHERE matnr IN s_matnr
      AND   charg IN s_charg
      AND   fdate IN s_fdate.
        COLLECT it_itab.
      ENDSELECT.
    *  v_srlno.
    *  LOOP AT it_itab.
    *    v_srlno = v_srlno + 1.
    *  ENDLOOP.
      CLEAR: l_fieldname,
              l_tabname,
              l_fieldtext,
              l_index.
    * 1st Field
    *  l_index = sy-tabix.
      CONCATENATE 'FIELD' '1' INTO l_fieldname.
      l_fieldtext = 'MATNR'.
      l_tabname = '<GT_TABLE>'.
      PERFORM fieldcatalog USING: l_fieldname
                                  l_tabname
                                  l_fieldtext.
    * Other fields
      LOOP AT it_itab.
        CLEAR l_index.
        l_index = sy-tabix + 1.
        CONCATENATE 'FIELD' l_index INTO l_fieldname.
        CONCATENATE 'CHARG-' it_itab-charg INTO l_fieldtext.
        l_tabname = '<GT_TABLE>'.
        PERFORM fieldcatalog USING: l_fieldname
                                    l_tabname
                                    l_fieldtext.
      ENDLOOP.
    ENDFORM.                    " SELECT_DATA

  • Dynamic Filter Selection in CUIC Reports

    Hi,
    I have come up with a new requirement in CUIC where i need to provide dynamic selection on the filter criteria.
    Ex: Assuming in a report i need a filter criteria as agent name, call type and skill group which can be availble in drop down control. Based on the selection in drop down, the list box control will be filled. Say if i select agent from drop down cotrol...all agent names will be listed in list box control and similarly for calltype and skill group selection.
    Is the above requirement is feasible?
    Thanks,
    Swami

    Hi Vamsi
    I Thing it's not possible in Crystal Report It is possible In Xcelsius reporting  and SQL Analysis Services Report . You can build your Report In Xcelsius . It is best reporting Tool for Dynamic Parameter Report.
    Thanks & Regard
    Khan Imran

  • Since Adobe Connect 9 hosted release missing filter date field in registration report tab

    Prior to the new version we use to do the below steps and get a Filter Reports option.  Now that option is missing.  Is there another way to pull this report?  Is this a bug and can be resolved?  Am I missing something?
    -Event Management
    -Shared Events
    -PREP Master 2011 1.0 (Name of our Main Folder)
    -Click on PREP Master (Cty.) 2011 1.0 (Name of on demand stored in main folder)
    --Reports
    -Filter Reports
    -Change Time, Later Time-One day behind time frame 12:00am start to 12:00am finished (Missing Date Filter)
    (Date should have remained the same from Training report, no need to filter date)
    -By Registrants (Attendance Report)(Missing Option/Replaced by Campaign Report)
    -Download Report Data
    If you go to the By Answers Tab you get the Filter Reports link.  If you go to pull Training reports you get the filter link.  But going to Event Management, locating the event, and then trying to pull a report on Registration does NOT give you filter reports like it use to.  We need this. 

    HI
    add that fileds in the all locations where you need it like
    in internal table declaration , write statement , select statement
    these are the main areas where you have to add that 2 fileds

  • Can I create a result set filter on a SSRS Report similar to what you can do in Excel?

    Asking this question in a different way...I have my SSRS Result set. Now the Business User wants to filter down a 15-page report to what they want to specifically see....Sooo my result set has a list of claims. And now the Business User just wants to see
    the list of claims by a certain Provider, which is also in the report. So I don't want to put that "filter" on the front-end...within the Stored Procedure that is producing the report because they want to see everything. Is there a way to make SSRS
    intelligent enough to parameterize the back-end result set? Or do I need to do it the old fashioned way by allowing for an optional parameter, let them run their report, define the available values by a query similar to the stored procedure filtering, and
    let them drill down that way?
    I have tried playing around with Dataset filters and a parameter using the existing result set and existing Dataset, but I just cannot seem to get this to work the way I envision. If this entails creating a Function or Procedure within the SSRS, bring it
    on...I'm willing to learn. And I do have some VBA experience...so I'm not intimidated.
    Again...I apologize for the similar type question, but I felt the need to be a little more clear.
    Thanks for your review and am hopeful for a reply.
    PSULionRP
     

    I GOT IT!!!
    Followed the following...
    Here's what I've put into my SSRS Knowledgebase...
    Filters/Parameters on the Report Result Set
    Request from the Business User to add "parameters" to the Report Result Set. Kind of like auto filtering you can do in Excel
    Within the Report Design within Microsoft Visual Studio…
    — Insert a new Dataset which is merely carving out the SQL from the working Report Stored Procedure and customizing the SQL for the DISTINCT values that you want
    — Insert a NEW Parameter based on the carved out SQL
    General → Allow blank value
                      Allow multiple values
    Available Values → Get values from a query
    Specify the previously created Dataset
    Default Values → Get values from a query
    Specify the previously created Dataset
    — Insert a Filter back on the original Dataset that is used to create the Report
    Expression → Choose the Report Detail Item column name
    Operator → In
    Value → Physically type in the Parameter Name created previously
    Works EXACTLY as I had envisioned. Prompts for the From Date and Thru Date, runs the report, dynamically builds the "optional" parameters/filters,
    and then allows the Busimess User to speify or drill down into the result set based on the dynamically built parameter drop-down list.

  • Create Filter on an Interactive Report in a Link

    Hello,
    Here is info on my environment:
    Database: 10.2.0.1.0
    O/S: Windows XP
    APEX: v3.2.1
    I am trying to use the IR<operator>_<target column alias> feature to filter the linked Interactive Report. The feature does not seem to work. Does this feature work on a 10g database?
    Background:
    I am building the application (AnyCo Corp) described in the _2 Day + Application Express Developer’s Guide_ . On page 4-27 the section titled "_Linking a Column Value to Another Page_" describes linking from the Department report to the Employee report with the Column Link item IR_DEPARTMENT_ID. The link did not work, however.
    The included APEX Users Guide discusses this feature. The path to the relevant section is: Home > Adding Application Components > Creating Reports > Editing Interactive Reports > Linking to Interactive Reports. The Guide describes the string IR<operator>_<target column alias> with lots of operators.
    This is a neat feature. Unfortunately, no matter how I try to use it, it does not work. What am I doing wrong?
    Leon

    Check out these blog postings from the APEX Dev Team:
    http://anthonyrayner.blogspot.com/2008/07/dynamic-date-filtering-in-interactive.html
    http://dpeake.blogspot.com/2008/03/advanced-interactive-reports.html

  • Not getting data in OBIEE report while pulling columns from different DB

    Hi All,
    I am creating a report in OBIEE 11g which uses Table A and table B which are joined in both physical layer and BMM layer. But somehow I am not getting any data in the report where as data is actually present for the matching joining columns. However when I made one of the tables (Table A ) as a driving table, I am getting data but only with a filter applied in the report which restricts the data to few records. If the filter is removed, I get an error which is " A Drive Table join exceeded the limit of XXX backend database queries".
    Could anyone tell me what can be the issue? Other than using driving table, is there any alternate method to resolve the issue?
    Thanks In Advance,
    Anju

    The error is due to the setting MAX_QUERIES_PER_DRIVE_JOIN in the database features table that controls and tunes driving table performance. Also, try to follow these blogposts to do cross-database joins/federated queries: http://oraclebizint.wordpress.com/2008/03/19/oracle-bi-ee-101332-cross-database-joins/ and http://www.rittmanmead.com/2007/10/reporting-against-multiple-datasources-in-obiee/
    Please assign points if helpful/correct.

  • Issue in using presentation variable as filter condition in the reports

    Hi,
    I have an issue in using presentation variable as filter condition in my reports the details are as follows:
    Details :
    We want to implement the Max and Min variables through Presentation variables only.we do not want to implement it through session variables in this case.
    We have two variables MIN and MAX to be used as Presentation Variables,for a column of the report (which is a quantity),so that the user wants to see the data for this column within a particular range.i.e the Min and the Max.This part has been implemented well . The issue is when the user wants to see the full data.In that case we will not pass any values to these two Presentation Variable or in other words we are not restricting the report data so we are not passing any value to the variables,this is when the report is throwing the error. we want to leave this variables blank in that case.but this is giving error.
    Please suggest how can I overcome this issue.
    Thanks in Advance.
    Regards,
    Praveen

    i think you have to use guided navigation for this. create two reports first is the one you are having currently and second is the one in which remove the presentation variable from the column formula. i.e. the same report with no aggregation applied.
    Now create a dummy report and make it return value only when the presentation variable value is not equal to max or min. guide the report to navigate between the first and second report based on the result of the dummy report.

  • Problem with DATE in Interactive Report

    Hello,
    In Interactive Report when I click on the header of any column with DATE datatype, nothing happens due to Javascript error:
    Line: 2
    Char: 14838
    Error: Expected identifier, string or number
    Code: 0
    Click on any other column works perfectly as well as sorting by DATE column from Action Menu.
    I tried to set different format masks for my DATE column and for Application Date Format, but it didn't help.
    Finally I found out that this error disappeared when in properties of my DATE column in "List of Values" section I set "Report Filter Date Ranges" = 'Past' instead of 'All'. In this case I get the list with values "Last 5 Years", "Last 2 Years", etc, but not with "Next Hour", "Next 2 Hours", etc...
    Can someone help me on this issue, because this functionality might be usefull and also it's not very convinient to change this property for all date columns in all Interactive Report.
    By the way, my database version is 9.2.0.5 - maybe it can cause such problem?
    Best regards,
    Vladimir

    Hi Marco,
    1) French Canada (fr-ca)
    2) This filter works
    More informations about the error when I call the function gReport.controls.widget():
    &lth;div id="apexir_DT" style="text-align: center;" onclick="gReport.controls.widget(this.id)"&gth;Date de naissance&lth;/div&gth;
    *************POST*************
    flowid     48579
    p_flow_step_id     5
    p_instance     1412541985987586
    p_request     APXWGT
    p_widget_action     SORT_WIDGET
    p_widget_mod     CONTROL
    p_widget_name     worksheet
    x01     5775894815382747091
    x02     5775899227924757464
    x03     apexir_DT
    *************RESPONSE*************
    {"dialog":{"id":"1966481623126322611","hide":["apexir_info","apexir_computation"],"coltype":"DATE","filter"
    :false,"uv":true,{"dialog":{"uv":true,"row":[{"V":"Failure<br />ORA-20001: get_dbms_sql_cursor error
    ORA-00923: FROM keyword not found where expected"}]}}
    Louis-Guillaume
    Homepage: http://www.insum.ca
    Blog: http://insum-apex.blogspot.com

  • PLSQL processing of a dynamic sql report

    Hi there,
    I have a problem processing a dynamic sql report, specifically in referencing the PL/SQL column headings I have.
    Basically I have a report that generates one row for each project a person belongs to, and then using htmldb_item.text creates one field for each day of the week (sysdate - sysdate+6) so that people can enter their hours worked. The idea is they then press a submit button and the hours are entered into a project table something like (date_worked, project_id, hours_worked), one row for each entry.
    So I have:
    for i in 1..HTMLDB_APPLICATION.G_F01.count
    loop
    ... err... here I want to insert into the table the values(column_header, project_id, HTMLDB_APPLICATION.G_F01(i)).. but I don't know how to access that column_header value.
    Is this possible and if so, how?
    Many thanks,
    Tosh.

    that gives me the values of the text fields, but what
    I'd like to insert is the value of the column
    header... so for example:Yes, I understood what you meant. I did have a differect project_id for each INSERT in my SQL above. I guess that should have been day_id
    Since you are generating the tabular form SQL manually, you know which htmldb_item.text index corresponds to which column (which represents day_id in your case). So, use this to write 6 INSERT statements, one for each day. day_id would be a number going from 0 thru 6 where 0 represents Sunday and 6 represents Saturday.
    Bottom line: This is like generating/updating a calendar, your column headings are always fixed (Sun thru Saturday), just the date they represent would change.

  • Filter Based on other report not working

    Hi Gurus,
    I am using OBIEE 10g.
    I have a Dashboard page in that i have a prompt and 2 reports,(A, B reports). Report B is using the same columns as prompt where as report A not.
    Report A has columns which hold the same data as report B, so i thougt to pass the values based on Report B column using the filter based on other report. I am able to complete it succssfuly but Report A is not having amount of data that i was excepting. When i started investigating i found out that the column which i am using in the prompt and report B have values ( NEW, OLD, NULL) report A able to take the values NEW and OLD but the NULL values are not passing to report A. In report B it is taking null value as it has filter as prompted.
    Is it any way to have the values (NEW, OLD, NULL) in report A?
    Thanks in Advance.
    Regards
    Ali

    Hi Deep,
    Thanks for taking time to answer my question.
    I have to display null. If i Mask with something then i dont get proper data in report A, couse in the table it is null.
    Thanks
    Ali

Maybe you are looking for

  • Error in getting job_output_info-otfdata

    hi experts, i am developing the code to convert smartform into PDF after output, to convert i need otfdata from FM but am not getting any data from job_output_info-otfdata can any one please suggest on this data:st_job_output_info TYPE ssfcrescl OCCU

  • How to run program without set back ground Job in production Server?

    Hi, I have developed 1smart forms which is takes so much time for execution and sometimes its time out. I have used BSEG, BKPF, BSET, KONV, VBRK, VBAP, LIPS, LIKP these tables in smartform. So give me proper solution for this issue? Thanks Yatin Mahe

  • Accruals path

    Hi Can anybody teel me where i need to define accruals and acount keys? Please tell us the path. Regards Anand

  • Swf choppy with control bar in presenter

    This question has been posted before a couple of different times, but I am going to post my own since I can not seem to find a solution that works for me in the responses in the other posts. When I embed my swf file into presenter and click the contr

  • Problem on dynamic assignment?

    As you know, we can use statement like var1 = '(program)objectname', and assign  (var1) to <fs>, I tried, and succeed in function module, but when I use it in prog2, and in prog1, I submit prog2, it does not work. can this usage only be available in