Our Client gave a requirement to mass update the additional attributes in Install base for instances in Release 11i.

Hi,
Our Client gave a requirement to mass update the additional attributes in Install base for instances in Release 11i.
So I tried the below code to update:
But getting the error:
The Object Version Number passed does not match with the one existing in Installed Base tables.
Can any one please help how to fix it.
Code:
declare
x_instance_rec CSI_DATASTRUCTURES_PUB.INSTANCE_REC;
p_ext_attrib_values CSI_DATASTRUCTURES_PUB.EXTEND_ATTRIB_VALUES_TBL;
p_party_tbl CSI_DATASTRUCTURES_PUB.PARTY_TBL;
p_account_tbl CSI_DATASTRUCTURES_PUB.PARTY_ACCOUNT_TBL;
p_pricing_attrib_tbl CSI_DATASTRUCTURES_PUB.PRICING_ATTRIBS_TBL;
p_org_assignments_tbl CSI_DATASTRUCTURES_PUB.ORGANIZATION_UNITS_TBL;
p_asset_assignment_tbl CSI_DATASTRUCTURES_PUB.INSTANCE_ASSET_TBL;
p_txn_rec CSI_DATASTRUCTURES_PUB.TRANSACTION_REC;
x_instance_id_lst CSI_DATASTRUCTURES_PUB.ID_TBL;
x_return_status VARCHAR2(2000);
x_msg_count NUMBER;
x_msg_data VARCHAR2(2000);
x_msg_index_out NUMBER;
t_output VARCHAR2(2000);
t_msg_dummy NUMBER;
p_validation_level NUMBER;
p_commit VARCHAR2 (5);
p_init_msg_lst VARCHAR2 (500);
cursor stg_tab_cur is select instance_id,Safety_line_type from gewind_ib_iea_values;
TYPE stg_tab IS TABLE OF gewind_ib_iea_values%ROWTYPE INDEX BY BINARY_INTEGER;
  stg_tab_var stg_tab;
  stg_tab_bin_int BINARY_INTEGER;
BEGIN
x_instance_rec.instance_id := FND_API.G_MISS_NUM;
x_instance_rec.object_version_number := FND_API.G_MISS_NUM;
p_txn_rec.transaction_id := FND_API.G_MISS_NUM;
p_txn_rec.transaction_date := SYSDATE;
p_txn_rec.source_transaction_date := SYSDATE;
p_txn_rec.transaction_type_id := 1;
stg_tab_bin_int :=0;
For gewind_ib_iea_values in stg_tab_cur LOOP
stg_tab_bin_int := stg_tab_bin_int + 1;
P_ext_attrib_values(stg_tab_bin_int).instance_id :=gewind_ib_iea_values.instance_id;
P_ext_attrib_values(stg_tab_bin_int).attribute_id := 10023;
P_ext_attrib_values(stg_tab_bin_int).attribute_value := gewind_ib_iea_values.Safety_line_type;
dbms_output.put_line(P_ext_attrib_values(stg_tab_bin_int).instance_id);
dbms_output.put_line(P_ext_attrib_values(stg_tab_bin_int).attribute_value);
csi_item_instance_pub.update_item_instance(
1.0,
p_commit,
p_init_msg_lst,
1,
x_instance_rec,
p_ext_attrib_values,
p_party_tbl,
p_account_tbl,
p_pricing_attrib_tbl,
p_org_assignments_tbl,
p_asset_assignment_tbl,
p_txn_rec, x_instance_id_lst,
x_return_status,
x_msg_count,
x_msg_data);
commit;
-- Output the results
if x_msg_count > 0 then
for j in 1 .. x_msg_count
loop
fnd_msg_pub.get ( j , FND_API.G_FALSE , x_msg_data , t_msg_dummy );
t_output := ( 'Msg' || To_Char ( j ) || ': ' || x_msg_data );
dbms_output.put_line ( SubStr ( t_output , 1 , 255 ) );
end loop;
end if;
dbms_output.put_line('x_return_status = '||x_return_status);
dbms_output.put_line('x_msg_count = '||TO_CHAR(x_msg_count));
dbms_output.put_line('x_msg_data = '||x_msg_data);
COMMIT;
end loop;
END;
Regards,
Ravichander

This question is Assumed Answered -- It would be great if you could share the solution with us.
Thanks,
Hussein

Similar Messages

  • Since I recently installed pages on my iPad when I try to edit a file on my mac it requires me to update the programme however when I search for updates none seem to be available.

    Since I recently installed pages on my iPad when I try to edit a file on my mac it requires me to update the programme however when I search for updates none seem to be available.

    What version are you using?
    The latest version of Pages('09) is 4.3
    http://support.apple.com/kb/DL1563

  • Mass update the OTL rotation plan for employees

    Hi All,
    I am trying to find a way to mass update the rotation plan for employees .I could not find any API or easy way to do it.
    Do we have any easy way to do it.
    Thanks

    If you cannot find an API, why don't you try one of the data-load tools.
    http://www.dataload.com/
    Cheers,
    Vignesh

  • I use reliance dongle to browse internet on mountain lion, at first it gave me problems but after updating the reliance software it worked fine.  Now i have upgraded my osx to mavericks.  The reliance software gets installed but dosent open giving some er

    i used reliance dongle to browse internet on mountain lion, at first it gave me problems but after updating the reliance software it worked fine. Now i have upgraded my osx to mavericks. The reliance software gets installed but dosent open giving some error, Now i cannot use the internet !!! and itz the latest version of reliance software,,, plz help me !!!

    At last i did some experiments and it solved my problem... heres the solution :
    1. Install the reliance drivers and software from their website.
    2. As the reliance software is not supported my mavericks it wont open, but dont worry.
    3. Now after installation go to system preferences->network->and select  "ZTE Wireless Terminal".
    4. Configuration: Default
         Telephone number: #777
         Account name and password should be the owners number.
    5.Finish ! press apply and click Connect...
       Enjoy browsing !!!

  • Update the Payment Currency and Invoice Currency for all suppliers

    Dears;
    I have a requirement to update the Invoice Currency and Payment Currency for the all defined suppliers in Oracle Apps R12.
    Any help regards this?
    Regards;

    Dear Mohammad;
    Thanks for reply; I checked the suggested document. But nothing mentioned about suppliers setup or modifications.
    I'm looking for something like Oracle Interface to do this requirement.
    Regards;

  • Can we update the Category attribute values of a file

    Can we update the Category attibute values of a file with out checkout the file?
    I have set the version configuration to folder and try to update the category attribute values of a file under that folder,
    It is asking to checkout the file before modifying the category attibute values.
    Is it required to checkout the file before modifying the category attribute values of that file?
    Is there any way to update the category attribute values without checkout the file?
    Please help on this

    One of the ways i can think of is using Batch Loader script for large number of files. Mention such files in Batch Loader script, and it will update category and all meta-data required in terms of next revision.
    In case number of files are less manual checkout and check-in will help.

  • I cannot access Content Library in iMovie - Content Library doesn't show on the iMovie screen and is greyed out when accessed through "windows" tab at the top. Also unable to update the projects/events (a suggested solution for a similar question).

    I cannot access Content Library in iMovie - Content Library doesn't show on the iMovie screen and is greyed out when accessed through "windows" tab at the top. Also unable to update the projects/events (a suggested solution for a similar question). I haven't had this issue before, I have always used the content library on the screen but haven't used this for about a month. How can I make the Content Library available?

    Thanks so much! I am backing up the entire computer now with an external hard drive - this should be fine right? And surely if I am backing up the whole computer these projects/videos will be backed up too? I wasn't sure how to do this any other way and I am clearly not great with tech issues. Once this is done and I am sure my projects/videos are safe I will do the delete and reinstall bit. Thanks for taking the time to help

  • I have macbook pro   i got it from craiglist, when i was updating the oprating sestem its asking me for sestem unlocking pin? where can i get it from?

    i have macbook pro   i got it from craiglist, when i was updating the oprating sestem its asking me for sestem unlocking pin? where can i get it from?

    I would recommend wiping the system and reinstalling the OS for any used system. OS X does not have any "unlocking pin" of sorts so this may be from some third-party software on the system. The system does have a "firmware password" option that can be set to prevent booting to alternative boot environments (ie, external hard drives, safe mode, etc), but this will not prevent system updating.

  • Need to update the business place and section code for the advances

    Hi,
    I need to update the business place and section code for already posted advance payment requests (f-47), advance payments (f-48) and clearing documents (F-54).
    I can able to update the business place and section code for only invoices those are coming from MM route in J1INPP.
    guide me
    sateesh

    Hi ,
    Please follow the below point as per note no 640231
    2.  Path : Transaction SM31 . Enter the table name as TRWPR and press
                                                                      Page 2
        maintain .
        a) Delete all entries linked to component ZIND if they are present.
        b) Check that, entries as specified below exist for Component IND.
           Business
           Tran.    Time     No    Component        Function Module
           DOCUMENT CLOSE    043   IND              J_1I6_UPDATE_BA
           DOCUMENT CLOSE    044   IND              J_1IEWT_UPDATE_SECCO
           DOCUMENT PREREV   810   IND              J_1I6_CIN_DOC_PREREV
           DOCUMENT CLOSE    810   IND              J_1I2_COPY_TO_LOCAL
           RABELEG  ERGAENZE 810   IND              J_1IEWT_COPY_BUPLA_FBZ
           BELEG    POST     810   IND              J_1ITDS_TABLE_UPDATE
           DOCUMENT CHECK    810   IND              J_1I6_VALIDATE_GR
           DOCUMENT POST     811   IND              J_1IEWT_UPDATE_PROVISION
           BELEG    POST     811   IND              J_1IEWT_UPDATE_PROVISION
           BELEG    CLOSE    820   IND              J_1I2_COPY_TO_LOCAL
           DOCUMENT CHECK    820   IND
           J_1I6_VERIFY_GR_EIC_QUANTITY
           DOCUMENT CLOSE    820   IND              J_1I6_COPY_TO_LOCAL
           DOCUMENT CLOSE    821   IND              J_1IEWT_COPY_TO_LOCAL
           DOCUMENT POST     821   IND              J_1ITDS_TABLE_UPDATE
           BELEG    CLOSE    821   IND              J_1IEWT_COPY_TO_LOCAL.
        For the first two entries which are marked with sequence number 43
        and 44 for the Business Transaction 'DOCUMENT' and Time 'CLOSE' ,
        ensure that the sequence number is below the number for function
        module FI_DOCUMENT_CLOSE. This is to ensure that these two functions
        are processed in time for other checks in Financial Accounting.
    MIRO documents also will update the Business place section code.
    Reg
    Madhu M

  • Help i have an iphone 5s and whenever i dowload an app or update, the symbol turns to install then the circle loading, then all of a sudden it goes back to the price symbol. I am having a tough time can anyone help me.

    Help i have an iphone 5s and whenever i dowload an app or update, the symbol turns to install then the circle loading, then all of a sudden it goes back to the price symbol. I am having a tough time can anyone help me.
    ________________________________________________________________________________ _____________________________________________________ Also all my wifi apps dont connect to the internet except for safari and maybe appstore HELP??!!!!!
    Both these problems are happening at the same time so i dont know if they are linked or something but please someone help

    Hello shahnaztech
    They probably could be related. Start with the articles below to troubleshoot issues with Wi-Fi as well as making sure that the router is using the recommended settings.
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/TS1398
    iOS and OS X: Recommended settings for Wi-Fi routers and access points
    http://support.apple.com/kb/HT4199
    Regards,
    -Norm G.

  • When i update the ios 8.2 new apps for apple watch i dont have

    When i update the ios 8.2 new apps for apple watch i dont have.please advice

    It was the first thing mentioned in the update description that came up before you chose to click 'Accept'. iOS8.2
    You accepted, therefore you have it. Simply put it at the end of your Apps as I have done with Apps I did not want e.g.. Health, Tips, Compass etc.
    Pete

  • Update the proxyaddresses attribute via rsldapsync_user

    Dear Gurus,
    i configured a ldap-scenario and tested it by reading different attributes from the directory and updating the user information.
    It worked well!
    Now i want to write the proxyaddresses-attribute into the directory. i configured an exporting mapping from the e-mail address of the sap-user to the mentioned dir.-attr.. In this mapping i call a function module. For simple testing i call an ldap-module to read the actual values of the directory-attribute and write them back to the directory:
      Read table attributes with Key var = 'USERNAME' fld = 'BAPIBNAME' assigning <hybral>.
      READ TABLE <hybral>-vals index 1 ASSIGNING <vals>.
      CONCATENATE '(&(objectclass=user)(samaccountname=' <vals>-val '))' into filter.
      CALL FUNCTION 'LDAP_READ'
         EXPORTING
    *   BASE                = ''
         base_string         = 'ou=test-ou,dc=test-domain1,dc=test-domain2'
         scope               = 2
         filter              = filter
    *   FILTER_STRING       =
    *   TIMEOUT             =
         attributes          = it_attr
         IMPORTING
           ldaprc              = ldaprc
           entries             = ldapetab
         EXCEPTIONS
           no_authoriz         = 1
           conn_outdate        = 2
           ldap_failure        = 3
           not_alive           = 4
           other_error         = 5
           OTHERS              = 6
      READ TABLE ldapetab INDEX 1 ASSIGNING <ldape>.
      READ TABLE <ldape>-attributes WITH KEY name = 'PROXYADDRESSES' INTO ls_attribute_ldap.
      ls_attribute_ldap-typ = 'C'.
      INSERT ls_attribute_ldap INTO TABLE attributes_ldap.
    at the end of the module i export the values into attributes_ldap. When i debug the folowing steps, the values are cummincated throughout the ldap-function-modules that are used by rsldapsync_user. The ldap_modify module exports a returncode 53.
    Now i want to know if it is possible to update the proxyaddresses-attribute in this manner. Are there any mistakes in my thinking or in the posted function-module. Does anyone of you have some experience updating multiple line entries in Active Directory via SAP-LDAP?
    Thanks in advance

    Now i wrote a function module which reads an attribute and tries to write it back to the active directory.
    *"*"Lokale Schnittstelle:
    *"  IMPORTING
    *"     REFERENCE(IP_UNAME) TYPE  XUBNAME
    *"  EXPORTING
    *"     VALUE(EP_MAIL) TYPE  STRINGVAL
      DATA: wa_attr TYPE ldapas,
            it_attr TYPE ldapastab,
            ldapetab TYPE ldapetab,
            ldaprc TYPE ldapdefs-ldrc,
            filter TYPE ldap_filt.
      FIELD-SYMBOLS:
            <ldape>   TYPE ldape.
      wa_attr-typ = 'C'.
      wa_attr-name = 'SAMACCOUNTNAME'.
      APPEND wa_attr TO it_attr.
      wa_attr-name = 'PROXYADDRESSES'.
      APPEND wa_attr TO it_attr.
      CONCATENATE '(&(objectclass=user)(samaccountname=' ip_uname '))' INTO filter.
      CALL FUNCTION 'LDAP_SYSTEMBIND'
       EXPORTING
         serverid            = 'WSWACTIVEDIR'
       writeread           = 'W'
    *   WAIT_TIME           = 0
       IMPORTING
         ldaprc              = ldaprc
    *   BASEDN              =
    *   BASEDN_STRING       =
    * CHANGING
    *   HOLDSESS            = 0
    * EXCEPTIONS
    *   NO_AUTHORIZ         = 1
    *   CONFIG_ERROR        = 2
    *   NOMORE_CONNS        = 3
    *   LDAP_FAILURE        = 4
    *   NOT_ALIVE           = 5
    *   OTHER_ERROR         = 6
    *   OTHERS              = 7
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL FUNCTION 'LDAP_READ'
       EXPORTING
    *   BASE                = ''
       base_string         = 'ou=wsw-benutzer,dc=stadtwerke,dc=loc'
       scope               = 2
       filter              = filter
    *   FILTER_STRING       =
    *   TIMEOUT             =
       attributes          = it_attr
       IMPORTING
         ldaprc              = ldaprc
         entries             = ldapetab
       EXCEPTIONS
         no_authoriz         = 1
         conn_outdate        = 2
         ldap_failure        = 3
         not_alive           = 4
         other_error         = 5
         OTHERS              = 6
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      READ TABLE ldapetab INDEX 1 ASSIGNING <ldape>.
      CALL FUNCTION 'LDAP_UPDATE'
        EXPORTING
          entry              = <ldape>
       IMPORTING
         ldaprc             = ldaprc
    * EXCEPTIONS
    *   NO_AUTHORIZ        = 1
    *   CONN_OUTDATE       = 2
    *   PARAM_ERROR        = 3
    *   LDAP_FAILURE       = 4
    *   HEXVAL_ERROR       = 5
    *   NOT_ALIVE          = 6
    *   OTHER_ERROR        = 7
    *   OTHERS             = 8
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    After LDAP_READ the ldaprc = 0.
    After LDAP_READ ldaprc is 53.
    So i can exclude a wrong mapping in transaction ldap.
    Edited by: Jan Martin Müller on Jun 9, 2010 3:17 PM

  • I was using a different itune id and now a new one but when i want to update the old app its always asking for my old app id. Is there a way to change my old app to my new id so that i dont have to use my old id.

    I was using a different itune id and now a new one but when i want to update the old app its always asking for my old app id.
    Is there a way to change my old app to my new id so that i dont have to use my old id?

    There is no other way you can do now. Actually, you don't need to create a new Apple ID account, you can change the Apple ID from old email account to other email accout easily by all the steps below.
    1, Open iTunes > iTunes Store > log in old Apple ID > Click on your apple ID on the right hand side on top > choose account > Apple ID > Edit
    As long as you only change your Apple ID, then all the old apps are still under your new email account as well as you can keep downloading new apps.

  • Apple Software Update keeps asking me to install iCloud for Windows 4.0.2

    Hi...
    Apple Software Update keeps asking me to install iCloud for Windows 4.0.2 but it's already installed!
    I get his reminder nearly every time I use my PC.
    Anyone any thoughts?
    Thanks...

    http://discussions.apple.com/thread.jspa?threadID=2213639&tstart=0
    http://discussions.apple.com/thread.jspa?threadID=2229227&tstart=0
    The solution is to delete /Library/Printers/hp/Frameworks/HPSmartX.framework and re-install the HP package once.

  • Hey there i downloaded apps using another apple id than the one am using right now and i need to update the apps they keep asking me for the old one that i dont have any more what to do please

    Hey there i downloaded apps using another apple id than the one am using right now and i need to update the apps they keep asking me for the old one that i dont have any more what to do please

    Apps are permanently tied to the ID used to purchase them.
    Go to https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/ and re-set th password for the old one.
    Then, log into the app store with it and update the apps purchased with that ID.

Maybe you are looking for