Function module used to restart the process chain in the middle?

Hi all,
can anyone pls let me know the function module to restart the process chain in the middle of the process chain?
I need to run the process chain from the middle which can be done through a function module can anyone pls let me know!!
Thanks
pooja

what exactly your requirement is?
You can't trigger the process in the middle either it should be trigger by start variant or it's predessor.
If your chain failed in the middle - you can fix the prob and can do 'Repeat' option or you can also use FM 'RSPC_PROCESS_FINISH . (this FM will work only if the chain fails)

Similar Messages

  • ABAP program to add in the process chain before the attribute change run

    Hi
    I need a ABAP program to add in the process chain before the attribute change run(process) to avoid the locks, can any one send me the program
    Regards,
    Satish

    I am not sure of any standard program .... but you can write your own... should be a small one..
    you can check if the table RSDMDENQ has entry for your InfoObject... if yes, then its locked.. if not.. its not locked

  • How to schedule the process chain fr the report

    hai experts,
    i have a query which i need to generate for every five hours? i know that we can generate the report thr process chain but i dont know how to build that..
    my question is how to schedule the report,how to build the process chain,....
    can any one plz tell me how to start this generating report for every five hours
    thanks in advance..points will be alloted surely ,i need this urgently..
    Suri

    First of all you need to Identify the InfoObjects if you want to take up Master Data Loads, and if you want take up transaction loads then select the Data Targets to which the data has to be updated. Then plan the dataflow accordingly.
    You want to create a Process Chain, Go to RSPC, and then select the create option and from the Process categories available on the left handside drag and drop the Start process, then define the Variant for the same. In the same way you need to identify the other Process Types available on the lefthand side. For Eg: Start Process>Load to ODS>Activation of ODS Data>Delete Indexes for the InfoCube>Load to InfoCube>Create Indexes>Delete Overlapping Req-->Agg. Rollup.
    This is how you need to specify the dataflow, several other Process Types also included based on the requirement For Eg: Sending Mail Alerts when the Job is Success or Terminated.
    Also, have a look at this links to make urself clear about the steps in creating Process Chain.
    http://help.sap.com/saphelp_nw04/helpdata/en/67/13843b74f7be0fe10000000a114084/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/events/sap-teched-03/using%20process%20chains%20in%20sap%20business%20information%20warehouse
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/19683495-0501-0010-4381-b31db6ece1e9
    Hope it helps.
    Regards,
    Archna

  • 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

  • To find the time required by the process chain to complete

    Hi Experts,
    I am calulating the average time required by the process chain to compete.
    Is there any way to find the time required by the process chain to complete..
    Thanks in advance.
    Regards,
    Ashwin

    Hi,
    There is a Tool provided by SAP to do the Process Chain Analysis.
    It is basically a ABAP Program /SSA/BWT which provides the following BW Tools:
    a)Process Chain Analysis : this tool is used to perform the Runtime analysis of the Process Chains. The analysis can be performed not only at Process Chain level but also at the Process Type level.
    b)Detailed Request Analysis
    c)Aggregate Toolset
    d)Infoprovider BPPO Analysis
    So you can go through the program and analyse the runtime of your Process Chains.
    Regards,
    Abhishek
    Edited by: Abhishek Dutta on Aug 13, 2008 7:13 AM

  • ABAP Program using Selection Screen in Process Chain

    Hi,
    I have included an ABAP Program in the Process Chain.
    The ABAP Program takes a selection screen value from user before execution.
    I have created a variant for both the ABAP Process (YPV_ABC) and a variant for the Selection Screen (YPV_XYZ).
    The ABAP Program executes perfectly well in SE 38.
    I get the following message when I execute the Process Chain.
    "Status Change of Process ABAP YPV_ABC.
    Save Status and Trigger Events if Appropriate "
    When I click Yes, the ABAP Process becomes red.
    These are error messages in the log
    516 -  Job started     
    550 -  Step 001 started (program RSPROCESS, variant &0000000012961, user ID ALEREMOTE)
    25 -    Could not ascertain code page     
    546 -  Job cancelled after system exception ERROR_MESSAGE     
    My questions are:
    1) Is it possible to use an  ABAP Program which has a user input screen in Process Chain?
    2) Could you please help  with the above error?

    1) Is it possible to use an ABAP Program which has a user input screen in Process Chain?
    ABAP programs, with variants established for selection screens, are possible. We use them quite extensively for setting triggers to allow Process Chain to continue after an Interrupt Process has been hit.
    2) Could you please help with the above error?
    I'm not quite sure what could be causing this. When you tested this program in SE38, did you test it with the same variant for the selection screen and did you execute it in background?

  • 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

  • Passing parameters to the process chain

    Hi friends,
    I want to know ,how to pass parameters to the process chain. Suppose i want to pass parameter to my DTP in my process chain in order to filter the data and do the delta upload in my cube .

    Hi,
    I dont think there is any direct way to achieve this.
    There is a work Around which can be achieved with help of abap.
    You need to write ABAP routine to get the selection values from user and store them in the table TVARVC.
    Then you need to write a routine in the DTP filter to fetch these values.
    In the ABAP program where you get the values, you can trigger the process chain once the values are entered for the selections using an event,
    Regds,
    Shashank

  • Including System ID in the messaging of the process chain!

    Hi,
    Can any one here tell me ,how to include the System ID ( i mean whether the system is development or production ) in the messaging system of the process chain? i had used email address in the messaging system.
    i had included the message , but do not know how to include some texts or the system id of the respective System in the messaging service!
    problem is i had included messaging system in both the process chains of the dev and production!
    is there anyway for this?
    Thanks,
    Ravi

    Ravi,
    By default, the system will include in the email a description of the problem, including the system where it was originated.
    Another thing is including the System ID in the subject of the email.
    Are you transporting the Process Chains or just creating them locally?
    If you define the message variants for the Events Error or Success results locally, then you can type directly "DEV", "PROD" or the description you like, in the subject or the body of the message.
    Regards,
    Luis

  • How to stop the Process Chains?

    Hi Everyone,
       I have a process chian which is running daily, but i want to stop in a particular day( for ex on wednesday).The process chain has to run on remaining days.So how can i stop the process chain on the particular day. Please do answer me.
    Thanks
    Veerendra

    Hi Virendra,
    After start process , insert a node of abap program and insert program with following code .
    Report zntest.
    data : lt_attr like CASDAYATTr occurs 0 with header line.
    CALL FUNCTION 'DAY_ATTRIBUTES_GET'
    EXPORTING
       DATE_FROM                        = SY-DATUM
       LANGUAGE                         = SY-LANGU
      TABLES
        DAY_ATTRIBUTES                   = Lt_ATTr.
    write : / lt_Attr-WEEKDAY_L.
    read table lt_attr index 1.
    if lt_Attr-WEEKDAY = '3' . "3 Stands for 3rd day of week i.e. Wednesday
      message 'Process chains not to be run on wednesday' type 'E'.
    endif.
    Make sure that this ABAP program is linked to other processes only on  "Success",
    Hope that helps.
    Regards
    Mr Kapadia

  • 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

  • Transporting Process Chains-includes the ERROR DTPs in the Target System

    Hello Gurus,
    Iam facing an issue in version NW2004s while transporting the Process Chains from DEV to QA. The Process Chains in the Target system are including the ERROR Dtps as parallel loads along with the regular DTP.This happens when there exists an ERROR DTP in the Target system at the time of Transport.
    This will cause a problem
    1.these would run parallel to the regular DTPs.
    2.no of back ground processes running at any point will be beyond our limit.
    Let me know if you have faced the same issue and how you resolved it.
    Thanks
    Jagadish

    Hi DPN,
    Check oout this thread. This might solve yuor problem.
    Errors in Transportation
    Thanks and Regards
    Subray Hegde

  • How to know the process chain start time & end time?

    HI all .
    how to know the process chain start time & end time at the table level as well as in RSPC level .
    regards,
    Srinivas

    Hello,
    there is a program "/ssa/bwt" which will help you to know the exact time when the process was started and ended.
    but the thing is you have to provide name of the process chain with the date at which it was executed.
    another option is - you can double click on start process and on the last process of the chain.
    here, you will get both the timings... Start time of the start process will be the start time of your PC and end time of the last process in the chain will be end time of your PC.
    Hope this will help you.

  • On what Basis V need to Design the Process Chain in BI7

    Dear All,
    Hope every one having a great time. I am designing the Process Chain for the DTP's in BI7  its for the Attributes load, what things i need to consider while designing  dis chain mean is der any dependency i need to follow suppose der is "material" is an info provider  and it consist of "material type" as attribute, where dis "material type' is also a infoprovider which one should i load first. and how many processes can i assign to start variant n what is the effective way to decide dis. shall i need to consider the Datasource also suppose if the 2 or 3 process r feeding the data from the same Datasource den what i hav to do in BI7.
    Your Contribution will b appreciated
    Thanx in Advance.
    KK

    Hi ,
    There are several schools of thought on how to design your process chain for master data. For us, we load the attributes first, then hierarchies, then run ACR, and then load the texts.
    We have a meta chain (same as a process chain) that executes 2 process chains. The first loads our attibutes, hierarchies and runs the ACR. The second loads the texts. So, theoretically, we have one process chain that loads all our master data.
    Things to consider:
    1. Determine how many batch processes you can execute at one time on the system. This will determine how many infopackages you can have running at the same time (big influence on the design of your process chain).
    2. Determine the order in which you want to update your master data. Some say to update the infoobjects that are attributes of other master data first. Also, some extracts may take longer to execute than others. This may also influence your design.
    3. When connecting the infopackages in the process chain, you will be prompted as to how the connection should proceed (successful, error, or always). In your case, the decision should be always.
    Pls search for the links like this;
    http://help.sap.com/saphelp_nw04/helpdata/en/ce/dc87c1d711f846b34e0e42ede5ebb7/content.htm
    Re: Next step...
    Hope this helps.
    Regards
    CSM Reddy

  • How to execute the process chain using function module

    Hi,
    How can we execute the process chain when there is any process failed. For ex. when we are running many processes. when loading fails in local process chain, after fixing this error, how can we execute the rest of processes. Can we execute the rest of processes using any function module. Kindly guide me.

    Hi,
    Chk the weblog.
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3149. [original link is broken] [original link is broken] [original link is broken]
    Regards,
    Balaji

Maybe you are looking for