Error while saving the records in the database

Hi,
I am running into a wierd error.
I have built a new page which contains the information about the employees. Some of the fields are updatable fields. The page shows the details of the person who logs into the page.
I am not using EO in this page. The data is queried from the database from VO and displayed in the page and when the records are updated, they are saved in the databased using pl/sql procedure which is
being called from AM. So i am basically not using VO to save the records in the database.
The error which i am getting is,
If 2 users are trying to update the page at the same time, user A's details are updated in user B's page.
This is really causing the issue. Any help is greatly appreciated.
Thanks in advance.
PK

I have posted the code used along with the dialog page. Please review.
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"Pavan, Start1",OAFwkConstants.STATEMENT);
if (pageContext.getParameter("XYZBack")!=null)
pageContext.setForwardURL("OA.jsp?OAFunc=OAHOMEPAGE"// OAWebBeanConstants.RETURN_TO_MENU_URL also tryed this , same error
,null
,OAWebBeanConstants.KEEP_MENU_CONTEXT
,null //not needed as we are retaining menu context
,null // no parameters are needed,true //retain AM,OAWebBeanConstants.ADD_BREAD_CRUMB_YES
,true
,null
,OAWebBeanConstants.IGNORE_MESSAGES);
if(pageContext.getParameter("XYZUpdate") !=null)//The fields and their values are loaded as soon as the update button is clicked. We do this before calling the oadialog page so that the values are not lost
OAViewObject EmpDetailsVO3 = (OAViewObject)OAAppl.findViewObject("XYZPersInfoVO");
OARow EmpDetailsRow3 = (OARow)EmpDetailsVO3.first(); //Bringing the control over to the first row which is nothing but the displayed row.
if(EmpDetailsRow3 !=null)
s_workphone = EmpDetailsRow3.getAttribute("WorkPhone").toString();
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"workphone is: "+s_workphone,OAFwkConstants.STATEMENT);
s_fax = EmpDetailsRow3.getAttribute("WorkFax").toString();
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"Fax is: "+s_fax,OAFwkConstants.STATEMENT);
s_building = EmpDetailsRow3.getAttribute("Building").toString();
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"Building is: "+s_building,OAFwkConstants.STATEMENT);
s_room = EmpDetailsRow3.getAttribute("Room").toString();
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"Room is: "+s_room,OAFwkConstants.STATEMENT);
s_box = EmpDetailsRow3.getAttribute("Box").toString();
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"Box is: "+s_box,OAFwkConstants.STATEMENT);
s_preferedname = EmpDetailsRow3.getAttribute("KnownAs").toString();
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"Preferred name is: "+s_preferedname,OAFwkConstants.STATEMENT);
OAException OAExcep1 = new OAException("PER","XYZ_UPDATE_DETAILS");
OAException OAExcep2 = new OAException("PER","XYZ_UPDATE_MESSAGE");
OADialogPage OADialogPG1 = new OADialogPage(OAException.WARNING,OAExcep1,OAExcep2,
OADialogPG1.setOkButtonToPost(true);
OADialogPG1.setNoButtonToPost(true);
OADialogPG1.setOkButtonLabel("Yes");
OADialogPG1.setNoButtonLabel("No");
OADialogPG1.setOkButtonItemName("DoOk");
OADialogPG1.setNoButtonItemName("DoNo");
OADialogPG1.setPostToCallingPage(true);
pageContext.releaseRootApplicationModule();
pageContext.redirectToDialogPage(OADialogPG1);
else if(pageContext.getParameter("DoOk") != null)
OAApplicationModule EmpDetailsAM = pageContext.getApplicationModule(webBean);
Class[] paramtypes = {String.class, String.class, String.class, String.class,String.class,String.class,String.class};
Serializable[] params = {s_personid,s_workphone,s_fax,s_building,s_room,s_box,s_preferedname};
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"personid is :"+s_personid,OAFwkConstants.STATEMENT);
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"workphone is :"+s_workphone,OAFwkConstants.STATEMENT);
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"workfax is :"+s_fax,OAFwkConstants.STATEMENT);
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"building is :"+s_building,OAFwkConstants.STATEMENT);
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"room is :"+s_room,OAFwkConstants.STATEMENT);
if(pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT))
pageContext.writeDiagnostics(this,"preferredname is :"+s_preferedname,OAFwkConstants.STATEMENT);
pageContext.releaseRootApplicationModule();
OAAppl.invokeMethod("TransactionCommit",params,paramtypes);
OAAppl.invokeMethod("initDetails");
throw new OAException("The Building and Phone Information have been saved successfully"
,OAException.INFORMATION);
thank you

Similar Messages

  • Error while saving interactive pdf form:The document could not be saved.

    Hello,
    Can anyone please help me here.
    Not able to save the pdf form.
    I have interactive form which contains static fields,text fields,Document digital signature and a submit button.
    After filling and signing the form it will ask for saving the form.But saving is giving error.
    Error : The document could not be saved.There was a error reading the document(26).
    Can anyone please tell me why i am getting this error.
    Thanks in advance,
    Menaka.H.B

    Hello,
    Integrated into WD application means -> Interactive form generated in SFP transaction is used in abap webdynpro application.
    Offline scenarion -> Since it is an interactive form, user will fill the form offline and submit it by email.From the webdyn pro appliaction user will download the form to the local desktop.Fills it offline and submits the form.
    Now the interactive form generated directly from sfp tcode is working fine.I can fill the form,Sign it, save it and submit the form.
    But the form downloaded from the WD application cannot be saved and is not allowing to dogitally sogn the form.
    Its giving error The document could not be saved. there was a problem reading the document(26).
    Thanks and Regards,
    Menaka.H.B

  • Error while saving invoices or clicking the invoices tab in R12

    Hi All - We are getting an error in the Payables Invoice Entry screen in R12. We have 4 custom triggers enabled recently and from then we are getting the error ORA-04088: error during execution of trigger.
    APPS.CUSTOM_AP_INV_AFT_TRG in AP_AI_TABLE_HANDLER_PKG.INSERT_ROW <- AP_INVOICES_PKG.INSERT_ROW<- APXINWKB
    with parameters (p_rowid =, p_invoice_id = 31929)
    while performing the following operation:
    Insert into ap_invoices_all
    Any kind of help is really appreciated.
    Thanks,
    Ajay

    Hello Ajaz,
    BPM-70801 is a very generic error that can have multiple causes. Please provide the error log from servers log file. From what I understand, you are using a separate soa_server1, so watch out /your_domain/servers/soa_server1/logs/soa_server1.log
    Regards
    km

  • Error while saving the documents in Transactions MIRO,VA02, VA01, ects

    Hi SAP Gurus,
    i am geting an popup error while saving or after changing the documents in MIRO VA01, VA02 transactions..
    The error is  * " Condition Table Missing : Access JST1 60 ( Pricing Taxes ) " *
    can u please help me out.
    Regards
    Kumar m

    Hi,
    Found a note explaining the significance of these errors.
    It says:
    "NZE-28862: SSL connection failed
    Cause: This error occurred because the peer closed the connection.
    Action: Enable Oracle Net tracing on both sides and examine the trace output. Contact Oracle Customer support with the trace output."
    For further details you may refer the Note: 244527.1 - Explanation of "SSL call to NZ function nzos_Handshake failed" error codes
    Thanks & Regards,
    Sindhiya V.

  • Error while creating a record in a custom infotype

    hi to all experts,
    I have created a infotype with 3 screens . But one of the screen im getting this error while saving a record .The Required screen change cannot be made.

    Im defining using the table pa9005 not the structure p9005
    (is it the same)
    Please help me ....
    Edited by: mohammed  abdul hai on Sep 18, 2009 8:20 AM

  • Error while saving new Version

    Hi,
    I am creating a new version in DRM by using Copy to New feature but I am getting an error while saving that version.
    The version gets created successfully but it does not allow me to save the same and gives the following error.
    Serve was unable to process request--->ORA-02291:Integreity constarint (MDM_SYS_C0047065)-violated - parent key not found
    Please help.

    Hi,
    I am creating a new version in DRM by using Copy to New feature but I am getting an error while saving that version.
    The version gets created successfully but it does not allow me to save the same and gives the following error.
    Serve was unable to process request--->ORA-02291:Integreity constarint (MDM_SYS_C0047065)-violated - parent key not found
    Please help.

  • Error while saving config in MSY

    Hi,
    I am working on taking MSA 5.0 SP7 go-live. I am working in MDW. I posted a SDN post long back regarding the custom partner functions in MSA and got it resolved (followed the note 521871). I am trying to do the same in the PROD system and i am facing errors:
    -> When i goto Cross-Component Settings->Relationship Categoty-> click on NEW i am getting the errors:
      1. 'MTBLLFW-The attribute destination of the business object
          relation type is not valid'.
      2. 'MTBLLFW-the attribute source of the business object relation
          types is not valid'
    But it is allowing me to add an entry. When i save my customer entry i am getting the error :
      3. 'UI_CORE_SAVE_FAILED_STA-Errors while saving'.
    I ran the consolidated prefill for 5.0 and SP07. I followed the same procedure as i did in DEV. In DEV i never got these errors. I was able to create them in the first attempt.
    If anyone has any idea please let me know.
    Thanks in advance,
    Karuna.

    Hi,
    did you already check i.e. compare the customizing subscriptions for both DEV MDW and PROD MDW sites?
    Also you should check & compare the download monitor for CDB load in the CRM system(s).
    I assume sth is missing there (see also your other post).
    Regards,
    Wolfhard

  • Error While saving the tabulator results recording(QE71)

    Hi Experts ,
    through the Tcode QE71 i'm recording the inspection points and the inspection results but while Saving the recorded results , the system is giving error as " No Orignal values " and also as "inspection Pt 99999 of the Characteristics .....is not avaialable".
    What might be the possible reason for the same. But when i'm entering the results through the Tcode QE01 all the results are saved and closed.
    Can anybody help me out of this.
    B'regards
    Krishna

    Hi,
    Can you call your web service using jQuery not in an app successfully?
    As the error message suggests, it might be an error on the server side.
    I suggest you do a simple test to check whether you can call the web service using jQuery.
    Here are two links would provide more information about troubleshooting this error for your reference:
    http://sadomovalex.blogspot.com/2013/08/return-json-from-asmx-when-call-it.html
    http://www.codeproject.com/Tips/761116/Troubleshooting-an-Issue-With-Calling-an-asmx-Web
    Feel free to reply with the test result if the issue still exists.
    Best regards
    Patrick Liang
    TechNet Community Support

  • Error while Saving the report

    Hi,
    i have created some reports which are working fine,
    but now i am facing some errors while saving the files.
    Also the reports does show only one record while there are many records in the database.
    The error messages are as follows:
    REP-1051; Unable to save document to file ' F:\Database\Reports\report1.rdf '.
    REP-1070: Error while opening or saving a document.
    Please help me to find out the exact problem.
    Also tell me how can i show all the pages of Database records in a report( while one record on each page)

    As for the error while saving, you have only one possible thing to try. It it doesn't work, you're sunk.
    Assuming the report was not being newly created, i.e. that it was opened from a file on your system, then rename that file to something else (Report_001_OLD.rdf, for example). Then try to save it - Reports will think it is a new file to be saved rather than an existing file to be updated.
    Again, if that doesn't work, and if you do not have the auto-save option turned on, then you're sunk. You will have just lost all of the work you've put into that report.
    As you'll discover, Reports is not the most robust application ever written.

  • Error while saving the Sales Order

    Hi experts,
        i am getting a runtime error while saving a sales order stating: SAPSQL_EMPTY_TABNAME. It says the field T681-KOTAB could be empty. I would give in more inputs. Someone plz help.
    Thanks.

    I would expect that KOTN521 would be a Database table defined in the ABAP Dictionary that relates to the condition implemented in 521 for the usage specified in that record.
    You should be able to go into the info system, SE84, and search under ABAP Dictionary / Database Tables to see what KOTN521 is.
    Also, since the only Keys to T681 are KVEWE and KOTABNR, and there are two KOTABNR entries with a value of 521, then there must be two different usages (KVEWE) associated with that table.
    If you see what they are, you can check to see what the usages represent.   Based on a lookup, it appears that a usage of N is for Free Goods, A is for Pricing etc.   In our system, we only have A entries.
    What are the usages for the 521 entries?  Do they relate to Free Goods/Pricing???
    Does the table KOTN521 exist in the ABAP Dictionary?
    Answering these questions may get you closer to the answer.
    Can you compare the values in these entries to what you have in different SIDs?
    Is this problem happening in Production, or is it still in a development or Quality Assurance client?
    If it is still in development or Q, then it may be that a recent customization change was made.
    Compare the entries across your systems, if possible.
    Good luck
    Brian

  • Error while saving the excise invoice

    Hi All,
    I am getting the following error while saving the excise invoice.
    No account is specified in item 0000000001
    Message no. F5670
    Diagnosis
    No account was specified for account type "S" in item "0000000001" of the FI/CO document.
    System Response
    The Financial Accounting program cannot process the document.
    Procedure
    A system error has probably occurred in the application you called up. Check the data transferred to item "0000000001" of the FI/CO document.
    I have read all the posts with regards to the error before, however still after doing the required settings I am getting the error. Please let me know for the same.
    Kind Regards
    Atul Keshav

    Dear All,
    The issue stands resolved please find below the required settings which need to be done.
    You need to maintain the following entries in  J_1ITRNACC table
    100 DLFC 01 CR PLAAED
    100 DLFC 01 CR PLABED
    100 DLFC 01 CR PLACESS
    100 DLFC 01 CR PLASED
    100 DLFC 01 CR PLAAT1
    100 DLFC 01 CR RG23AAt1
    100 DLFC 01 CR RG23AED
    100 DLFC 01 CR RG23BED
    100 DLFC 01 CR RG23SED
    100 DLFC 01 DR MSUSP
    Also the table J_1ITRNACC should include entries for GRPO, CAPE, DIEX, EWPO,
    TR6C with subtransaction type 01.
    We need to maintain GL Accounts accordingly in the table  J_1IEXCACC.
    If still the error persists then you need to apply the following notes.
    1018071
    978186
    1032813
    The SAP note 1032813 contains the correction for the program MJ1IINF01
    you will have to apply this manually.
    Kind Regards
    Atul Keshav

  • PSC 2510 - Wireless setup - "Error while saving the settings to the device."

    While trying to setup my PSC 2510 to be wireless I get an error message "Error while saving the settings to the device.". This comes after selecting connecting Through Network, selecting printer device, selecting WEP, entering key, and clicking next.
    PSC 2510
    Windows Vista
    Using latest sfotware from HP to install
    Thanks
    Dennis
    This question was solved.
    View Solution.

    ISSUE RESOLVED .. based on responce from PrintDoc to penn (refrence topic "C4385 Printer - Netgear DGN2000 - wireless setup".
    PrintDoc responce helped me find my problem (to reset network settings on the printer to factory) even though diffrent printer.
    Thanks

  • Error While saving the Production Order

    Dear Experts
    Pls let me know why am getting the below error while saving the production order after release..
    PSFC_STD_LAYOUT does not exist
    Message no. SSFCOMPOSER004

    Dear,
    Please check have you assigned the scheduling profile in work scheduling view of materail master?
    Then go to OPKP check the same scheduling profile where you have activited the On realese execute printing remove this tick mark and then try with new order.
    Or you can do the configuration in Tocde :OPK8 here assign the PSFC_STD_LAYOUT in forum.
    Regards,
    R.Brahmankar

  • Error while saving RTOM based campagin when creating the rules

    Hi Experts,
    My requirement is to configure RTOM in the system. I have created RTOM based campaign and when I maintain conditions in u201CEligibility and Agent skills Rulesu201D assignment block, I am unable to save the campaign. It throws the following error despite maintaining all the required settings in spro.
    u201C Error while saving the rule; Contact technical support
    Error in rule; navigate to rule details screen to correct it
    Data not saved; save log u201D
    Looking forward for your responses.
    Kindly guide me to a way out for resolving this issue.
    Thanks in Advance,
    Shruthi

    Hi Shruthi,
    I know this has been a long while since you posted the question, how did you resolve this error because I am getting the same error.
    Many thanks,
    Garikai.

  • Error while reading file entries from the database

    Hi there,
    We are running a instance of xmii 12 in a VM (VMware) and after somebody shutdown the host machine without shutting down the VM (great idea isn't it?) we keep getting this message when trying to access xMII:
    "Application cannot be started.
      Details:   com.sap.engine.services.deploy.container.ExceptionInfo: Error while reading file entries from the database."
    Any clue? Any suggestion on how we can recover from that?
    Thanks a whole lot,
    Dom
    Server log:
    #1.5 #000C29A3B1F20002000000C400000F2800044829A35270F8#1205243578005#/System/Server##com.sap.engine.services.dbpool.deploy.ContainerImpl####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Info#1#com.sap.engine.services.dbpool.deploy.ContainerImpl#Plain###DataSources or DataSource aliases of 'sap.com/tcmonitoringsysteminfo' application started successfully.#
    #1.5 #000C29A3B1F20002000000C500000F2800044829A3527A6C#1205243578005#/System/Server##com.sap.engine.services.servlets_jsp.server.container.WebContainer####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Info#1#com.sap.engine.services.servlets_jsp.server.container.WebContainer#Plain###application [] Start of application [sap.com/tcmonitoringsysteminfo] finished successfully on Web Container.#
    #1.5 #000C29A3B1F20002000000C600000F2800044829A3527DB5#1205243578005#/System/Server##com.sap.engine.services.deploy####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Info#1#com.sap.engine.services.deploy#Plain###
    Operation startApp over application sap.com/tcmonitoringsysteminfo finished successfully on server 305221750#
    #1.5 #000C29A3B1F20002000000C700000F2800044829A3527E03#1205243578005#/System/Server##com.sap.engine.services.deploy####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Info#1#com.sap.engine.services.deploy#Plain###
    Operation startApp on application sap.com/tcmonitoringsysteminfo finished on current cluster node for 221 ms.#
    #1.5 #000C29A3B1F20002000000C800000F2800044829A3528B49#1205243578005#/System/Server##com.sap.engine.services.deploy####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Error#1#com.sap.engine.services.deploy#Plain###Error occurred while initially starting application sap.com/xappsxmiiear:Error while reading file entries from the database.#
    #1.5 #000C29A3B1F20002000000CA00000F2800044829A352922B#1205243578015#/System/Server##com.sap.engine.services.deploy####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Info#1#com.sap.engine.services.deploy#Plain###The synchronization of applications with DB completed for 39304 ms.#
    #1.5 #000C29A3B1F200040000000200000F2800044829B290A4F8#1205243834341#/System/Server/SLDService##com.sap.sldserv.DataCollector####n/a##0da42150ef7311dcb908000c29a3b1f2#SAPEngine_System_Thread[impl:5]_7##0#0#Warning#1#com.sap.sldserv.DataCollector#Plain###Communication configuration is incomplete. No data transfer possible until corrected.#

    Well thanks for the hint. Actually, the DB was up but corrupted. I managed to solve the bug by re-deploying xMII (using the SDM tool) which kept all my data but redeployed both the config db of (x)mii and the class files.

Maybe you are looking for

  • Multiple apps not working after iTunes 6 install

    ITunes 6.0 and QuickTime 7.0.3 were installed by Automatic Software update. Since then multiple apps including Safari, Mail, and all Dashboard Clients. At first System Preferences was working but has since stopped. All seem to start up but stop after

  • JDBC Configuration

    Hi All, How can I configure Connection Pool for the following case : 1. Machine IOTA has weblogic Server 6.1 installed on Windows 2000 2. Machine COSTEL has ORACLE installed on windows NT with default database name as SANSKRUT What all i have to do f

  • Can't run JSP

    I downloaded Tomcat and I installed. I set the JAVA_HOME and CATALINA_HOME variables to the appropriate values. I have the j2sdk1.4.1_01 installed. Although the http:localhost:8080/ is opening after that I do not know quite how I can run the examples

  • 10.7.4 update causes YouTube and Flash video Errors?

    Since updating to 10.7.4 yesterday, I've noticed that YouTube and other online Flash videos stutter, stop and continue playing, or pause frequently. Has anyone else noticed this bug? I'm using the newest version of Chrome but tried Safari as well and

  • How do I delete apps on my ipod touch?

    How do I delete apps on my Ipod touch, it wont give me the little x option to delete them, could it be because my Ipod has restrictions?