I want to change the type of a Result Set

Hello all,
I was using a ResultSet object to store the results of a query, and when i attempted to use the ResultSet function "last()", i had a SQL exception saying that I cannot use this function on a ResultSet of type TYPE_FORWARD_ONLY. How can I change the type of a ResultSet to be for example TYPE_SCROLL_SENSITIVE, so that i can use the 'last()' function? I can only find a function caleed getType() but i want a function to allow me to set the type of the ResultSet.....
Thanks a lot

The type is determined when you create the Statement or PreparedStatement object. See the documention for Connection.createStatement or Connection.prepareStatement.

Similar Messages

  • How can I change the type of column in matrix

    I want to change the type of column in matrix to it_LINKED_BUTTON, so it can show the orange arrow
    I added the column throw marketing documents (rows)
    It's seems the default column type  is it_Edit
    is there a way of changing the column type
    i tried the below code, but it did not work because the type property in a matrix column is readonly
    mtx.Columns.Item(0).Type = SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON
    sincerely yours
    Riade Asleh

    i don't want to add a new column
    i want to change the column type of existing column in matrix, becuase it's bind to a field
    beside that, i can not add column , if the matrix has rows in it
    sincerely yours
    Riade Asleh

  • I want to change the "blinking solid line cursor" to something that is easier to see when typing in a url or like on this line where I type this question.

    I want to change the "solid straight blinking line"....to something easier to see. It is really hard to see it especially in the box where one types in a URL. Thanks

    You can widen the "I-beam" cursor but if I recall correctly, the thicker it gets the more it will overlap the text to some extent so that can sometimes affect readability.
    The following thread has the "under the hood" settings for this: [https://support.mozilla.org/en-US/questions/900479 Size of the text cursor (insertion point)?]
    Can you get a display that you like?
    ''Edit: The problem I remembered was when the blinking was turned off. See [https://support.mozilla.org/en-US/questions/949937 i need smth like `ui.caretInvert: true`].''

  • I want to change the default file type in the Open File dialog - e.g. from Word to All Files

    I want to change the default file type in the Open File dialog - most recently specifically in Adobe Acrobat, from Adobe Files to All Files, so I don't have to do it again and again manually.  Is this possible?  Is it an OS setting or an app-specific setting?

    The Apps set the default to the file type it can open, sort of. However, there normally isn't a type specified. All document types that the app can handle will be offered.
    Adobe, and Microsoft, tend to roll their own dialogs, so they may not be standard. I don't have Acrobat, so I can't verify that. If Adobe is puting a file type selector in their open file dialogs, it would be up to them to store the preferences.
    EDIT: I checked Reader, and i see what you mean. Not terribly useful.
    Message was edited by: Barney-15E

  • Want to change the cost element for a activity type (KP26)

    Hi,
    I want to change the Allocation cost element for an activity type in KP26. I have already changed the cost element in the activity master data in KL02. Now i want to change it in KP26. I am trying to delete the existing line item in KP26  to create the new line item with the new cost element, but system not allowing to delete the existing one. It throws the error message ""Allocations with XXXXXXX/XXXX (Cost center/Activity type)  exist ; deletion not possible". Can someone please help me to change the cost element?
    Regards
    Dev

    Hi Rao and Lalit,
    Thanx for you people for helping me. i havin gone doubt here. If i am deleting the existing line in KP26 and create new line with appropriage cost element will it be cause the existing datas? I don't want to go for another activity type, because our process is a complex process exist all over the world in more than 300 company codes. So i want to use the existing activity type but want to change the allocation cost element alone. Is there any possibility to change the cost element alone?
    Regards,
    Dev

  • I want to change the way Safari opens a file type.

    Is there a forum for Windows users of Safari?
    I am using Windows 7 and just downloaded Safari 5.1.7
    I want to change the way Safari opens a file type. Specifically the AVI file type. I would like Safari to cause VLC Player to launch, outside of Safari, and play the AVI file. I don't find that Safari provides me with a method to change how Safari will open a file. Presently Safari will do nothing when I pull down the file menu, select "open", and then select an AVI file from a disk folder. I have Opera, Firefox and IE launching VLC,,,, but not Safari.

    Yes, the Safari for Windows forum is here:
    https://discussions.apple.com/community/mac_os/safari?view=discussions#/?tagSet= 1041
    I have asked the Hosts to move your post to that forum.

  • Error value = 73, How to change the type of password?

    I want to use the famous wiki integrated in leopard, so I had to configure open directory and DNS.
    Well my problem come from that I can't configure open Directory, just after creating a new admin, I have no possiblity to change the type of password, there is just the type shadow, and I know that we had to choose open directory's type.
    Obviously, I'm authenticated in the workgroup manager
    Which services I had to turn on to use open directory's type?
    Or which mac I have to hit.
    THX

    Hi
    So I had to configure open directory and DNS
    What did you do or not do exactly?
    My problem come from that I can't configure open Directory
    You won't be able to configure Open Directory to allow different password types unless you either bind your Server to an existing KDC or make your Server the KDC. For the Server to be a KDC (Kerberos Distribution Center) it has to be an Open Directory Master. Successful promotion to an Open Directory Master Role absolutely depends on a correctly configured and running DNS Service - either on the server itself or on another server on the same network.
    There are plenty of posts in these forums outlining how to configure your Server in terms of DNS as well as how to promote to Open Directory Master. Apple themselves make available Admin Manuals that should assist:
    http://images.apple.com/server/macosx/docs/OpenDirectory_Adminv10.5.pdf
    http://images.apple.com/server/macosx/docs/NetworkServices_Adminv10.5.pdf
    Failing this these forums (as already mentioned) as well as:
    http://www.afp548.com
    Hope this helps, Tony

  • How to change the type of a contract

    Hello Gurus
    Our customer has defined 3 contract types (C01, C02 and C03).
    He want to create new type from the original, by example C01 is cloned to C11 and C12. The problem is he want to change the contract type of all the contracts in database. By example, contract 46000001 is type of C01, he want to modify this contract to C12 type. How to do that? What is the better way to do?
    Thanks a lot
    Gregory

    I see some risks (e.g. with archiving, number range conflicts),
    but I see no reason for this change.
    Copiing the contract types and then moving all existing contracts from the old type to the new type .....is just adding a lot work for no change.
    You have the same situation for less money  if you keep the existing situation.
    Copy the contract type to new ones and use the new ones for new process.
    And change just the description of the old types.

  • How to change the type of Case selector

    Hallo,
    I'm running LV 6i on NT4.0.
    I have a Case structure with several strings as cases, lets say stringA
    (Standard), stringB, stringC, stringD and so on.
    So my Case selector is of type string. That works fine so far.
    Now I want to change that structure from StringType to EnumType, so I would
    have cases CaseA(Standard), CaseB, CaseC and CaseD. So I want to change the
    slector type to Enum and associate the former string cases to Enum cases.
    1. I wired an Enum constant to my string selector, and tried to assign a
    case for each enum, the machine crashes.
    2. I duplicated each string case and tried to assign the duplicated to the
    enum, the mashine crashed.
    Is there a way to do this, without deleting the case structure, or starting
    a copy paste orgie?
    Oliver Friedrich

    Something very strange is going on. I have tried what you explained in V6.0.2 running under W2K and all is well with the world. Can you post the VI that's doing it and let me play with it? Perhaps I might see something. In the mean time, it might be that the VI is corrupted and you'll have to rebuild it. This is a very rare circumstance with LV, but it can happen--especially when the computer crashes.
    Have you upgraded to 6.0.2. If not that's another thing to try. The upgrade is free and can be downloaded from NI's website.
    Mike...
    [email protected]
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • I want to change the final date format in MM/DD/YEAR.

    HI all,
    I want to change the final date format in MM/DD/YEAR. Even my profile will be in any format like DD.MM.YY or YY.MM.DD .
    can any body tell me the way..

    declare variable:
    DATA : gv_date(10) TYPE c.
    and assign value to it:
    CONCATENATE sy-datum+4(2) sy-datum+6(2) sy-datum(4) INTO gv_date SEPARATED BY '/'

  • BAPI_SALESORDER_CHANGE - Want to change the Ship-to-party at header level

    Hi
    I want to change the Ship-to-party at header level in the Sales Order created. I tried using the BAPI BAPI_SALESORDER_CHANGE  as shown below.
    When I run the program I get the log as Sales Order 45 saved succesfully. However, I don't find the SO changed. Apart from this I get an Express Message saying the Updation failure. Not sure of what'z wrong here.
    Pls help
    thanks
    girish
    REPORT  ZBAPI_SALESORD_CHANGE.
    data : zBAPISDHD       type BAPISDH1,
           zSALESDOCUMENT  type BAPIVBELN-VBELN.
    data : zORDER_ITEMS_IN     like /AFS/BAPISDITM occurs 0 with header line,
           zORDER_SCHEDULES_IN like /AFS/BAPISDSCHD occurs 0 with header line,
           zORDER_PARTNERS like BAPIPARNR      occurs 0 with header line,
           zRETURN         like BAPIRET2 occurs 0 with header line,
           so_no           type BAPIVBELN-VBELN,
           zORDER_HEADER_INX    TYPE BAPISDH1X,
           zPARTNERCHANGES like  BAPIPARNRC occurs 0 with header line.
    clear : zBAPISDHD.
    so_no = '0000000045'.
    data : l_comp_qty like zORDER_ITEMS_IN-COMP_QUANT.
    l_comp_qty = 10.
    zBAPISDHD-SALES_ORG = 'BP01'.
    zBAPISDHD-DISTR_CHAN = '02'.
    zBAPISDHD-DIVISION = '01'.
    zORDER_HEADER_INX-UPDATEFLAG = 'U'.
    zORDER_HEADER_INX-SALES_ORG  = 'X'.
    zORDER_HEADER_INX-DISTR_CHAN = 'X'.
    zORDER_HEADER_INX-DIVISION = 'X'.
    Ship to pary
    zORDER_PARTNERS-PARTN_ROLE = 'WE'.
    zORDER_PARTNERS-PARTN_NUMB = 'BPAFS0007'.
    append zORDER_PARTNERS.
    zPARTNERCHANGES-DOCUMENT = '45'.
    zPARTNERCHANGES-ITM_NUMBER = '10'.
    zPARTNERCHANGES-UPDATEFLAG = 'U'.
    zPARTNERCHANGES-PARTN_ROLE = 'WE'.
    zPARTNERCHANGES-P_NUMB_OLD = 'BPAFS0001'.
    zPARTNERCHANGES-P_NUMB_NEW = 'BPAFS0007'.
    append zPARTNERCHANGES.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
      EXPORTING
        SALESDOCUMENT               = so_no
        ORDER_HEADER_IN             = zBAPISDHD
        ORDER_HEADER_INX            = zORDER_HEADER_INX
      SIMULATION                  =
      BEHAVE_WHEN_ERROR           = ' '
      INT_NUMBER_ASSIGNMENT       = ' '
      LOGIC_SWITCH                =
      NO_STATUS_BUF_INIT          = ' '
      TABLES
        RETURN                      = zRETURN
      ORDER_ITEM_IN               =
      ORDER_ITEM_INX              =
        PARTNERS                    = zORDER_PARTNERS
        PARTNERCHANGES              = zPARTNERCHANGES.
      PARTNERADDRESSES            =
      ORDER_CFGS_REF              =
      ORDER_CFGS_INST             =
      ORDER_CFGS_PART_OF          =
      ORDER_CFGS_VALUE            =
      ORDER_CFGS_BLOB             =
      ORDER_CFGS_VK               =
      ORDER_CFGS_REFINST          =
      SCHEDULE_LINES              =
      SCHEDULE_LINESX             =
      ORDER_TEXT                  =
      ORDER_KEYS                  =
      CONDITIONS_IN               =
      CONDITIONS_INX              =
      EXTENSIONIN                 =
    data : s_BAPIRET2 like  BAPIRET2.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    exporting
    wait = 'X'
    importing
    return = s_bapiret2.

    Thanks Prashanth. It worked !!!!!!!!!!!!!
    Now I am facing another type of problem. The requirement is to change the Sales Order Item Quantity. I basically planned to update the quantity of Schedule Item which needs to be changed. When I run the below code, it works and says the Sales Order changed succesfully. However I get an express message saying the Database update failure. I don't get any sort of technical information.
    Appreciate if you could help me finding the error.
    Thanks
    regards
    girish
    Note --> I am trying to change the Quantity for 2 line item in SO '56' to 40 Units.
    REPORT  ZBAPI_SALESORD_CHANGE.
    data : zBAPISDHD       type /AFS/BAPISDHD,
           zORDER_HEADER_INX    TYPE /AFS/BAPISDHDX,
           zSALESDOCUMENT  type BAPIVBELN-VBELN.
    data : zORDER_ITEMS_IN     like /AFS/BAPISDITM   occurs 0 with header line,
           zORDER_ITEM_INX     like /AFS/BAPISDITMX  occurs 0 with header line,
           zORDER_SCHEDULES_IN like /AFS/BAPISDSCHD  occurs 0 with header line,
           ZSCHEDULE_LINESX    LIKE /AFS/BAPISDSCHDX occurs 0 with header line,
           zORDER_PARTNERS like BAPIPARNR      occurs 0 with header line,
           zRETURN         like BAPIRET2 occurs 0 with header line,
           so_no           type BAPIVBELN-VBELN,
           zPARTNERCHANGES like  BAPIPARNRC occurs 0 with header line.
    data : l_comp_qty like zORDER_ITEMS_IN-COMP_QUANT.
    data : g_qty like /AFS/BAPISDSCHD-REQ_QTY.
    g_qty = 40.
    l_comp_qty = 40.
    clear : zBAPISDHD.
    so_no = '0000000056'.
    zBAPISDHD-REFOBJTYPE = '/AFS/ORDER'.
    zBAPISDHD-SALES_ORG = 'BP01'.
    zBAPISDHD-DISTR_CHAN = '02'.
    zBAPISDHD-DIVISION = '01'.
    zBAPISDHD-PMNTTRMS = '0001'.
    zORDER_HEADER_INX-UPDATEFLAG = 'U'.
    zORDER_HEADER_INX-SALES_ORG  = 'X'.
    zORDER_HEADER_INX-DISTR_CHAN = 'X'.
    zORDER_HEADER_INX-DIVISION = 'X'.
    zORDER_HEADER_INX-PMNTTRMS = 'X'.
    **********ITEM ***************************************
    zORDER_ITEMS_IN-ITM_NUMBER = '00020'.
    zORDER_ITEMS_IN-MATERIAL = 'F1202'.
    zORDER_ITEMS_IN-PLANT = 'BP01'.
    zORDER_ITEMS_IN-ITEM_CATEG = 'TAS'.
    zORDER_ITEMS_IN-SHIP_POINT = 'BP01'.
    zORDER_ITEMS_IN-COMP_QUANT = l_comp_qty.
    zORDER_ITEMS_IN-TARGET_QTY = l_comp_qty.
    zORDER_ITEMS_IN-TARGET_QU = 'ST'.
    append zORDER_ITEMS_IN.
    zORDER_ITEM_INX-ITM_NUMBER = '00020'.
    zORDER_ITEM_INX-UPDATEFLAG = 'U'.
    zORDER_ITEM_INX-MATERIAL = 'X'.
    zORDER_ITEM_INX-PLANT = 'X'.
    zORDER_ITEM_INX-ITEM_CATEG = 'X'.
    zORDER_ITEM_INX-SHIP_POINT = 'X'.
    zORDER_ITEM_INX-COMP_QUANT = 'X'.
    zORDER_ITEM_INX-TARGET_QTY = 'X'.
    zORDER_ITEM_INX-TARGET_QU = 'X'.
    append zORDER_ITEM_INX.
    *********SCHEDULE LINE******************************
    refresh zORDER_SCHEDULES_IN.
    clear zORDER_SCHEDULES_IN.
    zORDER_SCHEDULES_IN-ITM_NUMBER = '000020'.
    zORDER_SCHEDULES_IN-SCHED_LINE = '0001'.
    zORDER_SCHEDULES_IN-REQ_DATE = '20070525'.
    zORDER_SCHEDULES_IN-DATE_TYPE = '1'.
    zORDER_SCHEDULES_IN-SCHED_TYPE = 'CS'.
    zORDER_SCHEDULES_IN-GRID_VALUE = 'BLK2728'.
    zORDER_SCHEDULES_IN-REQ_CATEGORY = '1DE'.
    zORDER_SCHEDULES_IN-REFOBJTYPE = '/AFS/ORDER'.
    zORDER_SCHEDULES_IN-REQ_QTY = g_qty.
    append zORDER_SCHEDULES_IN.
    refresh ZSCHEDULE_LINESX.
    clear ZSCHEDULE_LINESX.
    ZSCHEDULE_LINESX-ITM_NUMBER = '000020'.
    ZSCHEDULE_LINESX-SCHED_LINE = '0001'.
    ZSCHEDULE_LINESX-UPDATEFLAG = 'U'.
    ZSCHEDULE_LINESX-REQ_DATE = 'X'.
    ZSCHEDULE_LINESX-DATE_TYPE = 'X'.
    ZSCHEDULE_LINESX-SCHED_TYPE = 'X'.
    ZSCHEDULE_LINESX-GRID_VALUE = 'X'.
    ZSCHEDULE_LINESX-REQ_CATEGORY = 'X'.
    ZSCHEDULE_LINESX-REFOBJTYPE = 'X'.
    ZSCHEDULE_LINESX-REQ_QTY = 'X'.
    append ZSCHEDULE_LINESX.
    CALL FUNCTION '/AFS/BAPI_SALESORD_CHANGE'
      EXPORTING
        SALESDOCUMENT               = so_no
        ORDER_HEADER_IN             = zBAPISDHD
        ORDER_HEADER_INX            = zORDER_HEADER_INX
      SIMULATION                  =
      BEHAVE_WHEN_ERROR           = ' '
      INT_NUMBER_ASSIGNMENT       = ' '
      LOGIC_SWITCH                =
      TABLES
        RETURN                      = zRETURN
        ORDER_ITEM_IN               = zORDER_ITEMS_IN
        ORDER_ITEM_INX              = zORDER_ITEM_INX
        ORDER_SCHEDULE_LINES        = zORDER_SCHEDULES_IN
        ORDER_SCHEDULE_LINESX       = ZSCHEDULE_LINESX.
      PARTNERS                    =
      PARTNERCHANGES              = zPARTNERCHANGES
      PARTNERADDRESSES            =
      ORDER_CFGS_REF              =
      ORDER_CFGS_INST             =
      ORDER_CFGS_PART_OF          =
      ORDER_CFGS_VALUE            =
      ORDER_CFGS_BLOB             =
      ORDER_CFGS_VK               =
      ORDER_CFGS_REFINST          =
      ORDER_TEXT                  =
      ORDER_KEYS                  =
      CONDITIONS_IN               =
      CONDITIONS_INX              =
      EXTENSIONIN                 =
    *CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
       SALESDOCUMENT               = so_no
       ORDER_HEADER_IN             = zBAPISDHD
       ORDER_HEADER_INX            = zORDER_HEADER_INX
    TABLES
       RETURN                      = zRETURN
       ORDER_ITEM_IN               = zORDER_ITEMS_IN
       ORDER_ITEM_INX              = zORDER_ITEM_INX
       PARTNERS                    = zORDER_PARTNERS
       PARTNERCHANGES              = zPARTNERCHANGES
      PARTNERADDRESSES            =
      ORDER_CFGS_REF              =
      ORDER_CFGS_INST             =
      ORDER_CFGS_PART_OF          =
      ORDER_CFGS_VALUE            =
      ORDER_CFGS_BLOB             =
      ORDER_CFGS_VK               =
      ORDER_CFGS_REFINST          =
      SCHEDULE_LINES               = zORDER_SCHEDULES_IN
      SCHEDULE_LINESX              = ZSCHEDULE_LINESX.
      ORDER_TEXT                  =
      ORDER_KEYS                  =
      CONDITIONS_IN               =
      CONDITIONS_INX              =
      EXTENSIONIN                 =
    data : s_BAPIRET2 like  BAPIRET2.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    importing
    return = s_bapiret2.

  • I want to change the selection text in the standard report/transaction  .

    I have added one screen field to the standard report , now i want to change the selection text in the standard report/transaction

    Hi,
    >
    scoy123 wrote:
    > I have added one screen field to the standard report , now i want to change the selection text in the standard report/transaction
    Refer:-
    CONSTANTS : c_comment(20) TYPE c VALUE 'write your comment'.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(20) c_comment.
    PARAMETERS : p_matnr TYPE matnr.
    SELECTION-SCREEN END OF LINE.
    Hope this helps you.
    Regards,
    Tarun

  • I want to change the posting period

    I want to change the posting period for closed period. how can to do?. My period 2010 is in period but I want periods in months. who can I help me?

    Hi Mary.......
    One you created you can not change the type of periods of Posting Period.
    This is SAP Standard that once you created you can not change it.
    But if you have not done transactions for that period then you can remove and recreate with the period type as 12 Months...
    Regards,
    Rahul

  • I've bought three new ipod products and want to change the name of my old ipod when i plug it into my laptop. how do i do this

    When you plug your ipod into the computer it's name comes up. ie bill's ipod. How do you edit the name. I've recently bought some new ipods and want to change the names of my old ones.

    Double click the iPod under Devices in the source list on the left side of the iTunes window then type in a new name.

  • I want to change Material Type for mass upload.(MMAM)

    hi all,
    I want to change Material Type for mass upload.(MMAM)
    Suggestion pls? or Any BAPI is availablre?
    Edited by: abap_friends on Jan 6, 2011 7:12 AM
    Moderator message: please do your own research before asking.
    Edited by: Thomas Zloch on Jan 6, 2011 11:27 AM

    This may be little tough for 10000 sales orders.
    1. You have to remove the output record for the irrelevant output record using tcode VV12 for the relevant document type. So now for the document type, the old output wont be triggered.
    2. Now, create output records for hte correct output type in VV11 tcode(for the output type BA03) for the document type. Now this output will be triggered for all the document types you are creating from now onwards.
    3. To trigger the output type BA03, in all the old orders, you just have to open these sales orders in change mode (VA02), and just save it. When u open it the output type BA03 will be automatically triggered as the master data is maintained in VV11. But because just opening all the 10000 sales orders in VA02 one by one be a mechanical task, you have to think of some tool for this.
    May be a CATT procedure can do the trick. Else, you can just create a small program, where you can upload these sales orders and the program will just open these orders in change mode and just saves it (without making any changes). Then the output will be retriggered.
    Here again, if you are printing the output directly, it is advisable to trigger the output in batch mode(Date/Time field is 1 in VV11), and then you can again trigger the printing again using the program RSNAST00 after office hours for these 10k orders.
    I hope I answered ur query.
    Pls lemme know if you need some more info. (You can reward me too...)

Maybe you are looking for