How to fire af:table selectionListener automatically after data fetch ?

I want to fire my selectionListener automatically after data is fetched.
Attribute rowSelection of af:table component is switched to "single".
I'm using databinding layer and bc.
But i can't find an attribute to set autosubmit.
How can i do this ???
(in 10.1.3 version of jedeveloper i can set an af:tableSelectOne component to autosubmit = true,
but ADF tableSelectOne component does no more exist in Jdev 11)

user568840,
The easiest way to accomplish this is to explicitly invoke the default listener programmatically by calling on the EL expression. Add something like this to a method that is bound to an invoke action in your pageDef should work nicely.
   public void invokeOnPageLoad(){
     resloveMethodExpression("ViewObj.collectionModel.makeCurrent", null, new Class  {SelectionEvent.class});
    public static Object resloveMethodExpression(String expression,
                                                 Class returnType,
                                                 Class[] argTypes,
                                                 Object[] argValues) {
        FacesContext facesContext = getFacesContext();
        Application app = facesContext.getApplication();
        ExpressionFactory elFactory = app.getExpressionFactory();
        ELContext elContext = facesContext.getELContext();
        MethodExpression methodExpression =
            elFactory.createMethodExpression(elContext, expression, returnType,
                                             argTypes);
        return methodExpression.invoke(elContext, argValues);
    } --RiC                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • How to create check in batch automatically after automatic payment program

    Hello
    SAP Experts i am getting a  issue
    how to create check in batch automatically after automatic payment program ( t code is f110)
    Thanks & Regards
    Narendra.G

    Hi Narendra,
    Please note the process below for cheque Printing:-
    1. The pre requisite for Cheque printing is you have used program RFFOUS_c/or the Z version of this program in FBZP and that you have maintained the form name in the field Form name for Payment medium in FBZP.
    2. You have a pre printed stationary on which you want to print and the Program & the form has been modified to print as per this.
    3. In F110, you must have assigned the Variant name, which would specify the cheque lot no. and this should exactly match with the current cheque no. in the pre printed stationary.
    4. Now, after all this setting, when you run Payment run in F110, then also only the Payment documents are posted but the cheque no.s are not updated in the Payment document no. nor the PAYR table is updated. It is only when you run the Print out tab, that a spool is created in SP01 for cheque printing as per the Payment documents.
    5. Then in SP01, you can print the spool on your pre printed stationary.
    This is the complete process of printing cheques from F110. Hope this helps..
    Regards,
    SAPFICO

  • My backlight will not turn off automatically.  I have to manually turn it off and forget to sometimes and that drains my battery.  Does anyone know how to make it turn of automatically after a few seconds?

    My backlight will not turn off automatically.  I have to manually turn it off and forget to sometimes and that drains my battery.  Does anyone know how to make it turn of automatically after a few seconds?

    Use the Settings app.
    Settings > General > Auto Lock
    Is Auto Lock set to Never? Change it to less time.

  • How to set iPod to eject automatically after sync?

    Hi!
    My mother's iPod "ejects" automatically after syncing. Mine, I have to click the eject button. Mine is 8 GB hers is 4 GB, but both are third generation. How can I set it up to eject my iPod automatically after sync, like my mother's?
    Thank you!

    Do you have your 8 GB iPod set to Enable Disk Mode? If so, that would explain it since doing that requires you to manually eject the iPod.

  • How to remove empty line in BW after data load

    Hello Experts,
    From standard SAP contents, I am loading Master Data (E-Recruiting) from R3 to BW. The thing is after loading to BW when I check the data, maximum of the MD tables shows all the data but first line is blank. Sometime it shows only date on first line and other fields empty. I don't want to keep the first line blank or only date. How to fix it or what to look / what are all the possibilities?
    Thanks in advance.
    Regards,
    Ashok
    Message was edited by:
            Ashok Saha

    Hi,
    there will always be one initial record (also the keyfields initial). You cannot avoid this. This record is used for the join from infoprovider to infoobject in case there is no value posted to the infoobject in the cube.
    kind regards
    Siggi

  • How can I use table control to enter data

    Hi all,
    I want to use table control to enter data, instead of using textboxes.
    So that the user can enter many data at once and just click the save button at the end of the work, only one click.
    How can I use the table control at this context?
    Thanks.
    Deniz.

    Hi deniz,
    go through it:
    /people/ravishankar.rajan/blog/2007/02/23/an-easier-way-of-displaying-and-editing-data-using-table-control
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/code%2bto%2bhandle%2bmultiple%2brecords%2bin%2bbdc%2btable%2bcontrol
    Regards,

  • How to populate internal table field with text data?

    Hello Experts,
    I was able to load text file to a internal table but data is not populating each field. Can someone help me how to populate each field of internal table from text file?
    Here is the text file:
    io_name, io_type, io_txsht, io_txlng, io_datatype, io_length
    ZEA_IO1, CHA, IO Test,     IO Test 1, CHAR,       20
    ZEA_IO2, CHA, IO Test,     IO Test 2, CHAR,       20
    Here is the Code:
    *& Report  ZAS_BAPI_TEST                                               *
    *& InfoObject Creation through BAPI.
    *& Read the Text file, call a BAPI to create InfoObjects.              *
    *& Text file will hold the Info Object Structure. Text file will be    *
    *& located either work station or local PC.
    *& Step 1. Create internal table to hold InfoObject structure          *
    *& Step 2. Retrieve/Load text file into Internal Table structure       *
    *& Step 3. Call BAPI Function to Create IO                             *
    *& Step 4. Call BAPI Function to Activate IO                           *
    REPORT  ZAS_BAPI_TEST                           .
    Make data separator a comma
    CONSTANTS: gc_tab TYPE c VALUE ','.
          Declaring Internal table for creating InfoObject
    DATA: p_file TYPE string.
    DATA: BEGIN OF itab-bapi OCCURS 0,
            io_name like BAPI6108-infoobject,
            io_type like BAPI6108-type,
            io_txsht like BAPI6108-textshort,
            io_txlng like BAPI6108-textlong,
            io_datatype like BAPI6108-datatp,
            io_length like BAPI6108-intlen,
          END OF itab-bapi.
    DATA ibapi LIKE STANDARD TABLE OF itab-bapi.
    PARAMETERS: sel_file(1500) TYPE c default ' ' OBLIGATORY LOWER CASE.
          PUT THE TEXT FILE PATH TO P_FILE
    p_file = sel_file.
         Copy the file from the workstation to the server        ****
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                = p_file
                   FILETYPE                = 'ASC'
                   HAS_FIELD_SEPARATOR     = SPACE
                   HEADER_LENGTH           = 0
                   DAT_MODE                = SPACE
                   CODEPAGE                = SPACE
                   IGNORE_CERR             = ABAP_TRUE
                   REPLACEMENT             = '#'
                   READ_BY_LINE            = 'X'
                 IMPORTING
                   FILELENGTH              =
                   HEADER                  =
      TABLES
        data_tab                = itab-bapi[]
      EXCEPTIONS
        file_open_error         = 1
        file_read_error         = 2
        no_batch                = 3
        gui_refuse_filetransfer = 4
        invalid_type            = 5
        no_authority            = 6
        unknown_error           = 7
        bad_data_format         = 8
        header_not_allowed      = 9
        separator_not_allowed   = 10
        header_too_long         = 11
        unknown_dp_error        = 12
        access_denied           = 13
        dp_out_of_memory        = 14
        disk_full               = 15
        dp_timeout              = 16
        not_supported_by_gui    = 17
        error_no_gui            = 18
        OTHERS                  = 19.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      MESSAGE e012(zea_spms) WITH 'Method' 'GUI_UPLOAD' sy-subrc.
      &1 &2 issued return code &3
       ELSE.
         pit_data[] = lit_data[].
       ENDIF.
    ENDIF.
    loop at itab-bapi.
      write: /5 itab-bapi-io_name,
               20 itab-bapi-io_type,
               30 itab-bapi-io_txsht,
               50 itab-bapi-io_txlng,
               75 itab-bapi-io_datatype,
               85 itab-bapi-io_length.
    endloop.
          SELECT THE LOCATION FOR TEXT FILE
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR sel_file.
      CALL FUNCTION 'WS_FILENAME_GET'
        EXPORTING
          def_filename     = ''
          def_path         = 'C:\'
          mask             = ',Documentos de texto (*.txt), *.txt.'
          mode             = ''
        IMPORTING
          filename         = p_file
        EXCEPTIONS
          inv_winsys       = 1
          no_batch         = 2
          selection_cancel = 3
          selection_error  = 4
          OTHERS           = 5.
      find '.txt' IN p_file.
      if sy-subrc <> 0.
        concatenate p_file '.txt' into sel_file.
      else.
        sel_file = p_file.
      endif.
          Create InfoObject through BAPI Function
    *CALL FUNCTION 'BAPI_IOBJ_CREATE'.
    *IMPORTING
        VALUE(DETAILS) LIKE  BAPI6108 STRUCTURE  BAPI6108
    *EXPORTING
        VALUE(INFOOBJECT) LIKE  BAPI6108-INFOOBJECT
        VALUE(RETURN) LIKE  BAPIRET2 STRUCTURE  BAPIRET2
    TABLES
         COMPOUNDS STRUCTURE  BAPI6108CM OPTIONAL
         ATTRIBUTES STRUCTURE  BAPI6108AT OPTIONAL
         NAVIGATIONATTRIBUTES STRUCTURE  BAPI6108AN OPTIONAL
         ATRNAVINFOPROVIDER STRUCTURE  BAPI6108NP OPTIONAL
         HIERARCHYCHARACTERISTICS STRUCTURE  BAPI6108HC OPTIONAL
         ELIMINATION STRUCTURE  BAPI6108IE OPTIONAL
         RETURNTABLE STRUCTURE  BAPIRET2 OPTIONAL
          Activate InfoObject through BAPI Function
    CALL FUNCTION 'BAPI_IOBJ_ACTIVATE_MULTIPLE'
    *ENDFORM.                    " RETRIEVE_DATASET
    I appreciate your help.
    Regards,
    Mau

    I have used tab delimited file.
    Here are file contents
    io_name     io_type     io_txsht     io_txlng     io_datatype     io_length
    ZEA_IO1     CHA     IO Test     IO Test 1     CHAR     20
    ZEA_IO2     CHA     IO Test     IO Test 2     CHAR     20
    And here is program used
    *& Report ZAS_BAPI_TEST *
    *& InfoObject Creation through BAPI.
    *& Read the Text file, call a BAPI to create InfoObjects. *
    *& Text file will hold the Info Object Structure. Text file will be *
    *& located either work station or local PC.
    *& Step 1. Create internal table to hold InfoObject structure *
    *& Step 2. Retrieve/Load text file into Internal Table structure *
    *& Step 3. Call BAPI Function to Create IO *
    *& Step 4. Call BAPI Function to Activate IO *
    REPORT ZAS_BAPI_TEST .
    Make data separator a comma
    CONSTANTS: gc_tab TYPE c VALUE ','.
    Declaring Internal table for creating InfoObject
    DATA: p_file TYPE string.
    DATA: BEGIN OF itab-bapi OCCURS 0,
    io_name like BAPI6108-infoobject,
    io_type like BAPI6108-type,
    io_txsht like BAPI6108-textshort,
    io_txlng like BAPI6108-textlong,
    io_datatype like BAPI6108-datatp,
    io_length like BAPI6108-intlen,
    END OF itab-bapi.
    DATA ibapi LIKE STANDARD TABLE OF itab-bapi.
    PARAMETERS: sel_file(1500) TYPE c default ' ' OBLIGATORY LOWER CASE.
    PUT THE TEXT FILE PATH TO P_FILE
    p_file = sel_file.
    Copy the file from the workstation to the server ****
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = p_file
    <b>FILETYPE = 'ASC'
    HAS_FIELD_SEPARATOR = 'X'</b>
    TABLES
    data_tab = itab-bapi[]
    EXCEPTIONS
    file_open_error = 1
    file_read_error = 2
    no_batch = 3
    gui_refuse_filetransfer = 4
    invalid_type = 5
    no_authority = 6
    unknown_error = 7
    bad_data_format = 8
    header_not_allowed = 9
    separator_not_allowed = 10
    header_too_long = 11
    unknown_dp_error = 12
    access_denied = 13
    dp_out_of_memory = 14
    disk_full = 15
    dp_timeout = 16
    not_supported_by_gui = 17
    error_no_gui = 18
    OTHERS = 19.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    MESSAGE e012(zea_spms) WITH 'Method' 'GUI_UPLOAD' sy-subrc.
    &1 &2 issued return code &3
    ELSE.
    pit_data[] = lit_data[].
    ENDIF.
    ENDIF.
    loop at itab-bapi.
    write: /5 itab-bapi-io_name,
    20 itab-bapi-io_type,
    30 itab-bapi-io_txsht,
    50 itab-bapi-io_txlng,
    75 itab-bapi-io_datatype,
    85 itab-bapi-io_length.
    endloop.
    SELECT THE LOCATION FOR TEXT FILE
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR sel_file.
    CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
    def_filename = ''
    def_path = 'C:\'
    mask = ',Documentos de texto (*.txt), *.txt.'
    mode = ''
    IMPORTING
    filename = p_file
    EXCEPTIONS
    inv_winsys = 1
    no_batch = 2
    selection_cancel = 3
    selection_error = 4
    OTHERS = 5.
    find '.txt' IN p_file.
    if sy-subrc <> 0.
    concatenate p_file '.txt' into sel_file.
    else.
    sel_file = p_file.
    endif.
    Create InfoObject through BAPI Function
    *CALL FUNCTION 'BAPI_IOBJ_CREATE'.
    *IMPORTING
    VALUE(DETAILS) LIKE BAPI6108 STRUCTURE BAPI6108
    *EXPORTING
    VALUE(INFOOBJECT) LIKE BAPI6108-INFOOBJECT
    VALUE(RETURN) LIKE BAPIRET2 STRUCTURE BAPIRET2
    TABLES
    COMPOUNDS STRUCTURE BAPI6108CM OPTIONAL
    ATTRIBUTES STRUCTURE BAPI6108AT OPTIONAL
    NAVIGATIONATTRIBUTES STRUCTURE BAPI6108AN OPTIONAL
    ATRNAVINFOPROVIDER STRUCTURE BAPI6108NP OPTIONAL
    HIERARCHYCHARACTERISTICS STRUCTURE BAPI6108HC OPTIONAL
    ELIMINATION STRUCTURE BAPI6108IE OPTIONAL
    RETURNTABLE STRUCTURE BAPIRET2 OPTIONAL
    Activate InfoObject through BAPI Function
    CALL FUNCTION 'BAPI_IOBJ_ACTIVATE_MULTIPLE'
    *ENDFORM. " RETRIEVE_DATASET
    This program is working fine. You can test it.
    Only problem is as the column headings are big for some columns, they are getting truncated which you can always change by changing the column width in declaration
    Please let me know if this helps.
    ashish

  • How to create a table which contains relational data and Document data

    hai all
    i need to create a table which contains relational data(i mean coulumns whose data types are type NUMBER,VARCHAR) and documents(like xml file/html file/image)using iFS.
    when i store the document data(xml data/html data) in the iFS ,it will be stored as Document Object.so how do i relate this document object belongs to a particular row in a table.
    do guide me
    thanks

    Please see reply at http://technet.oracle.com:89/ubb/Forum36/HTML/000778.html

  • How to hide the table header if no data present

    Hi
    I need to hide the table header if no data present. Table has 5 column. if no any clolumn has data then this table section should not be display.
    i am using <?if:count(Installation_Event_S19)= 0?> but this is not work for me.
    Could you please help me out.
    Thanks
    Indrajeet Kumar

    Hi Priya,
    Thank you very much !!! its work fine.
    Thanks
    Indrajeet Kumar

  • How to Execute a stored procedure automatically after DB startup?

    Is it possible to run a stored procedure automatically just after the database startup? And how can I know whether the procedure is running?
    Thanks.

    You would have to do something similar to this for the procedure to run every time the database is startedCREATE OR REPLACE TRIGGER <trigger_name> AFTER STARTUP ON DATABASE
    BEGIN
    <run_your_procedure_here>
    END;
    /

  • How to fire javascript Onchange function AUTOMATICALLY

    Hi,
    I have following 2 items both is having an Onchange javascript function.
    P1_SELECT_LIST1 (javascript - Onchange1)
    P1_SELECT_LIST2 (javascript - Onchange2)
    I want to execute Onchange2 automatically whenever Onchange1 is executed.
    I mean whenever Onchange1 is executed...I want Onchange2 javascript to fire automatocally..
    Thanks,
    Deepak

    Deepak,
    I didn't get what you are trying to here?
    P1_SELECT_LIST1 - HTML Form Element Attributes
    onchange="javascript:f1(this);"
    function f1(pThis)
    $x_Value('P1_YYYY','XX');
    }So on change of SL1, f1 will fire and you are passing the object to f1. But you are not using it? So whats the use of passing it?
    In your initial post..
    I want to execute Onchange2 automatically whenever Onchange1 is >executed.But you are doing it in reverse?
    However you may try..
    P1_SELECT_LIST1 - HTML Form Element Attributes
    onchange="javascript:f1();"P1_SELECT_LIST2 - HTML Form Element Attributes
    onchange="javascript:f2(this);"Page - HTML Header
    <script type="text/javascript">
    function f2(pThis)
    //pThis is an OBJECT not item name
       if (pThis.value == 'C')
    // set P1_XXXX to null
         $x('P1_XXXX').value = '';
       else if (pThis.value == 'E')
    // whats the use of doing this?
         var v1 = $v('P1_SELECT_LIST1');
         <!-- alert (v1);  -->
         f1();  // -- No need to pass parameters
    function f1()
    // set P1_YYYY with value XX
    // XX is Constant?
      $x_Value('P1_YYYY','XX');
    </script>Regards,
    Hari

  • In sm30, when save, how to fill the table with the system data in the table

    Hi all, in SM30, we have user name and time fields, when we create record, after we click the SAVE button, it will automatically fill the fields with the system data, how can we realize it?

    Hi ,
    Do like this.
    1. Go to SE11 -> give your table name and press on change button .
    2.Go to Menu->Utilities-> Table Maintainance Generator , then it will take you another screen .
    3.Assign Functin group if already have one , other wise create function group and assign
    4.Go to Menu->Environment->Modification->Events , again it will take you to another screen
    5.Click on new entries
    ->Now press F4 in T column . Select<u> "01" - Before saving the data in the database</u> and in form routinue give any name of the routinue like "SAVE_USER_DATA" and press enter then u can see an editor symbol in next column click on that it will take you ABAP editor there type this code .
    ztable-username = sy-uname.
    ztable-createtime = sy-uziet.
    check and activate the code .
    With this your job will be complete . Now while entering data just leave columns blank , they will insert corresponding username and time
    Don't forget award points if it helps you.
    Regards,
    Raghav

  • How to Create Inline Table to Display Detail Data in a Master Table in 11g?

    Hi,
    I have a requirement to create inline table inside master table to show data.
    I found this 10g article for this http://download.oracle.com/docs/cd/B31017_01/web.1013/b28967/web_masterdetail006.htm#BABCDCGE
    I couldn't find such option in 11g. Am i missing something? Please let me know where i can find more details.
    Required Output:
    [+] DepartmentId DepartmentName
    [-] DepartmentId DepartmentName
    EmployeeId FirstName LastName
    EmployeeId FirstName LastName
    EmployeeId FirstName LastName
    [+] DepartmentId DepartmentName
    Also, I tried creating the Page as below (Departments -Employees Relation). i.e I have tried using the ADF treeModel in the bindings and then created a table/inline table manually to populate. The data is available in the iterators (i found using sops in back bean), but the inline table is not showing any data. I tried enabling PPR on detail based on master. But no luck.
    <af:table rows="#{bindings.Departments1.rangeSize}"
    emptyText="#{bindings.findAllStaff1.viewable ? \'No rows yet.\' :
    \'Access Denied.\'}"
    var="row" value="#{bindings.Departments1.treeModel}">
    <af:column headerText="#{bindings.Departments1.labels.DepartmentId}"
    sortable="false" sortProperty="DepartmentId">
    <af:outputText value="#{row.DepartmentId}"/>
    </af:column>
    <af:column headerText="#{bindings.Departments1.labels.DepartmentName}"
    sortable="false" sortProperty="DepartmentName">
    <af:outputText value="#{row.DepartmentName}"/>
    </af:column>
    <f:facet name="detailStamp">
    <af:table rows="#{bindings.Departments1.rangeSize}"
    emptyText="No rows yet." var="detailRow"
    value="#{row.children}">
    <af:column headerText="#{row.children[0].labels.EmployeeId}"
    sortable="false" sortProperty="EmployeeId">
    <af:outputText value="#{detailRow.EmployeeId}"/>
    </af:column>
    <af:column headerText="#{row.children[0].labels.FirstName}"
    sortable="false" sortProperty="FirstName">
    <af:outputText value="#{detailRow.FirstName}"/>
    </af:column>
    <af:column headerText="#{row.children[0].labels.LastName}"
    sortable="false" sortProperty="LastName">
    <af:outputText value="#{detailRow.LastName}"/>
    </af:column>
    </af:table>
    </f:facet>
    </af:table>
    Thanks in Advance,
    Harikiran

    Hi,
    After reading the above links end-to-end twice, I'm finally able to establish the relationship in UI. I've used iterator for my specific purpose, although it can be done using a table/forEach.
    1) Create VOs for Dept and Emp, i.e. DeptVO and EmpVO.
    2) Then a View Link on deptID, i.e DeptEmpVL
    3) Drag and drop the Dept as AdfTreeTable, b'coz it will create the treeBinding and also add the emp accessor by selecting it in the binding window. (refer to above doc links from BaiG)
    4) In my Page UI, i've created a new table and an iterator in the detailStamp.
    Dept Table ->
    o Value = #{bindings.Departments1.treeModel}
    o Var = dept
    o varStaus = deptVarStatus
    Add these:
    Column1-> OutputText -> #{dept.DepartmentId}
    Column2-> OutputText -> #{dept.DepartmentName}
    Insert into TableFacets -> detailStamp -> iterator
    Iterator ->
    o Value = #{dept.children}
    o Var = emp
    o varStatus = empVarStatus
    Add these:
    OutputText -> #{emp.EmployeeId}
    OutputText -> #{emp.EmployeeName}
    OutputText -> #{emp.Salary}
    This iterator/forEach comes in handy for having n Number of regions inside a layout.
    Thanks,
    Harikiran

  • How to use a table to generate customized data?

    I have a table with two columns: month, count. The values are like the following:
    Jan-2007 50
    Feb-2007 46
    Mar-2007 55
    Apr-2007 76
    Jan-2009 67
    Feb-2009 86
    Mar-2009 55
    I want to show the data like this:
    Month 2007 2008 2009
    January 50 76 67
    Febuary 46 45 86
    How to do that?
    Thanks.
    Jen

    If you want to show data for all months, regardless of it being present in your base data, then:
    test@ORA10G>
    test@ORA10G> --
    test@ORA10G> WITH t AS
      2       (SELECT 'Jan-2007' MONTH, 50 COUNT FROM DUAL UNION ALL
      3        SELECT 'Feb-2007', 46 FROM DUAL UNION ALL
      4        SELECT 'Mar-2007', 55 FROM DUAL UNION ALL
      5        SELECT 'Apr-2007', 76 FROM DUAL UNION ALL
      6        SELECT 'Sep-2008', 99 FROM DUAL UNION ALL
      7        SELECT 'Jan-2009', 67 FROM DUAL UNION ALL
      8        SELECT 'Feb-2009', 86 FROM DUAL UNION ALL
      9        SELECT 'Mar-2009', 55 FROM DUAL)
    10  --
    11  SELECT   TO_CHAR (x.rundt, 'Month') MONTH,
    12           MAX (DECODE (x.yr, '2007', COUNT, 0)) "2007",
    13           MAX (DECODE (x.yr, '2008', COUNT, 0)) "2008",
    14           MAX (DECODE (x.yr, '2009', COUNT, 0)) "2009"
    15      FROM (SELECT TO_DATE (MONTH, 'Month') dt,
    16                   TO_CHAR (TO_DATE (MONTH, 'Mon-yyyy'), 'Month') mth,
    17                   TO_CHAR (TO_DATE (MONTH, 'Mon-yyyy'), 'yyyy') yr,
    18                   COUNT, iter.pos, iter.rundt
    19              FROM (SELECT     ADD_MONTHS (dt.mindt, LEVEL - 1) rundt,
    20                               LEVEL pos
    21                          FROM (SELECT MIN (TO_DATE (MONTH, 'Mon-yyyy')) mindt,
    22                                       TO_NUMBER (TO_CHAR (MIN (TO_DATE (MONTH, 'Mon-yyyy')),'yyyy')) minyr,
    23                                       TO_NUMBER (TO_CHAR (MAX (TO_DATE (MONTH, 'Mon-yyyy')),'yyyy')) maxyr
    24                                  FROM t) dt
    25                    CONNECT BY LEVEL <= (dt.maxyr - dt.minyr + 1) * 12
    26                   ) iter,
    27                   t
    28             WHERE iter.rundt = TO_DATE (t.MONTH(+), 'Mon-yyyy')
    29           ) x
    30  GROUP BY TO_CHAR (x.rundt, 'Month')
    31  ORDER BY TO_DATE (TO_CHAR (x.rundt, 'Month'), 'Month');
    MONTH           2007       2008       2009
    January           50          0         67
    February          46          0         86
    March             55          0         55
    April             76          0          0
    May                0          0          0
    June               0          0          0
    July               0          0          0
    August             0          0          0
    September          0         99          0
    October            0          0          0
    November           0          0          0
    December           0          0          0
    12 rows selected.
    test@ORA10G>isotope

  • How to read a table and transfer the data into an internal table?

    Hello,
    I try to read all the data from a table (all attribute values from a node) and to write these data into an internal table. Any idea how to do this?
    Thanks for any help.

    Hi,
    Check this code.
    Here i creates context one node i.e  flights and attributes are from SFLIGHT table.
    DATA: lo_nd_flights TYPE REF TO if_wd_context_node,
            lo_el_flights TYPE REF TO if_wd_context_element,
            ls_flights TYPE if_main=>element_flights,
            it_flights type if_main=>elements_flights.
    navigate from <CONTEXT> to <FLIGHTS> via lead selection
      lo_nd_flights = wd_context->get_child_node( 'FLIGHTS' ).
    CALL METHOD LO_ND_FLIGHTS->GET_STATIC_ATTRIBUTES_TABLE
      IMPORTING
        TABLE  = it_flights.
    now the table data will be in internal table it_flights.

Maybe you are looking for

  • 2011 EFI Update problem

    I just ran the latest EFI Update on a (new) 3week old MBP.   The MBP SW update ran fine... then It indicated to run EFI Update... THe update appeared to run , with gray screen and progress bar.  It ran to completion restarted. AND all I get is a grey

  • Error when submitting podcast feed on iTunes

    When I went to submit a podcast in iTunes, I received an error that said, "We had difficulty reading this feed. Bad http result code: 500" I have run my url file through www.feedvalidator.org for verification which state it is good. My url I am tryin

  • Adobe PDF 9.0 printer gone after update

    I just downloaded the most recent update for Acrobat Pro (something about English, French language). After the updater finished, I noticed that my PDF printer vanished. I tried to add it by going to print from Quark but couldn't find it. Tried the sa

  • 6A 80 on loading import.cap

    Greetings! I have problem with loading applet into java card. I load it with my program, but the same problem persist in JCOP tools as well. Hence the problem is not my uploader. Here is the trace from my prog: > => 84 82 00 00 10 F7 31 F6 11 E8 10 8

  • Using web beans in JSP

    I would like to know how create a tree using Web Beans that Jdeveloper provides. Using the web object editor I could add two Beans which mapped to JSTree and JSTreeData(in oracle.jdeveloper.jsp.wb package), though I don't know the difference between