EJB Store called in a loop

I am having a problem porting our application from weblogic5.1 (EJB1.1) to weblogic8.1 (EJB2.0)
My current problem is an ejbStore called in a loop during a finder method call of a BMP entity bean.
The outer session bean calls entity beans in a transaction context, session bean has a transaction attribute of 'required'. This method uses a BMP home interface to do a finder method call on one BMP Entity Beans. It then does a set for just one column in the first entity. Then it does a finder method call on the second BMP entity bean, as soon as we call finder method on second entity bean, ejbStore method of first entity bean is called . All the BMP entity bean methods have a 'required' transaction attribute.
On calling the second finder method Weblogic has decided that it needs to update the first BMP entity bean. I.e. it calls ejbStore on the bean. I'm not sure why it should feel the need to do this but it does. But logically speaking ejbStore method should be called when we commit the transaction. I am using Transaction begin() and commit() in the session bean. The problem is that it then calls ejbStore in a loop.
All the methods for these two BMP beans are 'required' transaction attributes.

No.  But I have older versions of the program on the boot drive.  I also have older versions of GB and QuickTime on there too.  I don't want to get rid of them.  The older stuff are in folders.  I guess Apple will figuar out some way of denoteing one from the other. 

Similar Messages

  • Error while calling ejb service call from BPM service

    Hi,
    We are using the Oracle 11.1.1.5.0
    We are calling ejb service call from BPM service to update the data to Oracle database.
    We are getting the below error when we executing the ejb service call from BPM Service.
    <Error> <EJB> <BEA-010026> <Exception occurred du
    ring commit of transaction Name=[EJB oracle.bpm.bpmn.engine.ejb.impl.BPMNDeliver
    yBean.handleCallback(java.lang.String,java.lang.String,java.lang.String,int,bool
    ean)],Xid=BEA1-45B91984D57960994897(30845116),Status=Rolled back. [Reason=javax.
    transaction.xa.XAException: JDBC driver does not support XA, hence cannot be a p
    articipant in two-phase commit. To force this participation, set the GlobalTrans
    actionsProtocol attribute to LoggingLastResource (recommended) or EmulateTwoPhas
    eCommit for the Data Source = EBSConnection],numRepliesOwedMe=0,numRepliesOwedOt
    hers=0,seconds since begin=1,seconds left=60,XAServerResourceInfo[SOADataSource_
    base_domain]=(ServerResourceInfo[SOADataSource_base_domain]=(state=rolledback,as
    signed=soa_server1),xar=SOADataSource,re-Registered = false),XAServerResourceInf
    o[ArCnTaskForms@EBSConnection@EBSConnection_base_domain]=(ServerResourceInfo[ArC
    nTaskForms@EBSConnection@EBSConnection_base_domain]=(state=rolledback,assigned=s
    oa_server1),xar=weblogic.jdbc.wrapper.JTSEmulateXAResourceImpl@fa5476,re-Registe
    red = false),SCInfo[base_domain+soa_server1]=(state=rolledback),properties=({web
    logic.jdbc.remote.EBSConnection=t3://192.168.10.114:8001, weblogic.transaction.n
    ame=[EJB oracle.bpm.bpmn.engine.ejb.impl.BPMNDeliveryBean.handleCallback(java.la
    ng.String,java.lang.String,java.lang.String,int,boolean)]}),local properties=({w
    eblogic.jdbc.jta.SOADataSource=[ No XAConnection is attached to this TxInfo ]}),
    OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=soa
    server1+192.168.10.114:8001+basedomain+t3+, XAResources={eis/tibjms/Queue, eis
    /activemq/Queue, WLStore_base_domain_BPMJMSFileStore, WLStore_base_domain__WLS_s
    oa_server1, eis/fioranomq/Topic, eis/jbossmq/Queue, eis/Apps/Apps, eis/websphere
    mq/Queue, eis/AQ/aqSample, WLStore_base_domain_SOAJMSFileStore, eis/aqjms/Queue,
    WSATGatewayRM_soa_server1_base_domain, eis/sunmq/Queue, eis/pramati/Queue, SSCo
    nnectionDS_base_domain, eis/tibjms/Topic, eis/tibjmsDirect/Queue, eis/wls/Queue,
    eis/tibjmsDirect/Topic, EDNDataSource_base_domain, eis/wls/Topic, eis/aqjms/Top
    ic, RL3TST_base_domain, ArCnTaskForms@EBSConnection@EBSConnection_base_domain, S
    OADataSource_base_domain, WLStore_base_domain_UMSJMSFileStore_auto_2},NonXAResou
    rces={})],CoordinatorURL=soa_server1+192.168.10.114:8001+base_domain+t3+): weblo
    gic.transaction.RollbackException: Could not prepare resource 'ArCnTaskForms@EBS
    Connection@EBSConnection_base_domain
    JDBC driver does not support XA, hence cannot be a participant in two-phase comm
    it. To force this participation, set the GlobalTransactionsProtocol attribute to
    LoggingLastResource (recommended) or EmulateTwoPhaseCommit for the Data Source
    = EBSConnection
    at weblogic.transaction.internal.TransactionImpl.throwRollbackException(
    TransactionImpl.java:1881)
    at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(Se
    rverTransactionImpl.java:345)
    at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTran
    sactionImpl.java:239)
    at weblogic.ejb.container.internal.BaseLocalObject.postInvoke1(BaseLocal
    Object.java:622)
    at weblogic.ejb.container.internal.BaseLocalObject.__WL_postInvokeTxRetr
    y(BaseLocalObject.java:455)
    at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(Sess
    ionLocalMethodInvoker.java:52)
    at oracle.bpm.bpmn.engine.ejb.impl.BPMNDeliveryBean_of8dk6_ICubeDelivery
    LocalBeanImpl.handleCallback(Unknown Source)
    at com.collaxa.cube.engine.dispatch.message.instance.CallbackDeliveryMes
    sageHandler.handle(CallbackDeliveryMessageHandler.java:47)
    at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(Dispatc
    hHelper.java:140)
    at com.collaxa.cube.engine.dispatch.BaseDispatchTask.process(BaseDispatc
    hTask.java:88)
    at com.collaxa.cube.engine.dispatch.BaseDispatchTask.run(BaseDispatchTas
    k.java:64)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
    utor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
    .java:908)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: javax.transaction.xa.XAException: JDBC driver does not support XA, he
    nce cannot be a participant in two-phase commit. To force this participation, se
    t the GlobalTransactionsProtocol attribute to LoggingLastResource (recommended)
    or EmulateTwoPhaseCommit for the Data Source = EBSConnection
    at weblogic.jdbc.wrapper.JTSXAResourceImpl.prepare(JTSXAResourceImpl.jav
    a:83)
    at weblogic.transaction.internal.XAServerResourceInfo.prepare(XAServerRe
    sourceInfo.java:1327)
    at weblogic.transaction.internal.XAServerResourceInfo.prepare(XAServerRe
    sourceInfo.java:513)
    at weblogic.transaction.internal.ServerSCInfo$1.run(ServerSCInfo.java:36
    8)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTunin
    gWorkManagerImpl.java:528)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    .>
    <12 Oct, 2012 12:34:40 PM IST> <Error> <oracle.soa.bpel.engine.dispatch> <BEA-00
    0000> <failed to handle message
    javax.transaction.xa.XAException: JDBC driver does not support XA, hence cannot
    be a participant in two-phase commit. To force this participation, set the Globa
    lTransactionsProtocol attribute to LoggingLastResource (recommended) or EmulateT
    woPhaseCommit for the Data Source = EBSConnection
    at weblogic.jdbc.wrapper.JTSXAResourceImpl.prepare(JTSXAResourceImpl.jav
    a:83)
    at weblogic.transaction.internal.XAServerResourceInfo.prepare(XAServerRe
    sourceInfo.java:1327)
    at weblogic.transaction.internal.XAServerResourceInfo.prepare(XAServerRe
    sourceInfo.java:513)
    at weblogic.transaction.internal.ServerSCInfo$1.run(ServerSCInfo.java:36
    8)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTunin
    gWorkManagerImpl.java:528)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    >
    <12 Oct, 2012 12:34:40 PM IST> <Error> <oracle.soa.bpel.engine.dispatch> <BEA-00
    0000> <Failed to handle dispatch message ... exception ORABPEL-05002
    Message handle error.
    error while attempting to process the message "com.collaxa.cube.engine.dispatch.
    message.instance.CallbackDeliveryMessage"; the reported exception is: Error comm
    itting transaction:; nested exception is: javax.transaction.xa.XAException: JDBC
    driver does not support XA, hence cannot be a participant in two-phase commit.
    To force this participation, set the GlobalTransactionsProtocol attribute to Log
    gingLastResource (recommended) or EmulateTwoPhaseCommit for the Data Source = EB
    SConnection
    This error contained an exception thrown by the message handler.
    Check the exception trace in the log (with logging level set to debug mode).
    ORABPEL-05002
    Message handle error.
    error while attempting to process the message "com.collaxa.cube.engine.dispatch.
    message.instance.CallbackDeliveryMessage"; the reported exception is: Error comm
    itting transaction:; nested exception is: javax.transaction.xa.XAException: JDBC
    driver does not support XA, hence cannot be a participant in two-phase commit.
    To force this participation, set the GlobalTransactionsProtocol attribute to Log
    gingLastResource (recommended) or EmulateTwoPhaseCommit for the Data Source = EB
    SConnection
    This error contained an exception thrown by the message handler.
    Check the exception trace in the log (with logging level set to debug mode).
    at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(Dispatc
    hHelper.java:207)
    at com.collaxa.cube.engine.dispatch.BaseDispatchTask.process(BaseDispatc
    hTask.java:88)
    at com.collaxa.cube.engine.dispatch.BaseDispatchTask.run(BaseDispatchTas
    k.java:64)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
    utor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
    .java:908)
    at java.lang.Thread.run(Thread.java:662)
    >
    Could any body help on this issue.It is little bit urgent for us to resolve.
    Thanks in advance.

    Thanks Sudipto Desmukh,
    The link is helpful me to resolve this issue.
    Thanks,
    Narasimha E

  • I have bought an Item from apple store Called "Scarry Tribes , 19,999 sale ! . from develober Called "XYRALITY GmbH" Type: In App Purchase , and no thing added to my Account in the Game !!?

    I have bought an Item from apple store Called "Scarry Tribes , 19,999 sale !" . from develober Called "XYRALITY GmbH" Type: In App Purchase , and no thing added to my Account in the Game !!?
    and if you cam Help Me I'll Copy the Invoice or Order number .. !

    While I am no fan of Best Buy and would not buy a lightbulb from them I doubt you issues have anything to do with your iMac and more to do with your lack of experience and simply getting bad advice. Judging by you post I suspect you have loaded your computer down with a lot of crapware and that  has caused it's problems. For example running antivirus apps on a Mac not only is a waste of time, it's a waste of money, system resources and will eventually create more problems that it solves. Please begin educating yourself on the subject by reading Thomas Reeds articles on the subject, Thomas is a frequent and knowledgeable contributor to these forums. You can find his webpage at http://www.reedcorner.net/tech-guides/
    The good news is here are absolutely no, zero, zippo viruses for OS X. There are other types of malware available (for example trojans) however they differ greatly from viruses in that the use has to download and install them, whereas viruses do not work that way. OS X is not like MS Windows and is extremely secure.
    My suggestion at this point would be to clean your computer of the crapware (including antivirus apps) however before doing so please download and install EtreCheck and post its report. Then we can see how your computer has been configured and begin to give you some advice on the next steps.

  • How to call in a loop AdfCustomEven.queue to send data in pieces

    Hi
    I need to call in a loop AdfCustomEven.queue to send data in pieces to a managed bean in the server

    You can try using an af:poll and call the queue from the pollListener
    Timo

  • BPM start event(start condition) doesn't support ejb function call?

    Hi all,
    An id is included in the ws call to trigger the bpm flow,
    I have developed a ejb function, which is doing a simple check whether the process for the specific id is called before or not.
    I have a simple table in bpm java server which records the id used before.
    the ejb is called in the start condition, my desired behavior is: if the ejb returns true, no process should be triggered.
    but the thing is, my flow is not getting triggered once I put the ejb call in the start condition.(ejb is called, as i can see new id record inserted into my db table)
    I cannot even debug the process.
    I can debug the process if that ejb call is removed from the start condition.
    my server is 7.31 sp8
    Best regards,
    Jun

    Thanks for confirming Jun Wu.... always comforting to see even the experts can stuff it up from time to time... and very glad you were able to fix it!

  • Stateless Bean - scope of instance variable in EJB Timer call back function

    Hi,
    I would like to know on the scope of an instance variable of a Stateless Bean object,
    when used in a EJB Timer call back.Let me explain this in more detail below.
    I have a requirement to use a EJB Timer.
    For this, I have created a stateless object since Timer creation needs to be done
    from a stateless bean. I have a member variable "count" of the stateless bean class.
    In the timer call back(ejbTimeout), I am able to use this count variable during
    each time of the call back, and the value of this variable is also updated properly.
    I have a few queries with respect to the above behaviour:
    1) Does stateless bean object not get destroyed once the Timer is created from the Bean?
    2) If the Bean object is not destroyed, then when does the bean object get destroyed?
    3) If both (1) and (2) are not true, then can anyone explain on how the above behaviour is possible?
    Thanks in advance,
    Ulrich

    Hi Ulrich,
    The ejb timer is associated with the stateless session bean component, not with a particular bean instance. There is no formal relationship between the bean instance that called createTimer() and the bean instance on which the timer callback happens. If they're the same in your test run that's just a coincidence and not something your application should be depending on.
    In the stateless session bean model, the container can create and destroy stateless session bean instances at any time. The container is free to pick any stateless session bean instance to service any client invocation or timer callback. If you need to pass context into a timer callback, one way to do it is via the timer "info" object. However, the info object is immutable so it wouldn't be a good match for a counter. You could of course always just use a database for any necessary coordinated state.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Webcenter content service call in a loop.

    Can you please let me know how i will call a service in loop like 'workflow_approve'. When i call service in loop it thows exception, first document will approved but for other document it throws service exception 'document revision is not latest revision' but document is not having other document.
    Please help me i am stuck on this problem for a long time.
    Regards,
    Deepak Parmar

    Hi ,
    Can you share the RIDC code which you are trying to use for this requirement ?
    You can check for loop example from the following link  : http://jonathanhult.com/blog/2013/07/delete-content-ridc/
    Thanks,
    Srinath

  • [svn:osmf:] 17980: Fix FM-1092: Calling stop when loop is true breaks looping.

    Revision: 17980
    Revision: 17980
    Author:   [email protected]
    Date:     2010-09-30 17:42:23 -0700 (Thu, 30 Sep 2010)
    Log Message:
    Fix FM-1092: Calling stop when loop is true breaks looping.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-1092
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/media/MediaPlayer.as

    Hi Experts,
    After i tried a few times, i can successfully start prepare with upgrade asistant monitor - Administrator >> Start Prepare,
    Thanks

  • Nokia X6 stores call log for only 3 days

    My new Nokia x6 stores call log for only 3 days even though i set up it for 30 days? Any one facing this issue? How to overcome this? PLs help. Thanx in advance...

    Have read on this forum.. suggesting to first change the Call Log duration to say 1 day.. Re-boot the phone .. then change it back to 30 days.. and re-boot the phone..
    ..also in some cases the no. of entries also caused the problem.. though the setting is for 30 days if there is a lot more no. of entries under the log.. it is getting erased automatically.. Some users pointed out that it was happening in their case when there are few applications  that required periodic connection to the network for updates (like e-mail, weather applications, etc..) and frequent logs were getting created...
    --------------------------------------------------​--------------------------------------------------------​--------------------------------------------------​--If you find this helpful, pl. hit the White Star in Green Box...

  • Hi i just want request you people about one mobile banking app in app store called STATE BANK SECURE was available previously but its not there now so please bring back that app to app store as soon as possible please

    hi i just want request you people about one mobile banking app in app store called STATE BANK SECURE was available previously but its not there now so please bring back that app to app store as soon as possible please

    We can't do anything for you here.
    You have to write to the developer of the app and ask.
    They are the one making the app not Apple.

  • BMP EJB Load and Store is calling only one time calling in a loop

    Loop Iterating two times but ejb load and store is calling only one time.
    Application deployed in 0c4j 10.1.2.0.0 container.

    This sounds more like a Teststand quesstion. You might want to post it there.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • EJB call in infinet loop

    Hi,
    I am using Oracle 10g Application server with 64 bit JVM. Sometimes EJB call is falling down in infinet loop. Please help me.
    Regds,
    Balu

    hi,
    INFINITE LOOP AND OC4J ABORT WHEN DUPLICATE PK ENTERED IN THE CREATEPAGE.
    AUTOMATIC PAGE FORWARD CONVERSION HANGS IN INFINITE LOOP.
    INFINITE LOOP OF ADDING ATTRIBUTES VISITING ATTRIBUTE MAPPINGS PANEL
    http://download-uk.oracle.com/docs/cd/B25016_07//doc/dl/release_notes/B16010_05/B16010_05.pdf

  • JTA (EJB-- Store Procedure) Problem

    I'm currently facing a problem that I'm not sure how to fix it.
              I have a Controller class that is accessing many EJB (Session Stateless Container Managed) that are a kind of Store Procedures' Wrappers.
              The Controller initializes the transaction using the UserTransaction and it commits or rollback as needed, also de EJBs at some points use the setRollbackOnly() and also inside the store procedures are some explicit commits.
              What should I expect in the following scenario:
              UserTransaction ut=null;
              try {
              ut = getUserTransaction();
              ut.begin();
              ejb1.update(); //Calls a store procedure that in the pl/sql calls commit
              ejb2.delete(); //Inside the Ejb some component throws an exception and is catched by the Ejb, then it calls setRollbackOnly() and throws a new Exception
              ut.commit();//This is not called because the previous exception
              } catch(Exception e){
              ut.rollback();//Rollback is called
              1) Is the modified data inside ejb1.update saved?
              2) Is this all wrong?
              3) What could it be a right approach to refactor this?
              Thanks,
              Johann

    johann renck wrote:
              > There is one store proc who cares about logging that is called by many others sp that
              > is the one who does commit and also is wrapped by an Ejb so it is also called inside
              > the application. Have this sp its own transaction context so when it does commit it
              > just commits the logging?
              >
              > Thanks,
              > Johann
              Yes, always. Any procedure that calls begin tran, commit, rollback, or any other call that
              changes the transactional behavior of the session, must be isolated from everything that
              WebLogic thinks is part of a transaction. Otherwise you're just going to jeopardize the
              integrity of your WebLogic-defined transactions. Ideally, you want all your transactions
              defined and controlled at one level. From the EJB/WebLogic point of view it would be much
              safer and superior to never call any procedure that had such stuff, and then do logging
              as it's own WLS EBJ tx, called everywhere needed, from within but separate from larger EJB
              transactions. Even if a logging EJB did nothing besides writing one log row, the procedure
              shouldn't call commit. The EJB system will do that.
              Note well: Anything that calls that logging procedure with the commit, commits it's
              current possibly partial transaction to that point. The DBMS connection only has one
              transaction going on at a time, and a commit permanently locks in everything changed since
              the last commit. It is not good architecture to have commits in any utility procedure.
              At the very least, if your procedures want a transaction, they should start and end
              in one procedure, eg:
              BEGIN
                   declare boolean variable in_tx
              set in_tx true if @@trancount > 0
                   if (not in_tx) BEGIN TRAN -- Otherwise, just become part of current tx
                   ... do work... this is only needed for multi-update work
              if (not in_tx) COMMIT TRAN
              END
              If the procedure only does one update/insert/delete *you don't need any
              tx control*! eg:
              BEGIN
                   insert into mylogtable values (.....)
              END
              That one insert will be part of any ongoing tx if extant, or
              will be it's own one auto-commit tx.
              If you have a procedure that must be it's own tx, then you must
              do:
              BEGIN
                   if (@@trancount > 0) raiserror("Can't call this procedure from an ongoing transaction. It must be able to commit immediately")
              END

  • Subsequent EJB server-calls within one Thread?

    Hi all,
    will all subsequent EJB calls within the server be executed within the same Thread? I didn't find an exact spec of this.
    The context is that i have remote and local stateless session beans and i want to share the timestamp at which the initial service call took place. So i thought about setting a ThreadLocal variable by an Interceptor and read this in every bean.
    Maybe there is a better way to do this?
    Thanks in advance,
    Andreas

    I'm not sure why you make each car a Thread when you later come along to create ActionThreads to do the work. It seems to me as if there is at least one Thread too many.
    Nonetheless, this peace of code is most likely not a good implementation of what you are trying to do:
    sleeping = true;
    while (sleeping) {
      try {
        car.sleep(0);
      catch (InterruptedException ex)  {}
    }The reasons being:
    You are working with several concurrent Threads acting upon the same Cars, the master Thread, the Cars themselves and the ActionThreads. So you will need some synchronization to ensure consistency. You are using none! If you were, a call to sleep() would block the monitor of your Car instance.
    You are using the while loop to implement busy waiting. A bad choice by itself, it might lock your VM totally if this Thread gets a high priority for some reason. What you actually want to use is a wait()-notify-pair jointly with proper synchronization.
    http://java.sun.com/docs/books/tutorial/essential/threads/multithreaded.html

  • Function module called within a loop seems to carry over global data

    Hello all,
    I am calling FM "RS_COVERPAGE_SELECTIONS" inside of a loop of all variants for a program and then writing the variant values to spool.  If only one variant is entered on the selection screen, all the values are correct.  If nothing is entered, some of the variant values are carried over from a previous variant.  I am emptying the internal table returned by the FM every time before the FM executes.
    Would some one be willing to run the following code for a program with many screen fields and many variants and tell me if they get the same behavior?
    Thanks
    Bruce
    REPORT zzzz.
    tables: varid, varit.
    parameters:     p_pgm type progname obligatory default 'ZFAPI004'.
    select-options: s_var for varid-variant.
    parameters: p_varval as checkbox default 'X'.
    data: begin of reptab occurs 0,
            report like varid-report,
            variant like varid-variant,
            ename like varid-ename,
            edat like varid-edat,
            etime like varid-etime,
            aename like varid-aename,
            aedat like varid-aedat,
            aetime like varid-aetime,
            vtext like varit-vtext,
          end of reptab.
    data: begin of tab_sel_options occurs 0,
                            flag(1) type c,
                            olength type x,
                            line  like rsvar-infoline,
                          end of tab_sel_options.
    *>> At Selection-Screen data items <<
    data: w_pgm like sy-repid.
    data: itab like rseui_f4 occurs 0 with header line.
    data: dyname like d020s-prog value sy-repid,
            dynumb like d020s-dnum value '1000'.
    data: begin of dynpfields occurs 3.
            include structure dynpread.
    data: end of dynpfields.
    data: w_tabix    like sy-tabix.
    data: begin of i_var occurs 0,
              variant like varit-variant,
              vtext   like varit-vtext.
    data: end of i_var.
    start-of-selection.
      format intensified on.
      write: / p_pgm.
      select * from varid
        where report = p_pgm
          and variant in s_var.
        select single * from varit
          where langu = 'E' and report = p_pgm
            and variant = varid-variant.
        move-corresponding varid to reptab.
        move-corresponding varit to reptab.
        append reptab.
      endselect.
      sort reptab by variant.
      skip 1.
      format color col_heading.
      write: /03 'Variant',
              18 'Create',
              47 'Modify',
              76 'Description'.
      format color off.
      skip 2.
      loop at reptab.
        format color col_total.
        write: /3 reptab-variant,
                 reptab-ename(8),
                 reptab-edat,
                 reptab-etime,
                 reptab-aename(8),
                 reptab-aedat,
                 reptab-aetime,
                 reptab-vtext.
        format color off.
        skip 1.
        if p_varval = 'X'.
          clear   tab_sel_options.     " header
          refresh tab_sel_options.     " lines
          call function 'RS_COVERPAGE_SELECTIONS'
            exporting
              report            = reptab-report
              variant           = reptab-variant
              no_import         = ' '
            tables
              infotab           = tab_sel_options
            exceptions
              error_message     = 1
              variant_not_found = 2
              others            = 3.
          loop at tab_sel_options.
            if sy-tabix < 7.
              continue.
            endif.
            write: / tab_sel_options-line.
          endloop.
          skip 1.
        endif.  "  p_varval = 'X'.
      endloop.

    Hi
    Try using the function module PRINT_SELECTIONS, within this FM, the FM RS_COVERPAGE_SELECTIONS is being called. So it will not copy the previous values.
    Pass Mode as 'A' , report name and variant name, then it will display the same output.
    Please try it
    Shiva

Maybe you are looking for