Select and update leave request data - oracle !!

Dears,
We have a very important presentation here to one of our stakeholders and he is interested to see how to submit and update leave requests using Adobe LiveCycle Workspace.
I have a simple PDF form where the user can choose to submit new leave or update an existing one, if the user choses to update an existing leave he will enter the leave start date and press on a button to retrieve this leave information form the database ( select * from leaves where leave_date=’the entered date’ and requestor=’requestor name’) as requestor name and entered date are variables in the PDF, And then he can update the start date or leave duration and submit his request after updating this record in the database.
Will you please help me how to do that knowing my PDF contains a digital signature and the data saved in a document variable?
The connection with oracle created by updating the adobe-ds.xml file in “C:\Adobe\Adobe LiveCycle ES2\jboss\server\lc_turnkey\deploy” and deploying the ojdbc14.jar in “C:\Adobe\Adobe LiveCycle ES2\jboss\server\lc_turnkey\lib”.
Database is oracle10.2.0.1.0
Adobe LiveCycle Workbench ES2
Version: 9.5.0.0.20100908.1.247189
Many thanks in advanced,
Mohammed Al-Mosleh

I solved updating single row issue and retrieving single row from data base issue too ...
I need an example, that shows us how to retrieve multiple records from a database, we did this, and DISPLAY, we couldn't, the results in a table within a pdf.
the data stored in XML after using Query Multi Rows in XML Activity in Workbench...
Can any one Help me how to Disply this XML in a table ??

Similar Messages

  • JDBC Sender - Different number of records selected and updated.

    Hi people,
    We have a JDBC -> Abap proxy scenario. The JDBC sender is pooling an Oracle database to retrieve data from a table X, each 30 minutes. The select and update statements in jdbc sender are below
    SELECT FIELD1, FIELD2, FIELD3 FROM MY_TABLE WHERE STATUS = 1
    UPDATE MY_TABLE SET STATUS = 2 WHERE STATUS = 1
    Sometimes the message sent to Abap proxy has, for example, 400 records. Looking at runtime workbench, message monitoring, for the same message there is a log like this
    Channel SENDER_JDBC_CHANNEL: Query executed successfully. Start update
    Channel SENDER_JDBC_CHANNEL: 510 row(s) updated successfully
    Someone has already experienced something like this? How can I handle this to guarantee to update only those read records?
    regards.
    roberti

    Hi All,
    Even we are facing the same problem.
    In our scenario, receiver is SAPR3. (IDOC)
    Will this parameter serialization work in our case?
    1. SELECT XBLNR, WERKS, MATNR, MDV01, BACKFLQUANT, STATUS, SAPTIMESTAMP, PITSTIMESTAMP, PMTIMESTAMP, BATCH FROM PMBPITS.PITS_UNITY WHERE STATUS = '01' and rownum<200 . 
    2. UPDATE PMBPITS.PITS_UNITY SET STATUS = '02' , SAPTIMESTAMP = sysdate WHERE STATUS = '01' and rownum<200  ( currently the value is rownum < 5 )
    Thanks!!
    Regards
    Gouri

  • Select and update in same instruction

    Can i select and update a column in table by one query only
    I donot want to execute two queries one for updation and one for retrieval
    e.g. instead of UPDATE t1 set val=val+1 and then SELECT val from t1;
    i wanna have a single query (compliant to mysql and ORACLE)
    because when i passa query UPDATE t1 set val=val+1; SELECT val from t1; on the command prompt is is fine but when i do so through jdbc it gives me errror
    please help

    Why would a stored procedure change anything?
    The stored procedure would have the UPDATE ... ; SELECT sequence in it.
    Which results in the same "work" the database has to do, compared to sending the two statements via JDBC.
    The only thing that a stored procedure would save, is the second JDBC call, but I doubt that this makes a big difference (provided this is not done in a loop. Then I'd retrieve the new values in one statement after all the updates have been committed)
    So I would simply do Statement statement = connection.createStatement();
    int rows = statement.executeUpdate("UPDATE ....");
    ResultSet rs = statement.executeQuery("SELECT ... ");
    String val = null;
    if (rs.next()) val = rs.getString(1);
    rs.close();The code for the stored procedure would look very similar to this with the disadvantage that that you have to maintain it for every DBMS that has to be supported.

  • Can I use a select and update statement in a single jsp file?

    I want to update the BUY table everytime I would add a SELL transaction.....I want to minus the stocks that I sold to those that Ive bought before.....
    note: I used a seperate table in BUY and SELL transaction
    After I Have added a transaction, I want to update the buy table. This is my problem, can I used both SELECT and UPDATE statement at the same time in a single jsp file for example like this:
    select * from test, test1;
    update test
    set total_shares=total_shares-Stotal;
    where stock_code=Scode AND name_broker=Sbroker;
    Can i have both of these statements in the same jsp file in oder to update the buy table?
    Or can anyone suggest how can process that update?THANKS!
    --------------------

    Can i have both of these statements in the same jsp file in oder to update the buy table?Yes. But wouldn't it have been easier just to try it?

  • Combine select and update into single statement,without bind-variable

    I have a problem, that I think is not possible to solve the way I want to, but I just wanted to check before leaving the idea...
    I am looking for a way to combine the select and the update statement into one single statement. This is what I wan't to achive: select some data, and update the data selected before returning them.
    On this site http://www.psoug.org/reference/update.html I see that the following are possible:
    var bnd1 NUMBER
    var bnd2 VARCHAR2(30)
    var bnd3 NUMBER
    UPDATE employees
    SET job_id ='SA_MAN', salary = salary + 1000,
    department_id = 140
    WHERE last_name = 'Jones'
    RETURNING salary*0.25, last_name, department_id
    INTO :bnd1, :bnd2, :bnd3;
    I need to have this as a single statement, and cannot use bind-variables. So I was hoping that something like this could be possible:
    UPDATE customer c
    SET c.HAS_CREDIT ='1'
    WHERE c.HAS_CREDIT = '0'
    RETURNING c.CUSTOMER_NO, c.FIRSTNAME, c.LASTNAME
    where c.HAS_CREDIT = '1'
    But this doesn't compile, complaining of missing into (ORA-00925: missing INTO keyword). And even though I would like this to be possible because this would solve my current problem, I think it would be very confusing. For instance; would the where clause of the returning part be operating after the update or before?
    Any comments or suggestions on how to get it work in a single statement, or should I just leave this path straight away?

    Hi,
    RETURNING only works with bind variables, see
    http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14261/returninginto_clause.htm#sthref3006
    The real problem is that the form of RETURNING clause with bind variables is only valid for single row update or insert statements.
    To update (or insert) multiple rows and return the data, you will need to use
    RETURNING BULK COLLECT INTO clause. See
    http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14261/tuning.htm#sthref2236
    Cheers,
    Colin

  • Want to change payer and update credit limit data with out delete documents

    Hi Expert,
    I have a problem that user feed 50-60 documents ( Sale order & delivery ) with wrong payer. Now we want to change payer and shift credit limit data ( open sale order , open delivery ) from old payer to new payer is any option for this.
    Thanks in advance
    Regards
    Suresh Kumar

    Hi
    Ideally in your case, you may have to delete the delivery documents and then recreate the deliveries after updating the payer in the sales order. This is because the source for the partner function in Delivery will be mostly updated as "from sales order" and hence it is not possible to change the payer in the delivery document.
    In this case, you have to first find out the relevant delivery documents and delete them
    Then you can change the partners in the sales order
    Finally you can recreate the delivery documents.
    However I would request you to do the following test before following this.
    In the SO, change the payer without deleting the delivery. If the partner in delivery gets changed automatically then it is fine. You can ensure this by checking the delivery in DISPLAY mode.
    If payer is not changing automatically then go to delivery in CHANGE mode and now check it. If the payer changes automatically now, you are spared with the pain of deleting and recreating deliveries once again.
    If both of them fails, then the only way is to delete deliveries first, change payer in SO and then recreate deliveries.
    This is applicable only if PGI is not yet done.

  • Select and update rownum sender jdbc

    Dear all
    i am using PI 7.31 sender jdbc adapter.
    table(TB_AA)  has 10000 row with pi_stat = 'R'   and then  sender jdbc adapter tried  10 row  in using rownum  every  120 second and update same rownum
    but  result of select query and udpate query  were different.  not same record update for selecting data.
    co_cd,  memid  is PK.
    select co_cd , mem_id,  reg_n  FROM TB_AA  where PI_STAT = 'R' AND rownum <= 10
    update  TB_AA  set  PI_STAT = 'S', where  PI_STAT = 'R' and rownum <= 10
    query is wrong?  ,  what is correct update query with several PK ?

    Hi Arten Solohin.
    co_cd,  memid  is Primary Key.
    select co_cd , mem_id,  reg_n  FROM TB_AA  where PI_STAT = 'R' AND rownum <= 10
    update  TB_AA  set  PI_STAT = 'S', where  PI_STAT = 'R' and rownum <= 10
    could you make your query with above my query ?  because i am confusing ORDER BY <your unique id_field>   AND LINE_ID ....
    will be highly appreciated  in advance
    thanks you very much.

  • Select and update with lock exclusive

    Hello Everybody
    In our application we have a table autonum     to handle unique keys for all other tables.
    In Autonum we have a column "SUCHBEGRIFF" char(40) unique KEY and a column "WERT" fixed(10,0).
    Suchbegriff has values like Rechnungsnr,Auftragsnr,Bestellnr ...
    Example:
    Befor inserting a record into table rechnungen we do:
    Select wert from autonun where suchbegriff = "Rechnungsnr" with lock exclusive.
    l_rechnrneu = wert + 1 
    update autonum set wert = ?l_rechnrneu where suchbegriff = "Rechnungsnr"
    commit
    (then l_rechnrneu is used for an insert into rechnungen command)
    This technic works for all tables (250) in our application.
    We have about 400 concurrent users working with maxdb 7.6 via odbc 7.6
    No problems since 2 years!
    Now we start some backgroundjobs from an xp-workstation.
    We have scheduled 5 jobs, starting every 5 minutes, same time.(Same user,same odbc-connection)
    Each job inserts records into a table joblogs and therefore needs a unique JOBLOGNR from autonum.
    Now we run into problems 2 or 3 times a day?
    <Sometimes the backgound jobs are running (waiting?) without inserting a record into joblogs (deadlock?)
    And more worse:
    Sometimes the insert into joblogs failes with "duplicate key" ??
    We don't know where to begin? Maxdb Problem ? Workstation problem?
    Any help welcomed
    Best regards
    Albert

    > >Gosh - that's information overloading at it's best...
    > We call this needed information.
    > What does our SAP-System? We have 1 mandt,60 accounting areas and about 200 werks!
    > Of course SAP uses internal unique keys for all tables, but we configured different "number intervals" for each werks.
    With "information overloading" I was referring to the multiple meanings you encode in just one column (your "rechnungs-no").
    SAP tables do not have this.
    As you wrote, there is "MANDT", "BUKRS", "WERKS" ... and the primary key is defined over all relevant columns.
    There is no primary key column where all the different meanings are concatenated together.
    So there aren't any surrogate keys here (a.k.a. AUTOID) used here - (ok except the infamous DDLOG sequence...).
    > >What do you do, when the value of an invoice has to be changed? Update the primary key of the table?
    > Update rechnungen set amount = xyz,...... where rechnungnr = nnn
    > We never change rechnungsnr,if the invoice was wrong we produce a credit for it and then write a new invoice
    So, you could use a sequence here instead as well.
    > > We don't use rollback when fetching logids from autonum.
    > >So what do you do, when connection fails, the database crashes or the client application hits an error?
    > >You use rollback. There is no way to avoid it.
    > >Your application gets a "duplicate key" error - the database performs a rollback of your last action. What does your application do then? Commit?
    > Sorry, i meant that we do not do rollbacks over  2 or 3 inserts or updates in different tables.
    > SQL-Command,On error = messagebox,errorlog,quit
    You don't handle the fetching of the new number in the same transaction as the actual insert of your application data in the same transaction?
    > >What isolation level do you use?
    > We use DATABASE ISOLATION LEVEL 0
    Hmm... did you read the documentation on SQL Locks?
    [Internals Course - SQL Locks|http://maxdb.sap.com/training/internals_7.6/locking_EN_76.pdf] :
    "Isolation level 0 does not offer any protection against access anomalies."
    Basically it might have happened that the same number is read twice.
    Perhaps the application is not always requiring locks when reading data from this table?
    > After connecting to the database via odbc we do
    > =SQLSETPROP(verbindungsnr,"Transactions",2)
    > 2 = Transaction processing is handled manually through SQLCOMMIT( ) and SQLROLLBACK( ). Read/write.
    > =SQLSETPROP(verbindungsnr,"DisconnectRollback",.T.)
    >
    >
    > So normal select commands are fired without a following commit.
    > Insert and update commands are fired with a following commit command.
    > Selects from autonum are fired with "look exclusive"
    Please be more detailed here.
    What is the exact sequence of actions here?
    1. Fetch number from number table and update number table.
    2. COMMIT
    3. Insert new application data with the just fetched number.
    4. COMMIT
    or
    1. Fetch number from number table and update number table.
    2. Insert new application data with the just fetched number.
    3. COMMIT
    And what does your application do with its data when a rollback occurs?
    Is it guaranteed that all variables are reset?
    > Nevertheless you dislike our design, do you think it would be better (quicker,safer...) to use an internal databases procedure to get
    > the next speaking number for a given "suchbegriff" from our autonum table? (no translation of the sql-command every time)
    No, currently we don't know what is causing the problem, so we cannot tell whether such a change would help. In fact, right now it would make things more complicated because we would less understand, what's happening here.
    Concerning your design: it's not about "liking" or "not liking it".
    I just pointed out some problems that result from the design as it is.
    > select   wert into :neuerwert FROM "BWPROGI"."AUTONUM"  WHERE upper(suchbegriff)     = upper(:suchkey) WITH LOCK EXCLUSIVE;
    > update  "BWPROGI"."AUTONUM" set wert = wert + 1 WHERE upper(suchbegriff)     = upper(:suchkey) ;
    > SET neuerwert = neuerwert + 1;
    > end;
    1. The WHERE clause UPPER(suchbegriff) = UPPER(...) is the best way to disable the efficient use of any index structure. Better make sure that your data is in the right format in the table when you enter it and then look it up without the UPPER() conversion. 
    2. I wouldn't perform the increment two times.
    Get the current value into your variable, increment this variable, set the current value in the table to the variable.
    > A char(10) return value would be nice and i don't know wether this would be the quicker way.
    Why should it? You would have to convert it first - that's additional work.
    Anyhow, to move ahead with your duplicate keys problem, you may perform a vtrace with the "stop on error" option.
    As your error is a duplicate key on a primary key constraint you should set "stop on error" to the error code "200".
    The next time your application hits the error, the vtrace automatically stops and we could examine what happened before.
    See [MaxDB database trace|https://wiki.sdn.sap.com/wiki/x/2yg] for details on how to activate the trace.
    When the error occurs next time and you caught it in the vtrace we can take a look at it.
    regards,
    Lars

  • Controversy between SELECT and UPDATE

    I have 2 queries one with SELECT and the other with UPDATE. The WHERE clause in both the queries are exactly same. When I do the SELECT I am getting a row and when I do the UPDATE I am not getting any rows. The following are the queries and descriptions of the tables involved. I tried executing these 2 queries many times and no difference.
    SQL&gt; SELECT * FROM Fraud_30_Day_Summ S1
    2 WHERE s1.Disconnect_Dt = TO_DATE('01-OCT-2008','DD-MON-YYYY')
    3 AND s1.Fraud_Category_Cd = 'CPI'
    4 AND s1.On_Off_Net_Ind = 'Y'
    5 AND s1.Threshold_ind = 'Y'
    6 AND (s1.Icon_Ind IS NULL OR s1.Icon_Ind &lt;&gt; 'N' )
    7 AND (
    8 ( s1.Call_Cnt * .5 &lt;=
    9 ( SELECT SUM(s2.Call_Cnt)
    10 FROM Fraud_CPCS_Call_Detail s2
    11 WHERE s2.Disconnect_Dt = TO_DATE('01-OCT-2008','DD-MON-YYYY')
    12 AND s2.Component_Group_Cd = s1.Component_Group_Cd
    13 AND s2.Component_Grp_Val = s1.Component_Grp_Val
    14 AND s2.Call_type_cd = s1.Call_type_cd
    15 AND s2.On_Off_Net_Ind = 'Y'
    16 AND EXISTS
    17 (
    18 SELECT s3.ROWID
    19 FROM Threshold_Element_Value s3
    20 WHERE s3.Threshold_Element_Val = s2.icon_country_cd
    21 AND s3.Threshold_Id = '405') ) ) );
    DISCONNECT_DT FRAUD_CATEGORY_CD ON_OFF_NET_IND COMPONENT_GRP_VAL COMPONENT_GROUP_CD CALL_CNT CALL_DUR_VAL ICON_IND CELLULAR_IND CUST_SPECIFIC_IND THRESHOLD_IND LAST_USED_IND CALL_TYPE_CD
    10/1/2008 CPI Y 234546575678 CP 3 2474 Y
    Y C
    SQL&gt; Update Fraud_30_Day_Summ s1 SET s1.Icon_Ind = 'N'
    2 WHERE s1.Disconnect_Dt = TO_DATE('01-OCT-2008','DD-MON-YYYY')
    3 AND s1.Fraud_Category_Cd = 'CPI'
    4 AND s1.On_Off_Net_Ind = 'Y'
    5 AND s1.Threshold_ind = 'Y'
    6 AND (s1.Icon_Ind IS NULL OR s1.Icon_Ind &lt;&gt; 'N' )
    7 AND (
    8 ( s1.Call_Cnt * .5 &lt;=
    9 ( SELECT SUM(s2.Call_Cnt)
    10 FROM Fraud_CPCS_Call_Detail s2
    11 WHERE s2.Disconnect_Dt = TO_DATE('01-OCT-2008','DD-MON-YYYY')
    12 AND s2.Component_Group_Cd = s1.Component_Group_Cd
    13 AND s2.Component_Grp_Val = s1.Component_Grp_Val
    14 AND s2.Call_type_cd = s1.Call_type_cd
    15 AND s2.On_Off_Net_Ind = 'Y'
    16 AND EXISTS
    17 (
    18 SELECT s3.ROWID
    19 FROM Threshold_Element_Value s3
    20 WHERE s3.Threshold_Element_Val = s2.icon_country_cd
    21 AND s3.Threshold_Id = '405') ) ) );
    0 rows updated.
    DESC FRAUDCPCS_CALL_DETAIL_
    RECORD_ID{                                                                                         }NUMBER(5,0)
    ORIG_BILL_FILE_ID{                                      }NUMBER(10,0)
    RECORD_SEQ {                                            }NUMBER(10,0)
    BILLING_CYCL_ID {                                        }NUMBER(5,0)
    CUSTOMER_ACCT_ID {                                    } NUMBER(10,0)
    OCCR_NO {                                                    }NUMBER(10,0)
    FRAUD_CATEGORY_CD{    } NOT NULL{        } VARCHAR2(3)
    CALL_TYPE_CD {                } NOT NULL {        } VARCHAR2(1)
    ORIG_TERM_NPA_NXX_CD{                            } VARCHAR2(6)
    COMPONENT_GROUP_CD {    } NOT NULL{    } VARCHAR2(2)
    COMPONENT_GRP_VAL{        } NOT NULL{    } VARCHAR2(26)
    ORIGINATING_DT {        } NOT NULL{    } DATE
    ORIGINATING_TIME_VAL{        } NOT NULL {    } NUMBER(10,0)
    DISCONNECT_DT {                    } NOT NULL{    } DATE
    DISCONNECT_TIME_VAL {        } NOT NULL{    } NUMBER(10,0)
    ORIG_STATE_CD {                                            } VARCHAR2(2)
    TERM_STATE_CD {                                            } VARCHAR2(2)
    CALL_DUR_VAL {                    } NOT NULL {        } FLOAT(12)
    PRCMP_ID{                                                        } NUMBER(5,0)
    ORIG_COUNTRY_CD{                                        } VARCHAR2(3)
    TERM_COUNTRY_CD {                                    } VARCHAR2(3)
    ORIG_CITY_CD {                                                } VARCHAR2(15)
    TERM_CITY_CD {                                                } VARCHAR2(15)
    GSA_ORIG_JURISD_ID{                                      } NUMBER(10,0)
    GSA_TERM_JURISD_ID {                                    } NUMBER(10,0)
    USAGE_CATEGORY_CD{                                    } VARCHAR2(8)
    CALLING_NO {                                                     }VARCHAR2(16)
    CALLED_NO {                                                    } VARCHAR2(20)
    USAGE_TYP{                                                    } VARCHAR2(35)
    INTERNATIONAL_CALL_TYP{                            } VARCHAR2(20)
    VOICE_MAIL_IND {                                            } VARCHAR2(1)
    DIR_ASST_IND {                                                } VARCHAR2(1)
    CALL_FWD_IND {                                                } VARCHAR2(1)
    ROAMING_IND{                                                } VARCHAR2(1)
    CALL_TO_OHSA_IND {                                    }VARCHAR2(1)
    MOBILE_TO_MOBILE_IND {                                }VARCHAR2(1)
    ON_OFF_NET_IND {            } NOT NULL{            } VARCHAR2(1)
    DESTINATION_TXT {                                          } VARCHAR2(14)
    CALL_CNT {                                                      } FLOAT(12)
    ICON_COUNTRY_CD{                                        } VARCHAR2(3)
    DESC FRAUD30_DAY_SUMM_
    DISCONNECT_DT {            } NOT NULL{                    } DATE
    FRAUD_CATEGORY_CD {    } NOT NULL{                } VARCHAR2(3)
    ON_OFF_NET_IND {            } NOT NULL{                } VARCHAR2(1)
    COMPONENT_GRP_VAL {                                    } VARCHAR2(26)
    COMPONENT_GROUP_CD {    } NOT NULL {            } VARCHAR2(2)
    CALL_CNT {                            } NOT NULL {            }FLOAT(12)
    CALL_DUR_VAL{                    } NOT NULL{                } FLOAT(12)
    ICON_IND {                                                              } VARCHAR2(1)
    CELLULAR_IND{                                                        } VARCHAR2(1)
    CUST_SPECIFIC_IND{                                            } VARCHAR2(1)
    THRESHOLD_IND {                                                } VARCHAR2(1)
    LAST_USED_IND {                                                }VARCHAR2(1)
    CALL_TYPE_CD {                    }NOT NULL{            } VARCHAR2(1)
    DESC THRESHOLDELEMENT_VALUE_
    THRESHOLD_ID {                        } NOT NULL {        } NUMBER(5,0)
    THRESHOLD_ELEMENT_VAL {    } NOT NULL {        }VARCHAR2(18)
    Edited by: user10568649 on Nov 8, 2008 11:27 AM
    Edited by: user10568649 on Nov 8, 2008 12:44 PM

    Would it be possible to edit your post to remove all the extra carriage returns? Having two blank lines between every line of code & results is making it somewhat difficult to follow.
    While you are editing the post, it would also be helpful if you could enclose the code & results in the \ tag in order to preserve white space.
    Justin                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Need to get a report from SAP on leave request data

    Hi
    I have a specific requirement that I hope somebody might be able to help me with in SAP. We use PTARQ tcode to see various requests that employees have submitted in ESS (statuse can be where request has just been sent, approved, posted) etc.
    I am trying to run a report, for specific workflow instance #'s in order to obtain the detail of the leave request itself i.e. Leave type, start date of leave, end date of leave etc.
    The reason I need to do this is to check whether some of the workflows that say posted in PTARQ have actually posted to IT2001 infotype in our system as we have had some issues.
    The stumbling piece for me right now is knowing how to extract the contents of the leave requests when I have the workflow instance #.
    Can anyone help me ?
    Thanks a lot
    Nicola

    Hi
    Please try the CHECK DOCUMENTS report.
    I do understand your requirement, but unfortunately SAP dont have such report.
    Thanks
    Sheetal

  • ESS Leave Request Data

    Hi All,
    While applying Leave Request in ESS used(Quota) value is coming 0.25 Days, But in ECC value is 0.50 Days. Please check below screen shots.
    Please suggest how to solve this.
    Regards,
    Venkat.

    HI Venkat,
    In the ESS the start time and end time is been entered so the value is 0.25 , enter the timings(7.30 t0 11.49) in ECC too and check the quota used.
    I hope the ESS leave request is just replica of the 2001 infotype so it must behave the same keeping in mind you are checking for the same absence type .
    Regards,
    Mithun K

  • Difference in ITS Leave request and WebDynpro Leave request

    Hello,
    Whats the difference between ITS based leave request and webdynpro based leave request.
    I read that in webdynpro based leave request there is a need for new workflow, other than what is being used in ITS based leave request. If for some period of time both are in place then will it create some kind of problem ?
    Can anybody help me on this. Thanks in adv.

    HI
    GOOD
    GO THROUGH THESE LINKS
    http://www.sapdesignguild.org/editions/edition3/gen_iview.asp
    http://www.sapdesignguild.org/editions/edition2/line_m.asp
    http://www.sap.info/public/INT/int/index/Category-12613c61affe7a5bc-int/8/articlesVersions-11651438ad87bac9ad
    THANKS
    MRUTYUN

  • Combine tables from 2 SQL servers with different Schemas and update as new data is entered

     I have 2 SQL server 2000 machines, I need to take a table from each one and combine them together based on a date time stamp.  The first machine has a database that records information based on an event it is given a timestamp the value of variable is stored and a few other fields are stored in Table A.  The second machine Table B has test data entered in a lab scenario.  This is a manufacturing facility so the Table A data is recorded by means of a third party software.  Whenever a sample is taken in the plant the event for Table A is triggered and recorded in the table.  The test data may be entered on that sample in Table B several hours later the lab technician records the time that the sample was taken in Table B but it is not exact to match with the timestamp in Table A.  I need to combine each of these tables into a new SQL server 2005 database on a new machine.  After combining the tables which I am assuming I can based on a query that looks at the timestamp on both Tables A & B and match the rows up based on the closest timestamp. I need to continuously update these tables with the new data as it comes in.  I havent worked with SQL for a couple of years and have looked at several ways to complete this task but havent had much luck.  I have researched linked servers, SSIS, etc Any help would be greatly appreciated.

    Hi Catalyst,
    Welcome to the MSDN Forums!
    I would have a concern with respect to your issue.  If there is no way to identify a sample, save for the closest timestamp on table A - what would happen if two samples were taken in the plant, and the test results were entered in reverse order?  The samples would not tie back to the appropriate measurements.  Can't you get an identifier of some sort to tie that sample back to table A?
    If you can't, something like this should work, but I'm not sure how you'll "serialize" the samples to avoid the situation above.
    Code Snippet
    --Create sample data
    DECLARE @TableA TABLE ( SampleNo int NOT NULL,
    SampleTime datetime);
    DECLARE @TableB TABLE ( SampleTakenTime datetime,
    SampleColour varchar(50),
    SampleQuality char(1),
    SampleResultNo int);
    INSERT @TableA SELECT 1, GETDATE()
    WAITFOR DELAY '00:00:10';
    INSERT @TableB SELECT GETDATE(), 'Orange', 'A', '5'
    WAITFOR DELAY '00:00:20';
    INSERT @TableB SELECT GETDATE(), 'Purple', 'D', '7'
    WAITFOR DELAY '00:00:10';
    INSERT @TableA SELECT 2, GETDATE()
    --Actual Query begins now
    SELECT *
    FROM @TableA AS a
    JOIN @TableB AS b ON ABS(DATEDIFF(millisecond,a.SampleTime,b.SampleTakenTime)) = (SELECT MIN(ABS(DATEDIFF(millisecond,ta.SampleTime,tb.SampleTakenTime)) )
    FROM @TableB tb
    JOIN @TableA ta ON a.SampleNo = ta.SampleNo)
    Now, to account for the fact that you are querying data from a different server, you need to create a linked server (see sp_addlinkedserver and sp_addlinkedsrvlogin) and then use the fully qualified name (server.database.schema.table) to reference the table.
    Hope this helps,
    Aaron

  • Simple insert, delete and update not working after oracle 10g installation

    Hello,
    I made a new installation of Oracle 10g (10.2.0.1.0) and created a schema . Now i try to insert or update data using simple queries, but unfortunately nothing happens. I tried inserting or updating data even via sqlplus, but unfortunately the same result. Query takes infinite time to end, so i had to manually end it every time... No errors... No warnings... but takes long time... I have given all the required permissions to the schema but the same result. Can somebody help me figure out the problem?
    Tried creating a new table and the insert and delete are working fine... think the problem is with this table... Imported the rows of the table from another online database. I dont understand how this might be a problem.
    Edited by: user13333704 on Mar 15, 2011 1:26 AM

    However how do you generate awr reports and how to find the session wait?TO generate the AWR report
    sql> ?/rdbms/admin/awrrpt
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/autostat.htm#BABDHAGF
    The event column in v$session , in v$active_session_wait will show you the session wait event.What the session was actually waiting for.
    HTH
    Anand

  • Combine and simplify SELECT and UPDATE sql query

    foreach (BidList t in bidList)
    query = "SELECT operator_id, plot_id, status FROM booking " +
    "WHERE status='open' AND postcode='" + _plot + "' AND operator_id='0'" +
    "ORDER BY datetime ASC;" +
    "UPDATE booking SET operator_id='" + t.OperatorId + "', status='allocated' " +
    "WHERE (plot_id=" + t.PlotId + " AND operator_id='0' AND status='open') LIMIT 1;";
    dbObject.InsertBooking(query);
    I am cleaning up my code, and came across the above SQL query. Before I make use of SQL parameters, I wanted to ask if it is possible to combine them, and if so, how?

    Consider making a single long query using ‘;’ as a separator:
        query = "";
        foreach (BidList t in bidList)
            query += "UPDATE . . . ; ";
        dbObject.InsertBooking(query);
    Use StringBuilder for more improvements.

Maybe you are looking for

  • Error in bapi BAPI_PR_CREATE while uploading

    HI Gurus,         I have program for uploading PR with BAPI. BAPI_PR_CREATE. while uploading without account assignment category  it is working fine. while enter account assignment category  v need to enter sales order no and item no. that is mandato

  • Elements 7 print selected area only

    Have just upgraded from Elements 4 to 7. Under old version I could easily print a small rectangular selection from a possible A3 print for evaluation before printing the whole thing. There was an option after File>Print to 'Print selected area', afte

  • ReadOnly attribute not showing

    I'm trying to create two views of a page where one is readonly and another one is editable. The form page does the following:                <h:commandLink value="Create Record"                     action="#{Bean.readOnlyAccess}">                    

  • Future of Academic Library Site Template

    I'm working on creating a training site for my company and during the course of discovery stumbled across the "Academic Library" site template which, based upon some research, would be a perfect fit for my requirements.  The problem is It's not selec

  • Run programati​cally w/ stop option

    I have created a vi that runs programatically, but I want it to be able to stop in the middle of running the program if the stop button is pushed. I put the vi in a while loop and want the condition to be if stop is false. I tried to connect a local