Error when updating data in a form based in a view

Hi:
i have 5 tables for enterprise data (telephone, fax and so on). i want to create a form based in all those tables, so i create a view over all the 5 tables and create the form. but when calling the portlet and trying to alter (update, insert, etc.) the data i get this error. Seems that i missed to do something with my tables but i don't know what does that non key-preserved thing mean.The error is the following:
Error: Cannot link to the module: 1901051912 ORA-01445: cannot select ROWID from a join view without a key-preserved table (WWV-16062)
An unexpected error occurred: ORA-01445: cannot select ROWID from a join view without a key-preserved table (WWV-16016)
An unexpected error occurred: ORA-01445: cannot select ROWID from a join view without a key-preserved table-SELECT ROWID, IDBASE,NOMBRE,NOMBRE_FISCAL,NOTAS,BAJA,RETENCION,PREVISION_PAGOS,IVA,CIF,ID_DIRECCION,IDBASE_DIRECCION,CALLE,NUMERO,PISO,MANO,CODIGO_POSTAL,CIUDAD,ID_TELEFONO_EMP,IDBASE_TELEMP,TELEFONO_EMPRESA,ID_FAX_,IDBASE_FAXEMP,FAX,ID_EMAIL_EMP,IDBASE_EMAILEMP,E_MAIL FROM PTSS.A_VISTA where IDBASE=1 ORDER BY ROWID ASC (WWV-16016)
Any help will be welcomed.
Thanks in advance.
Regards. Urko.

You cannot update, insert, or delete records from a form that's based on a view. That is because rowid is not in the view, so it cannot lock records.

Similar Messages

  • SQL Error when adding data with UDO + Form

    Good morning, friends.
    Initially, I apologize for any mistakes in my English.
    I am developing an addon for a client and now I came across a problem that started happening about 5 days ago:
    I customized a MasterData postcodes in B1, I created a UDO (oCNSTCEP) and bind to a form created by the Screen Painter. It is noteworthy that this program has been operating without any problems in the customer environment for at least 3 months. Finally, for reasons unknown to the system now has to give the following message when I insert a new record:
    [Microsoft] [SQL Server Native Client 10.0] [SQL Server] Conversion failed When converting the nvarchar value 'oCNSTCEP' to data type int. (CINF)
    The strange thing is that the record is written into the UDT corresponding to the UDO. But the error message is given, giving the user the impression that the routine was not completed successfully.
    Yesterday you told me what is happening the same error in another form, ie, the way any given recording through UDOs are giving problem.
    I searched for this post in SDN and the maximum that I discovered is that it could be happening because of the variable @ object_type in SBO_Notification be as int instead of being as nvarchar (20). I checked the stored procedure and @object_type is nvarchar(20) type.
    I would like to help for a solution to this problem. Since now, thank you!
    Sincerely,
    Junior

    The error is coming from the stored procedure and is easy to fix,
    Anywhere where you check the @object_type, you need to put the value in single quotes.
    e.g if your stored proc includes both of these:
    IF @object_type = 17
    IF @object_type = 'oCNSTCEP'
    It will fail with the error you mentioned. But if you have:
    IF @object_type = '17'
    IF @object_type = 'oCNSTCEP'
    It will work.

  • ORA-02070: Error when updating a SQL Server table thru an Oracle View

    I have a SQL Server table TIMESHEET which contains a number of VARCHAR and NUMERIC columns plus a DATETIME column.
    Only the DATETIME column is giving me trouble.
    On the ORACLE side I have a view which selects from the SQL Server table but in order to get the SELECT to work, I had to either put a CAST or TO_DATE function call around the DATETIME field
    Below is the relevant part of the 2 view definitions I have tried
    create view TIMESHEET as
    SELECT
    "TsKeySeq" as TS_KEY_SEQ,
    "EmployeeNo" as EMPLOYEE_NO,
    CAST("PeriodEnding" AS DATE) as PERIOD_ENDING,
    . . . (more columns - not relevant)
    FROM [email protected];
    An update to the view generates this message
    ORA-02070: database OLEMSQLPSANTDAS6 does not support CAST in this context
    create view TIMESHEET as
    SELECT
    "TsKeySeq" as TS_KEY_SEQ,
    "EmployeeNo" as EMPLOYEE_NO,
    TO_DATE("PeriodEnding") as PERIOD_ENDING,
    . . . (more columns - not relevant)
    FROM [email protected];
    An update to the view generates this message
    ORA-02070: database OLEMSQLPSANTDAS6 does not support TO_DATE in this context
    If I don't include either the TO_DATE() or CAST() then I get
    Select Error: ORA-28527: Heterogeneous Services datatype mapping error
    ORA-02063:preceding line from OLEMSQLSANTDAS6
    Does anyone have any idea how to update a SQL Server DATETIME column thru an ORACLE view?

    You can't cast accross heterogenious databases and there is no need to. HSODBC treats SQL Server DATETIME column as DATE. For example, I have SQL Server table:
    CREATE TABLE [Ops].[T_JobType](
         [JobType] [varchar](50) NOT NULL,
         [JobDesc] [varchar](200) NULL,
         [InsertDt] [datetime] NOT NULL CONSTRAINT [InsertDt_00000006]  DEFAULT (getdate()),
         [InsertBy] [varchar](128) NOT NULL CONSTRAINT [InsertBy_00000006]  DEFAULT (user_name()),
         [LastUpdated] [datetime] NOT NULL CONSTRAINT [LastUpdated_00000006]  DEFAULT (getdate()),
         [LastUpdatedBy] [varchar](128) NOT NULL CONSTRAINT [LastUpdatedBy_00000006]  DEFAULT (user_name()),
    CONSTRAINT [T_JobType_PK] PRIMARY KEY CLUSTERED
         [JobType] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON, FILLFACTOR = 100) ON [DATA01FG]
    ) ON [DATA01FG]Now on Oracle side I do:
    SQL> desc "Ops"."T_JobType"@pbods
    Name                                      Null?    Type
    JobType                                   NOT NULL VARCHAR2(50)
    JobDesc                                            VARCHAR2(200)
    InsertDt                                  NOT NULL DATE
    InsertBy                                  NOT NULL VARCHAR2(128)
    LastUpdated                               NOT NULL DATE
    LastUpdatedBy                             NOT NULL VARCHAR2(128)
    SQL> select "InsertDt" from "Ops"."T_JobType"@pbods;
    InsertDt
    18-AUG-08
    09-OCT-08
    22-OCT-09
    18-AUG-08
    19-NOV-08
    SQL> SY.

  • Error when Refresh Data on Webi from Infoview with Preferred viewing locale

    Hi,
    I am getting an error -"An internal error occured while calling 'processDPCommands' API. (Error:ERR_WIS_30270).
    All the universes are translated to German using Translation Manager. I get the above error only when ' Preferred viewing locale' is set to 'German' otherwise the Refresh Data button works fine when the Preferred vieiwng locale is 'Use browser locale'.
    As per the note 1352299 the settings on the Webintelligenceprocessingserver from CMC is adjusted and the heapsize is also adjusted but still the issue is coming up.
    Could anyone please help to resolve this error.
    Thank you & Regards,
    Anima

    hi,
    I have faced this problem earlier and took lot of time for Root Cause Analysis and fixed the issue.
    Root Cause for some of the objects not being translated is provided below:
    If two objects has same translation in German, obviously Universe will not progress further for translation.
    for e.g.
    Objects in English and German
    1.Country  -> de county
    2.Land -> de county
    from the above example, two distinct objects in English have same German translation which makes Universe not accepting the duplicate objects within the same class.
    Similarly, you need to figure out these duplicates at Class/Object/Condition/Hierarchy levels in translated XLIFF file.
    Duplicates can be identified by opening XLIFF file in Excel and use Data Filters etc... This is a manual task.
    Then for identified duplicates provide Other names in XLIFF file such that Universe accepts them.
    For e.g. the above scenario can be solved by adding a trailing space to the 2nd translated object. Adding space is best option because meaning will not be changed w.r.t end user there by eliminating duplicates.
    Regards,
    Vamsee

  • Error while updating data virtual provider data to targets

    Hi,
      We are getting error while trying to update data from virtual cube based on a function module in 2004s.
    It seems that it is complaning about the mapping of 0recordmode to the targets.  has anybody faced this problem?  We are in SP10
    Thanks

    I am sorry its not a cube but a direct update ODS to a basic ODS but both belongs to BCS.  I have generated the export datasource multiple times but still no use.
    The source ODS name (direct update from BCS) is called ZBCS_01Z and the target is called Z_AJ_ODS.
    When I run the load I get "Job Terminated is source system" with message type X.
    Here is some of parts of the dump:
    Information on where terminated
        Termination occurred in the ABAP program "SAPLUCI1" - in
         "MAP_FIELDNAME_BW_2_SEM".
        The main program was "SBIE0001 ".
        In the source code you have the termination point in line 245
        of the (Include) program "LUCI1F02".
        The program "SAPLUCI1" was started as a background job.
        Job Name....... "BIREQU_45J0LGOMXBS8F1LBT44BFHJDD"
        Job Initiator.. "BISWAR"
        Job Number..... 10455800
    Thanks

  • Avoiding concurrency errors when updating a database through AJAX

    What are some strategies for avoiding concurrency errors when updating a database through AJAX. That is, in cases where a given user could attempt to modify the same row in the database with simultaneous requests (say, that he updates one column with information with an AJAX call, then immediately submits a form that updates the same row), what are some good ways yo prevent the two updates from colliding? On the JavaScript side one might make the AJAX call synchronous, but I question whether that is the best way to do it. Has anyone else confronted this?

    Well, since no one seems to have any ideas so far, I'll throw in my two cents worth.
    I'm not too familiar with AJAX so my advice may be limited.
    I suggest you do a google search on Optimistic concurrency database to get some ideas on how to handle it.
    If your update/insert/delete query is thread safe, then even if the same user double clicks the button fast enough to immediately have another update to the same record, then the first update will complete before the second one is carried out. Therefore no harm is done since he is just updating the same record. Since a typical update/insert/delete takes only a few milliseconds (querying may take a lot more time), its not likely he can click the button that fast. (I assume your using connection pooling for speed).
    The trouble comes up when two people call up data from the same record in different browsers. The first one updates/inserts/deletes the record. Now the other user is looking at old data. When he updates/inserts/deletes, there is a problem. One way to handle this is to keep a copy of all the fields from that record in each user's session scope when they first fetch it from the database (example: oldName). Then when you go to update some time later, to this:
    sql= update person set name=newValue where personID=3344 and name=oldName
    Note oldName is from session scope.
    If name in the database has changed, the update will not occur and will return 0 records updated. If it didn't change, it will update.
    Note your update function should not throw an exception if it cant update, it should return false. Return true if it worked.
    Example: public boolean updateName(String name)
    Similiarly, your insert should not throw an exception if the record already exists, it should return false meaning it cant insert.
    Exaple: public bolean insertName(String name). Same thing with delete function.
    If a record cant be updated due to someone else updating the record while the user was looking at data, return a message that it wasn't updated due to that problem. Then show the user the new value in the database ask him if he wants to overwrite the new change.
    Note even if you show 100 records on the JSP, only update the ones that have changed and not all 100. This way, its not likely he has updated the same records someone else has altered. Less likely a colision compared to updating all 100.
    If your updating/inserting/deleting more than 1 record (say, 3), then you should look into setting up a transaction in addition to all the above and rolling back all of them if one fails.
    Reading the section on databases from http://www.javapractices.com/home/HomeAction.do may also help.

  • Error when updating Playbook OS version via Blackberry Desktop Manager

    Greeting,
    I have a batch of old playbooks which having the stack charging issue, but I found that I can update the OS to the newest version (2.1.0.1917) via Blackberry Desktop Manager, then the charging algorithm will be changed to the updated one and go over this dead battery issue. I was able to do so successfully in the past week smoothly on several devices.
    But since this Monday, the Desktop Manager is saying "An updated Blackberry Desktop Software component must be installed before you can continue" when downloading the Desktop software and will appear "There was an error updating your software, an error has occurred while downloading the Blackberry Desktop Software.Please try again." and preventing the process. Seems there are some change on the server side starting this week which has caused this problem, but there's no error code to locate the exact issue.
    I tried on 2 different computers as well as completed uninstalling and re-installing the Desktop manager, also tried to disable the automatic update as been advised in some threads. So no clue how to deal with it for now. It will be highly appreciate if some one can share some idea.
    I've attached the step by step screenshots for reference, where you can find here:
    http://forums.crackberry.com/blackberry-playbook-f222/error-when-updating-playbook-os-version-via-bl...
    Thanks,

    BLock wrote:
    Sorry I can not help you with your problem but perhaps you can help me.  
    Can you advise where I can find info on "disable the automatic update"?
    just ignore the update if you dont want it on the playbook
    for reloading the OS
    First I would like you to do a Back Up of your PlayBook using your computer and BlackBerry Desktop Software.
    This can be downloaded for free from http://us.blackberry.com/apps-software/desktop/
    After the Back Up is complete I need you to unplug your PlayBook and then push and hold down the Power Button until the unit Force Powers Off.
    Now, while Desktop Software is still open on your computer and the PlayBook Powered Off, Connect the PlayBook to your computer.
    You should see and error screen from Desktop Software pop up that has the options to Retry, Update, or Cancel.
    QUICKLY choose the Update option.
    This will erase all the information off of your PlayBook and Re-Write the Software back onto it. Once it's complete your PlayBook will need to go back through the setup wizard, and you can then perform a restore using Desktop Software to return your information. The only thing that won't come back after the restore are the apps that you downloaded from App World but they can be easily Re-Installed using the My World feature in App World.
    Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
    Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
    BESAdmin's, please make a signature with your BES environment info.
    SIM Free BlackBerry Unlocking FAQ
    Follow me on Twitter @knottyrope
    Want to thank me? Buy my KnottyRope App here
    BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V

  • Error Loading Hierarchy Error when updating Idocs in Source System

    Hello  Friends,
         I am loading  hierarchy data  using Info pac into  0FUNDS_CTR . I have selected  a hierarchy under hierarchy selections tab  in the Info pac .
    All Partner profiles in WE20 seems OK .   But When I loaded data , throwing errrr message  as below
    Error when updating Idocs in Source System
    Diagnosis
    Errors have been reported in Source System during IDoc update:
    System Response
    Some IDocs have error status.
    Procedure
    Check the IDocs in Source System . You do this using the extraction monitor.
    Error handling:
    How you resolve the errors depends on the error message you get.
    When I checked in TC WE05 says that  IDoc: 0000000000355113 Status: Error during syntax check of IDoc (outbound) with status 26 .
    Please advice .
    Many thanks

    Hi  Krishna4bi,
    Actually we will monitor idoc status in BD87 in SAP BI As well ECC , while extracting the data from source sytem  if any idoc struck we will manually process in BD87 , But you are telling that while loading the datasource the error occurred , so please check once in ECC side . Otherwise see how many packets are still process, make it red that infopackage and do manually update.
    Hope it helps,
    By,
    Praveen Yagnamurthy,
    SAP BI Consultant,
    Blue Marlin Systems-INDIA.
    http://bluemarlinsys.com/bi.

  • Error when updating Idocs in Source System - Urgent

    Hi Team,
    When i was loading the data from SAP R/3 to BW, i was facing the error "Error when updating Idocs in Source System" (0 From 0 Records).
    When i check in the Environment>Transaction RFC->In the Source System, it was displaying the error--
    <b>" Import container contains errors (are any obligato) in the Function Module: IDOC_ERROR_WORKFLOW_START_R".</b>
    Can any one please help me to solve this error.
    This is am Urgent requirement for me to deliver.
    Thanks & Best Regards,
    Venkata.

    Hello VenkaTa,
    How r u ?
    The workflow settings are not proper it seems. Ask the BASIS people to correct the Work Flow Settings. Then try Updating the IDOCs manually.
    Also check the Inbound and outbound IDOCs in the Source system. The outbound should contain some warnings or errors.
    Best Regards....
    Sankar Kumar
    +91 98403 47141

  • Error when updating Idocs in Source System

    Hi All,
    We did a recent copy from QAS to DEV,after which am unable to run my process chains ,the load status still showin yellow signal,whereas job is getting finished but am unable to load datas to the targets. Am getting the following error message when i see the display message in process chain.
    System Response
    Some IDocs have error status.
    Procedure
    Check the IDocs in Source System . You do this using the extraction monitor.
    Error handling:
    How you resolve the errors depends on the error message you get.
    Error when updating Idocs in Source System     
    Could anyone please let me know what can be done ?
    Thanks
    con

    Hello All,
    I have same problem but its RESOLVED by the following process.
    Step - 1
    execute  the Function module "SCP_LANGUAGES_IN_INSTANCE".  It may or maynot give some output. Just note if it give the output
    Step - 2
    in Transaction SE38 execute the program "RSCPINST".
    Just Click on the Activate button (dont select anything).
    Step - 3
    Again do the same thing specified in Step - 1.  Now it will give the output saying that Language is DE.
    So by the above procedure my issue is been resolved.
    Regards
    Sankar

  • Error when sending data request

    Hi All,
       i have scheduled info package for different type data sources in bi 7.0, for this i am getting the data from  ecc 6.0 . all of this schedule's showing  the status "error when sending data request" with the following details.
    status
    diagnosis
    the request idoc could not be sent to the source system using rfc
    system response
    there is an idoc in the warehouse outbox that did not arrive in the ale inbox of the source system
      in step by step analysis it is showing
       rfc to source system successful showing with ash status
       data selection successfully stated  and finished ? show with red status
    in that details tab
    request : showing with green status
    everything ok
    extraction :showing with red status
    missing messages
    transfer(idocs and trfc) : missing messeges
    processing(data packet) : no data
        it is showing technical status with red as processing overdue
                           processing step call to source system
       so it is showing error with 0 from 0 records.
    please any body could help me for solving this error.
    regards,
    naveen.

    Hi
    Seems you have connectivity issues between the Source system and Bi system.
    You need to check whether you have data on R/3 side via RSA3 with Full / Delta Update Modes with Target System as your BI system.
    RSA13--Source System -- Right click Connection parameters/check/Restore/Activate again Say Replicate All Data Sources (If Possible , provided if you have time because it consumes lot of time )
    You need to check the tRFC Queue SM58/59 for any Stucks and WE19/20 for IDocs.
    Much of BASIS Issue .
    Hope it helps and clear

  • Error when using data postion delay

    I obtained this error when using data position delay. Can anyone please
    tell me the reason why I can not configure the delay to be between 0.7
    and 0.8.
    Possible reason(s):
    Driver Status:  (Hex 0xBFFA403F) Unable to configure requested delay property given the current clock rate.
    Ensure that the delay value specified is within the valid range for the
    frequency specified or do not configure property for delay operation.
    Device: PXI1Slot2
    Property: Data Position
    Sample Rate: 40000000.0
    Requested Value: 0.71875
    Supported Values: 0.000 through 0.200, 0.300 through 0.700, 0.800 through 1.000,
    Status Code: -219401

    Timothy,
    The 656x devices have a limit on the available data delay values based
    on frequency.  Between 25MHz and 50MHz there are "holes" in the
    available delay range.  Above 50MHz, the full 0 to 1 data delay is
    valid.  If you look in the specifications installed with NI HSDIO
    for the NI 656x, on page 7, Figure 1, there is an illustration showing
    how to compute what the valid range is for the frequency of interest.
    For example, at 40MHz, valid values are:
    0 to 0.2
    0.3 to 0.7
    0.8 to 1
    In the error message posted below, you tried to input a value of 0.71875 which is not within these ranges.

  • Error when updating to 4.2

    My Ipod Touch is on ios 2.2.1 and always get error when updating to 4.2

    I think you have a 1st Gen iPod Touch. You can only go up to iOS 2.2.1 OR you can purchased the iOS 3.1 firmware.
    http://support.apple.com/kb/ht2052
    Purchase the iOS 3.1 Software Update directly from the iTunes Store.
    IF NOT, then try to get a better internet connection (if connect with Wi-Fi) or wait a while and try to reupdate again. If you have to make sure iTunes is up to date (iTunes 11.x)
    Message was edited by: keeferaf

  • Activating DemoContent: Error when reading data target

    I'm trying to activate the SAP Demo cube <i>Purchasing Data</i> (0D_PU_C01). The Grouping Mode is set to <i>In Dataflow Before and Afterwards</i>.
    When I simulate installation, I get the error message <b>Error when reading data target 0D_PU_C01</b> (Message no. RSAU126) in the logs (although in the Collection Area the Simulation Result column is marked with a green check).
    I could find only 2 notes related to this error in the SAP Service Marketplace. SAP note nr. 540873 is about the BW indexing job. Note nr. 587796 (Error in after import of update rules) seams more appropriate, however not thoroughly right. In fact it refers to <b>BW 3.1 Content</b> or <b>BW 3.0B</b>.
    My system version instead is:
    BI_CONT 353
    SAP_BW 350
    The very same problem occurs when I try to activate the SAP Demo <i>Sales and Distribution</i>.
    Any suggestion?
    Thanks, Davide

    Ok, it worked! Now however I have some more doubts.
    1. I can't find the InfoObjects (e.g. 0D_GR_QTY, 0D_PLANT, 0D_MATERIAL, etc.) anywhere in <i>Modeling -> InfoObjects</i>, even if:
      a) I can find them under the <i>InfoSource</i> tree of the <i>SAP Demo</i> Application Component
      b) they appear activated in <i>Business Content</i>
    What's going on?
    2. The newly activated <i>Purchasing Data</i> cube has been added to the <i>Unassigned Nodes</i> InfoArea, and not to a newly created SAP Demo Purchasing (0D_MMPUR) InfoArea, similarly to the structure I saw when collecting the InfoProvider in Business Content. Is this the normal behaviour?
    3. No DataSource has been assigned to any of the InfoSources. I read at:
    http://help.sap.com/saphelp_erp2004/helpdata/en/43/57df37463a126ae10000009b38f842/content.htm
    that the <i>SAP Demo</i> Source System will be used. What I can't understand is if I need to manually create and select this Source System. I thought it would be automatically created and assigned during the Business Content's cube activation. This is not the case. What steps would I have needed to perform?
    Davide

  • Error when updating ODS

    Hi,
      We got an error when updating ODS.
    The error message is "RSDRO_UPDATE_ODS".
    Its fetching all the records and its giving an error "when saving the aggregation information for ODS".
    We rectified the error.
    But how to fix it permenantly, what might be the reason for this error.
    Thanks in advance!!

    hI,
    I executed the program and there are no errors in the program and the program is active, but still we are often getting the error when updating the data in ODS.
    Please suggest me what might be the problem behind this....
    Thnaks in advance!!

Maybe you are looking for

  • Subsequent use of cumulated value in query

    Hi All, We are using BEx Query Designer to create a query having one formula variable “Stock on Hand” as a cumulated value (along the columns).Now we need to use this cumulated value in another formula variable. Is this possible to do? If not could y

  • Acrobat X is freezing whenever I try to print a Fillable form.

    This issue has been happening in the past couple of months.  How can I resolve this? 

  • Dislay res too big & won't reset in prefs

    The display on my PB 12 G4 1.5, loooks as if it's displayng @ 600x800 but it is set at 1024x768. In prefs I've changed the res down and it gets even bigger but doesn't come back to nrmal when reset to 1024. I normally run a 20' apple LCD from it mirr

  • Inbound idoc monitoring

    Dear all What tcode use for inbound idoc monitoring when data is transfer from one sap system to other sap system Thanks Amit

  • Persistence by reachability with FK in PK

    Hi,      I have a question concerning persistence-by-reachability in the following scenario (also see code, log in attachment): + A composite aggregation between Attribute and AttributeType (Attribute cannot be created without a valid Type) is mapped