Updating a table entry when remoteexception occures

Hi,
We are having the requirement that if remoteexception happens from EJB 1.1 then we need to update one table with status set to false.
Since remoteexception is a system exception the transaction is marked for rollback and when we catch remoteexception and try to update the table
it is not getting updated because the client transaction is also rolledback.
we are actually using Websphere commerce server and we saw that WCS is able to update some of its own DB tables even when remoteexception occurs but we are not able to do it.
So is there a way that when remotexception happens from EJB 1.1 we can update one of our tables.
if yes then how can we do it.
Thanks
Ravi

Try by putting this update code in a separate EJB with REQUIRES_NEW transaction scope.
The the update is done in it's own transaction, and will not get affected by the other transactions 'marked for rollback' setting.
-Roy

Similar Messages

  • Updating EKPA table entries

    Dear Friends,
    I need to update my purchase order and related material document entries in table EKPA which is not happening.
    Is there some customization required or wht else; kindly help
    Thanks in advance
    Vrish.

    Hi,
    There is no need of customization. whenever you are creating P.O the relevant details are updated.Incase if the values are not updated.Please contact your SAP ABAP (or) else
    maintain in SM30 enter the  table name and update
    G.Ganesh Kumar

  • Update TVARV table entries using a Function Module or Program

    Hi Gurus,
    My requirement is that I have a entry in TVARV table which has a 'low'. We would like to change this value whenever we desire. We are unable to do it via sm30 and se16 as table maintenance access is not permitted in Production environment.
    Can you please provide any Function module or program code to do it?
    Requirement - User can enter a value into TVARV table by executing a function module or program
    Thank you all, will award points,
    Priyansh

    Hi Priyansh,
    Please refer to SAP Help for more information on variant maintenance and more specifically variable values in variants. You can use t/code STVARV for maintaining the variant variables in table TVARVC (Client-Specific Variant Variables).
    Note: I suggest to use the TVARVC table instead of TVARV.
    If you are looking for Function Modules in the area of Variant Maintenance, then please have a look at Function Group SVAR (t/code SE80).
    If you are looking for Function Modules in the area of User Variables in Variants, then please have a look at Function Group SVUV (t/code SE80).
    Furthermore, if you are looking for a program to update table TVARVC, please have a look at ABAP: Dynamic Variant Processing with STVARV.
    Best eregards,
    Sander

  • A frame containing table looses table info when overflow occurs!

    Hi,
    This is a case when text frame contains a table.
    when we type some content in table cell such that the size of cell increases more than the size of frame, Overflow occurs( a small '+' mark in bottom right corner of frame), and table is no more visually present in the frame.
    But the problem occurs when I try to access the table property of frame via. scripting (using JSX) by using below command:
    oFrame.tables.length
    where oFrame is the frame object.
    Note that before the overflow when we can visually see the table in frame, the above call returns '1', but once the overflow occurs(such that table is no more visually present in the frame),
    the above call returns '0'.
    Is this some kind of Bug in Indesign?? How can I access the table in the frame which has overflow???
    Please see the screen shots below, the first one is with just one word in table cell, and next is with more text resulting in overflow.
    1) oFrame.tables.length returns 1
    2) oFrame.tables.length returns 0

    Hi, kapoor_aman27,
    try the below line.
    oFrame.parentStory.tables.length returns 1
    thx,
    csm_phil

  • Transport table entries sap to sap using rfc

    Hi Guru's,
               I want to write a program for update one table entries of sap system  to onother table of sap system using RFC establishment.
    If you have any example code kindly give it to me.
    Thanks & Regards,
    Lakshman.annamaneni

    Hi,
    POST - 1
    Fisrt create RFC Destination in SM59 between sender & receiver system.
    *Sender System:*
    FUNCTION XX_RFC_READ_SPFLI.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(CARRID) LIKE  SPFLI-CARRID
    *"     VALUE(CONNID) LIKE  SPFLI-CONNID
    *"  EXPORTING
    *"     VALUE(EX_SPFLI) LIKE  SPFLI STRUCTURE SPFLI
    *"     VALUE(SYS) LIKE  SY-SYSID
    *"  EXCEPTIONS
    *"      INVALID_DATA
      SELECT SINGLE * FROM spfli INTO spfli_workarea
             WHERE  carrid      = carrid
             AND    connid      = connid.
      IF sy-subrc EQ 0.
        ex_spfli = spfli_workarea.
      ELSE.
        RAISE invalid_data.
      ENDIF.
      Sys   = sy-sysid.
    ENDFUNCTION.
    *NEXT: create a Prog.*
    REPORT XX_RFC_Tutorial.
    Global Data Declaration
    TABLES: spfli.
    PARAMETERS: p_carrid LIKE spfli-carrid DEFAULT 'LH',
                p_connid LIKE spfli-connid DEFAULT '400'.
    DATA: SYSTEM LIKE SY-SYSID.
    * Calling the Function
    CALL FUNCTION 'XX_RFC_READ_SPFLI'
       EXPORTING
             carrid       =  p_carrid
             connid       =  p_connid
       IMPORTING
             ex_spfli     =  spfli
             sys          =  system
       EXCEPTIONS
             invalid_data =  1.
    * Handling Exceptions
    CASE sy-subrc.
       WHEN 1.
          WRITE 'No data available'.
           EXIT.
    ENDCASE.
    * Displaying Results
    WRITE: spfli-carrid,
           spfli-connid,
           spfli-cityfrom,
           spfli-cityto,
           spfli-deptime,
           spfli-arrtime.
    See the next post for Receiver System:
    Anil.

  • Event trigger on transport of ABAP table entries

    Hi Experts,
    I have an issue with respect to the scenario mentioned.
    Scenario is that I have a Z-table in Dev which is maintained through SM30 once the data is saved ,the event"02 After saving the data in the database" ,I have linked a include program to this event which triggers a abap proxy to send data to SAP PI Java stack cache,this scenario is used in value mapping replication from Z-table.
    The problem is the QA and PRD Client has status 'not modifiable'.
    So can these Z-table entries when transported to QA or PRD ,trigger an event which can call my proxy program to send the full load to the SAP PI system.
    Thanks
    -Alok

    Hi I can try to give the information for the z-table entries to be transported to QA or Prod environment?
    Ans) Yes, we can transport these Z-table entries to the the QA and Prod system environment, but the z table 'devliery and maintenance" table defines the technical attributes for this Z-table.
    in the delivery and maintenance tab, you can define the deliver class. Suppose if your delivery class type is C, G, E, S: The data records of the table are copied to the target client.
    Hope this information can be useful.
    thanks

  • Standard table entries

    hi all
      i am having standard table J_1IPART2 . in this table i need to modify values of 4 fields with document number i.e with value of one field i need to modify values of 4 fields which already stored in database. can i have any ways to do it
              can i write a simple modify program in se38 to modify the values in database. is it work?  pls suggest me.
                                                       Kumar

    Hi Kumar,
    Yes you can write program to update the table directly and modify the entries for the specific document number, however this is not a recommended way as the database may become inconsistent with different entries maintained in different related tables.
    So before updating the table entries make sure the values you are updating are maintained in only this table and not anywhere else for the respective document number.
    regards.
    Vikas
    <b>Do reward useful  suggestions.</b>

  • Se16 table entries

    Hello all,
    I have deleted the some of the operations in the task list which was maintiained earlier and went back to Se16 and still seeing the deleted entried in the table PLPO. I guess it should not be in there. Does Se16 does not update the table entries based on the update in the transaction ?
    Mahee

    Hi,
    No they are not deleted (or marked deleted) in PLPO, the operations may be valid for a specific period of time. To see which operations are deleted check PLAS table, field LOEKZ.
    -Paul

  • Which field ,table gets the entry when we refresh cube statistics

    Hey,
    I just want to know  into which field or table entry is made when we Refresh statistics using the manage tab of the Infocube.. I saw the fields of the table RSDCUBE , there are two includes as given below and their fields, Im noy able to quite figure out which field gets the entry when i click on refresh statistics button in the Performance tab.
    1) RSDCUBEDBFLAGS (InfoCube: DB Performance Flags): which has the following fields namely
    CLEAR_INDEX     Boolean
    DELTA_INDEX     Boolean
    REBUILD_STAT     Boolean
    DELTA_STAT     Boolean
    PERCENTAGE     internal use
    NULLCOMP     Zero elimination in the summarization module
    COMP_DISJ     Flag: only disjunct records
    REFUPDATE     No update of the non-cumulative marker
    2)RSDCUBEBWSTAT (InfoCube: BW Statistics)
    BWSTATISTICS     Boolean
    BWSTATWHM     Boolean
    However , when i click on refresh statics, there is a job which runs from my id which triggers the program RSDSTAT1 with variant as the cube name..
    its kinda urgent...  helllpp
    Thanks,
    vaish

    Hey,
    I just want to know  into which field or table entry is made when we Refresh statistics using the manage tab of the Infocube.. I saw the fields of the table RSDCUBE , there are two includes as given below and their fields, Im noy able to quite figure out which field gets the entry when i click on refresh statistics button in the Performance tab.
    1) RSDCUBEDBFLAGS (InfoCube: DB Performance Flags): which has the following fields namely
    CLEAR_INDEX     Boolean
    DELTA_INDEX     Boolean
    REBUILD_STAT     Boolean
    DELTA_STAT     Boolean
    PERCENTAGE     internal use
    NULLCOMP     Zero elimination in the summarization module
    COMP_DISJ     Flag: only disjunct records
    REFUPDATE     No update of the non-cumulative marker
    2)RSDCUBEBWSTAT (InfoCube: BW Statistics)
    BWSTATISTICS     Boolean
    BWSTATWHM     Boolean
    However , when i click on refresh statics, there is a job which runs from my id which triggers the program RSDSTAT1 with variant as the cube name..
    its kinda urgent...  helllpp
    Thanks,
    vaish

  • No entry in table T001P when running time eval

    Hi,
    Can someone tell me, why this error occurs. "No entry in table T001P" when running time evaluation PT60. I checked his Infotype 1 and has the Personal Area/Subarea assigned.
    Thanks,
    Swarna.

    Hi,
    Please check these tables:
    V_001P_ALL
    V_503_AL
    Or try creating a blank entry in table T001P.
    Hope this helps,
    Reward points if helpful,
    Thank You,

  • I did a software upgrade to IOS6 and my Iphone4S is now unable to update. Do I lose all my contacts and calendar entries when I restore?

    I did a software upgrade to IOS6 and my Iphone4S is now unable to update. Do I lose all my contacts and calendar entries when I restore?

    You should be syncing all your contacts and calendars with your computer, either via iCloud or iTunes, so it is easy to re-sync them back to the phone after you restore.

  • How to update the table when change list item in classic report

    hi ,
    i worked with apex 4.2 and i create normal classic report with one select list(named loved)Column ,now i want to update table when user change the list with new value ,i can't create dynamic action to do this,i create check box with primary key and loop for check item to update the table but i can't get the value of list item. and for more speed the user want to do this when change the list value.
    my question
    1- how to do this by javascript and get the value from list item and update the table with new value
    2- is i must use API to create list item so i can get the value of item in report or what.
    Thanks
    Ahmed

    I coded the following to give you direction:
    1. In the "Element Attributes" section of the DEPTNO column, I call a javascript function as:
    onchange = "javascript:updateTable(this);"2. I wrote a simple javascript function that shows an alert when the user changes the select list as:
    <script language="JavaScript" type="text/javascript">
    function updateTable(pThis)
        var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
        alert('Row# - '+ vRow + ' has the value - ' + pThis.value);
    </script>Now, you can call a AJAX on-demand process inside the javascript function to update the database value.

  • I have an ipod nano 4GB and use pc windows xp . since last year my ipod didnt sync any new songs saying "the ipod cannot be synced the required folder couldnt be found" and when i try to update the itunes version another error occured. plz HELP!!!!!!!!!

    I have an ipod nano 4gb and use pc with windows XP. since last year my ipod suddenly didnt want to sync any new songs saying " the ipod "MOAMEN" cannot be synced. the required folder couldnt be found" and when i try to update the itunes version another error occurs and i dont know when i tryed to format ipod i didnt find "format" button. so plz give me suggestions instructions i extremely bored !!!!!!!!!!!!!1

    Uninstall/Reinstall iTunes then try to rebuild the library.
    http://support.apple.com/kb/HT1925  (uninstall/reninstall)
    http://support.apple.com/kb/HT1451 (recreate library)

  • Can't update master table when creating a materialized view log.

    Hi all,
    I am facing a very strange issue when trying to update a table on which I have created a materialized view log (to enable downstream fast refresh of MV's). The database I am working on is 10.2.0.4. Here is my issue:
    1. I can successfully update (via merge) a dimension table, call it TABLEA, with 100k updates. However when I create a materialized view log on TABLEA the merge statement hangs (I killed the query after leaving it to run for 8 hrs!). TABLEA has 11m records and has a number of indexes (bitmaps and btree) and constraints on it.
    2. I then create a copy of TABLEA, call it TABLEB and re-created all the indexes and constraints that exist on TABLEA. I created a materialzied view log on TABLEB and ran the same update....the merge completed in under 5min!
    The only difference between TABLEA and TABLEB is that the dimension TABLEA is referenced by a number of FACT tables (by FKs on the FACTS) however this surely should not cause a problem. I don't understand why the merge on TABLEA is not completing...even though it works fine on its copy TABLEB? I have tried rebuilding the indexes on TABLEA but this did not work.
    Any help or ideas on this would be most appreciated.
    Kind Regards
    Mitesh
    email: [email protected]

    Thats what I thought, the MVL will only read data that has changed since it was created and wont have the option to load in all the data as though it was made before the table was created.
    From what I have read, the MVL is quicker than a Trigger and I have some free code that prooved to work from a MVL using it as a reference to know what records to update. There is not that much to a MVL, a record ID and type of update, New, Update or Delete.
    I think what I will have to do is work on a the same principle for the MVL but use a Trigger as this way we can do a full reload if required at any point.
    Many thanks for your help.

  • Not Updating Customized Table when System having Performance Issue

    Hi,
    This is actually the same topic as "Not Updating Customized Table when System having Performance Issue" which is posted last December by Leonard Tan regarding the user exit EXIT_SAPLMBMB_001.
    Recently we changed the program function module z_mm_save_hide_qty to update task. However this causes more data not updated. Hence we put back the old version (without the update task).  But now it is not working as it used to be (e.g. version 1 - 10 records not updated, version 2 with update task - 20 records not updated, back to version 1 - 20 records not updated).
    I tried debugging the program, however whenever I debugged, there is nothing wrong and the data is updated correctly.
    Please advise if anyone has any idea why is this happening. Many thanks.
    Regards,
    Janet

    Hi Janet,
    you are right. This is a basic rule not to do any COMMIT or RFC calls in a user exit.
    Have a look at SAP note 92550. Here they say that exit EXIT_SAPLMBMB_001 is called in the update routine MB_POST_DOCUMENT. And this routine is already called in UPDATE TASK from  FUNCTION 'MB_UPDATE_TASKS' IN UPDATE TASK.
    SAP also tells us not to do any updates on SAP system tables like MBEW, MARD, MSEG.
    Before the exit is called, now they call 'MB_DOCUMENT_BADI' with methods MB_DOCUMENT_BEFORE_UPDATE and MB_DOCUMENT_UPDATE. Possibly you have more success implementing the BADI.
    I don't know your situation and goal so this is all I can tell you now.
    Good luck!
    Regards,
    Clemens

Maybe you are looking for

  • [CS5] Overriding elements from master of master

    I have two masters, A-product and B-product 1. Master B-product 1 is based on A-product. 'myPage" based on B-product 1. Overriding elements from B-product 1 to document page works, but I can't override elements from A-product master. I can found elem

  • WRT54G: How do I limit access to specific ports, only to local IP's

    Using a WRT54G with Windows XP, and I've setup a web server that I'm still testing. Until I understand the security better, I want to limit access from outside IP's to the port that it's running on, but NOT limit access from the outside to services r

  • Creating tabs in a region

    All, Iam trying to create a typical tabs as shown in the below jquery link http://jqueryui.com/tabs/#verticalbut after referencing all scripts at the html header and the code for the body everything is distorted. Can somebody please help me on this j

  • Display html document

    I have created an html file in the portal (Content Management -> Explorer -> Folder ->HTML File). I want to create an iview that will display this file. How can I achieve this

  • FBCJ: Service Tax calculation

    Hi Expert, I need to configure seceniro where while making cash payment via, service tax on GTA  needs to be calculated. Please advice