How to move to next record of the databank file using custom code

hi,
can someone please tell me how to move to next or the previous record the Databank file. i found a funtion setcurrentdatabankrecord(), but i am not able to use it.
thanks in advance...

Hi,
I recently had the same problem, here's my solution:
"setCurrentDataBankRecord" is available only to External Program Control.
I used the VB of an empty Word2002 Document.
1. you have to reference the webAnlyst.exe in the object-catalogue
2. create a module via the menue
3. type in the code
This is the code I used - some of the code is just for control
Private Sub TestSetDBRec()
Dim pdtest As webanlst.ProgT
Set pdtest = New webanlst.ProgT
Dim currDBI, numRecsCurrDB As String
' Workspace öffnen
pdtest.play.OpenWorkspace "VBTest"
' Script öffnen
pdtest.play.openScript "BM2B_VK_Änderung"
' DB-Abfragen
numRecsCurrDB = CStr(pdtest.play.getDataBankSize)
currDBI = pdtest.play.currentDatabankIndex
pdtest.play.setCurrentDataBankRecord (2)
currDBI = pdtest.play.currentDatabankIndex
' jetzt das Script abspielen
pdtest.play.doScript "BM2B_VK_Änderung"
End Sub
This works! You can also looping through the database by getting the current value and set the value back increased by e.g. one
Hope it is helpful!

Similar Messages

  • How to move to next record in PHP+ORACLE env

    I install php3 +ORACLE in RH linux 6 box, the works fine.
    I write a app to browse record in oracle table,I write two
    frame, one top_frame,one body_frame,but How can I to move to
    next record?
    thanks any idea!!
    null

    one record item at a time...

  • How to find out top 10 records from the R/3 using Java code (WD Program)

    Hi Experts,
    I have used Java Web Dynpro program to fetch records from the backend. Following code helps me and fetches record. As per the customer reqirement, we have to fetch only top 10 records (Actual Cost) from the backend. So I have to modify the Java code. How I can do so? Please help.
              wdContext.nodeGraphData().invalidate();
              IPublicCostcnt.IGraphDataElement categoryElement;
                   for (int i = 0; i < wdContext.nodeItab_Final1().size(); i++) {
                   categoryElement = wdContext.createGraphDataElement();
                   categoryElement.setCostElement(""+ wdContext.nodeItab_Final1().getItab_Final1ElementAt(i).getDescription());
                   categoryElement.setActualCost(wdContext.nodeItab_Final1().getItab_Final1ElementAt(i).getActual_Cost().toString());
                   categoryElement.setPlannedCost(wdContext.nodeItab_Final1().getItab_Final1ElementAt(i).getPlan_Cost().toString());
                   wdContext.nodeGraphData().addElement(categoryElement);
    Regards,
    Gary

    Dear SDN Users,
    This is how I resolved the issue.
    1) Requested ABAPer to provide me sorted data. The data has been sorted in descending order of actual_cost.
    2) After that I used following code. This resolved the issue.
         if (wdContext.nodeItab_Final1().size()>10){
         IPublicCostcnt.IGraphDataElement categoryElement;
              for (int i = 0; i < 10; i++) {
              categoryElement = wdContext.createGraphDataElement();
              categoryElement.setCostElement(""+ wdContext.nodeItab_Final1().getItab_Final1ElementAt(i).getDescription());
              categoryElement.setActualCost(wdContext.nodeItab_Final1().getItab_Final1ElementAt(i).getActual_Cost().toString());
              categoryElement.setPlannedCost(wdContext.nodeItab_Final1().getItab_Final1ElementAt(i).getPlan_Cost().toString());
              wdContext.nodeGraphData().addElement(categoryElement);
         if (wdContext.nodeItab_Final1().size()<=10){
         if (wdContext.nodeItab_Final1().size()>0){
         IPublicCostcnt.IGraphDataElement categoryElement;
              for (int i = 0; i < wdContext.nodeItab_Final1().size(); i++) {
              categoryElement = wdContext.createGraphDataElement();
              categoryElement.setCostElement(""+ wdContext.nodeItab_Final1().getItab_Final1ElementAt(i).getDescription());
              categoryElement.setActualCost(wdContext.nodeItab_Final1().getItab_Final1ElementAt(i).getActual_Cost().toString());
              categoryElement.setPlannedCost(wdContext.nodeItab_Final1().getItab_Final1ElementAt(i).getPlan_Cost().toString());
              wdContext.nodeGraphData().addElement(categoryElement);
    Regards,
    Gary

  • SQLLDR: (CTL file) How to ONLY load 1 record of the CSV file

    Hello,
    We are in 11g, and we get CSV data.
    I'd like to know if there is a way in the CTL file to specify that I only want to load first row ?
    I know how to do it if there is a common unique value in the first row (WHEN myColumn = 'value1' )
    BUT, in that case, first row doesn't hold any specific value, and I think that I have to tell the loader to take only first row.
    I hope it is clear.
    Here is the CTL, in the case we can get a specific value for first row:
    LOAD DATA
    CHARACTERSET WE8ISO8859P1
    APPEND
    CONTINUEIF LAST != ";"
    INTO TABLE IMPORT_FIRST_LINES
    WHEN COL_3 = 'firstRowValue'
       FIELDS TERMINATED BY ';' OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    ( COL_1         CHAR
    , COL_2         CHAR
    , COL_3         CHAR)
    {code}
    So, I think I need to change the *WHEN clause*.
    I hope it is clear enough for you to understand.
    Thanks in advance,
        Olivier                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    just change the control file like this,
    LOAD DATA
    CHARACTERSET WE8ISO8859P1
    APPEND
    CONTINUEIF LAST != ";"
    INTO TABLE IMPORT_FIRST_LINES
    WHEN COL_3 = 'firstRowValue'
    FIELDS TERMINATED BY ';' OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    ( COL_1 CHAR
    ----------- if you only want to load 1st column of csv file to first column in table.

  • How to read data from the excel file using java code.

    Hi to all,
    I am using below code to getting the data from the excel file but I can't get the corresponding data from the specific file. can anyone give me the correct code to do that... I will waiting for your usefull reply......
    advance thanks....
    import java.io.*;
    import java.sql.*;
        public class sample{
                 public static void main(String[] args){
                      Connection connection = null;
                          try{
                               Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                               Connection con = DriverManager.getConnection( "jdbc:odbc:Mydsn","","" );
                               Statement st = con.createStatement();
                               ResultSet rs = st.executeQuery( "Select * from [Sheet1$]" );
                               System.out.println("sample:"+rs);
                                  ResultSetMetaData rsmd = rs.getMetaData();
                                  System.out.println("samplersd:"+rsmd);
                               int numberOfColumns = rsmd.getColumnCount();
                                  System.out.println("numberOfColumns:"+numberOfColumns);
                                   while (rs.next()) {
                                            System.out.println("sample1:"+rs);
                                            for (int i = 1; i <= numberOfColumns; i++) {
                                                 if (i > 1) System.out.print(", ");
                                                 String columnValue = rs.getString(i);
                                                 System.out.print(columnValue);
                                            System.out.println("");
                                       st.close();
                                       con.close();
                                      } catch(Exception ex) {
                                           System.err.print("Exception: ");
                                           System.err.println(ex.getMessage());
                        }

    1: What is the name of the excel sheet?
    2: What is printed in this program? null ? anything?
    error?Excel file name is "sample.xls" I set excel file connectivity in my JDBC driver(DSN). Here in my program I am not giving that excel file name. I am giving only that excel sheet name. that is followed
    ResultSet rs = st.executeQuery( "Select * from [Sheet1$]" );The output of this program is given bellow.
    sample:sun.jdbc.odbc.JdbcOdbcResultSet@1b67f74
    samplersd:sun.jdbc.odbc.JdbcOdbcResultSetMetaData@530daa
    numberOfColumns:2

  • Problem in writing into the excel file using java code

    Hai ,
    I will be getting the data as a string and i am writing into the excel file. the problem is .if it has numeric values even now i will writing as a string data ,at this time i am getting the message in the excel file as "Number in the cell is formatted as text".
    I need to remove this thru my code..but i can write only as a string .
    To write in a excel file ,i used HSSFWorkbook.

    just check out
    http://www.andykhan.com/

  • How to load a XML into Checkpoint in UFT API using custom code

    I am automating a webservice using UFT-12. In which I am trying to load a xml into the checkpoint at run time. but I am not able to find out a way of doing it.Can any1 help me on this?

    @piyu_sh_arm 
    ‎Thank you for using HP Support Forum. I have brought your issue to the appropriate team within HP. They will likely request information from you in order to look up your case details or product serial number. Please look for a private message from an identified HP contact. Additionally, keep in mind not to publicly post ( serial numbers and case details).
    If you are unfamiliar with the Forum's private messaging please click here to learn more.
    Thank you,
    Omar
    I Work for HP

  • Move to next record / wildcard search

    Hi
    Hope you can understand this explanation..
    I have searchable database for Holiday & Residential
    property here
    http://www.roomtobreathesl.com
    (search facility in the navigation menu)
    The results page for this search works fine for when you
    specify a certain
    area, certain amount of beds etc as it only shows a small
    amount of
    properties.
    However when you do a search for any area / any amount of
    rooms / any type,
    the query brings up over 40 results, so a move to next record
    is used. This
    is where the problem lies. You cannot move to next record as
    the 'Next
    record' link is looking for another wildcard search (see
    status bar).
    Any ideas how to remedy this?
    Thanks for any help
    Gary

    oops!
    Sorry sent you the previous version that's online.
    I also tried doing a search and replace and changing all
    'Request.Form' to
    'Request'
    Still didn't work.
    This is how it was when it wasn't working.
    <%@LANGUAGE="VBSCRIPT"%>
    <!--#include file="Connections/YotShop6.asp" -->
    <%
    Dim rsResults__MMColParam
    rsResults__MMColParam = "1"
    If (Request("yscon") <> "") Then
    rsResults__MMColParam = Request("yscon")
    End If
    %>
    <%
    Dim rsResults__ysbed
    rsResults__ysbed = "1"
    If (Request("ysbed") <> "") Then
    rsResults__ysbed = Request("ysbed")
    End If
    %>
    <%
    Dim rsResults__MMColParam3
    rsResults__MMColParam3 = "xyz"
    If (Request("type") <> "") Then
    rsResults__MMColParam3 = Request("type")
    End If
    %>
    <%
    Dim rsResults
    Dim rsResults_numRows
    Set rsResults = Server.CreateObject("ADODB.Recordset")
    rsResults.ActiveConnection = MM_YotShop6_STRING
    rsResults.Source = "SELECT * FROM YotStock WHERE Area LIKE '"
    +
    Replace(rsResults__MMColParam, "'", "''") + "' AND bedrooms
    LIKE '" +
    Replace(rsResults__ysbed, "'", "''") + "' AND type LIKE '" +
    Replace(rsResults__MMColParam3, "'", "''") + "' ORDER BY
    price ASC"
    rsResults.CursorType = 0
    rsResults.CursorLocation = 2
    rsResults.LockType = 1
    rsResults.Open()
    rsResults_numRows = 0
    %>
    "Julian Roberts" <[email protected]> wrote in message
    news:euj4if$ici$[email protected]..
    >>> Use Request instead of Request.Form for runtime
    parameters.
    >
    > You haven't done it :)
    >
    > --
    > Jules
    >
    http://www.charon.co.uk/charoncart
    > Charon Cart 3
    > Shopping Cart Extension for Dreamweaver MX/MX 2004
    >
    >
    >
    >

  • See my problem no master record move to next record

    hi master
    sir
    i have master detail block master table have all data but detail no data i need feed data in detail then i goto in detail block write value and press F10 for save
    for new record in detail
    in detail blick post-block or post_record or post_insert event i write this code
    go_block('masterblock');
    next_record;
    go_item('detailblock.item');
    but not responses no master block move to next record still and my curser sitll in last postion
    sir how i move master record after save the detail record and jump to detail block for new record
    please give me idea or code
    thanking you
    aamir

    thank for reply
    sir your help very usefull for my but when i press F10 then system show massage do you want to save change the record
    sir how i avoid that window and directly move to next record
    please give me idea
    thanking you
    aamir

  • My code not give me result and error for move to next record please see

    hi master
    sir i import this file also
    import javax.faces.event.ValueChangeEvent;
    then my error remove
    i am use this code in button event
    getMfatableDataProvider().cursorNext();
    form1.discardSubmittedValues("virtualForm1");
    and my textField is bounded with data provider table field
    please give me idea how i show next rocord in page when user press button
    thank's
    aamir

    thank for reply
    sir your help very usefull for my but when i press F10 then system show massage do you want to save change the record
    sir how i avoid that window and directly move to next record
    please give me idea
    thanking you
    aamir

  • Help: Data validation before commit or move to next record

    The form that I am working on allows data insert. It needs to have a feature to inform the end user for incomplete field(s) before commit_form or move to next record for updating. Please let me know how you would do it.
    Thank you,
    Jimmy

    To prevent cursor movement out of a field in a When-validate trigger, all you do is    Raise Form_trigger_failure;However, if the field is null and the user does not enter anything while tabbing through, or just clicking in then clicking somewhere else, the When-validate-item trigger does not run. You have to specifically check if the field is null in the When-validate-record trigger.

  • Move to next record in a LOOP!

    I have to perform a loop on an internal table consisting of several records.
    within the LOOP there is an if-endif condition followed by some code.
    Now, in the else condition of the if-endif part, i have to move to the next record (i.e. next record in the internal table)...If i use "Exit",the entire loop processing is skipped, but i just want to skip the current sy-index and loop for the next record in the internal table.
    Please suggest some way to do it.

    loop at itab.
    if <condn>.
    else.
    continue.
    endif.
    endloop.
    continue will process the next loop from begining i.e. after continue it will go to the loop at itab statement for next loop pass.
    regards
    shiba dutta

  • How many steps can be recorded in the History panel?

    In Photoshop, 20 steps can be recorded in the Histroy panel with the defult setting, and we can change the setting to record more or less steps by choosing "Edit> Preference".
    In Lightroom, how many steps can be recorded in the History panel with the defult setting? And how can we change the number of step to be recorded?

    I guess since the history is kept in the database (and not only in memory as with PS), there is not so much an issue in limiting them.
    Beat Gossweiler
    Switzerland

  • How to find last inserted record in the table.

    Version: Oracle 10g
    I have a table called "Manufacture" and 3 columns as mfno,itemname,quantity.
    How to find last inserted record in the table "Manufacture".
    As i come to know that Rowid is not result perfect results. Please provide your inputs.

    user13416294 wrote:
    Version: Oracle 10gThat is not a version. That is a product name. A version is 10.1.0.2 or 10.2.0.4, etc.
    I have a table called "Manufacture" and 3 columns as mfno,itemname,quantity.
    How to find last inserted record in the table "Manufacture".Not possible as your data model does not cater for it. That simple.
    If there is a need to determine some order or associate some time to an entity, then that should be part of the data model - and a relationship, or one or more attributes are needed to represent that information. Thus your data model in this case is unable to meet your requirements.
    If the requirements are valid, fix the data model. In other words - your question has nothing to do with Oracle and nothing to do with rowid, rowscn or other pseudo columns in Oracle. It is a pure data modeling issue. Nothing more.

  • TS1389 When I go to play a movie, I get prompted that the original file cannot be found.  When I do a search on spotlight it cannot be found, but it does appear in my purchases.  How do I re-download when it does not appear that it is allowed?

    When I go to play a movie, I get prompted that the original file cannot be found.  When I do a search on spotlight it cannot be found, but it does appear in my purchases.  How do I re-download when it does not appear that it is allowed?

    Hello paddyrb154,
    Thank you for the details of the issue you are experiencing with your purchased movie in iTunes on your iMac.  It sounds like iTunes thinks the movie is on your computer, but it is not located in the iTunes Media folder. 
    For an issue like this, I recommend deleting the movie from iTunes and downloading it from the iTunes Store again.  Use these steps to delete the movie:
    Mac or PC
    Launch iTunes.
    From the Library pop-up menu, choose Movies.
    Click Movies in the navigation bar.
    Click the movie you want to delete.
    Press the Delete key on your keyboard.
    In iTunes 11, the movie cover art will remain visible, but a cloud icon will appear on it to allow you to download the item again (in countries that support this).
    How to delete content you've downloaded from the iTunes Store, App Store, iBooks Store, or Mac App Store
    http://support.apple.com/kb/HT5772
    Once you have deleted the movie, you can click on the cloud icon to download the movie again.  If you do not see the cloud icon, use the steps in the section titled “Download previous purchases on Mac or PC ” in the following article to download the movie from your list of past purchases in the iTunes Store:
    Download past purchases
    http://support.apple.com/kb/ht2519
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

Maybe you are looking for

  • World Traveller creates a task

    I have been facing a problem in all FWs with World Traveller. Whenever I run it, it creates a task. How can I avoid this unwanted task creation? Was this post helpful? If so, please click on the white "Kudos!" star to the left. Thank you! Solved! Go

  • XI_J2EE_ADAPTER_XI_HANDLER - GENERAL_ERROR

    Hi, Scenario: RFC adapter to File adapter. I am getting the following error: Message Data Attribute Value Engine Adapter Engine Status Waiting Repeatable Yes Cancelable Yes Start 15.05.2007 19:57:18 End 15.05.2007 19:57:18 Sender Party   Sender Servi

  • Problem with installing Souncarddriver Soundblaster L

    hi i know my englisch is not so good. When im installing the Soundblaster driver i became a message like This http://img.myimg.de/Fehlermeldung6f7.jpg i know 00 percent that i have a soundblaster Li've Soundcard. To see this i had downloaded "Aida32"

  • E-Rec : How to assign applications to requisitions?

    Hello Experts, We have just started blue-printing of E-Rec and I am successful creating a requisition from Recruiter's page. I am just concerned how to assign applications to a requisition as search doesnt work being a very new system. I was trying t

  • Total Time Processed- As Error Log in XI

    Hi, I want to know if there are any means in XI to produce the Time to process an individual message in XI as the Output of XI. something like sending the total time taken to process the current XI message to a target system like a File server or Mai