Updating without COMMIT

Hi All, please find the code below
I'm calling this code throught form when button pressed trigger. i have not given any commit any where in form or script below. But it is getting updated in MTL_SYSTEM_ITEMS_B table. which actually should not happen? but i need to find why this getting updated.
please cany any one help me in this.
procedure upd_existing_items_att
(p_org_id in number, p_upload_seq_id in number, p_rcv_org_id in number, p_user_id in number, p_status out varchar2) is
l_sob number;
errexc exception;
begin
p_status := 'OK';
begin
select ood.set_of_books_id
into l_sob
from org_organization_definitions ood
where ood.operating_unit = p_org_id
and rownum = 1;
exception
when others then
p_status := 'Error: Failed to get SOB for '||p_org_id||chr(10)||substr(sqlerrm, 1, 150)||' [jnc_file_upload_pkg.upd_existing_items_att].';
rollback;
return;
end;
declare
cursor catt is
select nvl(j2.msi_att1,msi.attribute1) msi_att1, j2.inventory_item_id
from jnc_upload_file_trx_dtl j2, mtl_system_items_b msi
where j2.inventory_item_id is not null
and j2.inventory_item_id = msi.inventory_item_id
and j2.org_id = p_org_id
and j2.upload_seq_id = p_upload_seq_id
and msi.organization_id = (
select h.inv_master_org_id
from jnc_upload_format_colmap_hdr h, jnc_upload_file_trx_hdr s
where s.format_header_id = h.header_id
and s.upload_seq_id = p_upload_seq_id
and s.org_id = p_org_id
and rownum = 1)
and (j2.msi_att1 != nvl(msi.attribute1, '0'));
begin
for r1 in catt loop
update mtl_system_items_b b
set b.attribute1 = r1.MSI_ATT1, b.last_update_date = sysdate,
b.last_updated_by = p_user_id
where b.inventory_item_id = r1.inventory_item_id
and b.organization_id = (
select d.organization_id
from org_organization_definitions d
where d.organization_id = b.organization_id
and d.set_of_books_id = l_sob);
end loop;
end;
p_status := 'Maket price, attributes, segments, categories, cross ref has been updated if applicable';
exception
when others then
rollback;
p_status := 'Error: occured in updating attributes '||substr(sqlerrm, 1, 150)||' [jnc_file_upload_pkg.upd_existing_items_att].';
end upd_existing_items_att;

i will explain you in clearly,
I have one form, which has one button in it. i will open the form and click on the button.
In WHEN-BUTTON-PRESSED trigger i'm calling one pl/sql program by passing parameters in it.
I will open the form, and directly click on the button which will directly call the pl/sql script, in the script also no commit is used. but it is updating data in the table.
till i commit the data should not commit in the tables.
this is my scenario. please help me in this
Thanks,
Siva.

Similar Messages

  • How can I switch from Automatic to Manual update without losing songs?

    I have on my ipod songs from another computer, however I'm afraid to plug it into my computer because my computer is set to automatic update for my ipod. Is there a way for me to switch my ipod to manual update without losing songs on my ipod when plugging it in? thanks.

    Here is what you do:
    Open iTunes.
    Plug in your ipod.
    hold control and shift at the same time. this stops your ipod from updating automatically. Hold this until your ipod is finished docking.
    Then go to edit>preferences>ipod
    then change the setting from update automatically to update manually.

  • How can I use Office Update without the Office CD?

    How can I use Office Update without the Office CD? On the microsoft website I've clicked the options which mean I shouldn't need the CD (which wasn't supplied with the laptop), but poartway through updating the service pack I get a request for the Office 2000 Professional CD.
    Any suggestions?

    Hi
    Did you mean a Office or One Note?
    As far as I know the One Note is a part of the Recovering Image and the CD is not delivered with the unit. Furthermore the Toshiba units are not delivered with the Office 2000 software.
    Nevertheless, did you check the update function in the Help i.e. in Word?
    There you will find a options called Check for Updates
    http://office.microsoft.com/en-us/officeupdate/default.aspx
    Bye

  • My phone (iCloud) won't let me update my phone because I don't have enough storage left on ICloud what do I do I can't even sync my phone to my computer. What do I do to get the update without having to pay for more storage

    My phone (iCloud) won't let me update myMy phone (iCloud) won't let me update my phone because it says I don't have enough storage left what do I do in order to get me update without paying? My phone won't even sync to my computer

    Hello Timmy790
    Try the suggestions in the article below to resolve the issue of seeing your old Apple ID on your iPhone.
    iOS 7: If you're asked for the password to your previous Apple ID when signing out of iCloud
    http://support.apple.com/kb/ts5223
    Regards,
    -Norm G.

  • How can I see changes in table with insertrow();postchanges()without commit

    Hi friends;
    I use jdeveloper 10.1.3.1 with jheadstart 10.1.3.1.
    I create two view object.In the first page I create table with one view object.
    In the second page I create table (with tableselectmany) with other view.
    I select many rows in second page and in the managed bean,
    I insert selectted rows atributes to first pages tables attributes.
    I use this code.
    public String commandbuttonaction(){
    CoreTable table = this.getTable1();
    Set rowSet = table.getSelectionState().getKeySet();
    Iterator rowSetIter = rowSet.iterator();
    BindingContainer bindings = getBindings();
    DCIteratorBinding pr_dcib = (DCIteratorBinding)
    bindings.get("DeptIterator");
    int i=206;
    while (rowSetIter.hasNext()){
    Key key = (Key) rowSetIter.next();
    pr_dcib.setCurrentRowWithKey(key.toStringFormat(true));
    RowImpl prRow = (RowImpl) pr_dcib.getCurrentRow();
    String AM="model.AppModule";
    String CF="AppModuleLocal";
    ApplicationModule empSvc = Configuration.createRootApplicationModule(AM, CF);
    ViewObject emps = empSvc.findViewObject("EmpsView1");
    Row newEmp = emps.createRow();
    newEmp.setAttribute("Manager",new Number(1));
    newEmp.setAttribute("Department",new Number(1));
    newEmp.setAttribute("Depno",new Number(3));
    emps.insertRow(newEmp);
    try {
    newEmp.validate();
    catch (Exception ex) {
    System.out.println("validate catch");
    try {
    empSvc.getTransaction().postChanges();
    catch (Exception ex) {
    System.out.println("post catch");
    Configuration.releaseRootApplicationModule(empSvc,true);
    i=i+1;
    In this code I only postchanges() in first view and dont want to commit.
    But I cant see changes row in the page .If I press save I see transaction completed succesfully message.
    But in database not insertted any rows.
    If I write commit() after postchanges() code I see rows in the table .But I dont want to commit.Only post
    my changes and if necessary I press save button in page.
    How can I see changes in the page without commit???Thanks for all....

    You should NEVER use statements like this in managed beans:
    ApplicationModule empSvc = Configuration.createRootApplicationModule(AM, CF);
    This will create a separate application module instance, not shared by the the web pages. That's why you do not see the changes.
    Instead, you can use the following code:
    ApplicationModule am = (ApplicationModule)JsfUtils.getExpressionValue("#{data.MyAppModuleDataControl.dataProvider}");
    where MyAppModuleDataControl shoud be replaced with the name of your am data control.
    Steven Davelaar,
    JHeadstart Team.

  • Hi everyone, I have LR 5 that I purchased with a serial number and about a week ago I got the message about a new update, I want to get LR 6 but not the creative cloud, last time from LR4 to LR5 there was just an update without buying the creative cloud,

    Hi everyone, I have LR 5 that I purchased with a serial number and about a week ago I got the message about a new update, I want to get LR 6 but not the creative cloud, last time from LR4 to LR5 there was just an update without buying the creative cloud, is that possible from LR5 to LR6? Thanks so much.

    Welcome to Apple Discussions!
    You can't install 9.2.1 or earlier on any Mac that is only Mac OS X bootable. In fact you need to use the restore disks which came with those Macs to install 9.2.2 on those Macs. 8.6 is only possible to install on Macs which came with 8.6 or earlier. The 9.1 disk may be useful for your 1999 PowerMac G4, but won't be of any use for a 2006 Powerbook G4.
    Adobe Pagemill does not follow w3.org web publishing standards. If you want a webpage editor, get http://www.barebones.com/ BBEdit
    MS Office, there is a free Mac OS X alternative in http://www.neooffice.org/
    Or you can upgrade to the full Office 2004 for the Mac, or get http://www.thinkfree.com/ or Open OS X Office.
    Wordperfect files can be converted to Word files with http://www.dataviz.com/ 's Maclinkplus.
    Microsoft no longer has Internet Explorer for download (that quit being offered January 2006), though that is covered more in my FAQ:
    http://www.macmaps.com/browser.html
    As for other Mac OS X inquiries, I strongly recommend seeing my other FAQ:
    http://www.macmaps.com/macosxnative.html
    which should answer most of your other questions. If you have further questions, please feel free to ask me.
    Disclaimer: Reference to links I make to my Macmaps.com website are a for your information only type reference. I do not get any profit from this page, and it is open to the public.

  • "CSAP_MAT_BOM_MAINTAIN" can read material which is created without commit?

    hi:
      i want to create a material first with "BAPI_MATERIAL_SAVEDATA",then i want to add this material as a component
      to a existing BOM with "CSAP_MAT_BOM_MAINTAIN".
      1 I create the material using "BAPI_MATERIAL_SAVEDATA" without "BAPI_TRANSACTION_COMMIT".
      2 I use "CSAP_MAT_BOM_MAINTAIN" to add the material to a existing BOM.
      Before this test,i think "CSAP_MAT_BOM_MAINTAIN" will raise an exception:
      "The material XXX does not exist or is not activated"
      But the result is:Material is created successfully and the BOM is added a component with a commit implicitly.
      How can "CSAP_MAT_BOM_MAINTAIN" read the material which is not committed to the DB?
      BTW:Even if "CSAP_MAT_BOM_MAINTAIN" raise a exception,i can use "BAPI_TRANSACTION_COMMIT" to rollback both the
      created material and the changed BOM.
      I am confused!!
      Following is the sample code of this case:
    *& Report  Z_TESTYM23
    REPORT  z_testym23.
    DATA mat LIKE bapimathead-material VALUE '000000000000002814'.   "created material no
    DATA bom LIKE csap_mbom-matnr VALUE '000000000000002794'.
    DATA change_no LIKE aenrb-aennr.
    create ECN in sap
    PERFORM ecn_create.
    create material without commit
    PERFORM mat_create.
    *-- maintain BOM
    PERFORM maintain_bom.
    *&      Form  MAT_CREATE
          CREATE MATERIAL
    FORM mat_create .
      DATA headdata LIKE bapimathead.
      DATA clientdata LIKE bapi_mara.
      DATA clientdatax LIKE bapi_marax.
      DATA itab_makt LIKE TABLE OF bapi_makt.
      DATA wa_makt LIKE bapi_makt.
      DATA return LIKE bapiret2.
      headdata-material = mat.
      headdata-ind_sector = 'A'.
      headdata-matl_type = 'ROH'.
      headdata-basic_view = 'X'.
      clientdata-base_uom = '2X'.
      clientdatax-base_uom = 'X'.
      wa_makt-langu = sy-langu.
      wa_makt-matl_desc = 'TEST'.
      APPEND wa_makt TO itab_makt.
      CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
        EXPORTING
          headdata            = headdata
          clientdata          = clientdata
          clientdatax         = clientdatax
        IMPORTING
          return              = return
        TABLES
          materialdescription = itab_makt.
      CHECK return-type <> 'S'.
      CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
      MESSAGE  return-message TYPE 'E'.
    ENDFORM.                    " MAT_CREATE
    *&      Form  MAINTAIN_BOM
          Maintain BOM
    FORM maintain_bom .
      DATA i_datum(10).
      DATA i_stko TYPE stko_api01.
      DATA t_stpo LIKE TABLE OF stpo_api03.
      DATA w_stpo LIKE stpo_api03..
      WRITE  sy-datum TO i_datum.
      w_stpo-item_categ = 'L'.
      w_stpo-component = mat.
      w_stpo-comp_qty = '2'.
      APPEND w_stpo TO t_stpo.
      CALL FUNCTION 'CSAP_MAT_BOM_MAINTAIN'
        EXPORTING
          material    = bom
          bom_usage   = '1'
          valid_from  = i_datum
          change_no   = change_no   "correct no:'500000000053';incorrect no:'500000000153'
          i_stko      = i_stko
          fl_complete = 'X'
        TABLES
          t_stpo      = t_stpo
        EXCEPTIONS
          error       = 1
          OTHERS      = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.   "Rollback BOM and material
      ELSE.
        CALL FUNCTION 'BUFFER_REFRESH_ALL'.          "Remained process of function:BAPI_TRANSACTION_COMMIT
        WRITE: / 'Everything is OK',
               / 'CHANGE_NO: ',change_no,
               / 'MATERIAL NO: ',mat,
               / 'BOM: ', bom.
      ENDIF.
    ENDFORM.                    " MAINTAIN_BOM
    *&      Form  ECN_CREATE
          Create ECN
    FORM ecn_create .
      DATA change_header LIKE aenr_api01.
      DATA object_bom LIKE aenv_api01.
      change_header-status = '01'.
      change_header-valid_from = '2007/06/01'.
      change_header-descript = 'test'.
      object_bom-active = 'X'.
      CALL FUNCTION 'CCAP_ECN_CREATE'
        EXPORTING
          change_header            = change_header
          object_bom               = object_bom
          FL_COMMIT_AND_WAIT        = 'X'
         FL_NO_COMMIT_WORK        = 'X'
        IMPORTING
          change_no                = change_no
        EXCEPTIONS
          change_no_already_exists = 1
          error                    = 2
          OTHERS                   = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE 'E' NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " ECN_CREATE 
      Regards
      Ming

    I did another test as following:
    *& Report  Z_TESTYM23
    REPORT  z_testym23.
    DATA mat LIKE bapimathead-material VALUE '000000000000002816'.   "created material no
    create material without commit
    PERFORM mat_create.
    *&      Form  MAT_CREATE
          CREATE MATERIAL
    FORM mat_create .
      DATA headdata LIKE bapimathead.
      DATA clientdata LIKE bapi_mara.
      DATA clientdatax LIKE bapi_marax.
      DATA itab_makt LIKE TABLE OF bapi_makt.
      DATA wa_makt LIKE bapi_makt.
      DATA return LIKE bapiret2.
      headdata-material = mat.
      headdata-ind_sector = 'A'.
      headdata-matl_type = 'ROH'.
      headdata-basic_view = 'X'.
      clientdata-base_uom = '2X'.
      clientdatax-base_uom = 'X'.
      wa_makt-langu = sy-langu.
      wa_makt-matl_desc = 'TEST'.
      APPEND wa_makt TO itab_makt.
      CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
        EXPORTING
          headdata            = headdata
          clientdata          = clientdata
          clientdatax         = clientdatax
        IMPORTING
          return              = return
        TABLES
          materialdescription = itab_makt.
    CALL FUNCTION 'MARA_SINGLE_READ'
       EXPORTING
        KZRFB                   = ''
        MAXTZ                   = 0
         matnr                   = mat
        SPERRMODUS              = ' '
        STD_SPERRMODUS          = ' '
        OUTPUT_NO_MESSAGE       =
      EXCEPTIONS
        lock_on_material        = 1
        lock_system_error       = 2
        wrong_call              = 3
        not_found               = 4
        OTHERS                  = 5.
    IF sy-subrc <> 0.
       CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
       MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
      SELECT COUNT(*) FROM MARA WHERE MATNR = MAT.
      WRITE SY-DBCNT.
      CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
      WRITE return-message.
    ENDFORM.                    " MAT_CREATE
    SY-DBCNT = 1 and i can alse rollback the material

  • Is there a way to do a firmware update without being plugged into a power source?

    I have a Macbook 2GHz Intel Core 2 Duo and the indicator light on the Magsafe power cord is not lighting up. I know the cord works because I have tried it on a different computer but it is only this macbook that it doesn't work on. I have reset the SMC. I do need to do a firmware update but when I try to do the update it the firmware it will not let me update because the computer doesn't know that its connected to a power source. When I look at the battery life indicator on the right hand corner it says that its calculating but never changes.
    I was using the computer running on battery life and it turned off. I was able to turn the computer on. The computer powers on and off but i'm assuming its going to run the battery power. I don't have another battery to try on this computer. Are there any suggestions?
    Firmware update 1.4 is what i'm trying to install

    Is there a way to do a firmware update without being plugged into a power source?
    No

  • Go from manually update to auto-update without losing songs?

    I was trying to delete some podcasts from my ipod, and was following the directions on the help menu which told me to go to preferences and choose manual update, then delete. I tried it, and it didn't work. When I decided to go back to auto update, I received a message that everything on my ipod would be deleted and the update would be just what is on the itunes on that machine. I have more than one computer, and have itunes on each one. There are different songs on each computer. If I go to manually update on this computer, it will erase the songs I've put on from other computers. All this and I still have the unwanted podcasts. Can anyone help me to go back to auto-update without losing songs? If worse comes to worst I guess I'll have to update, lose the songs, and then re-update at my other computers. thanks.

    Afraid that's not possible. If you go to auto-update, the iPod gets cleared and replaced with the current contents of the iTunes library.

  • I have a Mac G4 with a 10.3.9 OS and I want to update without losing any filters from my Photoshop 7. Should I go to 10,4 or higher?

    I have a Mac G4 with a 10.3.9 OS and I want to update without losing any filters from my Photoshop 7. Should I go to 10.4 or higher?

    Why do you need to update at all?
    In order to upgrade you will have to purchase a retail copy of either Tiger or Leopard neither of which are easy to come by, and they tend to be a bit expensive.  And, there's no assurance that the version of PS you now use will be compatible with a newer version of OS X.

  • First question - I have Acrobat 9 on my desktop and the license seems to have been messed up.  I tried to download and fis but I asked me for a disk.  I don't have any idea where the "disk" is.  Can I get the license update without that disk?

    First question - I have Acrobat 9 on my desktop and the license seems to have been messed up.  I tried to download and fis but I asked me for a disk.  I don't have any idea where the "disk" is.  Can I get the license update without that disk?
    Second question - In anticipation of not being able to do that, I bought (at University bookstore) Acrobat XI Pro - do I need to uninstall the 9.0 Pro version before I try to install the XI version?

    If you still have your serial number for Acrobat Pro there is a link to the installer here:  Download Acrobat products | 9, 8

  • I have a problem with my ipad when choosing software update it is continously loading the message checking for updates without showing any results

    I have a problem with my ipad when choosing software update it is continously loading the message checking for updates without showing any results  

    Hello SuzMiller
    Check out the article for the troubleshooting steps for issues with email on your iPhone and iPad.
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/ts3899
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • Need help: Sending mail to internet address without commit work statement

    Dear Experts,
            I have a problem in sending mails from sap to internet address.Am using the function module
    SO_NEW_DOCUMENT_SEND_API1 and am passing parameters like,
    CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
         EXPORTING
              DOCUMENT_TYPE  = 'RAW'
              DOCUMENT_DATA  = DOC_CHNG
              PUT_IN_OUTBOX  = 'X'
         TABLES
              OBJECT_CONTENT = OBJCONT
              RECEIVERS      = RECLIST
         EXCEPTIONS
              TOO_MANY_RECEIVERS         = 1
              DOCUMENT_NOT_SENT          = 2
              OPERATION_NO_AUTHORIZATION = 4
              OTHERS                     = 99.
    submit rsconn01 with mode = 'INT'
                        with output = 'X'
                        and return.
    My problem here is,with the commit work statement after FM, the mail is triggering correctly.but if, am not using the commit work statement,at the very first time of execution mail is not triggering, and the second time of execution first mail is triggering like wise it is going.The status of the message is waiting in queue.
    i have refresh receiver's list also.I want to use this concept in badi.So anyone can pls help me,how to send a mail without commit work statement.
    Thanks in advance.

    There is a parameter Commit_Work pass it as 'X'
    <code>
    CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
    EXPORTING
    DOCUMENT_TYPE = 'RAW'
    DOCUMENT_DATA = DOC_CHNG
    PUT_IN_OUTBOX = 'X'
    commit_work = 'X'
    TABLES
    OBJECT_CONTENT = OBJCONT
    RECEIVERS = RECLIST
    EXCEPTIONS
    TOO_MANY_RECEIVERS = 1
    DOCUMENT_NOT_SENT = 2
    OPERATION_NO_AUTHORIZATION = 4
    OTHERS = 99.
    submit rsconn01 with mode = 'INT'
    with output = 'X'
    and return.
    </code>
    Edited by: Saravanan Ramasamy on Nov 11, 2009 1:31 PM

  • How can I get security updates without dealing with Firefox 4 update reminders?

    I tried Firefox 4 for awhile, hated it and reloaded 3.6. I keep getting reminders to update to 4 which are bothersome. I have disabled reminders, but how can I continue to get security updates without upgrading to 4?

    Install Secunia's free Personal Software Inspector: http://secunia.com/vulnerability_scanning/personal
    You also need to update Flash a.s.a.p. The version you're running right now is a security risk. See http://www.adobe.com/support/security/advisories/apsa11-02.html
    Update via http://get.adobe.com/flashplayer/
    Also, update Firefox to 3.6.17 because there was a security breach at Comodo which is an SSL certificate provider recently whereby a number of fraudulent certificates were inadvertently issued. These allow a hacker to impersonate any site including online banking and the Firefox version you're running at the moment will not warn you that the site is a fake. The fraudulent certificates were blacklisted in v3.6.17 and beyond.
    See http://blogs.comodo.com/it-security/data-security/the-recent-ra-compromise/

  • How do I restart my computer for updates without having it reset because the log in window, suddenly, now appears?

    How do I restart my macbook for updates without having it reset because the log in window, suddenly, now appears? I've never had this issue until a few days ago when there were updates available. Somewhere the settings were changed. I may have inadvertently changed a log in preference but can't trace it back.

    That usually doesn't happen (unless you do not use automatic login) unless you boot into Safe Mode. When prompted do you enter your admin password? What happens when you do that?

Maybe you are looking for

  • Takes long time  to open exported HTML

    I've set up my exported HTML captivate project to run after 10% is loaded, but I'm seeing strange/funny behavior: -Preload screen shows for approx 10 secs (this is fine) -Then first slides is displayed (good so far) -Then everything hangs for 45-60 s

  • Replace the text numbers string in a txt file using C++.. Help Me..

    Read a Document and replace the text numbers in a txt file using c++.. For ex:  Before Document:  hai hello my daily salary is two thousand and five and your salary is five billion. my age is  twenty-five.  After Document:  hai hello my daily salary

  • Modal window can't show window with viewset???

    Hi all, I use the following code to create a popup modal window. When i embed only one view, it works fine, but when i embed a viewset, and put multiple views into the viewset, it can only pop up a tiny little area with nothing in it. is there a reas

  • List PO's waiting to be released

    Hi, Is there a standard report to list the PO's waiting to be released ? If not, which tables should I look into to create this list myself in QuickViewer ? Thanks in advance for your feedback, Erik

  • Migration from Data Services 3.2 - Data Services 4.0 document

    Hi Experts,       Can somebody provide me a document or link where i can find Migration or Process Flow from Data Services 3.2 to Data Services 4.0? Any help in advance is appreciated Thanks AJ


HashFlare