Update Data To date Base

I want to insert one row in update mode and  update the table.
i Wrote some code. but its give error
->The entry already exit in the following table( table name).
pls give  soluation

Hi Madhu,
Go and open the table in SQL server to make sure the data is correct before trying to post. As Satish said the data could already be there. Also ensure the SQL query you're executing is referring to the correct tables and fields.
Hope it helps,
Adele

Similar Messages

  • Error While updating Process form data Using Scheduler

    Hi All,
    I am trying to update Process form data (ex : lastname) using a scheduled task Code. I am getting Error while updating Field.
    Code :
    HashMap<String, String> map = new HashMap<String, String>();
    map.put("UD_EBS_PF_LASTNAME", "lastname");
    formintf.setProcessFormData(instancekey, map);  //I AM GETTING AT THIS LINE
    Saying
    Thor.API.Exceptions.tcAPIException: The following required fields have not been given values:EBS IT Resource : The following required fields have not been given values:EBS IT Resource
        at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
        at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
        at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
        at Thor.API.Operations.tcFormInstanceOperationsIntfEJB_h6wb8n_tcFormInstanceOperationsIntfRemoteImpl_1036_WLStub.setProcessFormDatax(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
        at $Proxy2.setProcessFormDatax(Unknown Source)
        at Thor.API.Operations.tcFormInstanceOperationsIntfDelegate.setProcessFormData(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at Thor.API.Base.SecurityInvocationHandler$1.run(SecurityInvocationHandler.java:68)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at weblogic.security.Security.runAs(Security.java:41)
        at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(weblogicLoginSession.java:52)
        at Thor.API.Base.SecurityInvocationHandler.invoke(SecurityInvocationHandler.java:79)
        at $Proxy3.setProcessFormData(Unknown Source)
        at com.wyndham.tasks.AssignRandomPasswordToAllUsersSchedulerTest.execute(AssignRandomPasswordToAllUsersSchedulerTest.java:182)
        at com.wyndham.tasks.AssignRandomPasswordToAllUsersSchedulerTest.main(AssignRandomPasswordToAllUsersSchedulerTest.java:63)
    Caused by: Thor.API.Exceptions.tcAPIException: The following required fields have not been given values:EBS IT Resource : The following required fields have not been given values:EBS IT Resource
        at com.thortech.xl.ejb.beansimpl.tcFormInstanceOperationsBean.setProcessFormData(tcFormInstanceOperationsBean.java:761)
        at com.thortech.xl.ejb.beansimpl.tcFormInstanceOperationsBean.setProcessFormData(tcFormInstanceOperationsBean.java:426)
        at Thor.API.Operations.tcFormInstanceOperationsIntfEJB.setProcessFormDatax(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    Is that possible there was the field ZDATE in your form interface/ context and now it is not? I guess some source has changed so the field in the form (binding to the not existing field) cannot be processed. Otto

  • Update episode release date....

    I have an old episode that is at the bottom of my podcast that we wanted to move towards the top. In order to do this, I updated the "release date" of the episode in my feed to a more recent date. Sure enough, doing that moved the episode up exactly to the spot that I wanted to in my list of episodes on my podcast. The only problem is that I keep getting error 404 messages in iTunes when I try to download the episode now.
    Did I do something wrong here? The podcast link is as follows if anyone could have a look - it would be much appreciated:
    http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=120980516
    Thanks.

    Roger, thanks for the input. Its funny, but recently the file started working correctly. I did not change its order in the feed file but only updated the release date and it posted where I wanted it to on iTunes. You can have a look at the episode -- its name is "Cleared For Takeoff" and it used to be way at the bottom of the list but my client wanted it moved "somewhere close to the top" - so that's how I did it.
    At this point in time, I feel a little skiddish about posting the xml feed in the public (security, copyright issues etc) that might put my client at risk.
    Once again, it was weird because for about a day and a half it didn't work properly - it kept giving me error 404. But now it seems to work just fine.
    Thanks again. I guess this is just some more info for the knowledge base.

  • To fetch data on the basis of last program run date and time

    Hi all,
    My query is as folows:
    I am selecting BOM components from STPO table on the basis of some criteria.
    My requirement is to select only BOM components which are newly added or created after last program run,i.e. STPO-AEDAT and STPO-ANDAT are greater than last program run.Here i fetched last program date from customised structure(client specific) which has date field also,and compared with aedat and andat in STPO records.But how can I connect it with last run time as there is no such time field in STPO table.I need to fetch this data on the basis of last program run(time+date).
    Please help me..it's crucial,
    Thanks in advance,
    Meena

    Hi,
    We had a very similar requirement.
    We developed a custom-solution for this.
    Create a Z-Table and update it with your progname, date and time.
    Whenever the BOM was changed, it generated a change number ( this has to be done by the user)
    You can get the date and time from the change Number Table AENR and compare it with the timestamp in Z-TABLE
    Hope it helps,
    RJ

  • 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 ??

  • How to run RFWT0020 to update withholding tax data

    Can anyone explain the difference between these two options when running RFWT0020 to update withholding tax data? Data Regeneration vs. Changes to Source Tax Code? I can't find any mention of the two options in the program documentation
    When I do test runs with the two different options, the program is selecting difference documents to update. If we are just turning on the 1099 functionality now (beginning with the 2011 tax year), should I run the program once with Regeneration mode and once with Changes to Source Tax Code???
    Thanks for any advice!
    Allison

    Hi,
    he program enables the withholding tax code to be changed for reconciled and open items with existing withholding tax data. For this, the tax rate of the existing withholding tax data as well as the tax rate of the new withholding tax code must be 0%. The new withholding tax codes are taken from the customer or vendor master data. In the case of extended withholding tax, the withholding tax code is only changed if the related withholding tax categories are the same. The withholding tax base amount is not changed by this procedure.
    Recreating or changing the withholding tax data requires that the program first be executed for invoices and then executed for payments in a subsequent step.
    When you start the program, the selection screen appears. You can make selections according to vendors, tax code 1, tax code 2 (vendor master record), customers, tax code 1, tax code 2 (customer master record), company codes, document numbers and posting data. The selection determines which items are checked for possible subsequent entries in tables BSEG, BSAK, BSIK, BSAD, BSID, WITH_ITEM.
    You can also decide whether only withholding tax data is to be handled for cases where the documents in question contain no withholding tax data. There is no withholding tax data if no withholding tax entries exist for the item selected in table WITH_ITEM (extended withholding tax) or the die withholding tax fields in table BSEG are not filled.
    The selection can also be made in test mode. If you do this, no changes are made in the database. You are therefore advised to run the program in test mode initially.
    Regards
    Aditya

  • When to refresh Servlet data from Data Base

    Hello all,
    I have a servlet that retrive few hundreds thousands records from data base table.
    The data in data base table being updated once or twice in every week.
    Since same servlet instance serve all users, that access the servlet many times a day.
    I would like to avoid retriving the data from data base on each servlet access.
    and make the users use same data already retrieved and kept in servlet members.
    First, what is the best way to avoid data retrive from data base on each servlet access?
    and how could I have some kind of trigger that will refresh servlet data from data base every few days?
    Thanks in advance for every idea.
    Ami

    Java_A wrote:
    Thanks Saish for your reply.
    I'm not using DAO in my application but retrive the data from BI data base using a web service. response time querying the BI data base is not quick enuogh.
    Since, I wouldn't want to query the BI server on each servlet access.
    Because the data I retrived at the begining using the web service contains all required data for all servlet requests, I thought to store the data (~200K rows) once in the servlet which will be using for all requests.
    Why not store the results locally in your own database after you fetch them?
    This still leave me with the questions: in which event should I query the BI data, and also when or in which event should I update the data again from BI server?
    Query at startup, an user demand, when data becomes stale. It depends on your requirements.
    >
    Thanks
    Ami- Saish

  • PSA showing Request not updated to any data target using delta

    Hi BWers,
    I am very new to SAP and have a IDES installed with BW. I am trying to do a simple data load from a flat file. I have managed to create a InfoPackage, but when I schedule it and then go into the data source -> manage and look at the screen :
    Requests for PSA /BIC/Bxxxx
    I see the Request updated having a Red triangle with an exclamation mark in it and it says
    "Request not updated to any data target using delta"
    Wondering if someone can help me resolve this so that I can further create a DTP and load the data into the InfoObject.
    Thanks for all your help.
    Manish

    Reg : Delta Load : Production Data
    Current Scenario :
    we have existing system pulling data from 0CO_OM_WBS_6 ,ZPS_0CO_OM_NWA_2
    Structure underlying infocube:
    2 Data Sources >> 1DSO >>1 Infocube .
    Usually the Data is loaded in delta format on daily basis using process chains.
    For last one month the delta is not picking properly :
    Example :
    A WBS Element is created 2 years back and it open and getting its update into BW ,
    latest amount or cost incurred for the WBS Element is not picked for certain WBS only :
    I have Tried Giving a Full Infopack load to the DSO , but as DataStructure was migrated from 3.5 to 7 landscape :
    its showing this error:
    Request not updated to any data target using delta,
    i went and created DTP which didnt help much Because latest isnt caputered .
    if i goto RSA1old and find the full req and trigger it ,it says inti overlapping ,
    how to over come this as this is a production issue
    Obaid : pls help me on this issue , any others expert pls help

  • Not filling data in data base using Idoc

    Hi experts,
    I have a problem while filling data to data base table. My issue is
    I'm transferring data from c4c to crm, when customer filling the custom fields in header level for contacts in C4C, the idoc structure is filled but when I look the database table  but000  the custom fields values are not updated.
    Thanks,
    Ashok.

    Hi Ashok
    What IDoc basic/extension and message type are you using? And what corresponding process code are you using in the inbound partner profile?
    If you are using standard for the above, then definitely the custom fields will not be populated automatically - you will need to have custom logic in a relevant user-exit/BADI to extract the custom fields from the IDoc structure and populate it into the table.
    Rgds
    Eng Swee

  • Updating the Master data Infoobjects attributes from the Portal

    Dear All,
    There is a requirement where through portal i want to  retrive the master data infoobject ( based on the value seleceted for that infoobject by the user ) and its attributes in the portal , edit them and save them back so that the updated values goes back to BW master data infoobject data base tables and updates the value.
    Eg . I have Natural Account master data infoobject in the BW with attributes fucntional area and expense center.Based on the user selection of any values for the Natural account lets say 01110 , then for 01110 natural account the portal should display the correspoding attributes values of fucntional area and expense center.Lets take this values as 10 , 20 respectively for fucntional area and expense center . What I want to do now is to change these attrbute values to 30 and 40 and I would like to save it back as the changed attribute values for that natural account for 01110 with new attribute values 30 & 40 respectively for fucntional area and expense center .
    Is this possible through portal and BW?
    Any idea on this would be appriciated.
    Regards,
    Ankit

    Hi Ankit,
    this is a quite tough but not impossible requirement. Maintaining Master data is possible with Visual Composer and some function modules (at least that's one way I know). However it could be a bit complicated maintaining attributes Master data depending on your data model. This How might help getting familiar with this topic:
    Maintaining BI Master Data with SAP NetWeaver® Visual Composer
    Good luck.
    Brgds,
    Marce

  • How to regularly update the Master data/Text/ Hierarchy for BW DEV?- Urgent

    Hi Experts,
    Can anyone help me to understand how to update the Master data/Text/ Hierarchy regularly for BW DEV.
    Since all the new query developments are taking place in DEV, users are not finding the latest Masterdata/ Texts /Hierarchy in the DEV system.
    I have searched in SDN and got a document "HOW TO DOWNLOAD A HIERARCHY TO A FLAT FILE". However, is there any other way to upload the master data automatically on periodical basis.
    Please help urgently.
    Advance Thanks,
    BW USA

    If you want to extract master data from PRD in order to load in DEV, i suggest to do this (its a tricky thing):
    For example, you want to download 0EMPLOYEE
    1-In PRD, transaction RSD1
    2-Enter 0EMPLOYEE
    3-Copy the Master table for 0EMPLOYEE (/BI0/MEMPLOYEE)
    4-transaction SE16
    5-Enter the table name /BI0/MEMPLOYEE
    6-in the selection screen, go to "Options" Menu and select "User parameters", and now select "Standard List SE16"
    7-Execute
    8-Now its show's up the 0employee data, go to "System" menu - List - Save - Local File
    9-After you have the flat file, only rest create Infopackae in DEV Env. and load it from the flat file.
    Asigns points if useful.
    Regards

  • Can not update request in data target

    Hi,
    We have a process chain for master data (10 parallel) loads.  One of the load
    failed with error "can not update request REQU_46xxxxxxxxxxxxxx in data target".
    When I checked the InfoPackage
    (a) update: full load
    (b) it has data selection
    (c) processing :PSA and then to data targets
    (d) Data targets: update in all data targets for which active rules exist.
    But I do not see any list of data targets here.
    Can some one please suggest me how do I correct this load failure.
    Thanks

    Hi Wondewossen, NS and Nagesh,
    Thanks for the information. I am in support, and the developer is
    not here now.
    I have checked Header tab in the monitor, in this there
    is a update symbol and infosource name and an -->
    but after arrow there is nothing.
    when I click on this I get a message
    "No active update rules exist".
    Can you please advice me how to I correct this.
    Thanks

  • Update 100 Row Data In One Time against a Code

    Dear Expert,
    How can I update a Master Data Row Table record using a particular code. Like I write a query Update Table Set U_UDF = 'Value' Where Code = 2
    U_UDF is the field of Master Data Row Table's field. There are 100 Row against code 2 & I want to update all row with same value but in one time only.
    How can I do that ?
    Plz help me.
    Regards

    Hi,
    Try this:
    SAPbobsCOM.GeneralService oGeneralService = null;
                                                    SAPbobsCOM.GeneralData oGeneralData = null;
                                                    SAPbobsCOM.GeneralDataParams oGeneralParams = null;
                                                    SAPbobsCOM.CompanyService sCmp = null;
                                                    SAPbobsCOM.GeneralData oChild = null;
                                                    SAPbobsCOM.GeneralDataCollection oChildren = null;
                                                    sCmp = SBO_Company.GetCompanyService();
                                                    oGeneralService = sCmp.GetGeneralService("UDO");
                                                    // Get UDO record 
                                                    oGeneralParams = ((SAPbobsCOM.GeneralDataParams)(oGeneralService.GetDataInterface(SAPbobsCOM.GeneralServiceDataInterfaces.gsGeneralDataParams)));
                                                    oGeneralParams.SetProperty("Code", ContractCode);
                                                    oGeneralData = oGeneralService.GetByParams(oGeneralParams);
                                                   // Add lines on UDO Child Table 
                                                    oChildren = oGeneralData.Child("CONTRACTDETAIL");
                                                    // Update an existing line 
                                                    oChild = oChildren.Item(LineId - 1);
                                                    DateTime dt = DateTime.Now;
                                                    oChild.SetProperty("U_STATS", "Terminated");
                                                    oChild.SetProperty("U_Updated", dt);
                                                    oChild.SetProperty("U_Remarks", "Service Terminated");
    //Update the UDO Record
                                                    oGeneralService.Update(oGeneralData);
    I have given you the sample. Just change it accordingly.
    Hope it helps.
    Thanks & Regards
    Ankit Chauhan

  • Insert/update japanese langunage data in a column of datatype varchar2(..)

    Hello,
    I am using ORACLE DATABASE 11g (EE) and RHEL 5.
    I want to insert/update japanese language data in a column which has the datatype as varchar2(256).
    I tried to change the NLS_LANGUAGE and NLS_TERRITORY parameters with 'ALTER SESSION set ...' command but no effect.
    I tried to bounce back ( shutdown and startup ) the DB but still no effect.
    I tried to inset the NLS_LANGUAGE and NLS_TERRITORY in init.ora file but still no use.
    If anybody knows the detail steps which i have mentioned above .... let me know. Might be that i am wrong in my method.
    Can you please guide me how to change the language of DB for a perticular session to japanese ???
    Thanks in advance...
    Edited by: VJ4 on May 9, 2011 6:21 PM

    VJ4 wrote:
    Thanks for the info.
    Yes i tried with UNISTR function and was able to insert the data successfully.
    but the point is that we can't remember unicode for each of the letter. It's their any method that we can directly insert japanese character using an insert.
    As you said :-
    Note that changing database character set is something complicated that requires many steps.
    Can you please provide me some links or some stuffs to study about the detail steps of chaining database character set.
    I have gone through the Oracle online documentation.. if you can pin point any good link in it you can else provide me some other stuff.
    Thanks .You will need to convert your database characterset to AL32UTF8. This is not a trivial exercise if your database already has data in it. See these MOS Docs
    Changing the NLS_CHARACTERSET to AL32UTF8 / UTF8 (Unicode)          (Doc ID 260192.1)
    AL32UTF8 / UTF8 (Unicode) Database Character Set Implications          (Doc ID 788156.1)
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10729/ch11charsetmig.htm#g1011430
    HTH
    Srini

  • Remote and direct update of master data at the same time

    Hello
    Is it possible to do remote and direct update of master data at the same time? If yes where it could be used?
    Thanks

    Hi,
    What do you mean by Remote Update ?
    regards
    Happy Tony

  • How to prevent multiple users from updating the same data in coherence

    Hi,
    I have a Java Web Application and for data cache am using coherence 3.5. The same data maybe shared by multiple users which maybe in hundreds. Now how do I prevent multiple users from updating the same data in coherence i.e. is there something in coherence that will only allow one user a time to update. If one user is in a process of updating a data in coherence and some other user also tries to update then the second user should get an error.
    Thanks

    I have a question on the same line. How can I restrict someone from updating a cache value when I a process is already working on it. I tried locking the cache key but it does not stop other process to update it , it only does not allow other process to get lock on it.

Maybe you are looking for