Automatically updating database

i have to try and update my database automatically rather than when I press a submit button...the code for my updating the table is below...at the moment, i have another .jsp file which has a submit button, and i link that to my scoring.jsp to check whether the database has been updated...i would like it to update, without me pressing anything...anyone that can help, please do so...thanx
<html>
<head>
<basefont face="Arial">
</head>
<body>
<center>
<%@ page language="java" import="java.sql.*" %>
<%
Class.forName("org.postgresql.Driver");
// create connection url
String URL = "jdbc:postgresql://dbhost/ug59sxn";
// pass database parameters to JDBC driver
Connection Conn = DriverManager.getConnection(URL, "ug59sxn", "hupeswop");
// query statement
Statement SQLStatement = Conn.createStatement();
// generate query
String Query = "SELECT * FROM userteam " +
                    "WHERE wkscore > '-1' ";
// get result code
ResultSet SQLResult = SQLStatement.executeQuery(Query);
while(SQLResult.next())
     Statement SQLStatement2 = Conn.createStatement();
     String Query2 = "SELECT playertable.ptotal, userteam.total, userteam.email FROM userteam, playertable " +
                                        "WHERE playertable.pid IN(p1id, p2id, p3id, p4id, p5id, p6id, p7id, p8id, p9id, p10id, p11id) ";
     ResultSet SQLResult2 = SQLStatement2.executeQuery(Query2);
     int wktotal = 0;
     int ptotal = 0;
     int ptotal1 = 0;
     int ptotal2 = 0;
     int ptotal3 = 0;
     int ptotal4 = 0;
     int ptotal5 = 0;
     int ptotal6 = 0;
     int ptotal7 = 0;
     int ptotal8 = 0;
     int ptotal9 = 0;
     int ptotal10 = 0;
     int total = 0;
     String email = " ";
     if(SQLResult2.next())
          ptotal = SQLResult2.getInt("ptotal");
     if(SQLResult2.next())
          ptotal1 = SQLResult2.getInt("ptotal");
     if(SQLResult2.next())
          ptotal2 = SQLResult2.getInt("ptotal");
     if(SQLResult2.next())
          ptotal3 = SQLResult2.getInt("ptotal");
     if(SQLResult2.next())
          ptotal4 = SQLResult2.getInt("ptotal");
     if(SQLResult2.next())
          ptotal5 = SQLResult2.getInt("ptotal");
     if(SQLResult2.next())
          ptotal6 = SQLResult2.getInt("ptotal");
     if(SQLResult2.next())
          ptotal7 = SQLResult2.getInt("ptotal");
     if(SQLResult2.next())
          ptotal8 = SQLResult2.getInt("ptotal");
     if(SQLResult2.next())
          ptotal9 = SQLResult2.getInt("ptotal");
     if(SQLResult2.next())
          ptotal10 = SQLResult2.getInt("ptotal");
          total = SQLResult2.getInt("total");     
          email = SQLResult2.getString("email");
          wktotal = ptotal + ptotal1 + ptotal2 + ptotal3 + ptotal4 + ptotal5 + ptotal6 + ptotal7 + ptotal8 + ptotal9 + ptotal10;
          Statement SQLStatement3 = Conn.createStatement();
          String Query3 = "UPDATE userteam SET wkscore = "+wktotal+" WHERE email = '"+email+"' ";
          int SQLResult3 = SQLStatement3.executeUpdate(Query3);
          int total1 = total + wktotal;
          Statement SQLStatement4 = Conn.createStatement();
          String Query4 = "UPDATE userteam SET total = "+total1+" WHERE email = '"+email+"' ";
          int SQLResult4 = SQLStatement4.executeUpdate(Query4);
SQLResult.close();
SQLStatement.close();
Conn.close();
%>
</center>
</body>
</html>     

What kind of host are you using? If it's UNIX, you can create a "cron" job to run something automatically, if it doesn't require any user input. I'm sure the Windows universe has something similar, although I can't help you there.
If it does require user input ... what's wrong with a submit button?

Similar Messages

  • Automatically update database

    Hello,
    I currently have a webshop with products that are shipped
    from a big wholesaler under my name. This wholesaler has a database
    with all the products in it which also contains the variable
    "status" which contains information if the product is on stock or
    not.
    I use the same ID numbers (variable productid) so that it
    should be possible to look up the id number and update my database
    with the correct delivery time.
    This is the php code of the wholesaler to get the product
    information:
    <?php
    // Example
    $login = "####";
    $password = "####";
    $filename = "
    http://example.com/retail/prijslijst_excel.php?choosecell=TRUE=&tilde=TRUE&productid=on&re tailprice=on&name=on&content=on&info=on&price=on&category=on&brand=on&status=on&btw=on&gew icht=on&admin_username=".$login."&admin_password=".$password;
    $lines = file($filename);
    // Loop through our array, show HTML source as HTML source;
    and line numbers too.
    foreach ($lines as $line_num => $line) {
    echo "Line #<b>{$line_num}</b> : " .
    htmlspecialchars($line) . "<br /><BR>\n";
    $column = explode ( '"~"', $line ); // gescheidingsteken "~"
    echo $column[0] . " productid <BR>";
    echo $column[1] . " naam <BR>";
    echo $column[2] . " info <BR>";
    // ETC
    //Voorbeeld sqlcode $sql = "INSERT INTO `product` (
    `productid` , `name` , `info`) VALUES ('".$column[0]."',
    '".$column[1]."', '".$column[2]."')";
    echo '<HR>';
    // www.example.com
    ?>
    With this code it is not a problem to echo all product
    information from their database on a .php page. However, the ONLY
    thing I need is the "status" variable updated, all the other fields
    like content are filled with my own stuff (SEO - unique content n
    all ;) ).
    So, if this get gives an id number 10000, it should look up
    if
    10000 also exists in my variable "product.productid" and then
    update the variable "product.status" with their status variable.
    However, this is completely new to me and I couldreally
    usesome help.
    thanks.

    Hi Nate,
    I really think your code is what I mean to do, thanks!
    However, I still get a bunch of error codes (I guess per product
    row) which total in the hundreds (+), but they all seem to be
    repeating themselves:
    Warning: mysql_real_escape_string()
    [function.mysql-real-escape-string]: Access denied for user
    'w000000'@'localhost' (using password: NO) in
    home/w000000/domains/example.com/public_html/taak.php on line 30
    Warning: mysql_real_escape_string()
    [function.mysql-real-escape-string]: A link to the server could not
    be established in
    home/w000000/domains/example.com/public_html/taak.php on line 30
    Warning: mysql_real_escape_string()
    [function.mysql-real-escape-string]: Access denied for user
    'w000000'@'localhost' (using password: NO) in
    /home/w000000/domains/example.com/public_html/taak.php on line 31
    Warning: mysql_real_escape_string()
    [function.mysql-real-escape-string]: A link to the server could not
    be established in
    /home/w000000/domains/example.com/public_html/taak.php on line 31
    Warning: mysql_query() [function.mysql-query]: Access denied
    for user 'w000000'@'localhost' (using password: NO) in
    /home/w000000/domains/example.com/public_html/taak.php on line 36
    Warning: mysql_query() [function.mysql-query]: A link to the
    server could not be established in
    /home/w000000/domains/example.com/public_html/taak.php on line 36
    Warning: mysql_result(): supplied argument is not a valid
    MySQL result resource in
    /home/w000000/domains/example.com/public_html/taak.php on line 37
    Note: in dreamweaver Line 30 = $voorraad =
    mysql_real_escape_string($columns[$voorraadIndex]);
    Current code (had to translate some stuff back to Dutch :) :
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Cron - update voorraadstatus</title>
    </head>
    <body>
    <?php
    $login = "XXXX";
    $password = "XXXX";
    // index number for status field
    $voorraadIndex = 10;
    // index number for product ID
    $productidIndex = 0;
    $filename =
    http://example.com/retail/prijslijst_excel.php"
    ."?veldenkiezer=TRUE=&tilde=TRUE&productid=on&verkoopprijs=on"
    ."&naam=on&omschrijving=on&info=on&inkoopprijs=on&categorie=on"
    ."&merk=on&voorraad=on&btw=on&gewicht=on"
    ."&admin_username=".$login
    ."&admin_password=".$password;
    $lines = file($filename);
    foreach ($lines as $line) {
    $columns = explode('"~"', $line);
    $voorraad =
    mysql_real_escape_string($columns[$voorraadIndex]);
    $productid =
    mysql_real_escape_string($columns[$productidIndex]);
    $query = "
    SELECT COUNT(*) FROM `testuh`
    WHERE id ='{$productid}'
    $result = mysql_query($query);
    $hits = (integer) mysql_result($result, 0, 0);
    if ($hits == 1) {
    $query = "
    UPDATE `testuh` SET `levertijd`='{$voorraad}'
    WHERE id ='{$productid}'
    $update = mysql_query($query);
    ?>
    Maybe some stuf goes wrong in translation so i'll give you
    the actual database table markup for 'testuh' (exact copy of
    "product" for testing):
    id --> My id, theirs is "productid as you can see in the
    code"
    naam
    content
    description
    merk
    inkoopprijs
    prijs
    adviesprijs
    categorie
    subcategorie
    levertijd --> "dutch for the status variable"
    btw
    ean
    invoerdatum
    groepnummer
    hoogte
    breedte
    diepte
    actie
    slug
    Hope you can help.

  • OWB: how can automatic updation  perform in staging database using OWB

    I am using OWB-etl to fetch data from source database and store to staging db.
    in target table operator i am using insert operation.
    it is inserting data fien.
    but my requirement is target database must be automatically updated with what ever modification made to source data base.
    can u pls help me how to achive this ?
    Thanks alot ...
    k azamtulla khan

    Hi,
    why do you want to do this using OWB, is it not easier to create a before/after insert/update trigger on source table so that your target table is updated automatically. You can benefit by using owb in scenarios where you need to transform and load data and then schedule this process and for the rest of it i would recommend using triggers for row level activities such as update.

  • Database that can automatically update ebooks w/embedded flash

    Hi I have a client who thinks it's possible to set up a database that will automatically update ebooks/pdf files with embedded flash so that manual translation between languages (e.g. english/norwegian/german/russian) can be avoided.  I'm trying to explain that translation is still a manual job, but perhaps there is a way?  Any thoughts?  Don't have a programming background, so any advice appreciated.  Tried to explain that setting up advanced databases on the web is in anycase an expensive proposition, they've only got around 100k to play with...any ballpark figures for mysql or similar with translation?  For a webcourse, with around 200 webpages...haven't actually seen or heard of it done myself, and have let them know it will be some 6-8 zeroes bet left to e.g. Cisco et al.
    Regards...would be helpful if you could come with some $/£ figures to let them know they're completely in left field...never heard of a database that could optimize pdf/ebooks on the fly between languages.

    Computer-aided translation isn't up to the task your client envisions.

  • Can't connect to my sql server express 14 database following an automatic update on my pc [Closed]

    hi
    following an automatic update a few minutes ago that resulted in a pc re-start, i cannot connect to my database anymore.
    is there any solution to overcome this issue?
    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
    ps: i never got server or instance related error before the update
    Cheers

    in case it might help, i've finally found the solution:
    -enable/start sql server browser from sql server configuration manager
    -update status to "enabled" for all protocol names in my instance 

  • Applescript to automatically update the EyeTV DVB EPG program guide

    For EyeTV users in Europe and Australia with DVB EPG access, you will all know that EyeTV will not keep that database automatically updated.
    So I wrote this bit of Applescript will update EyeTV's free to air DVB EPG database.
    Paste it into the ApplesScript Editor, and save it as an application somewhere like in Applications.  On first run you will get a dialog saying it need access to Accessibility.  Navigate to System Preferences > Security and Privacy > Accessibility and you will see your app listed there.  Enter your password, click the checkbox, and then try again.  It should then work fine.
    To automate the launching of the script, set it to run at at daily a convenient time using either Lingon (or some similar launch agent configuration utility), or using iCal as per this tip: http://www.maclife.com/article/howtos/how_make_your_ical_alarm_perform_action
    Running it daily (or as often as you like) will keep your EyeTV EPG database up to date always.  No more missed recordings because the EPG was not up to date!  Yay!
    This is the basic script, I'm sure it can be better.:
    tell application "EyeTV"
              activate
    end tell
    tell application "System Events"
              tell process "EyeTV"
                        keystroke "g" using command down
                        delay 1
                        click (pop up button 1 of window 1)
                        delay 1
                        click menu item "Update DVB Program Guide" of menu 1 of pop up button 1 of window "EyeTV Programs"
              end tell
    end tell
    Cheers
    Chris.

    Good morning Frank
    OK....
    I too have the same issue (didn't notice it at first).  Having wasted several hours, I found no way around it.
    But there are tools like clicclick that can click anywhere on the mac screen.  So... get it from here:
    http://www.bluem.net/en/mac/cliclick   (big thank you to Carsten Blüm)  :-)
    install as recommended (I put it in usr/bin/ as I had no usr/local/bin).  Check it works via the terminal by pastingcliclick c:28,11 into terminal and pressing return.  If that opens the apple menu, then it is installed and working.
    Then try this script, which first puts the EyeTV window to a specific location on the screen, then instead of using UI scripting to click the silly pop up button 1, uses clicclick to clik at the location of the button.  This opens the menu, and then UI scripting can click it.  You may want to change the EyeTV window location from the value I chose, if so put it into your prefered position then use the Accessibility Inspector to get the location of the button, then add some pixels either side of that.
    For me this now works perfectly every time, I hope it will for you.  Annoying to have to install clicclick but there you go. 
    tell application "EyeTV"
      activate
      set the position of window 1 to {30, 60}
    end tell
    tell application "System Events"
      tell application process "EyeTV"
      keystroke "g" using command down
      delay 4
      do shell script "cliclick c:170,70"
      delay 1
      click menu item "Update DVB Program Guide" of menu 1 of pop up button 1 of window "EyeTV Programs"
      end tell
    end tell
    I have found that the delay after the keystroke g is essential otherwise I get an invalid index error, I think because it is not ready to accept the click.  You may need to change the delay.
    Also when using Lingon to launch the Applescript App, the path needs to be to the applet file inside the contents of it.  ie something like mydirectory/myappname.app/contents/MacOS/applet.  name your app without spaces.
    cheers
    Chris

  • EF6: How can I get navigation properties automatically updated?

    I've defined the following entities:
    public abstract class EntityBase
    public int Id { get; set; }
    public string Name { get; set; }
    public class Person : EntityBase
    public virtual HashSet<Message> Messages { get; set; }
    public int CountryId { get; set; }
    public virtual Country Country { get; set; }
    public class Message : EntityBase
    public string Text { get; set; }
    public int PersonId { get; set; }
    public Person Person { get; set; }
    public class Country : EntityBase
    internal class TestContext : DbContext
    public DbSet<Person> Persons { get; set; }
    public DbSet<Country> Countries { get; set; }
    Here's my problem: While the Messages.Person navigation property gets automatically updated according to the Messages.PersonId
    foreign key property value when my changes get saved to the database, the Person.Country
    navigation property remains null although the Person.CountryId
    foreign key property is != 0.
    Why is this happening? Why does the Messages.Person navigation property get aligned with the Messages.PersonId
    foreign key property automatically while the Person.Country navigation property does not get aligned with the Person.CountryId
    foreign key property?
    These are the entity values before SaveChanges() is called:
    person.CountryId = 1
    person.Country = null
    message.PersonId = 1
    message.Person = null
    And these are the entity values after SaveChanges() is called:
    person.CountryId = 1
    person.Country = null
    message.PersonId = 1
    message.Person = { Id = 1, Name = "Test" }
    Your help is appreciated.
    Still people out there alive using the keyboard?
    Working with SQL Server/Office/Windows and their poor keyboard support they seem extinct...

    Thank you for replying, Fred.
    Here's the unit test code I'm using (it calls into a repository which more or less simply calls DbSet<Entity>::Add()
    and SaveChanges();.
    [TestMethod]
    public void MessageDbTest()
    using (Repository<Person> rp = new Repository<Person>(true))
    Person p;
    Message m;
    BusinessLayer.TestContext.CreateNewDB();
    rp.AddOrUpdate(p = new Person("Hello", 1));
    Assert.AreEqual<int>(1, p.Id);
    Assert.AreEqual<string>("Hello", p.Name);
    m = new Message("Hello, too", p.Id, "This is a long test message.");
    p.Messages.Add(m);
    rp.AddOrUpdate(p);
    Assert.AreSame(m, p.Messages.Single());
    Assert.IsNotNull(m.Person);
    Assert.AreEqual<int>(1, m.Id);
    Assert.AreEqual<string>("Hello, too", m.Name);
    Assert.AreEqual<string>("This is a long test message.", m.Text);
    p = rp.GetItem(1);
    p.Messages.Single().Name = "This works, too";
    rp.AddOrUpdate(p);
    [TestMethod]
    public void CountryDbTest()
    using (Repository<Person> rp = new Repository<Person>(true))
    Person p;
    Message m;
    BusinessLayer.TestContext.CreateNewDB();
    rp.AddOrUpdate(p = new Person("Hello", 1));
    Assert.AreEqual<int>(1, p.Id);
    Assert.AreEqual<string>("Hello", p.Name);
    Assert.AreEqual<int>(1, p.CountryId);
    Assert.IsNotNull(p.Country); // ** fails ! ***
    Following is a number of screenshots, depicting the entities' properties.
    Please notice the highlighted navigation property values in the Watch window on the right.
    You will notice that while the Messages.Person navigation property gets aligned with the Messages.PersonId
    foreign key property, the Person.Country navigation property does not get aligned with the Person.CountryId
    foreign key property when TestContext::SaveChanges() is called:
    Still people out there alive using the keyboard?
    Working with SQL Server/Office/Windows and their poor keyboard support they seem extinct...

  • Automatic updation of WHO columns in Oracle forms 6i

    Hi,
    I am using Forms 6i Version. I have developed a simple form with one database block. The form should display the colums in the table and should allow insert/update/delete operations on the form.
    I am able to update and delete the data through the foem. However my form doesn't allow me to insert data. This is because the creation_date and created_by columns in the table cannot be null.(custom table).
    And I dont want to have these fields in the form.
    I want the who colums to be automatically updated in the custom table through form, which is not happening currently.
    Pls help.
    Thanks
    Deepti

    Deepti,
    I have called the FND_STANDARD.SET_WHO in pre-insert /pre-update triggers. Still I could not get the who columns updated in my custom table.
    Was this done at the block level? -- Custom Oracle Form Fails when User Looks at the 'About This Record' Information (Doc ID 236642.1)
    Thanks,
    Hussein

  • How to update database in update task

    Hi everyone,
      I have a question: I need to update database in a SAP LUW. And I develop a method in my class
    to update the database.how can I update database in SAP LUW.

    Use can use "COMMIT WORK " and Database operate command SQL
    Within an LUW, database changes are not made until after a database commit. Prior to this, any database change can be canceled by a database rollback.
    In the R/3 System, a database commit is triggered either automatically or by the ABAP/4 command COMMIT WORK or the appropriate Native SQL command for the database system.
    Similarly, a database rollback is triggered either automatically or by the ABAP/4 command ROLLBACK WORK or the appropriate Native SQL command for the database system.
    After the COMMIT WORK has been executed, the event RAISE_TRANSACTION_FINISHED of the class CL_SYSTEM_TRANSACTION_STATE with parameter value CL_SYSTEM_TRANSACTION_STATE=>COMMIT_WORK is triggered. However, this does not apply to the COMMIT WORK at the end of the update.
    Edited by: Jack Wu on Dec 16, 2008 11:13 AM

  • Automatically update Data Flow when table column is added

    Hi, I have identical SQL Server databases on Server A and Server B, and I'm trying to create an SSIS package that will update its own Data Flow task when I've added a new column.  
    When I open the SSIS package up in Data Tools after adding the column, I get the following warning: 'The external columns for OLE DB Destination are out of synchronization with the data source columns. The column "TestColumn" needs to be added to
    the external columns.'  So the package know when it's out of sync with the db.  
    Is there a way to automatically update the external columns?
    Thank you!

    There is a Dynamic DTS task commercial product of CozyRock
    Another possibility is to generate an updated version of the package programmatically either with BIML http://www.mssqltips.com/sqlservertip/3124/generate-multiple-ssis-packages-using-biml-and-metadata/
    or via .net code http://msdn.microsoft.com/en-ca/library/ms345167.aspx
    Arthur
    MyBlog
    Twitter

  • Skip table during automatic standby database

    We would like to skip a table from being replicated into a standby database.
    We do the following on the standby database
    startup nomount;
    alter database mount standby database;
    recover automatic standby database;
    and cancel the process.
    and then bring the standby database up to date at night for example.
    And during the day we would like to use it as a report database, to see if that is possible.
    To be able to do that, we do this:
    alter database open read only;
    But the problem is, there is one reporting table that we do not like to replicate.
    We want to create a database link in the standby (report) database, that links to the table in the live database.
    Because we need that data from the live database to be update to date in that table.
    That table does not contain data that needs to be stored, so it is no problem if it does not end up in the standby report database.
    Problem is that we cannot get Oracle to skip to replicate this REPORTPARAM table.
    We tried this
    execute dbms_logstdby.skip(stmt => 'SCHEMA_DDL',
    schema_name => 'ABSSOLUTE',
    object_name => 'REPORTPARAM',
    use_like => FALSE);
    exectue dbms_logstdby.skip(stmt => 'DML',
    schema_name => 'ABSSOLUTE',
    object_name => 'REPORTPARAM',
    use_like => FALSE);
    And when we check SELECT * FROM DBA_LOGSTDBY_SKIP
    we see the values in there.
    But still this table is being replicated.
    How can we stop Oracle from doing that?
    ( And can when we stopped Oracle from doing that, create a database link with alias to the same table in the live database,
    that will be the next step. )

    This is the output from select * from dba_logstdby_skip
    ERROR     STATEMENT_OPT     OWNER     NAME     USE_LIKE     ESC     PROC
    N     SCHEMA_DDL     ABSSOLUTE     REPORTPARAM     N          
    N     DML          ABSSOLUTE     REPORTPARAM     N          
    N     INTERNAL      SCHEMA     SI_INFORMTN_SCHEMA     %     N          
    N     INTERNAL     SCHEMA     APEX_030200     %     N          
    N     INTERNAL     SCHEMA     XS$NULL     %     N          
    N     INTERNAL     SCHEMA     ORDPLUGINS     %     N          
    N     INTERNAL     SCHEMA     APPQOSSYS     %     N          
    N     INTERNAL     SCHEMA     ORACLE_OCM     %     N          
    N     INTERNAL     SCHEMA     XDB     %     N          
    N     INTERNAL     SCHEMA     WMSYS     %     N          
    N     INTERNAL     SCHEMA     DIP     %     N          
    N     INTERNAL     SCHEMA     OUTLN     %     N          
    N     INTERNAL     SCHEMA     EXFSYS     %     N          
    N     INTERNAL     SCHEMA     ANONYMOUS     %     N          
    N     INTERNAL     SCHEMA     CTXSYS     %     N          
    N     INTERNAL     SCHEMA     ORDSYS     %     N          
    N     INTERNAL     SCHEMA     ORDDATA     %     N          
    N     INTERNAL     SCHEMA     MDSYS     %     N          
    N     INTERNAL     SCHEMA     SYSTEM     %     N          
    N     INTERNAL     SCHEMA     SYS     %     N          
    N     INTERNAL     SCHEMA     MGMT_VIEW     %     N          
    N     INTERNAL     SCHEMA     SYSMAN     %     N          
    N     INTERNAL     SCHEMA     DBSNMP     %     N
    The second select however
    SELECT APPLIED_SCN, NEWEST_SCN FROM DBA_LOGSTDBY_PROGRESS;
    returns no rows.

  • AUTOMATIC UPDATE STATISTICS for VB* tables ON automatically

    Hello All,
    We had reviewed our ECC system with SAP and they recommended us to OFF the AUTOMATIC UPDATE STATISTICS for VBDATA, VBHDR and VBMOD.
    We executed the script EXEC sp_autostats <tablename>, 'OFF' but the status goes ON after a while.
    Checked the SAP note 771352 but did not get proper idea from it.
    MS SQL database used is 2008.
    Can someone suggest and share his/her experience.
    Regards,
    Mohit

    Hi Mohit,
    Did you ran the sap_z* script ?
    What is your SP level - did you check 1702325 - Alerts appear for VB tables
    Also, I asked to to use NORECOMPUTE - have you tried that ?
    Regards

  • Automatically update PLA Serial Number

    Hi CIN Gurus,
    When we create J1IIN-Excise Invoice, the RG23A Serial numbers getting updated.
    But how to get PLA Serial Number automatically updated in the database table. (J_1IPART2).
    Because the client requirement is When the Invoice is printed, in that it should also list the RG23A/C or both Serial numbers updated and also the PLA Serial number(CESS or some times other excise duties).
    And also to print the PLA Ledger which shows all  the entries i.e RG23A/RG23C/PLA register.
    Thanks in Advance. (Expecting to Go-live in next week.)
    BEST REGARDS
    SRI
    Edited by: Sri on Sep 27, 2008 4:44 PM

    Dear MBS,
    Then each and every invoice before printing and send it with the lorry we need to do the utilisation. Is it what required ?
    In real time, before printing the billing document, do we need to all that ?
    Is it mandatory to print the RG23A serial number and PLA Serial number in the Invoice ?
    With out printing them , just mentioning the duties and reference excise invoice number , will be accepted by Excise Department ?
    Thanks in Advance.
    Best Regards
    SRI

  • How does IDoc update database in R3

    hello friends,
    i have a doubt in MDM-XI-R3 scenario...
    i have say successfully posted an IDoc in R/3 system...the status shown there is green...
    now how does this data in this IDoc gets updated in the database?
    can anyone clearly mention what happens after IDoc reaches R/3?
    Regards,
    Roshani

    thanks for all your replies...
    let me write down what i have understood ..plz correct me if i have not followed properly..
    1) Once IDocs successfully reach R3 , a function module specific to the Idoc type is called "<b>automatically</b>" and updates database...
    2) this function module we specify in the process code while creating partner profiles
    basically all we need to do is to specify correct function module, right?
    the rest of the process ie . updation in the tables(database) is done automatically..
    Once database is updated, where can i see the added/updated records in database?
    also how do we find this function module?
    I am using MATMAS05...
    Regards,
    Roshani

  • I want the system automatic update my UDFs when the OnHand was changed.

    I added two UDFs in table OITW to count the warehouse OnHand by CASES and Bottles. I want the system automatic update my UDFs when the OnHand was changed.  Is there any way I can do it in database level instead in the application (too much places involved).

    There is few ways how to do this:
    - triger as David said, but I dont recomend it through SAP policy
    - in stored procedure transaction notification  by adding or updating document update your user field
    - create job in SQL server which in specific interval recalculate the changes of onhand and update your user defined field
    - create addon which will be over functiuonalities which may change the onhand value
    I think that from SAP is possible only Addon, but the easist way is trigger and if you dont need it just in time but for example every 10 seccond, the better is job which cannot fail the standard SBO transaction (triger may and may be unsafe).
    Hope it helps
    Petr

Maybe you are looking for

  • How can I use the webcam on my iPad 2 in the photon app

    I Have an ipad2 and use the photon app to access the webinar training my company provides I have been asked to do some traing but my iPad webcam does seem to work in the app is there a solution to this i also have an iPhone 6 if this helps many thank

  • Java currently not working, but was working previously. Change occurs around updates.

    I need Java to upload info to a GoDaddy website. Java was working in January, then did not work. It worked again after an update, then stopped working about the time of another Firefox update. Currently, Java is not working, but I am able to upload t

  • How to Extract R/3 Multiple Valued variant Classification Data in BI

    Dear Gurus,                     got stuck in a situation where I am in need of your help. My Client want to extract the R3 Classification Data(Variant, Batch) into BI. I will share till what point I had reached. Used Transaction Code CTBW, was Trying

  • Iweb and microsoft hosting

    My husband had a website with a linux hosting package, and I would drop a new published iWeb folder to the ftp via Transmit anytime I wanted to update it. Worked like clockwork. However, he recently wanted to upgrade the package, and accidently selec

  • DNG Profile Editor won't open DNG from Panasonic LX3

    I need help.  I've just added a new camera (Panasonic DMC LX3) and I want to create custom camera profiles for use in Lightroom.  I have done this with all my cameras before with no problems.  The raw files open fine in Lightroom (2.6) and CS-4 Camer