Database records

hey guys i implemented lsmw with recording, the application which i used is coaded based on a structure finally i am able to process all the records successfully in batch session method but how to find the records in the data base
where these records r going i am unable to find the records in the tables related to this application what ever i processed
thanks in advanse

that ok-code is for moving into next screen. if its ur final screen( when u save ), u ll have a final ok-code..this varies with transactions. u can chk ur ok-code by writing /h (debugging) before clicking SAVE for ur transaction. in debugging mode, u can chk the value of sy-ucomm which gives the ok-code value...
anyways, u mentioned that even using lsmw, only 1 record is getting updated is it??? run ur session in Foreground, showing all screens, u ll c ur transaction with data that u have in ur flatfile, just press enter & c wat happens. In normal scenario, wen u press enter, one by one data will get populated in ur transaction n also in the databse.
wats happening in ur case?? also, chk the data that is appearing in the transaction if its correct..
Regards,
Bikash
Naveen, then i think ur recording was not complete. I suggest u do the recording again n try out...
Message was edited by: Bikash  Agarwal
u will not know because the system records watever u have done while recording n processes the screens accordingly. so if u didnt click the SAVE botton while Recording, anyway u ll get something in the lsmw but again the save wont happen while processing the lsmw also. to verify this, please record te transaction again n chk out...
Message was edited by: Bikash  Agarwal

Similar Messages

  • Saving database records in a flat file

    I am trying to save data from relational database into a flat file and then read back records based on the certain criteria.
    What will be a good approach for me? Should I use random access files or sequential files for storing and
    retrieving data or is there some other technique that is more efficient that I can use.
    Thanks

    I don't think that reading database records from a flat file based on certain criteria is a good approach, no matter how you produce the flat file. Using a second database table makes more sense to me, especially since you already have database software available and ready for use.
    (You asked about a "good approach" and then you wanted a technique that was "more efficient". Those two aren't the same thing at all.)

  • How to output database record in .doc format?

    Good day to all of you! I want to output the database records to a formatted .doc document.For example,
    Here are the db records:
    firstname mid lastname age
    ryan g gomez 23
    shiela m vanilla 21
    and the created document will be a .doc file, which will be formatted with image etc...
    +"File for the first record let's say RyanGomez.doc"+
    h4. Company Logo || Company Name
    h4. -------------------------------------------------------------------------------------------------------
    First Name: Ryan Middle Intial:G Last Name:Gomez
    +"and a separate file for the second format.. and so on...til all the records are created"+
    h4. Company Logo || Company Name
    h4. -------------------------------------------------------------------------------------------------------
    First Name:Shiela Middle Intial:A Lastname:Vanilla
    I know that I need Bufferedwriter/reader or printwriter but I'm having a problem on how to format or edit the output ...any help regarding this?
    I have tried using iText but I think it can only output pdf file...I need a doc output file.

    try {
            // Create a statement
            Statement stmt = connection.createStatement();
            // Prepare a statement to insert a record
            String sql = "DELETE FROM my_table WHERE col_string='a string'";
            // Execute the delete statement
            int deleteCount = stmt.executeUpdate(sql);
            // deleteCount contains the number of deleted rows
            // Use a prepared statement to delete
            // Prepare a statement to delete a record
            sql = "DELETE FROM my_table WHERE col_string=?";
            PreparedStatement pstmt = connection.prepareStatement(sql);
            // Set the value
            pstmt.setString(1, "a string");
            deleteCount = pstmt.executeUpdate();
            System.err.println(e.getMessage());

  • The ABAP/4 Open SQL array insert results in duplicate database records

    Hi,
    Iam getting following error :
    The ABAP/4 Open SQL array insert results in duplicate database records.
    Error in ABAP application program.
    The current ABAP program "SAPLV60U" had to be terminated because one of the
    statements could not be executed.
    This is probably due to an error in the ABAP program.
    " Information on where terminated
    The termination occurred in the ABAP program "SAPLV60U" in "VBUK_BEARBEITEN".
    The main program was "SAPMSSY4 ".
    The termination occurred in line 503 of the source code of the (Include)
    program "LV60UF0V"
    of the source code of program "LV60UF0V" (when calling the editor 5030).
    Processing was terminated because the exception "CX_SY_OPEN_SQL_DB" occurred in
    the
    procedure "VBUK_BEARBEITEN" "(FORM)" but was not handled locally, not declared
    in the
    RAISING clause of the procedure.
    The procedure is in the program "SAPLV60U ". Its source code starts in line 469
    of the (Include) program "LV60UF0V "."
    Please assist how to proceed further ..
    Many thanks
    Mujeeb.

    Sorry, THe correct note is 402221.
    Description from the note
    << Please do not post SAP notes - they are copyrighed material >>
    Edited by: Rob Burbank on Feb 22, 2009 3:46 PM

  • Convert the Database records to a standard XML file format?

    Hai,
    i want to convert the Database records to a standard XML file
    format which includes the schema name, table name, field name
    and field value. i am using Oracle 8.1.7. Is there any option
    please help me
    Thanks in advance.

    You could put the files somewhere and I can export them as QuickTime. Or you could find anyone you know who has Director. Or do the 30 day trial download
    Another approach would be to play the DCR in a browser window, and do a screen recording. But that’s unlikely to give the perfect frame rate that you would get by exporting from Director.

  • Using Java Bean in JSP to show database record

    I have links in my Tomcat container that if someone clicks on a specific link it should go to a Record page (Show.jsp) with all the values associated with a record from a database.
    For example if someone clicks on a specific link like this:
    LinkExample
    it would take you to a jsp with database info for someone named Jones and show you his info:
    Lastname = Jones
    Firstname = Mike
    City = San Diego
    I would like to do this using a Java helper class and bean so I dont have any database connection or Java code in my JSP.
    I created Java class file that has Database connection that works with a Java bean. I just dont know how to get the Show.jsp to work with the Java Bean and Java helper class file.
    Here is what I have for Show.jsp and this is the part I have been working on the longest but cant get it to work because it doesnt seem to work with the database:<jsp:useBean id="user" class="num.UserDB"/>
    //do I call getUser(lastname) here and if so how?
    <jsp:setProperty name="user" property="*"/>
    Last Name: <jsp:getProperty name="user" property="lastname"/><BR>
    First Name: <jsp:getProperty name="user" property="firstname"/><BR>
    City: <jsp:getProperty name="user" property="city"/><BR>My Java Helper class that compiles and connects to database:
    package num;
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import num.User;
    public class UserDB
    public User getUser(String lastname)
    User user = new User();     
            try          
         Class.forName...//database connection stuff here
        ResultSet results = stmt.executeQuery("SELECT * from user where lastname = '" + lastname + "'");
         if(results.next() == true)
         results.next();
         user.setLastname(results.getString("lastname"));
         user.setFirstname(results.getString("firstname"));
            user.setFirstname(results.getString("city"));
         catch(Exception e)          
                   System.out.println("Exception...");               
       return user;
    }My Java Bean that compiles here:
    package num;
    public class User
      private String firstname;
      private String lastname;
    private String city;
      public User()
         //no arg constructor
      public User(String firstname, String lastname, String city)
           this.lastname = lastname;
              this.firstname = firstname;
              this.city = city;
      public String getLastname()
              return lastname;
      public void setLastname(String lastname)
         this.lastname = lastname;
      //more bean methods for all fields here
     

    Sorry if I wasnt specific enough. I have a link that passes a value (field that is passed is called lastname) to a JSP where I want to show record info for that value that is passed.
    My question is how do I show the database record info on Show.jsp for the lastname field value of Jones where I want to use a Java Bean and Database helper class in Show.jsp
    Here is the message I get when I hit the link (LinkExample) and it goes to Show.jsp:
    org.apache.jasper.JasperException: Cannot find any information on property 'lastname' in a bean of type 'num.UserDB'
    .....My UserDB class:
    public class UserDB
    public User getUser(String lastname)
    User user = new User();     
            try          
         Class.forName("org.gjt.mm.mysql.Driver");
        Connection conn = DriverManager.getConnection("jdbc:mysql://localhost/dbconnone?user=smitherson&password=abcdefg");
        Statement stmt = conn.createStatement();
        ResultSet results = stmt.executeQuery("SELECT * from user where lastname = '" + lastname + "'");
         if(results.next() == true)
         results.next();
         user.setLastname(results.getString("lastname"));
         user.setFirstname(results.getString("firstname"));
                         user.city(results.getString("city"));
         catch(Exception e)          
             System.out.println("Exception..." + e);          
       return user;
    }Bean class:
    package num;
    public class User
      private String firstname;
      private String lastname;
      private String city;
      public User()
         //no arg constructor
      public User(String firstname, String lastname, Sting city)
          this.firstname = firstname;
           this.lastname = lastname;
    this.city = city;
      public String getFirstname()
              return firstname;
      public void setFirstname(String firstname)
         this.firstname = firstname;
      public String getLastname()
              return lastname;
      public void setLastname(String lastname)
         this.lastname = lastname;
      public String getCity()
              return city;
      public void setCity(String city)
         this.city = city;
      

  • How to delete a database record by using EJB entity beans

    Hi, All,
    Does anyone know how to use entity bean to delete a database record? I have all the EJB entity beans created, including access beans to each. I can successfully create records, find and update records, however, I haven't find a way to delete records yet.
    Your response is appreciated.
    Cathy

    Please see EJB Forums for continue discussion on this subject.
    Reference titile: "how to delete database record by using CMP entity beans "

  • Layout for editing database record

    Hi!
    I'm trying to make a JPanel display a database record for editing in a nice way, but I'm kinda stuck. Example:
            Id: 10
    First name: Peter
    Last name: Johnson
           Age: 20 and so on. The problem is that I don't know what strategy to use for the layout management, so that it looks good. I use JLabel for all labels and the Id number, since it's not editable, and JTextField s for the other data. I want the labels for the fields right aligned and the textfields left aligned "in their container", so that there is a streight line between the :s. (I hope you understand...)
    Any help appreciated!
    /Jan

    Thanks!
    The missing link was the FlowLayout.RIGHT constant. I guess I hadn't done my homework.
    Thanks for pointing that out!
    /Jan

  • Urgent: How to have a page CONTINUE to check Database Record?

    Hello,
    How to have a page CONTINUE to check Database Record? For example, there's a page which itself will periodically check the database, if there's any new data the page will Popup a new page with those data. My question is how can the page keep checking the database?
    One of the solution(not good) is that there's a hidden frame with a hidden Servlet, it will refresh every x secs and connect database for every refresh, it seems not a good solution. Please suggest some idea. Another way is using applet.
    Someone suggest me to use JMS, I know nothing about it, so is it possible and how,thanks very much
    Thank you.
    Ken

    I don't think JMS is suitable for your solution but I know very little anyway.

  • Updating a database record

    I am trying to update a database record using the following :-
    update adv_order_progress set adv_action_out = to_char(sysdate, 'DD-MM-YYYY HH24:MI:SS') where adv_order_progress.adv_order_id = :adv_order.adv_order_id and adv_order_progress.adv_ord_number = :adv_order.adv_ord_number;
    at trigger WHEN-BUTTON-PRESSED but it doesn't update any at all. When I do the same from ISQL*plus it worked fine !!.
    would you please advise

    did you only have ISQL for testing it?
    Can you debug the form and look, if someone happens - exceptions, ... ?
    after the update you can use
    message (SQL%ROWCOUNT); pause ;
    to look, how many records were updated

  • How to build dynamic databases(record set) for mobile?

    Hi All ,
    i have an applocation that needs to personalize the data for users .
    i have the data available , but dont know how to personalize it fot users to download special version of my application.
    how to build dynamic databases(record set) for mobile?

    In the load rule in the dimension build settings you would need to go to the tab dimension definition, choose the time dimension and right click on it. Select Edit properties. If you have not done so, set the dimension to be the time dimension. Then go to the generations/levels tab and set the generation names you need. For example if you want YTD, you would set the generation name to Year, if you want QTD set it to Quarter. You would set the number to the generation number that coorisponds to the generation. The DBAG has the list of names for all of the DTS members.

  • Displaying Zero Value in a Chart if there exist no database record.

    Hello All,
    I need to create a chart that displays the number of jobs per hour over a 24 hour period. I can determine the hour the job was created and I have no trouble making a chart with a count of jobs per hour. The problem is that I also want to display the hours that have no jobs on the chart. So in the hours where no job is created there is no database record.
    So inorder to show it in a chart  Zero values for a particular hour....how shd it be done if there is no zero values in the database  for a particular hour???? we dont have the flexibiltiy to  add a further table in the database..
    Any suggestions would be much appreciated.
    Thanks
    Regards
    Atul

    This is basically the same issue that is covered [here|Record selection issue in cross tab.;.
    HTH,
    Carl

  • Displaying database records in a  Web Pag

    I have built a static web site (1st in 5 years) using CS5 and the DW-CIB course.  My database is ASA11 and I have it configured so php can talk to it.   Before I start building many pages I would like to know which is the best approach to take.
    1) Should I use Spry?
    2) Will Zend be a better approach?
    3) Will learning JavaScript or jquery help?
    I have worked out that spry needs data in either xml or an HTMLDataset so I created a text file with <html> <body> <table> etc. tags plus the data. I can link this file into my web page (manually but not yet dynamically) but somehow I am not convinced this is the correct approach.
    As DW does not support ASA11 I have decided to code in PHP.
    Can someone shed some light on getting good-looking and highly functional dynamic pages?
    TIA Ephraim

    EffyRuby wrote:
    I have built a static web site (1st in 5 years) using CS5 and the DW-CIB course.  My database is ASA11 and I have it configured so php can talk to it.   Before I start building many pages I would like to know which is the best approach to take.
    1) Should I use Spry?
    2) Will Zend be a better approach?
    3) Will learning JavaScript or jquery help?
    I have worked out that spry needs data in either xml or an HTMLDataset so I created a text file with <html> <body> <table> etc. tags plus the data. I can link this file into my web page (manually but not yet dynamically) but somehow I am not convinced this is the correct approach.
    As DW does not support ASA11 I have decided to code in PHP.
    Can someone shed some light on getting good-looking and highly functional dynamic pages?
    TIA Ephraim
    1.  This has nothing to do with database records.  Spry is good and there are also good alternatives like Project Seven for menus and JQuery for effects.  It's about how you use the tools that matter.
    2. Not sure how to answer this one just yet.
    3.  See #1.
    I looked up SQL Anywhere based on the previous post and came across this ( http://m.sybase.com/detail?id=1019698 ).  That is the PHP module for SQL Anywhere databases from Sybase.    I recommend installing that on your server if it is not already installed.  This will give you the functionality to have PHP interact with the database and process as necessary.
    However, as stated in other posts, DW does not support SQL Anywhere (at least to my knowledge).  Because of this, the pre-build functions for querying a database may not work, meaning you will have to manually write queries.  This is not necessarily a bad thing, just involves a little more work.  If there are other PHP functions that you need to use within DW, they should work as advertised.  The reason I held off on answering the Zend question is because it is a completely different beast then Dreamweaver.  Depending on the application you are trying to develop and your knowledge of PHP will determine whether the Zend Studio is right for you. 

  • Duplicate database records.

    Hi Gurus,
    I am trying to insert into a db table from an internal tbl. And the result return error as shown below:
    The ABAP/4 Open SQL array insert results in duplicate database records.
    How do  I solve this?
    Thank you in advanced.

    Hi,
    The following code can be used as a template to produce an ABAP which updates a particular database
    table field.
    *& Report  ZUPDATE_PRPS                                                *
    *&  Quick report to Update PRPS-FAKKZ database field                   *
    Report  ZUPDATE_PRPS.
    tables: prps.
    parameter: p_wbs like prps-pspnr,
               p_value like prps-fakkz default 'X'.
    data: wa_fakkz type prps-fakkz.
    *START-OF_SELECTION
    start-of-selection.
    call function 'CONVERSION_EXIT_ABPSP_INPUT'
         exporting
             input     = p_wbs
        importing
             output    = p_wbs
        exceptions
             not_found = 1
             others    = 2.
    select single fakkz
      into wa_fakkz
      from prps
    where pspnr eq p_wbs.
    if sy-subrc eq 0.
       update prps set fakkz = p_value where PSPNR eq p_wbs.
       if p_value is initial.
         message i999(za) with 'Billing element field has been unchecked'.
       else.
         message i999(za) with 'Billing element field has been checked'.
       endif.
    else.
      message i999(za) with 'WBS element not found'.
    endif.

  • He ABAP/4 Open SQL array insert results in duplicate database records

    Dear Gurus,
    II am getting a dump when I run MD02/ MD03. (t- code to run MRP)
    Below is the message system is showing:
    Please help
    Thanks in Advance
    Best Regards
    Adhish
    Short text
    The ABAP/4 Open SQL array insert results in duplicate database records.
    What happened?
    Error in the ABAP Application Program
    The current ABAP program "SAPLM61U" had to be terminated because it has
    come across a statement that unfortunately cannot be executed.
    Error analysis
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught
    in
    procedure "INSERT_MDSBI_IN_MDSB" "(FORM)", nor was it propagated by a RAISING
    clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    If you use an ABAP/4 Open SQL array insert to insert a record in
    the database and that record already exists with the same key,
    this results in a termination.
    (With an ABAP/4 Open SQL single record insert in the same error
    situation, processing does not terminate, but SY-SUBRC is set to 4.)
    1 *----
    2 * ARRAY-INSERT auf MDSB
    3 *----
    4 FORM INSERT_MDSBI_IN_MDSB.
    INSERT MDSB6 FROM TABLE MDSBI.
    7 ADD SY-DBCNT TO STATS-RESBI. "statistics
    8 ENDFORM.

    Hi,
    There must be inconsistency in the number range. This happens when the current number in the number range for dependent requirements is lower than the highest number in the database table of the dependent requirements RESB.
    Please check the current number in transaction OMI2. Here in the interval you can see the current number. Then please check the highest number in table RESB. If the current number in OMI2 is lower than the highest number in table RESB then this should be the reason for the dump.
    Check and revert. If that's not the case we'll look into other possibilities.
    In mean time check for SAP Note 138108.

  • Cannot open muse file Error Assert: "Corrupt XML in database record U1 class MuseSite"

    I cannot open the .muse file.  The site was saved as a .muse the saved as html and uploaded to web.  Customer has a change and the .muse file will not open.  The error I get is Error Assert: "Corrupt XML in database record U1 class MuseSite".  How can this be fixed? What happened? Please help. I took the html version to DreamWeaver but it is very discombobulated on the design screen and strange coding on the code view.  Please help, customer needs this change asap.
    The error from the muse log is : 
    Build 8: Sun Jun 9 12:23:11 2013 UTC: Assert: Corrupt XML in database record U1 class MuseSite-DataBase/createPersistFromDataBaseRecord+DataBase/instantiate+DataBase/getRootPe rsist+DocumentConversion$/runConversion+DataBase/open+MuseSite$/openSite+NativeOpenProvide r/openThisFile+MuseImportManager/processFile+MuseImportManager/selectMultipleFilesHandler+ end stack
    Build 8: Sun Jun 9 12:23:11 2013 UTC: EXCEPTION:TypeError: Error #1095: XML parser failure: Unterminated attribute.-DataBase/createPersistFromDataBaseRecord+DataBase/instantiate+DataBase/getRoot Persist+DocumentConversion$/runConversion+DataBase/open+MuseSite$/openSite+NativeOpenProvi der/openThisFile+MuseImportManager/processFile+MuseImportManager/selectMultipleFilesHandle r+end stack

    I sent you the file and the info concerning where the file was stored via email.  I am posting that info here as well.
    You Asked:
    The object that's reporting as damaged is a very important one. We may, or may not, be able to repair the file.
    Was the file stored in a shared folder (i.e. Dropbox, Creative Cloud Files, Box, etc.)? No
    Was it stored on a file server that was accessed from two separate copies of Muse? No
    The file was stored  on my personal Network Storage unit utilizing  an Intellinet NAS with 2 1.5TB drives in a raid array. The file was created on  a Mac Pro v 10.6.8
      Model Name:    Mac Pro
      Model Identifier:    MacPro4,1
      Processor Name:    Quad-Core Intel Xeon
      Processor Speed:    2.66 GHz
      Number Of Processors:    1
      Total Number Of Cores:    4
      L2 Cache (per core):    256 KB
      L3 Cache:    8 MB
      Memory:    8 GB
      Processor Interconnect Speed:    4.8 GT/s

Maybe you are looking for

  • Picture on TV go to negative after a while...

    Hi, i've recently bought new MacBook Pro (HiRes, 15'', SSD). When i connect it on TV with HDMI adapter (and HDMI to HDMI cable) the picture on TV is good for a while (10-15min) but than goes to negative. Picture --> http://img135.imageshack.us/g/slik

  • Why can I not open any .mbox folders?

    If I go to my Home > Library > Mail and then try to open the INBOX.mbox or Sent Messages.mbox folders I can't. In fact the icon for these files is a document. When I double click on the xxxx.mbox I get a message saying there is no default application

  • My IPAD screen shows a bunch of lines then goes black

    When I turned on my IPAD2 the screen showed a series of different color lines, then went black It worked fine last night any ideas on problems. I have a lock code on it, so I can't even get in to unlock it.

  • How to check who has cancel jobs in SM37

    Hello every one. Can any one explain how to check  who has cancel jobs in SM37(job overview). Is it possible to know such logs. In sm37 its only gives details about jobs what ever. Thanks & Regards.

  • Jpegs can't be resized after exporting from InDesign

    I am using Indesign CC9.2.  A problem has recently developed where I cant resize a jpeg.  It doesnt matter file size or settings.  I have tried every combination.  I export a simple document to jpeg and save to my desktop.  I open the file in Preview