Updating Amount in DFKKCOHI through FPCOPARA

Hello Experts,
I understand that when transaction FPCOPARA is run for a correspondence (say account statement priniting), it updates the amount field
DFKKCOHI-SALBE. I observed that this amount is pulled from open account balance through standard FM FKK_ACCOUNT_BALANCE_COMPUTE.
Having said that, do we have an option while running FPCOPARA that will allow us to update a separately calculated amount in DFKKCOHI-SABLE rather than the amount calculated through FKK_ACCOUNT_BALANCE_COMPUTE?
The objective here is,  I want to filter out some amount which standard system has calculated and update the filtered amount in DFKKCOHI-SALBE.
Is there any event/exit which allows us to do that?
Thanks,
Dhiraj

Ok. Have got answer to this. This can be achieved in event 702 by replacing standard FMs within it by Z-Function modules and changing the amount within that.

Similar Messages

  • Error while Updating the TIN No through DTW

    Hi,
    When i try to update the TIN Number through DTW .....i'm experiencing the Error--
    DELETING ROWS NOT SUPPORTED FOR OBJECT FISCAL ID'S FOR BP MASTER DATA APPLICATION-DEFINED OR OBJECT DEFINED ERROR 65171
    My Template is like this....
    ParentKey
    LineNum
    Address
    TaxId11
    CardCode
    LineNum
    Address
    taxId11
    S000001
    0
    bo_ShipTo
    1234567892
    What could be the reason for the  error..?

    Hi,
    Please check the following thread:
    http://scn.sap.com/thread/1967643

  • I updated my iphone 5 through Itunes but an error occurred during installation on the phone that read -42110. Now the phone has a usb icon and itunes icon and is not recognized by itunes or my computer (windows 7). I uninstalled and reinstalled. no luck

    I attempted to update my iphone 5 through itunes. Itunes backed up the phone. However, when it tried to install the updated software an error message displayed -42110. Now the iphone is unresponsive with a usb icon with an arrow pointing to an itunes icon. The computer makes a connection noise when I hook the phone to the computer but it does not appear to be recognized. It does not appear in the My Computer section. Itunes does not recognize it either. I disabled my security software. I uninstalled itunes, Bonjour, Quick time, apple updates, Aplle mobile updates ect. I reinstalled Itunes and the program still does not recognize the phone.

    If you uninstalled and reinstalled iTunes, did you follow the steps in this support document http://support.apple.com/kb/HT1923 exactly. Check and make sure.  If you did, then try this support document to get the phone into the Recovery mode. It may take more than one try. http://support.apple.com/kb/HT1808

  • Unable to update payment cards data through ORDERS05 in va02

    Hi all,
    I noticed one thing that in IDOC_INPUT_ORDERS (ie creation of sales order)  we have a bdcdata populated for payment cards (for header in VA01) .But when we are changing sales order by IDOC_INPUT_ORDCHG (change sales order VA02) we have no bdcdata populated for updating payment cards ( like CCNUM ) though we are passing these details through IDOC.
    Can anyone tell me why bdcdata through idoc posting is getting populated in VA01 but not through VA02 . We can change payment card dara manually in VA02  why cant we achieve the same through idoc.
    Please help me as updating payment card data through idoc in VA02 is my requirement .
    Do i need to populate it by writing code in an exit in IDOC_INPUT_ORDCHG.
    Any help is appreciated.
    Thanks and Regards
    Sweta

    Hi,
    Can you please let me know the segment in ORDERS05 Idoc to process the Payment card information and if the standard Function Module can handle the creation of a Sales Order with data for Payment Card.
    We have a requirement to map the Tokenized Number of the Credit Card send from a store front end to ECC mapping via SAP-PI.
    Thanks in Advance,

  • Problem in CRM_ORDER_MAINTAIN for updating amount in line items

    Hi abapers,
    I have  a scenario as follows: i want to update amount  for line items  in a transaction. i use the bapi crm_order_maintain followed by CRM_ORDER_SAVE and bapi transaction _commit . The problem is i loop the itab by passing the trnstn id , prdct code  and new amount.
    i applied the logic as given by rita tan (thread no 4)
    link:[Re: Update Pricing Document with CRM_ORDER_MAINTAIN]
    as per the logic i delete the existing value and insert the new amount . this works fine in the first  loop and in second loop it deletes the existing record but does not insert the new value . It doesn't even give error too. what may be the problem.
    here's a snapshot of the code i have written:
    loop at itab.
    SELECT SINGLE * FROM CRMD_ORDERADM_H
              WHERE OBJECT_ID = WA_ZCMR_UPDATE-Z_OBJECTID
              AND PROCESS_TYPE = P_TYPE.
                    SELECT SINGLE * FROM CRMD_ORDERADM_I
                  WHERE HEADER = CRMD_ORDERADM_H-GUID
                  AND ORDERED_PROD = WA_ZCMR_UPDATE-PRODUCT_CODE.
                  SELECT SINGLE * FROM CRMD_LINK
                    WHERE GUID_HI = CRMD_ORDERADM_H-GUID
                    AND OBJTYPE_SET = '18'.
                    SELECT  * FROM  PRCD_COND
                      INTO CORRESPONDING FIELDS OF TABLE IT_PRCD_COND
                      WHERE KNUMV = CRMD_LINK-GUID_SET
                      AND KPOSN = CRMD_ORDERADM_I-GUID
                      AND KSCHL = 'ZR12'.
                      READ TABLE IT_PRCD_COND
                      INTO WA_PRCD_COND INDEX 1.
                        DELETE  FROM PRCD_COND
                        WHERE KNUMV = WA_PRCD_COND-KNUMV
                          AND KPOSN = WA_PRCD_COND-KPOSN
                         AND KSCHL = 'ZR12'.
                          COMMIT WORK.
                          WA_PRIDOC-REF_HANDLE = '0000000001'.
                          WA_PRIDOC-REF_GUID = CRMD_ORDERADM_I-GUID.
                          WA_PRIDOC-REF_KIND = 'B' .
                          WA_COND_ADD-KSCHL = 'ZR12'.
                          WA_COND_ADD-KBETR = WA_ZCMR_UPDATE-NET_VALUE.
                          WA_COND_ADD-KPEIN = '1'.
                          WA_COND_ADD-WAERS = 'INR'.
                          INSERT WA_COND_ADD INTO TABLE IT_COND_ADD.
                          CLEAR WA_COND_ADD.
                          WA_PRIDOC-COND_ADD = IT_COND_ADD.
                          CLEAR IT_COND_ADD[].
                          INSERT WA_PRIDOC INTO TABLE IT_PRIDOC .
                          CLEAR WA_PRIDOC .
                          WA_CT_INPUT_FIELDS1-REF_HANDLE = '0000000001'.
                         WA_CT_INPUT_FIELDS1-REF_GUID = CRMD_ORDERADM_I-GUID.
                          WA_CT_INPUT_FIELDS1-REF_KIND = 'B' .
                          WA_CT_INPUT_FIELDS1-OBJECTNAME = 'PRIDOC'.
                         INSERT WA_CT_INPUT_FIELDS1  INTO TABLE IT_CT_INPUT_FIELDS1.
                          CLEAR WA_CT_INPUT_FIELDS1.
                          AT END OF Z_OBJECTID.
                            CALL FUNCTION 'CRM_ORDER_MAINTAIN'
                              EXPORTING
                                IT_PRIDOC         = IT_PRIDOC
                              CHANGING
                                CT_INPUT_FIELDS   = IT_CT_INPUT_FIELDS1
                              EXCEPTIONS
                                ERROR_OCCURRED    = 1
                                DOCUMENT_LOCKED   = 2
                                NO_CHANGE_ALLOWED = 3
                                NO_AUTHORITY      = 4
                                OTHERS            = 5.
    CALL FUNCTION 'CRM_ORDER_SAVE'
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    endat.
    endloop.
    Please help out.
    Regards,
    Navin
    Edited by: navin.c on Jan 7, 2010 10:09 AM

    Check the link below. This should help
    Re: Change Order Quantity in CRM Sales Order

  • I have an app update on my phone through the app store, but i dont have that app and when i hit update it says the item is no longer available for sale,, but i cannot get rid of the little 1 at the corner of the app store app,, how can i get rid of it

    i have an app update on my phone through the app store, but i dont have that app and when i hit update it says the item is no longer available for sale,, but i cannot get rid of the little 1 at the corner of the app store app,, how can i get rid of it,, i have iphone 5

    You installed a hacked app, originally from the Mac App Store. It contains the receipt for a different app, downloaded using an account that you don't control. You need to identify and remove the hacked app.
    Important: The app you need to remove is not necessarily the one named in the App Store notice. For example, if the App Store says you need to update "Twitter," the hacked app may be "Angry Birds" or something else entirely. Don't make any assumptions about which app you're looking for. To find it, you have to carry out a systematic search.
    Triple-click anywhere in the line of text below on this page to select it:
    kMDItemAppStoreHasReceipt=1
    Copy the selected text to the Clipboard (command-C).
    In the Finder, press the key combination command-F to open a search window, or select
    File ▹ Find
    from the menu bar. In the search window, select
    Search: This Mac
    from the row of tokens below the toolbar. Below that is a popup menu initially showing Kind. From that menu, select  Other...
    A sheet will drop down. In that sheet, select Raw Query and click OK or press return.
    Now there will be a text box to the right of popup menu. Click in that box and paste (command-V).
    The search window will show all the App Store products you've installed. Compare those search results with the list of your purchases from the App Store. To see the complete list, you may need to unhide hidden purchases. If any apps were download from the App Store using other Apple ID accounts that you control, sign in to the store under each of those ID's and check the purchases.
    At least one of the items listed in the search window is not among your purchases in the App Store. Move each such item to the Trash. You may be prompted for your administrator password. Empty the Trash.
    Log out and log back in. Test.

  • How to update a list item through Sharepoint Designer Workflow?

    Hi,
    I have a created a list, in which "Completion date" column is there.
    Now I want to update column "Completion Date" through SPD, specifies value(date) after 10 days of created date of a record in list.
    Please help.
    Thanks in advance

    Hi,
    You can use the "Build Dynamic String" action to convert the date field to a string,
    And use string comparison to determine if the date is blank
    For more information, please refer to
    http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!498.entry
    Hope this helps
    Thanks!
    Stanfford

  • How do I update a date field through CMP

    I wonder how to update a date field through CMP.
    For example, I can't update an employee table with following statement.
    employee.setHire_date('2002-03-20');
    Thanks,

    Thats correct......
    Try using the following code....
    String strDate ="2002-03-20";
    String date_fmt = "yyyy-MM-dd";
    java.text.SimpleDateFormat sdf=new java.text.SimpleDateFormat(date_fmt);
    java.util.Date hireDate =null;
    hireDate =(Date) sdf.parse(strDate);
    employee.setHire_date(hireDate);
    Hope this helps
    Cheers
    --Venky                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Update JTable model col through header name in fast way

    old day, i update my JTable model through the way :
    tableModel.setValueAt(aValue, rowIndex, jTable1.getColumn("HeaderName").getModelIndex());now, i am adding a feature to my table, where the user can remove column.
    when user remove the column, is just the JTable GUI column being removed,. the underlining TableModel column is still there.
    my new feature will broke my above code.
    hence, i change my code to :
    for(columnIndex=0; columnIndex<columnCount; columnIndex++) {
         String name = tableModel.getColumnName(columnIndex)
         if(name.equals("HeaderName"))
              tableModel.setValueAt(aValue, rowIndex, columnIndex)
    }instead of looping through, is there any way i can retrieve the column model index in a fast way?
    a way i can think off, is inherit from DefaultTableModel, and add a map member, so that it can directly map the header name to col index.
    is there any better way?
    thanks

    i don't know why but the KeyListener does work fine with another application that i have also created Not a good solution. First of all the column still exists, so the user will tab from one column to your "hidden" column and wonder whats happening.
    The correct solution is to remove the TableColumn from the TableColumnModel. You can still access the data in the TableModel:
    table.getModel().getValueAt(...)
    No need to use the convertColumnIndexToModel.

  • Not updating  partner Emp Resp through CRM_PARTNER_MAINTAIN_SINGLE_OW

    Hi friends,
    I am facing a problem i'm not able to update Partner employee responsible through CRM_PARTNER_MAINTAIN_SINGLE_OW.
    If you have faced this situation earlier please help.
            CLEAR LS_PARTNER_COM.
              LS_PARTNER_COM-REF_GUID = WA_CRMD_ORDERADM_H-GUID.
              LS_PARTNER_COM-REF_HANDLE = '00000000001'.
              LS_PARTNER_COM-REF_KIND = 'A'.
              LS_PARTNER_COM-REF_PARTNER_HANDLE = '0000'.
              LS_PARTNER_COM-PARTNER_FCT = '00000014'.
              LS_PARTNER_COM-PARTNER_NO =  WA_INPUT_PC-EMP_RESP.
              LS_PARTNER_COM-DISPLAY_TYPE = 'BP'.
              LS_PARTNER_COM-NO_TYPE = 'BP'.
              LS_PARTNER_COM-MAINPARTNER = 'X'.
              APPEND LS_PARTNER_COM.
              CLEAR LT_INPUT_FIELD_NAMES.
              LT_INPUT_FIELD_NAMES-FIELDNAME = 'DISPLAY_TYPE'.
              LT_INPUT_FIELD_NAMES-CHANGEABLE = 'X'.
              APPEND LT_INPUT_FIELD_NAMES.
              CLEAR LT_INPUT_FIELD_NAMES.
              CLEAR LT_INPUT_FIELD_NAMES.
              LT_INPUT_FIELD_NAMES-FIELDNAME = 'KIND_OF_ENTRY'.
              LT_INPUT_FIELD_NAMES-CHANGEABLE = 'X'.
              APPEND LT_INPUT_FIELD_NAMES.
              CLEAR LT_INPUT_FIELD_NAMES.
              CLEAR LT_INPUT_FIELD_NAMES.
              LT_INPUT_FIELD_NAMES-FIELDNAME = 'NO_TYPE'.
              LT_INPUT_FIELD_NAMES-CHANGEABLE = 'X'.
              APPEND LT_INPUT_FIELD_NAMES.
              CLEAR LT_INPUT_FIELD_NAMES.
              CLEAR LT_INPUT_FIELD_NAMES.
              LT_INPUT_FIELD_NAMES-FIELDNAME = 'PARTNER_NO'.
              LT_INPUT_FIELD_NAMES-CHANGEABLE = 'X'.
              APPEND LT_INPUT_FIELD_NAMES.
              CLEAR LT_INPUT_FIELD_NAMES.
              CALL FUNCTION 'CRM_PARTNER_MAINTAIN_SINGLE_OW'
                EXPORTING
                  IV_REF_GUID          = LS_PARTNER_COM-REF_GUID
                  IV_REF_KIND          = LS_PARTNER_COM-REF_KIND
                  IS_PARTNER_COM       = LS_PARTNER_COM
                CHANGING
                  CT_INPUT_FIELD_NAMES = LT_INPUT_FIELD_NAMES[].
    Regrds,
    Navin
    Edited by: navin.c on Jun 8, 2010 1:53 PM

    HI Vikash,
    I tried this solution , still its not wrking. Have a doubt in your code
    How come you are passing partner guid in partner no field.
    it will throw an dump if size does not match.i placed a brkpoint in CRM_PARTNER_MAINTAIN_SINGLE_OW and passed the values as much as possible to original but still not able to crack.
    Anyways i'm pasting my code snippet for your reference please mention if im missing some key data.
      CLEAR LS_PARTNER_COM.
                LS_PARTNER_COM-REF_GUID = WA_CRMD_ORDERADM_H-GUID.
                LS_PARTNER_COM-REF_HANDLE = '00000000000'.
                LS_PARTNER_COM-REF_KIND = 'A'.
                LS_PARTNER_COM-REF_PARTNER_HANDLE = '0000'.
                LS_PARTNER_COM-REF_NO_TYPE = 'BP'.
                LS_PARTNER_COM-REF_DISPLAY_TYPE = 'BP'.
                LS_PARTNER_COM-PARTNER_GUID = WA_PARTNERGUID.
                LS_PARTNER_COM-PARTNER_FCT = '00000014'.
                LS_PARTNER_COM-PARTNER_NO =  WA_INPUT_PC-EMP_RESP.
                LS_PARTNER_COM-KIND_OF_ENTRY = 'C'.
                LS_PARTNER_COM-DISPLAY_TYPE = 'BP'.
                LS_PARTNER_COM-NO_TYPE = 'BP'.
                LS_PARTNER_COM-MAINPARTNER = 'X'.
                APPEND LS_PARTNER_COM.
                CLEAR LS_PARTNER_COM.
                CLEAR LT_INPUT_FIELD_NAMES.
                LT_INPUT_FIELD_NAMES-FIELDNAME = 'DISPLAY_TYPE'.
                APPEND LT_INPUT_FIELD_NAMES.
                CLEAR LT_INPUT_FIELD_NAMES.
                CLEAR LT_INPUT_FIELD_NAMES.
                LT_INPUT_FIELD_NAMES-FIELDNAME = 'KIND_OF_ENTRY'.
                APPEND LT_INPUT_FIELD_NAMES.
                CLEAR LT_INPUT_FIELD_NAMES.
                CLEAR LT_INPUT_FIELD_NAMES.
                LT_INPUT_FIELD_NAMES-FIELDNAME = 'NO_TYPE'.
                APPEND LT_INPUT_FIELD_NAMES.
                CLEAR LT_INPUT_FIELD_NAMES.
                CLEAR LT_INPUT_FIELD_NAMES.
                LT_INPUT_FIELD_NAMES-FIELDNAME = 'PARTNER_NO'.
                APPEND LT_INPUT_FIELD_NAMES.
                CLEAR LT_INPUT_FIELD_NAMES.
              CALL FUNCTION 'CRM_PARTNER_MAINTAIN_SINGLE_OW'
                  EXPORTING
                    IV_REF_GUID          = LS_PARTNER_COM-REF_GUID
                    IV_REF_KIND          = LS_PARTNER_COM-REF_KIND
                    IS_PARTNER_COM       = LS_PARTNER_COM
                    IV_POPULATE_MODE     = ' '
                  CHANGING
                    CT_INPUT_FIELD_NAMES = LT_INPUT_FIELD_NAMES[]
                  EXCEPTIONS
                    OTHERS               = 1.
    Regards,
    Navin

  • DateFormat for updating the metadata field through RIDC

    Could you please tell me what will be the valid date time format for updating metadata field value through RIDC.?
    I am using ADF technology to connect with webcenter UCM and using all services to check-in,update, search generic screens using UCM services. I am able to update other text type metadata field through ADF screen BUT when i update date field then i am getting date parsing error..
    xSubmitDate DATE type in UCM.
    xSubmitDate value = 05/08/2013 05:36 PM
    oracle.stellent.ridc.protocol.ServiceException: Unable to update the content item information for '0804'. The field 'xSubmitDate' does not contain a valid date. Unable to parse date '05/08/2013 05:36 PM'.
    Thanks in Advance.

    This blog post I wrote may be of some help: http://www.redstonecontentsolutions.com/5/post/2011/10/parse-date-usingridc.html
    Jonathan
    http://jonathanhult.com

  • Updating amount in VK12

    Hi Guys,
    I am trying to update 'amount' against a specific material in VK12.
    I am using BAPI : BAPI_PRICES_CONDITIONS
    I am not able to update it successfully and getting stuck at the following points :-
    Amount field in VK12 is KBETR. In the above mentioned BAPI i am not able to find where i should pass value of 'amount' so as to update KBETR in VK12.
    For changing/updating do i need to pass value of BAPICONDHD-OPERATION = 004 (Change: Message contains changes) and BAPICONDIT-OPERATION = 004 or some thing else?
    ***Since there are a number of optionals parameters to be passed, is there any special one to be kept in mind without which the BAPI won't work properly? If not, what all parameters are required ?
    Kindly help me out ASAP
    Best Regards.

    hi ,
    This functionality already exists in VK12. After you pull up all the records please use the little calculator button at the bottom of the screen . When you click that you can change all the records using a set % or an absolute amount.
    -Thanks
    Saurabh Goel

  • Function Module to Update Shipment Cost Document through Idoc.....?

    Is there any EDI function module which can Update Shipment Cost Document through Idoc.....

    Hi Vijendra,
    Welcome to SDN.
    You can use FM IDOC_INPUT_SHPMNT with message SHPMNT and IDoc type SHPMNT01/02/03/04/05 to update shipment document.
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if very helpful.

  • Updating a sales order through DI API

    Hi All,
         I have an issue regarding updating a sales order.
    The problem is:
      If there r 2 items(A00001&A00002) existed in the sales order and if I am adding two more items(A00003 & 4)the sales order is updated in a fashion that first item is replaced with third item and forth item is added as last record.The items to that particular sales order after updating will be like this(A00003,A00002,A00004).My doubt is why the 3rd item is replaced with first record.I am sending the code also i have written.
    objRecordSet = SBOCOMUtil.newRecordset(company);
                          IDocuments  oOrder =SBOCOMUtil.newDocuments(company,SBOCOMConstants.BoObjectTypes_Document_oOrders);
                                  objRecordSet.doQuery("select DocEntry from ORDR where DocNum=" + 1111);
                                  DocEntryL =objRecordSet.getFields().item(new String("DocEntry")).getValueInteger().intValue();
                          str += DocEntryL;
                          System.out.println(DocEntryL);
                          if (oOrder.getByKey(new Integer(DocEntryL))) {
                                  //objRecordSet2.doQuery("delete  from rdr1 where DocEntry="+DocEntryL);
                                  str += "2";
                                  System.out.println(str);
                                  //oOrder.remove();
                                  oOrder.setDiscountPercent(new Double(5));
                                  oOrder.setComments("success");
                                  System.out.println(str);
                                  IDocument_Lines oOrderLines = oOrder.getLines();
                                  str += "3";
                                  String[] item={"A00005","A00006"};
                                  for (int counter = 0; counter < item.length; counter++) {
                                       //  oOrderLines.setCurrentLine(new Integer(counter));
                                         if (counter > 0)
                                                 oOrder.getLines().add();
                                         str += "4";
                                  oOrderLines.setItemCode(item[counter]);
                                  System.out.println(item[counter]);
                                     //oOrderLines.setBaseType(new Integer(-1));
                                     //oOrderLines.setBaseEntry(new Integer(0));
                                   //oOrder.getLines().setCurrentLine(new Integer(counter));
                               //oOrderLines.setQuantity(new Double(1));
                                         //oOrderLines.setPrice(new Double(1500));
                                         //oOrderLines.setCurrency(strCurrency[counter]);
                                         //oOrderLines.setLineTotal(new Double(dblLineTotal[counter]));
                                  str += "5";
                                  //oOrder.getLines().getUserFields().getFields().item("Quantity").setValue(new Integer(2));
                                  System.out.println(str);
                                  int result = oOrder.update();
                                  str += "6" + result;
                                  if (result == 0) {
                                         System.out.println("successfully updated");
                                         company.disconnect();
                                  } else {
                                         company.getLastErrorDescription();
                                         System.out.println(
                                                 "Error :" + company.getLastErrorDescription());
                                         company.disconnect();

    If you are using SBP 2004 there are many threads on this forum talking about bugs when updating sales order lines through DI API. This issue was supposed to be fixed with patch level 45 for 2004 which was recently released.
    If u are using 2005 or SP1 I think you may have found a new bug.

  • Updating a Base Table through a View having UNPIVOT function.

    Hi,
    I have a requirement of updating a Base Table through a View.
    This View has the query using a UNPIVOT function for displaying the columns of the Base tables in rows.
    I need to update/insert into/delete the Base Table by accessing the View (The user doesn't have an access to the Base Table, hence the DML's on the View).
    Following is the table I've created:-
    CREATE TABLE PERSON_DETAILS
      PID            VARCHAR2(10 BYTE),
      FIRSTNAME      VARCHAR2(1000 BYTE),
      LASTNAME       VARCHAR2(1000 BYTE),
      PHONENUMBER    VARCHAR2(1000 BYTE),
      ADDRESS1       VARCHAR2(1000 BYTE),
      ADDRESS2       VARCHAR2(1000 BYTE),
      COUNTRY_CODE   VARCHAR2(1000 BYTE),
      LANGUAGE_CODE  VARCHAR2(1000 BYTE),
      EMAIL          VARCHAR2(1000 BYTE)
    )The sample values are inserted in this table through the below script:-
    insert into person_details values ('1','XYZ','ABC','1234567890','India','Asia','IN','EN','[email protected]');
    insert into person_details values ('2','XYZ2','ABC2','1234567890','India','Asia','IN','EN','[email protected]');The code for the view is as below:-
    CREATE OR REPLACE FORCE VIEW PERSON_DETAILS_VIEW
       PID,
       CD_NAME,
       CD_VALUE
    AS
       SELECT "PID", "CD_NAME", "CD_VALUE"
         FROM person_details UNPIVOT INCLUDE NULLS (cd_value
                             FOR cd_name
                             IN  (firstname AS 'First Name',
                                 lastname AS 'Last Name',
                                 phonenumber AS 'Phonenumber',
                                 address1 AS 'address1',
                                 address2 AS 'address2',
                                 country_code AS 'Country Code',
                                 language_code AS 'Language Code',
                                 email AS 'Email') );Below are the values from the view:-
    PID CD_NAME         CD_VALUE
    1    First Name       XYZ
    1    Last Name       ABC
    1    Phonenumber  1234567890
    1    address1         India
    1    address2         Asia
    1    Country Code   IN
    1    Language Code EN
    1    Email               [email protected]
    2    First Name       XYZ2
    2    Last Name       ABC2
    2    Phonenumber  1234567890
    2    address1         India
    2    address2         Asia 
    2    Country Code   IN
    2    Language Code EN
    2    Email               [email protected] user would fire some statement like below:-
    update person_details_view
    set cd_value = 'US' where CD_NAME = 'IN'The above statement should update the base table PERSON_DETAILS.
    I understand I can write an INSTEAD OF trigger but I do not know what logic to write in the trigger so that the requirement gets fulfilled.
    My Oracle Version
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE    11.1.0.7.0    Production
    TNS for Solaris: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - ProductionAny help would be highly appreciated.
    Thank You,
    Ankit Khare.
    Edited by: Ankit_Khare84 on Jun 28, 2012 2:47 PM

    it is definitively possible with an instead of trigger.
    for Example:
    create or replace
    TRIGGER ioft_person
    INSTEAD OF UPDATE
    ON person_details_view
    FOR EACH ROW
    declare
    firstname1  person_details.firstname%type;
    BEGIN
                  SELECT firstname_new into firstname1
                  FROM   (SELECT pid, cd_name, cd_value
                          FROM  
                                  select * from person_details_view where (pid, cd_name) not in (select :new.pid, :new.cd_name from dual)
                                  union all
                                  select :new.pid, :new.cd_name, :new.cd_value from dual
                  PIVOT  ( max(cd_value) AS new FOR (cd_name) IN
                                                          ('First Name' AS firstname,
                                                            'Last Name' as lastname,
                                                            'Phonenumber' as phonenumber,
                                                            'address1' as address1,
                                                            'address2' AS address2,
                                                            'Country Code' as country_code,
                                                            'Language Code' as language_code,
                                                            'Email' as email
                  )  where pid = :old.pid;
      UPDATE person_details
      SET firstname = firstname1
      WHERE pid = :old.pid;
    END ioft_role_perm;and than run
    update person_details_view
    set cd_value = 'X|X' where cd_name = 'First Name' and pid=1The logic is: you must convert back the view through pivoting

Maybe you are looking for