Database Item not getting saved in DB

Hi Experts,
Forms version 10.1.2.0.2 (Production)
Database version :
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
PL/SQL Release 11.1.0.7.0 - Production
"CORE 11.1.0.7.0 Production"
TNS for Linux: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - Production
I have an Database Block say 'Commercials' ,in which there are 15 database items. I enter value in these items and save the values in DB. But the requirement is, upon updation of the values enterd in any one of the 15 items, it should not get updated in DB, instead a new set of values with a new primary key should be inserted into the DB as a new row. To do so, an package is called in the Key commit trigger  and in ON-UPDATE trigger, i give null there, inorder to avoid updation of  values in the same record.
The above scenario works perfectly. Now, I add an new column in DB (as 16th column in Block).   I need only this specific column to get updated.
When i put fnd_message on execution, it fires in the key-commit and says 1 record is applied and saved. But it is not saving in DB. especially that 16th column is not getting updated in DB.
While updating the record, The flow of trigger moves to On- Update through Key-commit..
What can be given in the On-update trigger to make the 16th column to get saved in DB.
Thanks and Regards,
Kanishk

Kanishk,
Can you please show us what code you have written in your On-Update trigger?
Just thinking through the process, I would expect to see some checks to see which columns have been updated so you can determine whether to create a new record (column 1-15) or update an existing record (column 16).  To do this type of thing, you will need to compare the Current Value of the column to the value that was fetched from the database.  Unfortunately, Forms does not have a System Variable that records the status of each item like it does the Record, Block or Form status so you have to perform this comparison yourself.  Thankfully, Oracle Forms does have a built-in that will help with this; GET_ITEM_PROPERTY('ITEM_NAME', DATABASE_VALUE).  The DATABASE_VALUE property returns the value that was originally fetched from the database.  Your comparison would look something like:
IF ( :YOUR_BLOCK.YOUR_ITEM1-15 != (Get_Item_Property('YOUR_BLOCK.YOUR_ITEM1-15',DATABASE_VALUE)) THEN
  --Column value has changed...If Column 1-15, insert a new record
  --If Column 16, Udpated existing record...
END IF;
This is a very simplistic example, but hopefully it will demonstrate what you need to do.  After that, it is simply writting the DML to INSERT or UPDATE the appropriate record.
Craig...

Similar Messages

  • RPM - Custom Fields at Item not getting saved

    Hi,
    I have defined custom fields on RPM Item in the general view. The value is being populated from standard field into these fields. These custom fields are display fields.
    When I save the item the fields are populated with values but these values are not refreshed on the dashboard.
    But when I go back to the item and make some changes in the Item and save, these custom fields values are refreshed on the Dashboard.
    Is there a way to resolve this issue ? I want to have the values getting refreshed immediately on the dashboard without having to go back and make changes in other Item attributes to make these fields refreshed.
    regards,
    Amit

    Hi Amit,
    Please implement the note 1496764 - Item Dashboard Refresh after Editing an Item
    It should resolve the issue.
    Regards
    Amit

  • Workflow message modifications not getting saved into database

    Hello Friends,
    I am working on iProcurement module (11i) and have a requirement to remove the 'View' & 'Edit' links which appear in notification/Emails in Requisition Approval Workflow.
    I found a metalink note "How to Remove Related Application Links From Approval Notifications for AME [ID 1100805.1]" for the same.
    We have to delete some attributes from the workflow message to remove the links but the same is not getting saved in database.
    I am uploading the wft file through Workflow Definition Loader program with the 'force' option. And to check the changes , i am again downloading the file but i could not see the changes.
    Can't attributes be deleted from the message?
    Any suggestions ?
    Thanks...
    Regards,
    Amit

    Hi Hussein,
    Thanks.
    Here are the details :
    RDBMS : 11.2.0.2.0
    Oracle Applications : 11.5.10.2
    OS : Windows XP
    Log :
    Concurrent request completed successfully
    Current system time is 01-DEC-2011 08:29:12
    Oracle Workflow Definition Loader 2.6.4.0.
    Access level: 20, Mode: FORCE
    Uploaded 3 ITEM_TYPE record(s) to database.
    Uploaded 55 LOOKUP_TYPE record(s) to database.
    Uploaded 32 MESSAGE record(s) to database.
    Uploaded 182 ACTIVITY record(s) to database.
    Uploaded 0 ROLE record(s) to database.
    Regards,
    Amit

  • Bom item data - Document assignment not getting saved in table STPO

    Dear All,
                  As per out customer requirement, they want to display assigned drawing documents of Bom items in CS11. But it is not reflecting in cs11 eventhough we have assigned documents in Bom item detail overview Document assignment tab page. Moreover this is not getting saved in table STPO.
                   Waiting for solutions
    Thanks & Regards
    Dhananjay Kulkarni

    Please understand my customers requirement,
                               Presently they are assigning drawing document of each mat in material master. And if they want to see the drawing of each component of bom through Bom maintenance then they double click on component in bom, goes to mat master then additional data then document data and then drawing. In this way they need to open minimim 5 windows, which they want to make minimum 2 windows.
              In bom they are having more than 300 components. This is not possible to define document as component with item category D of so many components. One more idea I given to them is to club all drawings in one document and define that document as component with item category D, but in this way they can't identify  the individual drawing with part name.
              One more idea I given to them is to assign drawing document of individual component in item overview - Document assignment tab page from where they can open the drawing but it needs to open minimum 3 windows. So they are ready to assign drawing document in item overview - Document assignment tab page but they want, it should reflect in CS11 document column, from where they can easily open the drawing document.
              One more thing I observed that, assigned document to item overview - Document assignment tab page is not getting saved in Table STPO. I can't see this field content in STPO, which may be the reason that it is not reflecting in CS11.
             Is anything missing from Document management system?
    Please think and reply friends it's Urgent.
    Thanks & Warm Regards
    Dhananjay Kulkarni

  • While Creation Of SaleOrder Char Values are not getting saved.(V C)

    Hi SAP gurus,
    One of my client can able to create a saleorder but when we go and see in VA03 Display mode,we found Charactrestic values getting miised out.What could be the probale reasons.
    Note: I Have stimulate the required combination as per my client requirement in CU50,here i can able to indentify the Green Sign,but While Creation Of SaleOrder Char Values are not getting saved.
    Awaiting for your valuable reply.
    Cheers,
    Kumar.S

    Kumar ,
    If you assign values in classification view or configuration profile  they will become default for the product, and it willnot be changed in sales order.
    another thing if the item category is incorrect you will not get the configuration pop up at all .
    problem what i understand from your thred is at the time of sales ordeer creation there is some inconsistances in the configuration , may be some condition is not fullfilling.
    If in CU50 the result shown are error free, same configuration should owrk properly in sales configuration process, please again try to create it in sales order with same value assignment also check all the messages.
    see the result of configuration before saving the sales order , i hoep it will work for you.
    I am assuming all the things from SD are properly configured ie item catageory, varient pricing etc.
    Check and revert back.
    Regards
    Ritesh

  • Added new fields in vendor master in xk01 but data is not getting saved

    Hi experts,
    To add new fields in vendor master i have followed the following steps :
    1.) Appended a structure ZRTGS in LFA1 table with required fields and activated
    2.) Added new button in xk01( vendor master ) using spro -> logistics-general -> business partner -> vendors ->
    control ->adoption of customer's owaster data fields -> prepare modification free-enhancement of vendor master record
    Created a screen group ZR and defined label tab pages with function code ZRTGS and saved entries
    3.) Created a implementation for BADIs VENDOR_ADD_DATA and VENDOR_ADD_DATA_CS.
    4.) Created a program with my own subscreen for the required fields
    The button is getting displayed in XK01, XK02 and XK03 respectively. Whenever the button is clicked the subscreen with
    the fields is also displayed. But whenever i try to save the data in either XK01 or XK02 it is not getting saved in to the
    database table LFA1.
    Request your help in this regard.
    Thanks in Advance.

    Hi,
    You may need to check this include .
    EXIT_SAPMM06E_008  -->Import Data from Customer Subscreen for Purchasing Document
    Thanks,
    vamshi

  • Billing document not getting saved

    Hi Gurus,
            I am facing a problem with th billing doument. When I try to save the Billing through VF01, it is going to the screen and showing the line items in it. And when we save, it is generating a billing document number.But it is not getting saved.And when go and see in VF02
    it is showing a message <b>Express document "Update was terminated" received from Author----
    "</b>.
    How to resolve this.PLS help me out in this.
    Thanks in Advance
    Regards
    VASU

    Hi Vasu
    Check whether number range assignment has done.  Most probably, you would not have done that.
    Incidentally, I had also faced similar problem sometime back and after lot of study, I could come to a conclusion that it is because of non assignment of number range.
    Thanks and dont forget to reward if this helps you.
    G. Lakshmipathi

  • Custom fields in Source of Supply screen - not getting saved

    Hello Experts,
    There is a requirement to create 2 customizing fields on Souce of Supply (SOS) screen of Shopping Cart in SRM7.0 and has to be updated in the Backend system (PR,PO etc).
    I have created CUST1 and CUST2 in the standard include - INCL_EEW_PD_PARTNER_CSF (Customer Enhancements to Partner in Doc.) which is being used in the structure /SAPSRM/S_CLL_WD_SUPPLIER (CLL structure for SOS).
    But while creating Shopping cart, these customizing fields are not getting saved and not transfered to backend.
    NOTE:
    1. I refered SAP Note - 672960 , but it has no information abt SOS enhancement.
    2. I have enhanced the backed system accordingly to show these 2 customizing fields in PR and PO.
    3. Webdynpro component for SOS screen is - /SAPSRM/WDC_DODC_SC_I_SOS, and the structure used   is /SAPSRM/S_CLL_WD_SUPPLIER.
    Awaiting the correct answer from you all
    Thanks and Regards,
    Prabhu

    Hello All,
    I'm facing exact same problem.
    Steps followed:
    1. Configuration from SPRO
    Supplier Relationship Management -> SRM Server -> Cross-Application Basic Settings -> Extension and Field Control -> Configure Customer Fields -> Define Customer fields on item Level -> Append for Customer Fields on Shopping Cart Item
    2. Add new fields in Webdynpro: /SAPSRM/WDC_DODC_SC_I_SOS
        View:V_DODC_SC_I_VENDOR
    Still i'm not able to get proper results.
    Please help.
    Thanks in advance.
    Yogesh

  • MessageRadioButton Value is not getting saved

    Hi All,
    I am facing an issue with Radio Button data.
    When the page loads all the "No" buttons will be selected by default.When I select "Yes" radio buttton and click on "Save", all the radio buttons will get reset to "No" and same value will get passed further. Value of "Yes" button will not get saved.
    Please help me in resolving this issue.
    Thanks,
    Akshata

    Give it a shot by trying this. Hope this helps you.
    OAMessageRadioButtonBean personButton =(OAMessageRadioButtonBean)webBean.findChildRecursive("Person");
    personButton.setName("partyTypeGroup");
    personButton.setValue("PERSON");
    personButton.setSelected(true);
    OAMessageRadioButtonBean orgButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("Org");
    orgButton.setName("partyTypeGroup");
    orgButton.setValue("ORGANIZATION");
    To retrieve the value of the Radio button, which is selected use the below
    System.out.println("Radio Button Value : "+ pageContext.getParameter("partyTypeGroup"));
    Also, if on click of button, you should once again set the radio button by calling setSelected() to retain the same look n feel, else, the selection wud jump to the other radio button.
    Basically, developer guide says, that you cannot assign the group name or checked/unchecked value to the Radio button declaratively). For more information read
    Radio Group / Buttons in Developer guide.
    Thanks
    Saurabh
    Edited by: SaurabhAg on Mar 22, 2012 12:58 AM

  • Output type not getting saved in the PO

    Hello Team
    we are facing one issue where output type is not getting saved in the PO.
    we give one output type and than save it , after going back to the PO we see that it is not there.and no output issued
    the PO is released properly and there is no issue , any idea what could be the reason for it

    Hi,
    Check in SU3 t.code, did check box selected u201CDelete After Outputu201D in Spool Control segment in Default TAB
    Also check Partner Function VN maintained in Default values TAB in NACR--- > EF Application for your output type
    Cross check partners {VN, PI, GS) are assigned to your PO output type in Partner Roles per Message Type
    Regards,
    Biju K

  • File not getting Saved on Application Server

    Hello All,
    We created a file in "Automatic Payment Transactions (F110 Transaction)" and are able to save the text file on Local drive. But for our e-banking requirement we need to store this file on our application server. The configuration settings in OBPM4 are already done and now system is picking the default application server path while saving file in "Payment Medium - > DME Administration" transaction. The problem is - although the system is picking the required path of application server but file is not getting saved. The error coming is: File <path> could not be opened (Message Number: FZ231).
    We have checked for 777 authorisations (OS authorisations) for the folder.
    Please suggest that what can be done to resolve th issue.
    Regards,

    What exactly we need to check in Payment program? We are not able to save the file on application server. There is no problem while saving the same in local drive.
    Regards,

  • Inbound Idoc - Date fields not getting saved

    Hello,
    I have created inbound idoc scenario in SAP. I receive Idoc from non SAP system to SAP system.
    then data from IDoc is saved into different tables, for that I have written one function module (attached to process code)
    One of the segments in IDoc type has date as a field. It is of type sy-datum.
    When I receive Idoc in SAP only date fields are not getting saved in tables.
    Is anything specific need to be done for date fields? please advice.

    check which format you are getting into sap and make sure you are coverting in into required format.

  • UWL items not getting cleared after performing action

    Hello
    We are on EP 7.0.
    We are experiencing a strange behaviorin UWL.
    When end users receive workitems in their inbox and they take the appropriate actions, the workitems still stay in the inbox. Normally they should no longer appear.
    I have tried the refresh in the UWL iview but no luck.
    It seems to work in DEV and other landscape. It does no work in Production. The software installation of UWL are the same across all landscapes.
    Is there any other setting that is required. In SAP GUI this is not an issue.
    Any feedback or tips would be helpful. thanks.
    Regards,
    Sunil

    Hi,
    As far as I can remember, this is a known limitation of UWL.
    Please, check this thread : UWL work item not getting cleared
    I am unsure whether you use the correct button the refresh the UWL (it is well hidden!), check the slide 6 in this document :
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20f4843e-314f-2a10-2a88-8c4afa20dda6&overridelayout=true
    Best regards,
    Guillaume

  • Document type created not getting saved

    Hi all,
    In DC10 I created document type and saved but its not getting saved?
    I gave document type as CD and description as COREL DRAW and tried to save it, but its not getting saved and asking to fill the required fields so I filled
    Version no. Inc as   1
    class Type  as      017
    and class  as     cl0001
    and in Field selection:
    Class data as display
    document status as *Display and then tried to save but the save option is in hide mode.
    what is a characteristic and why do we require and how to give the naming convention or numbering to it?
    Because I cant see the previously created chars?
    Please answer
    Thx

    Thanks Aby for answering
    how to name the class and class type ?
    I can see the class types but not class, is it a number or any other name ?
    How to create character and what is the naming convention?
    if I created a class and class type and character for a document type in DC10 then will they be shown in display screen CV03N?
    Thx

  • Load remote images in html mail setting does not get saved. I have to turn it off every time I log in. Is this a bug?

    Load remote images in html mail setting does not get saved. I have to turn it off every time I log in. Is this a bug?

    Plug your phone into the wall charger for at least 30 minutes...make sure you have a sim card in the phone...then:
    Leave the USB cable connected to your computer, but NOT your phone, iTunes running, press & hold the home button while connecting the USB cable to your dock connector, continue holding the home button until you see “Connect to iTunes” on the screen. You may now release the home button. iTunes should now display that it has detected your phone in recovery mode, if not quit and reopen iTunes. If you still don’t see the recovery message repeat these steps again. iTunes will give you the option to restore from a backup or set up as new.
    Make sure you have no anti-virus software running or any firewalls...turn all of that stuff off.

Maybe you are looking for

  • StarWalk no longer supports iPad wifi or iPod Touch

    On April 30 an update to StarWalk for iPad was released that disabled the applications use of the internal compass for wifi only iPads. On May 1 an update to StarWalk for iPhone was released that disabled the internal compass for iPod touches. There

  • How to open a file with a .Ink ending?

    I installed Dropbox (from Dropbox.com) and my files transfered from a windows computer were labeled with the .INK ending> was not able to open them on the mac... any ideas as to how or why?

  • IPhoto can't find iPhoto Library files

    Hi All, I have a older iMac running 10.4, 512MB RAM.  It was running very slowly and reading other posts figured my large iPhoto library (iPhoto 6) was the culprit.  I moved all but 2011 pictures to an external hard drive and deleted files from my iP

  • Export PDF naming issue

    When exporting a file from ID CS4 patched all the way up I getting the wrong file name from files that have saved as with a different version number. For example files with saved as: filename-r4.idd are showing up as filename-r3.idd Ron Smith Inte-Gr

  • Need Few answers

    Hi Gurus... Please help me for the below questions: 1.What are the different means of communicating with different systems in SAP? 2.Explain PO cycle? 3.Difference between a normal report program and Print program? 4.How do you link a Print program a