Why the process chain always run twice when triggered from R3?

I run a program from R3 by calling the remote function 'RSSM_EVENT_RAISE' on BW to trigger an event and in turn the event on BW bring up the running of a process chain.  But whenever I run the program on R3 to bring up the running of the process chain, I find the process chain always run twice at the same time.  Does anybody knows the answer? 
And also I would like to know the functionalities of the two picture buttons "Activate" and "Activate and Schedule" in process chain.  In which case the "Activate" button should be used and in which case, the "Activate and Schedule" button should be used?   If we click the Start variant of a process chain, then click "Change Selections" button which bring up the window "Start Time" where the buttons "Immediate", "Date/Time", "After job", and "After event" are listed at the top.  If we modify at any of the above buttons, then after save this modification, we will have to click "Activate and Schedule" button to make it work, right? 
Thanks a lot and everyone's idea is greatly appreciated!

Kevin, make sure there is only one job scehduled for the Start Process of your Process Chain.  If you bring up the Process Chain (not the log view), right click on the Start Process and select "Displaying Scheduled Job(s)...".  There should only be one scheduled job with name BI_PROCESS_TRIGGER.  If there is more than one, then when triggered, it would execute more than once at the same time.  If there is only one job, then maybe your R/3 program is triggering the event more than once? 
As far as the Start conditions for the Start Process, it works off the same principals as a scheduled job.  These start conditions determine when or how the Process Chain is to be executed.  You also have control over frequency.  These start conditions determine the scheduling of the Start Process of your Process Chain.
When you schedule a Process Chain, a separate scheduled job is created for "each" process in the Chain.  BW controls the triggering of these jobs based upon how the processes in the Chain are linked.  All the jobs associated with Process Chains have strict naming conventions and all begin with BI_PROCESS_...  If you use SM37 to view all jobs that begin with BI_PROCESS_ you will find alot of scheduled jobs associated with your process chains.  Each job represents one of the processes within your process chains. 
Does this help?
Another tip might be to trigger the event manually in BW (use tx SM64).  If the process chain executes twice again, then maybe there is a separate scheduled job in BW that triggers the process chain that is triggered by the same event as the start process of the process chain.
Message was edited by: George Shannon

Similar Messages

  • Why the Process is still in deadlock when i have exhaust its error stream.

    There is the code:
    import java.io.*;
    public class ProcessExec {
      public static void main(String[] args) {
         * Test the Process created by Runtime.exec().
        Runtime rt = Runtime.getRuntime();
        String s = new String();
        if(args.length < 1) {
          System.out.println("Usage: java ProcessExec executionName");
          System.exit(-2);
        try {
          Process process = rt.exec(args[0]);
           * Buffer the error stream and exhaust it.
          System.out.println("ErrorStream data of Porcess:");
          BufferedReader br = new BufferedReader(new InputStreamReader(process.getErrorStream()));
          while( (s = br.readLine()) != null) {
            System.out.println(s);
          System.out.println("\n\n------------------------------------------------------------\n\n");
           * Buffer the input stream and exhaust it.
          br = new BufferedReader(new InputStreamReader(process.getInputStream()));
          System.out.println("InputStream data of Porcess:");
          while( (s = br.readLine()) != null) {
            System.out.println(s);
          System.out.println("Return num: " + process.waitFor());
        catch(Throwable t) {
          System.out.println(t);
    }When i run the "javac" as :
    C:\classses\lang\java ProcessExec javac
    The process run correctly and print the error stream.
    But when i run the "java" as:
    C:\classes\lang\java ProcessExec java
    The process was in deadlock?
    Why,in my code i have buffered the error stream and input stream using a BufferedReader and then exhausted them.
    And when i invoke the "javac" it ran correctly but why it couldnt run correctly when i invoked the "java" execution?

    A deadlock occurs when two locks are dependant on each other.
    This is unlikely to be the case here.
    With out your exact command line or what your output is or if you have a dealock we will need to see the thread dump which displays where the deadlock is.

  • How to run the process chain immediately?

    Hi experts,
    I'm a beginner for this field, Suppose there is a process chain called "X" which is used to extract the data from SAP R3 side for the purpose of getting the data for BI query called "Q1". "X" has been schedule to run every day in the night in BI side and also there are jobs have been schedule in SAP R3 by using the T-code lbwe. (they also runs once per day in the night)
    According to above explanation, If I execute the BI Query today, I can view only up to yesterday data. Suppose I have updated  some data in the tables at SAP R3 side today. therefore immediately I want to see the changes when I execute the BI query...
    Can you explain me how can I do this? Please explain this in Step by step if you can.
    Thanks,
    Regards,
    Nimesha.

    HI ,
    If u want to schedule the PC immediately, then go to the change mode of the process chain and double click on the start process select immediate button so that the process chain will run immediately after scheduling the PC.
    What job would u like to run in R/3 ? Is it V3 to move the records from the queue delta / unserialized v3 update  to delta queue, if so then go to LBWE --->job control and do the setting there.
    Note: U may get one box for o/ p  device  then type LP01 or ask the BASIS TEAM  .
    Hope u  got it,
    Thanx &Regards,
    RaviChandra

  • Schedule the Process Chain automatically in BW

    Hi SDN Guru's,
    I have an urgent requirement in BW. I want to run the Process Chain automatically in BW when the job for the deltas in R/3 are completed.
    I know that in BW we can trigger the process chain by the background job only by giving the date and time or after the event and after the job.
    But my requirement is the process chain should automatically be triggered in BW once the R/3 delta job is run and completed and the delta records are updated in RSA7.
    Can any body please let me know how we can do this as this is the urgent requirement for me.
    Please let me know how and where we need to write the code or make the settings for satisfying my requirement.
    Thanks & Regards,
    Vamshi Krishna.

    HI Vamshi:
    Take a look at note 409239.
    Thanks for any points you choose to assign (points are the way of saying "thanks" in SDN)
    Best Regards -
    Ron Silberstein
    SAP

  • How to kill the process chain

    hi,
        I have question how to kill the process chain during running.
    thank you.

    Hi
    If the process chain is running in background,
    goto <b>SM37</b>
    Give * in the jobname
    Give the username who scheduled the process chain
    Job status - check the check boxes - SCHED, relased, ready, active
    click <b>execute</b>.
    It displays all the process chains that, scheduled & running.
    You can select the process chain that need to be stopped & click STOP active job or ctrl+F1.
    Hope this helps!
    Kindly award points for all useful answers.
    If you post the BW related queries in the <b>BI general</b> forum, you will get more answers.
    Best regards,
    Thangesh

  • How to schedule the process chain

    hi
    guys,
                       how to schedule the process chain to run on thirsday and friday b/w 8pm to 11:55pm which has already been scheduled for daily loads at 9am to 11am?
    (Tell me the answer in detail)
    your regards
    suresh

    Hi Suresh,
    If you want to change in the Production system, you may not have the Authorizations. If you have authorization;
    1. Goto RSPC-->double click on the Process chain
    2. double click on the Start variant of the process chain-->Click on the EDIT button
    3. Click on the CHANGE SELECTIONS then click on the DATE/TIME Tab;
    4. There pls give from which date this process chain has to run to with your requirement time,
    then give the time and select the periodic job and select with your requirement.
    Save and exit.
    It is done!!
    Hope you understood.
    Regards,
    Ravi Kanth

  • Process chain program variant will not change from yellow...

    Hello,
    <b>Problem:</b>
    I have a process chain that has two branches with 3 process chain variants on each leg in a parallel configuration.  The process chain variants run different program variants.  I am using variant object called "ABAP Program with Success/Failure " which can have a yellow, green, or red status and has status arrows that can be either red or green that connect to other process chain variants.  The program executed with these variants is a customized BPS UPC_BUNDLE_EXECUTE program.  When I run this PC the first variant on each leg usually hangs indefinitley on the yellow status.  In the Backg tab log (double click PC variant in Log View) I can see the various SQL code that was ran.  The last line of the log is an SQL-END:...  Sometimes it will get past the first 2 varaints and hang on the next set of 2.  Other times it will just hang on the last variant of one leg.  It is very sporadic.
    <b>What I have observed and tried:</b>
    If I check my SM51 for the server the chain is running on I can see that the program in question is not running.  If I run the same program through SE38 that runs via a PC variant it runs sucessfully in an appropriate amount of time.  If I kill the process that has been running indefinitley through SM51 the process chain variant will go from a yellow status to a red as expected.
    I changed they way I ran the programs from running in parallel in 2 legs to running all of them in one leg serially.  That did not work.  At least one program variant will hang on the yellow status.
    I replaced all the variants using "ABAP Program with Success/Failure" to "ABAP Program" which has a red/green status but no red or green arrows, but black coming out of the variant forcing it to move down the chain on a sucess or failure.  The process chain variants also hung in the yellow status using the "ABAP Program" variant. 
    I have tried starting the process chain using both "Direct Scheduling" with "Immediate" and "After Event."  I have also kicked it off using "Start Using Meta Chain or API" so it was functioning as a sub process chain. Programs were still yellow in every case without changing to red or green. 
    I created new process chain variants for every single program/variant that I am using.  Still no luck.
    I have tried removing the chain from the schedule and re-activating and re-running and still no luck. 
    Thanks in advance,
    Gary Martins

    bump

  • SET CURRENT DEGREE = 1..error when run the process chain..

    Hi Experts,
    when i run the process chain ,  i got the following error..
    SET CURRENT DEGREE = 1..
    what is this error?
    Kindly help ..

    hi,
    As BW reporting queries are often CPU-intensive and geneally executed in parallel.
    Parallel processing is activated dynamically in the SAP BW system for every reporting query CURRENT DEGREE = ANY and itsdefault value is 1.
      you can limit the maximum number of parallel tasks using ZPARM PARAMDEG(maximum number of parallel tasks ) for the no. of parallel processors for its usuage and this should match no. of processors you can get touch with your basis team
    check SAP Note:390016 -DB2/390: BW: Database settings and performance ; in that look at query parallelism it explain about this
    hope it helps
    regards
    laksh

  • Authorizations setting for running the process chain

    Hai
    Iam planning to run the process chain for loading the data into ODS. But i dont have authorization for it.
    so what are the authorizations i need to run the process chain in my system. And how can i set all those authorizations to my user-id.  I have all authorization rights .
    Pls let me knw
    kumar

    Hi,
    Authorizations for Process Chains
    Use
    You use authorization checks in process chain maintenance to lock the process chain, and the processes of the chain, against actions by unauthorized users.
    ·        You control whether a user is allowed to perform specific activities.
    ·        You control whether a user is allowed to schedule the processes in a chain.
    The authorization check for the processes in a chain runs when the system performs the check. This takes place upon scheduling or during synchronous execution. The check is performed in display mode. The check is performed for each user that schedules the chain; it is not performed for the user who executes the chain. The user who executes the chain is usually the BI background user. The BI background user automatically has the required authorizations for executing all BI process types. In attribute maintenance for the process chain, you can determine the user who is to execute the process chain.
    See also: Display/Maintenance of Process Chain Attributes ®  Execution User.
    Features
    For the administration processes that are bundled in a process chain, you require authorization for authorization object S_RS_ADMWB.
    To work with process chains, you require authorization for authorization object S_RS_PC. You use this authorization object to determine whether process chains can be displayed, changed or executed, and whether logs can be deleted. You can use the name of the process chain as the basis for the restriction, or restrict authorizations to chains using the application components to which they are assigned.
    Display/Maintain Process Chain Attributes
    Use
    You can display technical attributes, display or create documentation for a process chain, and determine the response of process chains during execution.
    Features
    You can display or maintain the following attributes for a process chain:
    Process Chain ® Attribute ® ...
    Information
    Description
    ( Rename)
    You can change the name of the process chain.
    Display Components
    Display components are the evaluation criterion in the process chain maintenance. Assigning the process chains to display components makes it easier to access the chain you want.
    To create a new display component, choose Assign Display Components in the input help window and assign a technical name and description for the display component in the Display Grouping dialog box that appears.
    Documents
    You can create and display documents for a process chain.
    For more information, see Documents.
    Last Changed By
    Displays the technical attributes of the process chain:
    ·        When it was last changed and who by
    ·        When it was last activated and who by
    ·        Object directory entry
    Evaluation of Process Status
    If you set this indicator, all the incorrect processes in this chain and in the overall status of the run are evaluated as successful; if you have scheduled a successor process upon error or always.
    The indicator is relevant when using metachains: Errors in the processes of the subchains can be evaluated as “unimportant” for the metachain run. The subchain is evaluated as successful, despite errors in such processes of the subchain. If, in the metachain, the successor of the subchain is scheduled upon success, the metachain run continues despite errors in “unimportant” processes of the subchain.
    Mailing and alerting are not affected by this indicator and are still triggered for incorrect processes if they have an upon error successor.
    Polling Indicator
    With this indicator you can control the response of the main process for distributed processes. Distributed processes, such as the load process, are characterized as having different work processes involved in specific tasks.
    With the polling indicator you determine whether the main process needs to be kept until the actual process has ended.
    By selecting the indicator:
    -         A high level of process security is guaranteed, and
    -         External scheduling tools can be provided with the status of the distributed processes.
    However, the system uses more resources; and a background process is required.
    Monitoring
    With the indicator in the dialog box Remove Chain from Automatic Monitoring?, you can specify that a process chain be removed from the automatic monitoring using CCMS.
    By default CCMS switches on the automatic process chain monitoring.
    For more information about the CCMS context Process Chains, see the section BW Monitor in CCMS.
    Alerting
    You can send alerts using alert management when errors occur in a process chain.
    For more information, see Send Alerts for Process Chains.
    Background Server
    You can specify here on which server or server group all of the jobs of a chain are scheduled. If you do not make an entry, the background management distributes the jobs between the available servers.
    Processing Client
    If you use process chains in a client-dependent application, you can determine here in which client the chain is to be used. You can only display, edit, schedule or execute the chain in this client.
    If you do not maintain this attribute, you can display, edit, schedule or execute the process chain in all clients.
    Process variants of type General Services that are contained in a process chain with this attribute set will only be displayed in the specified client.
    This attribute is transported. You can change it by specifying an import client during import. You must create a destination to the client set here in the target system for the import post processing (transaction RSTPRFC)  The chain is activated after import and scheduled, if necessary, in this client.
    Execution User
    In the standard setting a BI background user executes the process chain (BWREMOTE).
    You can change the default setting so that you can see the user that executes the process chain and therefore the processes, in the Job Overview. You can select the current dialog user who schedules the process chain job, or specify a different user.
    The setting is transported.
    The BI background user has all the necessary authorizations to execute all BI process types. Other users must assign themselves these authorizations so that authorization errors do not occur during processing.
    Job Priority
    You use this attribute to set the job priority for all of the jobs in a process chain.
    Hareesh

  • I have a php module which runs fine in Firefox and all other browsers but not Safari. It always run twice - I see a small ? in upper right corner which is causing it to run twice but NO idea why? Help - thank you

    I have a php module which runs fine in Firefox and all other browsers but not Safari. It always run twice - I see a small ? in upper right corner which is causing it to run twice but NO idea why? I read it MAY have something to do with am image it cannot load but I see them all loaded.  Help - thank you

    Could you share a link to the page?
    Seeing it in context and in our browsers is much easier to debug.
    If not, make sure to run the validator here The W3C Markup Validation Service and clear out any problems. HTML errors, especially structural ones, will cause all kinds of display problems in various browsers/versions/platforms.

  • Process chain is running even after the 'No Schedule After' date

    Hi Experts,
              On 19th sep, we scheduled a process chain where the scheduled start date is 20th sep, 07:30:00 and no start after date is 22 sep, 00:00:01. The periodic value is 'Daily' and there is no restrictions for this load.
             But yesterday the process chain ran at 7. We checked tbe jobs that triggered and found that the start date and no start after date is changed to 21 and 23 respectively.
            But the last changed date for the process chain is 19th sep only.
            Anyhow, we removed the process chain from schedule. But, I want to know the reason for this load that loaded even after the 'No start after' date.
           Please help me to know why this issue happened...
    Regards,
    Yokesh.

    I also have been caught by this option once : the "do not start after" is here to avoid problems of scheduling : let imagine your system can be stopped, for any reason, so the scheduling will be postponed. In this case, it avoid, for instance, to load data during the day. It's not for running a PC for only a certain period of time.

  • Error in delta run in the process chain

    Hello Experts,
    I have a delta infopackge that runs everyday , since many days the process chain is giving error at the IP.
    The IP is red everyday and the following objects does not start, however when I check in the monitor the ip is completed successfully without any errors.
    I checked the logs which is in greeen in the batch job , please find the details below.
    Job started
    Step 001 started (program RSPROCESS, variant &0000000111903, user ID ALEREMOTE)
    Last delta upload not yet completed. Cancel
    Data saved successfully
    Start InfoPackage ZPAK_4EH1CYBST65PTYCQVFAQY6ZI7
    Last delta upload not yet completed. Cancel
    Last delta upload not yet completed. Cancel
    InfoPackage ZPAK_4EH1CYBST65PTYCQVFAQY6ZI7 created request
    Request REQU_4L001XOSR2IQQ14M90QLO1CTA could not be generated with InfoPackage REQU_4L001XOSR2IQQ14M90QLO1CTA without errors
    Last delta upload not yet completed. Cancel
    Error After Starting InfoPackage ZPAK_4EH1CYBST65PTYCQVFAQY6ZI7 in Process Chain ZIM_INT_ORDER
    Entire chain now has status 'A'
    Job finished
    Could you please suggest.

    Hello
    Thanks for your reply
    the problem was with the way it was schudled, the chian was ticket at periodic run , as a result it as running automatically, and causing problem.
    I have removed the periodic n saved it again ...the error stopped appearing !
    The issue is resolved now.
    Thanks for your help.

  • The 0co_om_opa_6 ip in the process chains takes long time to run

    Hi experts,
    The 0co_om_opa_6 ip in the process chains takes long time to run around 5 hours in production
    I have checked the note 382329,
    -> where the indexes 1 and 4 are active
    -> index 4 was not "Index does not exist in database system ORACLE"- i have assgined to " Indexes on all database systems and ran the delta load in development system, but guess there are not much data in dev it took 2-1/2 hrs to run as it was taking earlier. so didnt find much differnce in performance.
    As per the note Note 549552 - CO line item extractors: performance, i have checked in the table BWOM_SETTINGS these are the settings that are there in the ECC system.
    -> OLTPSOURCE -  is blank
       PARAM_NAME - OBJSELSIZE
       PARAM_VALUE- is blank
    -> OLTPSOURCE - is blank
       PARAM_NAME - NOTSSELECT
       PARAM_VALUE- is blank
    -> OLTPSOURCE- 0CO_OM_OPA_6
       PARAM_NAME - NOBLOCKING
       PARAM_VALUE- is blank.
    Could you please check if any other settings needs to be done .
    Also for the IP there is selction criteris for FISCALYEAR/PERIOD from 2004-2099, also an inti is done for the same period as a result it becoming difficult for me to load for a single year.
    Please suggest.

    The problem was the index 4 was not active in the database level..it was recommended by the SAP team to activate it in se14..however while doing so we face few issues se14 is a very sensitive transaction should be handled carefully ... it should be activate not created.
    The OBJSELSIZE in the table BWOM_SETTINGS has to be Marked 'X' to improve the quality as well as the indexe 4 should be activate at the abap level i.e in the table COEP -> INDEXES-> INDEX 4 -> Select the  u201Cindex on all database systemu201D in place of u201CNo database indexu201D, once it is activated in the table abap level you can activate the same indexes in the database level.
    Be very carefull while you execute it in se14 best is to use db02 to do the same , basis tend to make less mistake there.
    Thanks Hope this helps ..

  • Error while running the process chain

    Hi, I am getting following error while running the process chain.
    "Lock NOT set for: Deleting the data completely from a data target"
    Please suggest.
    amit

    hi,
    This is due to a lock on the objects which is being used by ur load.
    Even if master data used by this would be in a lock by an attribute change run. wait till that attribute change run finishes and then repeat.
    If this target itself is locked by someother process like rollup , compression , this error would appear. In this case also repeat the step after those locking process finish.
    some general locks during loading:
    Sometimes parallel processing in DTP might lead to this, its better set the DTP and infopackage in serial processing. In this case change the settings and then repeat the process.
    There is a specific case in which the Serial DTP gets locked by itself, in this case repeat it untill it succeeds.
    You can identify the above scenario as below. This is applicable only if the DTPs processing mode is serial.
    if u see in SM 37 this load would have three DTP processes running.
    it should have only two.
    In this case cancel the process and repeat it untill u get it right.
    hope this helps u
    regard,
    ranjith
    Edited by: Ranjith  Kumar Murugesan on Sep 12, 2008 10:44 AM
    Edited by: Ranjith  Kumar Murugesan on Sep 12, 2008 10:46 AM

  • Program is not sending emails if I run it within the process chain

    Hi All,
    I am facing a weird issue; I have an ABAP program which compares tables and sends the results in an email. It is working fine if I run it standalone. However, if I run it within the process chain it still runs but doesn't send the email.
    Any idea on how to troubleshoot this?
    Thanks

    maybe because it's ran under a different user (ALEREMOTE)?
    the user that executes the "mail" needs a valid emailaddress to be able to send...

Maybe you are looking for

  • How i can transport request created in R3AR2 from Quality to Production ?

    Hi, Gurus ! I'm new in CRM 7.0, and need your help. Well, we made our implementation in 7.0 version, and the things will be fine, until the start of work..... Well, the initial download of CUSTOMER_MAIN (in transaction R3AR2) do'n't run OK, because a

  • Creation of  Time stream in APO from R/3

    We  always prefer our ECC system to be the master data system . We intend to create  Time stream in APO based on planning calenders from ECC system . Kindly confirm  if SAP has provided  any time stream creation logic in APO from an OLTP system  or R

  • There is already a file with that name

    getting this from entourage when trying to open an attachment.  having all sorts of issues with the last update to 10.6.8 lost about 35GB - no idea where

  • Authorization Errors from BEx queries

    We are developing Crystal reports on top of BEx queries. We are working on BO XI 3.1 FP2.8, Crystal Reports FP2.8 and SAP Integration Kit FP2.8 and SAP BW is BI 7.0 Suppport pack 5.0. How can we display the Authorization errors that are returned on B

  • Qosmio X300-13R - After few seconds the image darkens on webcam

    We have laptop Toshiba Qosmio-X300-13R with the chamber built in webcamera. But there is a question. I start the native utility or Skype, the first seconds all is visible, and then the image darkens and looks narrowly in the monitor that like it is v