Using webrowset update date

Hi,
I'm trying to update an Oracle date field using the updateDate function of webrowset. It just won't work. I get a synchprovider exception. I'm explicitly setting the date as follows, and no luck,:
java.util.Date now = new java.util.Date();
long dateTime = now.getTime();
wrs.updateDate("testdate", new java.sql.Date(dateTime));
Please help!

user523540,
I'm only guessing, but try using "java.sql.Timestamp" instead of "java.sql.Date".
Good Luck,
Avi.

Similar Messages

  • Sync iPhone with Outlook- How to sync using last updated data without merge

    I have set my iPhone to sync with Microsoft Outlook when I am at a PC office. The problem I am encountering is that the options for syncing outlook with Iphone are only (1) computer overrides iPhone or (2) computer mergers information with iPhone.
    Obviously, as in any old PDA there are two missing options: (3) latest information overrides prior dated information or (4) IPhone information overrides computer.
    Options (3) and (4) are clearly the most important options in a PDA phone because they take into consideration updates we make of contact info, notes, etc on our phones and later go to our office or home to sync the information with our computers. Option (1) is this case would not be applicable and option (2) would be wrong as it would create merged information adding old to new data.
    Is there a solution to this problem or has iPhone OS missed this one?
    Thank you,
    Marcelo

    Time Machine is your best bet.
    I assume you are updating to 10.8.4?
    You should be able to upgrade without starting over. It is still wise to backup with Time Machine before performing the upgrade in case things go wrong

  • Updated Date  in R3 Tables

    Hi
    My requirement is to Extract R3 Data to CVS file without using BI.
    For this reason, I thought to make extractor using SE38 which will fetch data directly from Application tables using their 'Updated Date' as the main field for Delta purpose.
    Could you pls. let me know that Do all R3 Tables have 'Updated Date' or 'changed Date' field?
    Thanks...

    Hi Harpal,
    Not only the field presence will solve your problem but you will have to check whether this field is getting used or not, so you have to do two way checking,
    1) Goto SE11 and check if there is any field which holds change date or change time stamp etc.
    2) And then check the content of the table through SE16 or from SE11 contents button and make sure that the field is in use.
    Otherwise you will not be able to extract the delta.
    Regards,
    Durgesh.

  • Odd behavior on web template used to update real-time cubes

    Hello all
    This is my first time posting on this forum so please excuse any blunders.
    I have a situation wherein 2 queries (one built on an aggregate level which is set up on a multiprovider containing a real-time cube and the other built on an aggregate level set up directly on a real-time cube) are being used to update data. For both of these queries, I'm trying to fill in fields such as user, created by, time, date etc. These fields are being filled in the custom class "ZCL_LOC_CR_LINE_ITEM" and all of the settings are correct for the aggregation level/infoproviders.
    However, I'm encountering 2 problems. Firstly, for one of these queries on the web template, the fields I want filled are not getting filled in by the exit. In fact, I put hard-code break points in the exit's DERIVE method but the control is not even going in there. But for the other query, the control flows into the user-exit correctly when I hit the return key after populating all of the remaining characteristic fields on the input screen. Secondly, for the first query, the fields are not input-enabled. But I've set up both queires to be more or less similar in the sense that the fields to be populated in the user-exit are not on the query screen etc. I'm stumped and would appreciate some help from the experts out there.
    Regards
    Sam

    Regarding yor first quesiton, if the exit is not being reached, then most likely you have not correctly defined the characteristic relationship in the planning modeler.  For it all to work, go to the planning modeler for the infoprovider that you are deriving the characteristics.  Ensure that your source characteristics are all contained in the aggregatin level being used by the planning query in question.  Also ensure that none of the target characteristics are contained in the aggregation level.
    Also, make sure that the "inactive" checkbox is not marked for the individual characteristic relationships.
    Note that whether or not the query is on an multiprovider or a real-time sube, the characteristic relationships are always defined directly on the underlying real-time cube.
    Regarding the second question, for a query to be input-ready:
    -There must be a real-time cube in the query directly (or indirectly via mutliprovider)
    -The query must start up in change mode (or be switched into change mode)
    -Cell(s) must be defined as input ready either by their settings in the row or column
    -Every characteristic in the aggregation level must be fully qualified (including currency,UOM, or any nav attributes used as selections)
    - note that when using a mulitiprovider, it is necessary to specify the real-time infocube name in the planning cell/row/col selections
    If all of the above are met, try drilling down in the query once it is presented and see if anything is unaccounted for

  • How can we update data in LDAP server using PL/SQL.

    Hi,
    How can we update data in LDAP server using PL/SQL program.
    Is there any sample code for refrence.
    Thanks,
    Tarun

    Hi Justin,
    Thanks for your help. You got my correct requirements.
    Tim's example returning all the attributes of current user which is admin user. Please correct me if I am wrong.
    I have the following information:
    the admin user and password,server info , port and ldap_base for admin.
    I have uid and password for regular user, I am trying find the ldap_base for regular user, which may be different from adminuser.
    Please help me.
    Thanks,
    Edited by: james. on Jan 12, 2009 5:39 PM

  • Update data in r/3 from webdynpro using bapi

    Hi ,
    i am new to webdynpro.
    i want to update data say sales order in r/3 backend from webdynpro.
    can i have some links for the same.
    i have seen previous forums in following link, but couldn't open.do i need to register to have some extra rights.
    /thread/12846 [original link is broken]
    thanks in advance

    Hi Satya
    In order to update data in R/3 from web dynpro you need to use RFC or BAPI
    The Adaptive Remote Function Call (Adaptive RFC) is a technology that enables the Web Dynpro application developer to use the business functions encapsulated in Business APIs (BAPIs) even after a structure modification, without having to provide the new data using a second back end or a new structure with subsequent regeneration of the proxies.
    Procedure for Importing Adaptive RFC model is as follows
      1. Choose the context menu entry Create Model on the Models node of the relevant Web Dynpro component.
    2. In the model wizard, choose Import Adaptive RFC Model followed by Next.
    3. Make the required entries – for example, to specify where the generated RFC model instances and RFC metadata are to be stored.
    4. In the next wizard window, you enter your user data for the SAP System that contains the BAPIs from which you want to generate the proxies. You use it to log on to the SAP System online.
    To be able to log on to the SAP System, it must be entered in the logon group.
    5.  Next select the BAPIs for which you want to create Java proxies in a generation process. Then choose Next to proceed to the next wizard window.
    6.The import log provides information about the generated model classes, properties, and model relations. Choose Finish to start the generation process.
    Now add this model in "Used Model" for your application
    Now for graphic display you create view,for the progarm control create controller and used this model to retrieve & update data.
    For more information about web dynpro for Java refer
    http://help.sap.com/saphelp_nw2004s/helpdata/en/14/c897427f18d06ae10000000a155106/frameset.htm
    For information about RFC & BAPI
    http://help.sap.com/saphelp_nw2004s/helpdata/en/22/042860488911d189490000e829fbbd/frameset.htm
    Regards
    Gauri

  • Can I use one infosource to update data to CUBE and ODS???

    Hi all,
    Can anyone tell me if I can load data to OSD and Cube from one the same InfoSource? As I know, I have to have "0recordmode"(update mode) in communication structure for ODS not for Cube.  So how can ODS and Cube use the same Infosucre to update data?
    Thank you

    John,
    Depending on the volume of data and the type of infosource, sometime one update to ODS first and then subsequently update to the Cube or update both cube and ODS in parallel.
    For example, if you use AR or AP line item datasources, since you are extracting from both open line and closed line items tables, there could be multiple records for the same thing coming through.  First when it appears as an open line item, and when it is paid, it appears again as a paid line item so if you update directly to the cube, you can have multiples of the real value.  Thus in this instance you update from infosource to ODS then subsequently use delta update from ODS to cube.   CCA and C0-PA on delta mode are example where there are no overlapping, thus you can update both ODS and Cube at the same time.
    Hope this helps,
    Mary

  • How can i update data of DSO and Cube using ABAP??

    Hello Experts
    I have a requrement in which i need to update/ delete data from DSO and cube based on certain keys using ABAP.
    Please let me know how can i modify contets of cube or active table of DSO.
    Thanks
    Sudeep

    Hi
    I have requirement such that i need to update certain key figures in DSO after certain time.
    for eg. say record with key a is loaded to DSO and currospoding key figure was loaded with value 10
    after few days because of certain parameters changing in system i need to modify key figure value.
    currently i am doing same using 1 self transformation i.e. by loading same data again in same DSO.
    Amount of data is very huge and causing performance issues in system.
    now A is not key but i need to modify record for few combinations which apperar multiple times in DSO.
    Same DSO data is loaded into Cube regularly.
    I may need to update data after gap of few weeks as well.
    This design will be used as template and needto keep whole logic generic.
    So wring Function module can make it generic.
    Thanks
    Sudeep

  • Error while updating data using session and call transaction method

    Hi all,
        i have to update data using MM01 transaction from flat file to database.i have used both session method and call transaction method to do that.in both the methods data has been transferred from internal tables to screens but while updating the data that is by clicking the ok-code at the end of the transaction iam getting a dialogue box stating
       SAP EXPRESS DOCUMENT "UPDATE WAS TERMINATED" RECEIVED FROM AUTHOR "SAP".
      please tell whether the problem lies and solution for that.
                                       thanks and regards.

    hi,
    check your recording.check whether u saved your material no in recording or not.
    once again record the transacton mm01.
           MATNR LIKE RMMG1-MATNR,
           MBRSH LIKE RMMG1-MBRSH,
           MTART LIKE RMMG1-MTART,
           MAKTX LIKE MAKT-MAKTX,
           MEINS LIKE MARA-MEINS,
           MATKL LIKE MARA-MATKL,
           BISMT LIKE MARA-BISMT,
           EXTWG LIKE MARA-EXTWG,
    these are the fields which u have to take in internal table.
    this is the record which i took in my flatfile.use filetype as asc and hasfieldseperator as 'X'.
    SUDHU-6     R     ROH     MATSUDHU     "     001     7890     AA
    i did the same.but i didn't get any error.

  • Error Updating Data using a Web Service from BPM

    Hi there,
    I'm trying to update data in an oracle database using a webservice created in DSP and get the following errors. It appears that BPM is unable to find a name, but I'm not sure what name this is referring to. The web service is straight forward and takes in the original and current objects as arguments. I can successfully call the query and insert web services and have double checked my code for the update web service but can't figure out why this is failing. Any idea on why this error might be occurring, or any pointers on what I need to be aware of?
    Caused by: Task '0' in activity '/PlanSubmittal#Default-1.0/Interactive[ViewEditPlan]' for instance '/PlanSubmittal#Default-1.0/1/0' could not be successfully executed. The task failed while executing method 'AddEditWell_Router'.
    Caused by: The method 'AddEditWell_Router' from class 'xobject.Fuego__AutoGen__Screenflows__.__EditPlan' could not be successfully executed.
    Caused by: Could not retrieve name
    fuego.web.exception.WapiTaskFailedException: Task failed.
    Thanks.
    Azeem.

    Hi,
    For the same 'omni portlet' tutorial I am stuck whiile using 'http://webservices.oracle.com/WeatherWS/WeatherWS?WSDL' the error
    'Failed to open specified URL. Check the following: is the URL is active; is there a valid proxy setting or, if HTTP authentication is required, check user name and password. [http://webservices.oracle.com/WeatherWS/WeatherWS?WSDL]'
    get dispalyed. Any quick pointers to resolve this please..
    Thanks,
    Kalyan.

  • WebPart is raising the following error "Invalid data has been used to update the list item.The field you are trying to update may be read only"

    I have created a farm solution and then i deploy it to SharePoint server, the code looks as follow, and i use it to update a page info values (as the current page values represents old info):-
    [ToolboxItemAttribute(false)]
    public partial class VisualWebPart1 : WebPart
    // Uncomment the following SecurityPermission attribute only when doing Performance Profiling using
    // the Instrumentation method, and then remove the SecurityPermission attribute when the code is ready
    // for production. Because the SecurityPermission attribute bypasses the security check for callers of
    // your constructor, it's not recommended for production purposes.
    // [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Assert, UnmanagedCode = true)]
    public VisualWebPart1()
    protected override void OnInit(EventArgs e)
    base.OnInit(e);
    InitializeControl();
    using (SPSite site = new SPSite(SPContext.Current.Site.Url))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists["Pages"];
    web.AllowUnsafeUpdates = true;
    foreach (SPListItem items in list.Items)
    items["Author"] = "SharePoint";
    items["Created"] = "01/08/2014 01:44 PM";
    items.Update();
    list.Update();
    web.AllowUnsafeUpdates = false;
    protected void Page_Load(object sender, EventArgs e)
    but when i try adding this web part to a page i got the following error:-
    Invalid data has been used to update the list item.The field you are trying to update may be read only
    so can anyone advice?

    i only changed lines bitween 
    web.AllowUnsafeUpdates = true;
    and
    web.AllowUnsafeUpdates = false;
    and other parts of code remains without change
    so it will updates all pages in current web
    yaşamak bir eylemdir

  • Invalid data has been used to update the list item. The field you are trying to update may be read only.

    Trying to follow Serge Luca's Step by Step Tutorial. Creating Workflows for Windows Sharepoint Services and MOSS2007.  http://sergeluca.spaces.live.com/blog/cns!E8A06D5F2F585013!859.entry
    I have an onWorkflowActivated, followed by an ifElse condition and a log to history.
    In the IfElse, each branch has a code segment, that trys to update the status column in the list that the workflow is attached to.
    private void Authorize_ExecuteCode(object sender, EventArgs e)
    // tried serveral methods
    WorkflowProperties.Item["Status"] = "Automatically Approved";
    // tried all of the following (one at a time)
    item.update();
    WorkflowProperties.Item.Update();
    WorkflowProperties.Item.SystemUpdate();
    //tried this as well.
    Microsoft.SharePoint.SPListItem item = WorkflowProperties.Item;
    item["Status"] = "Automatically Approved";
    item.Update() ;
    On the update call I keep getting "Invalid data has been used to update the list item. The field you are trying to update may be read only."
    Could someone explain how to update "Status" column of the list item that the workflow is working on?
    Thank you very much.
    Bill
     

    Hi:
    you can do the following:
    add the following code to the workflow.xml file (under the MetaData section)
    Code Snippet
    <ExtendedStatusColumnValues>
    <StatusColumnValue>Branch1</StatusColumnValue>
    <StatusColumnValue>Branch2</StatusColumnValue>
    </ExtendedStatusColumnValues>
    then add 2 SetState activities one in each branch of the IfElse.
    for the code behind of setState1 (branch1) write the following code:
    Code Snippet
    state = Convert.ToInt32(SPWorkflowStatus.Max);
    for setState2 (branch2) write the following:
    Code Snippet
    state = Convert.ToInt32(SPWorkflowStatus.Max) + 1;
    where state is the variable assigned to the field State in the properties of the SetState(design lever), or instead of state u can use the following code:
    Code Snippet
    ((SetState)sender).State
    where sender is the object sent through the function parameter.
    hope this answered your question
    Best Regards

  • Invalid data has been used to update the list item. The field you are trying to update may be read only (Lookup Field).

    Hi.
    I am getting below error while adding value to look-up field.
    Invalid data has been used to update the list item. The field you are trying to update may be read only.
    I have tried many forums ans post but didn't come to know what's the root cause of issue. I am also posting Code for creating and adding lookup field.
    CAML to create lookup field (It works Fine)
    string lkproductNumber = "<Field Type='Lookup' DisplayName='Product Number' StaticName='ProductNumber' ReadOnly='FALSE' List='" + pNewMaster.Id + "' ShowField='Product_x0020_Number' />";
    Code to insert value to lookup field
    ClientContext client = new ClientContext(SiteUrl);
    client.Load(client.Web);
    client.Credentials = new NetworkCredential(this.UserName, this.Password, this.Domain);
    // Lookup Lists
    List pmList = client.Web.Lists.GetByTitle("Product_Master");
    //List Conatining Lookup Columns
    List piList = client.Web.Lists.GetByTitle("Product_Inventory");
    client.Load(piList);
    query.ViewXml = "<View/>";
    ListItemCollection collection = pmList.GetItems(query);
    client.Load(collection);
    client.ExecuteQuery();
    int prodid=0;
    foreach (ListItem item in collection)
    if (Convert.ToString(item["Product_x0020_Number"]) == ProductNumber)
    { prodid = Convert.ToInt32(item["ID"]); }
    ListItem piItem = piList.AddItem(new ListItemCreationInformation());
    piItem["Product_x0020_Number"] = new FieldLookupValue() { LookupId = prodid };
    piItem.Update();
    client.ExecuteQuery();
    Exception Detail
    Microsoft.SharePoint.Client.ServerException was caught
    Message=Invalid data has been used to update the list item. The field you are trying to update may be read only.
    Source=Microsoft.SharePoint.Client.Runtime
    ServerErrorCode=-2147352571
    ServerErrorTypeName=Microsoft.SharePoint.SPException
    ServerStackTrace=""
    StackTrace:
    at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream)
    at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()
    at WebServiceProviders.ClientServices.NewProductInventory() in Z:\.............ClientServices.cs:line 889
    InnerException:
    Quick response is highly appreciated.
    Thanks
    Mehar

    Try some thing like below,
    your data value that needs to be update should be in this format "ID of the lookup";#"Title of the Lookup" 
    For example,
    listItem["Product_x0020_Number"]
    = "1;#iPhone";
    listItem["Product_x0020_Number"]
    = "2;#Mobile";
    Hope this helped you....

  • I updated my LG G3 this week and now it SUCKS!  When I'm connected to WIFI, nothing on Facebook works.  The photos and videos won't populate.  I have to turn off the WIFI and only use the mobile data. Not to mention, I really hate the way it looks now.

    I updated my LG G3 this week and now it SUCKS!  When I'm connected to WIFI, nothing on Facebook works.  The photos and videos won't populate.  I have to turn off the WIFI and only use the mobile data. Not to mention, I really hate the way it looks now.   Before I updated my phone, I really liked it, now I don't like my phone at all!  When will this be fixed? I hope it's soon.  I'm thinking of changing providers now.

    Does the iOS device connect to other networks? If yes that tend to indicate a problem with your network.
    Does the iOS device see the network?
    Any error messages?
    Do other devices now connect?
    Did the iOS device connect before?
    Try the following to rule out a software problem:                
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on your router
    .- Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Wi-Fi: Unable to connect to an 802.11n Wi-Fi network      
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem and it does not connect to any networks make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

  • How to update data returned using REF CURSOR

    Hi all,
    I am trying to update updated data in a gridview but the update button seem to do nothing as i retrieve data using REF CURSOR.
    Let me describe the architecture of my application first. I'm trying to implement best practice whenever possible. I am following the data access tutorial published in www.asp.net , the only difference is that i have an Oracle (10g) database. So I split my application into three layers, data access, business logic, and presentation layer. I'm also writing all queries in an Oracle package.
    So I have my Oracle packages that perform CRUD operations. Then I have an xsd file that define dataTable based on the package procedure. My business logic layer then calls functions defined in the xsd file. And finally a detailsView control that uses an ObjectDataSource to call business logic functions.
    In a nutshell, I am just trying to update records retrieved using REF CURSOR. Your help is very much appreciated. Please let me know if further details are required. Cheers,

    In the DataSet (xsd) where your DataTable is defined, you just need to add additional methods to the TableAdapter to handle insert, update and delete, either with SQL or by mapping to stored procedures.
    Alternatively in code, create an OracleDataAdapter and supply its InsertCommand, UpdateCommand and DeleteCommand.
    David

Maybe you are looking for

  • Material type and Valuation class SPRO

    Hi All, How to see the the config spro for  materila type  and  valution clss and GL accounts path in SAP Please let us know SPRO path for the same. Thanks Chinna

  • Can't send mail exceeded recipients?

    My outbox in Mail is piling up with messages. I keep getting the following message. The server response was: 4.0.0 You have exceeded 400 recipients in the last 24 hours. Try again later. My only options is selecting the mail server are: smtp.mac.com

  • Af:table sending event on load, is it possible?

    In JDeveloper 11.1.1.6 I have a af:table that has a selection event tied into it that sends an ID to another task flow. However, since the selectionLister does not get called on initial table load, only on a change that leads my other task flow to no

  • Early 2008 Mac Pro and the 5870

    Several sources has stated that this card will work in the Early 2008 Mac Pro, but I am having issues.  The card tests as bad and on restart the card is not seen as being installed.  I can Screen Share and verify through System Profiler that the card

  • Firefox will not connect to internet

    All of a sudden tonight I can no longer connect to the internet thru firefox. Pc is about 2 years old, came with McAfee but I've never activated it. Error says 'Unable to connect' and 'Firefox can't establish a connection to the server anywebsite.com