SUP 1.5.5 Custom Development - Update Operation

Hi all,
I am developing a custom blackberry application with the backend R/3 and middleware is SUP 1.5.5. My scenario has getList, getDetail & Update. Here I have created two MBOs for GetList & GetDetail. Update operation is in getList MBO. When I do the sync, I have got the list & detail data, and it is dispalying correctly. But when I tried to update, it is not happening. Can any one instruct me how do the Update opration in cu
Regards,
Nithya

Hi  Siva
The problem is I have set the values for the attributes. I have done my code like this : For example.
Customer cust = Customer.findById(101);
cust.setFname("supAdmin");
cust.setCompany_name("Sybase");
cust.setPhone("777-8888");
cust.save();
cust.submitPending();
<PkgName>DB.synchronize();
When i execute the code i get exception in save method. When i debug, I got the exception at KeyGenerator.generateId()  method.
Regards,
Nithya
Edited by: Nithya on Aug 9, 2011 12:24 PM
Edited by: Nithya on Aug 9, 2011 12:25 PM

Similar Messages

  • SUP 2.0 Update operation Failing

    Been banging my head against the wall with this all day:
    I have an MBO that joins two tables together - sales_order_items and product - from the sampledb
    I have an update operation that runs fine standalone, but fails to execute when I try to test it in the MBO test execute wizard.
    here is the sql for the update:
    UPDATE sales_order_items soi, product p
       SET p.name = :name,
           p.description = :description,
           soi.quantity= :quantity,
           soi.ship_date= convert(varchar, :ship_date, 121)
    WHERE soi.prod_id = p.id
       AND (soi.id = :id)
       AND (soi.line_id = :line_id)
       AND (p.name = rtrim(:old.name))
       AND (p.description = rtrim(:old.description))
       AND (soi.quantity = :old.quantity)
       AND (soi.ship_date = convert(varchar, :old.ship_date, 121))
    It is failing with the following (from the workspace debug window):
    java.lang.RuntimeException: Failed to execute EISOperation.
            at com.sybase.uep.tooling.eis.BaseEISOperation.execute(BaseEISOperation.java:283)
            at com.sybase.uep.tooling.eis.BaseEISOperation.execute(BaseEISOperation.java:165)
            at com.sybase.uep.tooling.eis.JdbcEISOperationImpl.execute(JdbcEISOperationImpl.java:190)
            at com.sybase.uep.tooling.ui.dialogs.preview.ExecuteSection.getRecordSet(ExecuteSection.java:289)
            at com.sybase.uep.tooling.ui.dialogs.preview.ExecuteSection.access$300(ExecuteSection.java:75)
            at com.sybase.uep.tooling.ui.dialogs.preview.ExecuteSection$3.run(ExecuteSection.java:192)
            at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
    Caused by: com.sybase.vader.da.jdbc.MinCheckAffectedRowCountException
            at com.sybase.vader.da.jdbc.JdbcCheckAffectedRowCount.execute(JdbcCheckAffectedRowCount.java:27)
            at com.sybase.vader.service.interaction.PipelineCompositeInteractionOperation.execute(PipelineCompositeInteractionOperation.java:55)
            at com.sybase.uep.tooling.eis.BaseEISOperation.execute(BaseEISOperation.java:265)
            ... 6 more
    I read that the EIS data source and the MBO attributes need to have the same character length and I have confirmed that this is the case. Still failing.
    Does anyone have any ideas on what the issue is?

    I'm getting exactly the same error.
    What do you mean by a stored procedure? How do you pass the parameters from the UPDATE operation to the stored procedure?
    Anyway I don't see why this is failing... It's an error known by Sybase, I found it here:
    [http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc01206.0200/doc/html/mqu1254774265030.html]
    But I don't understand the explanation of the error that they give...
    Can anybody help me?

  • How can I use the update operation in a VC Model

    Hello experts,
    i try to to use the update operation in my VC model.  I have developed an AS wich return a table. Now i want to update a table row. So I add the update operation to my model. But it doesn´t work. I mapped all attribute between the table and the update service. The event name is submit.
    Another strange thing is: If i try to update in the service browser it cames the error message that the vandatory attribute ... is missing.
    Any ideas??
    Thanks
    Marco

    Hi Marco,
    In this case it is possible that your update service requires a mandatory parameter which you are not providing.
    When you drag your service onto the VC screen, right click on the service and test it.It will give you a clear picture of which parameters are required by the service and besides you can also use some test data to check if the service is working properly.
    Do let me know if this helps.
    Thanks,
    Gaurav.

  • Update Operation Fatal Error when installing Technical Preview Build 10041 Upgrade

    I posted this in the Microsoft Community forums and was redirected here.
    Below is the original post (URL: http://answers.microsoft.com/en-us/insider/forum/insider_wintp-insider_install/update-operation-fatal-error-when-installing/6eaff1b9-0223-4357-afc8-884382590e82 )
    Hello,
    In trying to perform an upgrade install of the Windows 10 Technical Preview Build 10041 (as is the latest available for direct download as of my writing), I am running into a problem I cannot find mention of anywhere else on the web.
    I fall into two categories with regards to this build: A) Product tester who actually needs to test application performance under Windows 10 on bare metal, B) Semi-crazy techie who loves using (usable) beta software as his primary environment ;)
    so it is rather important to me that I get this working on my machine in some non-virtualized respect. I am reluctant to do a full/fresh install if installation problems are happening, because my Windows 8 product key has been f***ed up from the
    start (likely some random database corruption) and I've had to utilize phone support to get around an "unknown error" the last two times I've had to use it. So, for fear of that key completely crapping out on me, I don't want to move to Win10 unless
    I'm confident it will install and I can stick with it (for better or worse) through the end. Problems within the Preview after I install it I can deal with.
    So, I first tried to install the Preview through the standard Windows Update method. The installer took about 7 hours (but from reading lots of internet discussions, stupidly long install times in that range seem to be a common problem with
    this builds separate from it actually failing). During the reboot between the "Setting up Devices" (Or is it Setting up Drivers? I forget) and "Taking Care of a Few More Things" (Again, possibly paraphrased), for about a split second, underneath
    the Windows logo and throbber, some error like this appeared:
    Fatal Error Performing Update Operation # of ##: ERROR CODE
    It only appeared for a fraction of a second, and I had no chance of reading the precise numbers or error.
    However, the installer then seemed to continue, and went until the main circle was at 100%. As soon as 100% hit, however, the screen went black for something like 30min. Then, I briefly saw "Attempting to recover installation" before "Restoring
    your previous version of Windows." And I was, quite impressively considering how far along that installer was, back in Windows 8.1 completely unharmed.
    I tried again by burning an ISO and doing a disc upgrade install. I let that one run overnight and was asleep for the error, but I was back in Win8.1 in the morning, so I can only assume a similar thing happened there.
    As for my system specs, I'm running on a MacBook Pro 9,1 under Boot Camp. I am upgrading from Windows 8.1.2 Pro with Media Center. I have found other online accounts of people quite successfully installing Windows 10 on Macs, so that isn't the issue.
    Does anyone have any clue as to what this error might have been/be, and how I might fix it? Or at least have it on good authority that a fresh installation would be unaffected (meaning it's software-related)? If not, I can try installing to a VHD,
    which would at least let me product test on bare metal, but wouldn't have the harddrive space to be my daily driver and would probably only get used occasionally.
    Thanks in advance to anyone who can help!
    So far, I have the yet-to-be-tried idea of a clean boot prior to installation.
    If anyone here has any more specific ideas, lemme hear 'em.
    Thanks!

    To the individual who proposed this as an answer to my problem: It's not even applicable. I specifically stated that I was trying to avoid doing a clean installation (at least without knowing more about the problem at hand). An answer saying to do the thing
    you're trying to avoid doing is not an answer. You can see my last reply for the current status of this issue. 6-8 hour blocks of time in which I can't use my computer (as is required to install build 10041) aren't super common for me, but I haven't abandoned
    this thread. There have simply been no more updates. If your motivation as a mod was that you simply don't like there being unanswered threads on this forum, then perhaps you could attempt to contribute rather than arbitrarily marking the first reply as an
    answer.
    I will continue to update this thread as I try new things and get more information.
    Thank you.

  • The update operation is not allowed in the current state of the request

    When users have logged a request through the service manager 2012 portal and they go back in to add user input they sometimes receive a message that says " The update operation is not allowed in the current state of the request." The state of the
    request has not changed it is still Active and has not breached its service level .
    I can't seem to find any information about this error and don't know how to troubleshoot it. Any help and advice would be appreciated.
    Thanks
    Sarah

    ok, so they're adding user comments after creating the service request. looks like this:
    the first thing to check is that the user is added to the default, un-scoped "End User" security role, or the custom end user security role they are added to has a scope that includes all work items. The "user input" field adds a user comment related
    to the SR, so the ability to create user comments is required to use this field.

  • Update Operations in a process order

    Hi,
    My task is to update operational level information in a process order via standard function module, can any one help me by providing a function module or a method to update the operations in a process order.
    Thanks in advance.
    Kind Regards,
    Abhi.

    Hi Gabriel,
    No, this function is not released to the customer.
    You can check this by going to the Attributes screen of the function module.  The last field in the General data section shows the release date of a function if it has been released (you can see an example of a released function module by checking any of the BAPI_ function modules).
    Cheers,
    Brad

  • Problem in update operation for duet enterprise 1.0 from SharePoint end.

    Hi Everyone, I have developed a sap netweaver duet enterprise 1.0 to send the data from sap to share point and from share point to sap. The problem is that I am able to test the data successfully from duet system in sap for all the operations  Query, Read & Update and I am getting the required output.
    But from share point end when they are hitting the data for Query, Read & Update operations the query and read operations are successful but the update operation is getting failed. I unable to trigger the break point for update operation. I have checked the log but in that i am getting BULK READ status.
    Can anyone help me out in resolving this issue.
    Thanks in advance
    Regards
    Srinu

    Hi Binson,
    I want to ristrict the crude operation (create, update etc) by giving roles in backend system. i am able to apply restriction at sharepoint end but i don't want that. i want SAP role based security.
    So i want, according to given roles in backend system user is able to do operations at sharepoint.
    Thanks & Regards
    Virender Solanki

  • Update Operation to SAP Failed using BDC Model

    Hi All,
    I am working in Duet Enterprise 1.0 development in SharePoint. At SAP front Query, Read and Update operations have been developed and the corresponding WSDL and Endpoint URLs are generated.
    I need to use these WSDL and Endpoint urls and perform Update operation in SharePoint. For this I need to pass the parameters POSCLKey, CorrelationID, ReleaseCode and PONumber for the update operation.
    I have written the following code:
     using (new Microsoft.SharePoint.SPServiceContextScope(SPServiceContext.GetContext(site)))
    BdcService service =
    SPFarm.Local.Services.GetValue<BdcService>();
                            IMetadataCatalog
    catalog = service.GetDatabaseBackedMetadataCatalog(SPServiceContext.Current);
    //IEntity entity = catalog.GetEntity(ConfigurationManager.AppSettings["NameSpace"], ConfigurationManager.AppSettings["EntityName"]);
    IEntity entity = catalog.GetEntity("http://bccplmoss:9999",
    "Purchase Order V1");
    foreach (KeyValuePair<string,
    IMethod> methods in entity.GetMethods())
    ILobSystemInstance LobSysteminstance = entity.GetLobSystem().GetLobSystemInstances()[0].Value;
    IFieldCollection fieldCollection = entity.GetUpdaterView("UpdatePO").Fields;
    IMethodInstance methodInstance = entity.GetMethodInstance("UpdatePO",
    MethodInstanceType.Updater);
    string Relcode = "V1";
    //string[] parameters = { "1022_7400000011_ZPURCHASE_ORDER_HEADER_SPI_SERV_160", "7400000011", Relcode };
    Identity identity = new
    Identity("1022_7400000011_ZPURCHASE_ORDER_HEADER_SPI_SERV_160");
    IMethodInstance methodinstance = methods.Value.GetMethodInstances()[methods.Key];
                               IEntityInstance
    entityinstance = null;
    entityinstance = entity.FindSpecific(identity, LobSysteminstance);
                                entityinstance.Update();
    Error Details Are:
    Error Occurred in the following line:
    entityinstance = entity.FindSpecific(identity, LobSysteminstance);
    Error Description:  The shim execution failed unexpectedly - The incoming policy could not be validated. For more information, please see the event log..
    Is there any Alternate Method to update the data into SAP through BDC model? Please suggest me at the earliest.
    Thanks & Regards,
    Murali Krishna Tatoju
    Best Regards, Murali Krishna Tatoju SAP Duet Developer

    Hi all,
    Now we are able to pass all the required input data to the update operation
    and no errors exist for this operation. But when we execute the update operation, the PO is not getting updated at SAP. But same operation
    is working fine from DUET-ABAP. As a test, we executed this operation from DUET ABAP front and generated the log (/iwfnd/view_log) log
    has been generated. The same operation when we executed from Sharepoint and when we looked into 14-hive logs, nothing has got generated
    for update operation. 
    Note: when executed this update operation from SharePoint, in /iwfnd/view_log, no logs generated for updated operation.
    Please suggest me a way so that I can sort out this issue.
    Best Regards, Murali Krishna Tatoju SAP Duet Developer

  • How to create new SW component for custome development?

    We are looking to develop custom webdynpros and need to create our own SW components. 
    I've tried to define them in the SLD that the NWDI is connected to and when creating the tracks for the custom development, I do not see our new defined SW when trying to add the SW component to the track.
    Any ideas?  Are we going about this the wrong direction?
    Thanks!!

    Once you add component in SLD if you want to add that component to your track ,there will be a button Update CMS in domain data or track data .click that and it will refresh and fetch your newly created component.then go ahead and add component to your track
    reward points if helpful

  • How to run update operation from MBO

    I need to update the data from MBO update operation.
    but can you guide me for input how to set the personalised key.
    Regard
    Ali

    You have to set the PKs from program. Follow the below steps:
    Create a new key on the screen where custom menu item is created. Click on screen > Keys>Add. Ex. key name "CustomKey".
    From the properties of the menu item created, map the PK with the key created (ie.CustomKey ).
    Write the below code inside custombeforesubmit method inside custom,js file
    hwc.customBeforeSubmit = function(screenKey, actionName, dataMessageToSend) {
         if(screenKey =="Details_Screen" &&      actionName=="menuItemCallbackTimeSheetMBOCallUpdateQuery " ){
           var myNewValue1 = new MessageValue();
           myNewValue1.setKey("CustomKey");
           myNewValue1.setValue(""+value);//Value you got from screen
           myNewValue1.setType("TEXT");
           var mvc = dataMessageToSend.getValues();
           if( mvc ) {
           mvc.add( myNewValue1.getKey(), myNewValue1 );
    Midhun VP

  • Blackberry Application - Custom Development

    Hi,
    I had created an application which uses the code generated from the MBO of Sybase Unwired Platform as datasource and I need to create the screen by custom coding. The aim is to display the list of PurchaseOrder Number in the first screen and when clicking on a particular purchase order number, it should show the details in the next screen. Now insead of display the po number in the first screen, it is displaying as
    <packagename>.<DB>@493e1
    <packagename>.<DB>@493e2
    <packagename>.<DB>@493e3
    But when double clicking this, the details are being displayed correctly. I had used KeyFilterField for displaying the array of po number in the first screen. Kindly help me to display the value of the po in the first screen.
    Thanks and regards,
    Rinzy Deena Mathews
    Edited by: Rincy Deena Mathews on May 13, 2011 5:14 PM

    Hi Hong He,
    Thanks for the response.
    I was doing the exercise of Custom development of Blackberry application using the following link. [http://infocenter.sybase.com/help/index.jsp]. As a part of this I had created a mobile application project named SUP101 in the sybase Unwired Workspace. As per the exercise in this link, i use the Customer and Sales_order MBO provided by the Sample database. After deploying the MBO to the unwired server, the next i need to do is the generation of code for this MBOs. Then i need to upload these codes to the Blackberry plugin for ecplise and need to generate the UI codes for the application. But during the creation of the generated code for the MBO, in the SUP workspace by selecting the project SUP101 and choose Generate code, I got stucked with an error.
    Error (1 Item)
      net cannot be resolved     SUP101DB.java     /SUP101/Generated Code/src/SUP101     line 65     Java Problem
    The error is in the SUP101DB.java file which got created during the time of code generation.
    _appName = net.rim.device.api.system.ApplicationDescriptor.currentApplicationDescriptor().getName();
    I am using SUP 1.5.5 version.
    Kindly help me to solve this issue.
    Thanks and regards
    Rinzy Deena Mathews
    Edited by: Rincy Deena Mathews on May 5, 2011 11:21 AM

  • Do SQL pros write seperate stored procedures to handle Save and update operations?

    hi friends,
    Currently i'm bit confused with the industry standard of writing store procedures for save and update operations. I have sees people write separate stored procedure to handle save and update operations even they have to write complex queries. Also I have
    seen people writing one store procedure to handle both Save and Update operations even when the queries are complicated. when I asked them why they do it, they said why should waste time on writing another query to update instead write one save store procedure
    to handle all.
    In here there are SQL Pros, Gurus, what would say about this?
    what is the actual industry standard with stored procedure to perform save and update operations, do you write separate ones or do both in one?
    thanks
    I use Visual studio 2012 Ultimate and SQL server 2008 developer edition!

    >what is the actual industry standard with stored procedure to perform save and update operations
    There is no industry standard. Guideline though you want to be happy with the sp-s; same for your peers.
    As noted above the MERGE command is like a Swiss Army knife; it can perform INSERT, UPDATE & DELETE
    in one (huge) statement.
    Make sure you pick good names for the sp-s, document the parameters and comment the logic if any.
    Format the stored procedure for readability:
    http://www.sqlusa.com/sqlformat/
    Kalman Toth Database & OLAP Architect
    SELECT Query Video Tutorial 4 Hours
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • How to get my custom controller updated with the global custom controller?

    Hi all,
    I'm new to CRM Web UI and need some advice from the expert. Currently I'm working on component ICCMP_BT_DATES and noticed something weird with this component. When this component is first launch it display the dates of a service ticket correctly. However when I navigate to another screen, save a new ticket and back, the dates are not reflected. When I went in and debug the component, I noticed that the context is still tied to the previous ticket. I think the custom controller is not updated with the latest from the global custom controller.
    My question is how do I get my custom controller updated with the latest.
    Regards,
    Ricky

    You have to bind your custom controllers context node to the event NEW_FOCUS of the collection wrapper on the global custom controller.
    Best place to do this might be the CONNECT_NODES of the context of your custom controller.
    Get the global CuCo with GET_CUSTOM_CONTROLLER() and then the appropriate context node. Now:
    SET HANDLER yourMethod for lr_global_cuco->typed_context->thecontextnode->collection_wrapper activation iv_activate.
    Of course you have to implement a method similar to ON_NEW_FOCUS as it is on many other nodes.
    cheers Carsten

  • How to register custom report under Custom Development Application

    Hi 2 all
    How to register custom report under the Custom Development application in R12 vision DB, and also confirm location/folder of Custom Development application in R12.
    Thanks
    Zulqarnain

    Hi,
    You may or may not need to "register" the workflow - it depends on the changes that you made and which Item Type you modified. Some applications are essentially hard-coded to use a specific item type and process, some hard-coded to use an item type but you can configure the process to use, and some allow you to specify which item type and which process to use.
    Without knowing exactly what you have done, though, there is no specific advice that anyone can give you here on what you need to do, apart from to ensure that you have saved the new definition to the database.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://www.workflowfaq.com/blog ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • Problem in Wfetch client for Update operations

    Hi,
    I am using the Wfetch client for the 'Update' operation of an RFC Gateway consumption model . But it seems to always give this error : 'HTTP/1.0 400 Bad Request\r\n'
    I have passed only those fields that have been exposed in the GW Data model. Is there anything else that needs to be taken care of ?
    The read and query operations are executed successfully though.
    Thanks,
    Shubhada

    Hi Shubhada,
    Just recheck two things in Wfetch with below details.
    1. Check the path. It should be below formate for update operation
    Verb : Put
    Path:  /sap/opu/sdata/sap/<CONSUM_MODEL>/<data_model>Collection(value='  ',scheme_id='<DATA_MODEL>',scheme_agency_id='  ')?sap-client=< >&$format=xml
    Above formate you can take from Read operation which you already executed successfully.
    2. Check the XML formate on right handside in Wfetch it should be header & body with below details.
    Xml Formate:
    x-requested-with: XMLHttpRequest\r\n
    \r\n
    <?xml version="1.0" encoding="utf-8" standalone="yes"?>\r\n
      <entry xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom">\r\n
          <content type="application/xml">\r\n
            <m:properties>\r\n
       <d:value> </d:value> \r\n
      <d:scheme_id> </d:scheme_id> \r\n
      <d:scheme_agency_id> </d:scheme_agency_id> \r\n
    Just copy from read operation Read operation which you already executed successfully. And update the fields what you required.
    </m:properties>\r\n
          </content>\r\n
    </entry>\r\n
    Hope you this will help above information.
    Thanks & Regards,
    Mahesh Devershetty

Maybe you are looking for

  • The case of the disappearing Movies?

    OK, just got a new 22" IMac and Sync'd it up to the Apple TV. It started syncing and I went to sleep as I knew it would take hours.... Well when I checked it in the morning the Apple TV would not show up in the devices. So I updated everything on bot

  • Need help with Regular Expressions

    This is my XML code *<name>J. E. O'Rrrrrr, S. Mmmmmmmmmm, B. G. Mmmmmmmm, A. B. C. Xxxxxx Yyyyy, A. B. C. Zzzz and C. R. McCcccc</name>* This is my source code Regex = Pattern.compile("<name>.*?</name>"); RegexMatcher = Regex.matcher(fetchWholeFile);

  • IPhone ringer

    Why doesn't my iPhone 4 ring when calls are received?

  • Text Dataload from Flatfile

    I have an info Object,I am getting 01 key and Name Description in that Text table, I have another key 1 description Name2 I want load the text using flatfile,is it possible  to load the text data to that info Object,my IO is char(2), Ex: 01 Name 1  N

  • Comments on web sits photos?

    Help, I am not able to add comments om my web photos