Program to execute Process Chains in APO

I'm trying to find a program in APO that can execute Process Chains. Is there any standard program in APO that enables to execute Process Chain? or does a custom program need to be created?

Hello Jaroslav,
A process chain can run on it's own without an external ABAP program triggering it. Here are some examples:
1) You can set your process chain to be triggered by SAP event. Create the event in SM62 and then use that in your chain. Then trigger the event using SM64 and your chain should run after that.
2) You can just schedule your chain to run on a specific date or in some periods.
If you really want to trigger your process chain using an ABAP program or planning book macro or whatever custom functionality, then you can use function module RSPC_API_CHAIN_START.
Hope this helps.

Similar Messages

  • Program Variant in Process Chain

    Hi All,
    I have to execute a program in a Process Chain. I have included a process variant to execute the program. Now, this program bring us to a screen, where we need to click on the execute button to run that program. I need to add a program variant for this i guess. Can any one give me the procedure how to do this?
    Points will be awarded.
    Thanks in advance,
    Anjum.

    The program that you have written should run in background.
    We use Variants for ABAP programs to be run in the Process Chain
    - Create an ABAP variant
    - Choose call mode "Synchronous", Called from "Local". Thats mostly the default we use. choose according to your requirement.
    - Choose "Program". Choose the program name & the variant n ame. Its better if you create the variant while testing the program in sa38. Later you can use the same variant in the Process Chain ABAp variant OR can create a new one. Set appropriate values.
    Please note that if in SA38, your program ran successfully with the variant, it should run here as well.
    That should do.
    Regards
    Anujit Ghosh
    Edited by: Anujit Ghosh on Jun 17, 2008 12:36 PM
    To create the program variant, first enter a name of your choice in the program variant field. Click Edit.
    - Choose Create New
    - Choose "Values". Click Change. In teh next screen, enter all the required parameters. Choose if its a SAP standard prog, or modified program.
    - Check the attributes as well. It will usually choose selection screen 1000 as default. Let it be.

  • ABAP Program in a Process Chain

    Hi!
    I create a program in ABAP/4. The program modify an attribute of a Z table I have previously created.
    I want to add that program in a process chain of BW which load a cube. The problem is that when I am in in the process chain, the program I have created doesn´t appear in the available programs to select and associate to the process chain.
    What I have to do to have the ABAP program available to select and associate to the process chain?
    Thanks in advance.

    Hello Nicolas, there are a few options you can try.
    1.  Instead of an ABAP program, would you think of incorporating your logic into a function module and then create a generic datasource in R/3 to extract the data from your Z table using the function module.  There is a function module in R/3 called <b>RSAX_BIW_GET_DATA_SIMPLE</b> that you can copy and use as a template for your function module.  Refer to the following blog:
    <a href="/people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module:///people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    You can also search this forum for RSAX_BIW_GET_DATA_SIMPLE for other ideas.
    2.  If you really want to use your ABAP program in R/3, then your best solution would be to create a job in R/3 that is triggered by an event.  This job will have two steps in it.
    Step 1:  execute your ABAP program to fill your Z table
    Step 2:  execute program to notify process chain in BW that ABAP process is complete (sample source below)
    In your process chain in BW, your ABAP process should be set up to be
    Called From:  (RFC destination of your R/3 system)
    Scheduled Program:  Event (event name in R/3)
    You may get a help message about "Requirements for asynchronous processes".  This is an informational message telling you that if you call an ABAP program from a remote system, there is no way for BW to monitor it, so you will have to execute a function module (RSPC_ABAP_FINISH) in the R/3 system to inform the process chain when the ABAP program finishes.   You can create your own program in R/3 to use this function module:
    *& Report  Z_RSPC_END_PROCESS                                    *
    *  Trigger end of an ABAP process in BW process chain.
    REPORT  z_rspc_end_process.
    *"*"Lokale Schnittstelle: Detination BW
    *"  IMPORTING
    *"     VALUE(I_VARIANT) TYPE  RSPC_VARIANT
    *"  EXCEPTIONS
    *"      ALREADY_FINISHED
    PARAMETER: p_rfc LIKE rfcdes-rfcdest,
               p_var(30) TYPE c.
    CALL FUNCTION 'RSPC_ABAP_FINISH'
        DESTINATION p_rfc
         EXPORTING
           I_VARIANT              = p_var
         EXCEPTIONS
           ALREADY_FINISHED       = 1
           OTHERS                 = 2
        IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    This program in R/3 will inform your process chain in BW that the ABAP process is finished and BW will continue to next process in the process chain.
    Note:
    p_rfc would be the RFC destination of your BW system
    p_var would be the name of the ABAP process in your process chain
    Hope this helps.

  • Trigger an ABAP program through a Process Chain

    Hi,
    I have an ABAP program as part of my Process Chain that updates the BW Hierarchy OREGH. 
    However I can't get the program to execute through the chain, even the though chains goes all green. without any REDS anywhere along the chain. 
    When I check if the program has made the desired changes in the tables it hasn't.
    If I run the program using SE38 it works fine and in seconds.
    Is there a parameter setting I have to set in the process chain or within the program itself.Tthe program is active.
    Ive checked many of the  posts about this issue but couldn't find a someone experiencing a similar problem.
    Please Help
    Thanks
    Amir

    Remove that ABAP program from the Process Chain and activate. Leave RSPC screen.
    Re-enter to RSPC, and add that program by creating a new variant with following options:
    Call Mode : Synchronous
    Call From : Local
    Check and Activate process chain.

  • BW: Not getting Dump For Program error in Process Chain

    I have one issue regarding Master data loading issue in BW(3.5).
    My business flow like we have received data from server A and Server A extract data from Server B and
    Server B which is extract data from source(R/3).
    Flow like this R/3-->Server B-->Server A(ETL) -
    > My Server.
    We have a mater data process chain and that chain we have have the source system Server A but in the process chain one process is there which is fethces data like global transport e.g UOM,factory calender etc through Custom program directly from Server B.
    Oneday what happened On that process the process chain Yellow since more than 16 hrs.Once nextday process chain trigger the process chain runs sucessfuly.
    But lastdays process chain paticular process stills remains yellow?
    We are not getting any dumps and even if from Server A there is no logs then anyone could please tell me what is reason and how to solve it.
    Note: it will be helpful for me  if any one know how to check dump for program errors in Process chain as narated issue.

    Guys, I am also facing the same issue.
    When DTP is completed successfully, it has the job log blow :
    Job started
    Step 001 started (program RSPROCESS, variant &0000000391261, user ID BWREMOTE)
    Performing check and potential update for status control table
    Status 'Executable' (user BWREMOTE)
    Status 'Active' (user BWREMOTE)
    Program RSBATCH_EXECUTE_PROZESS successfully scheduled as job BIDTPR_335754_1 with ID 06532200
    Job finished
    When it fails or remain yelllow for long time and then turn into red.
    Job started
    Step 001 started (program RSPROCESS, variant &0000000391306, user ID BWREMOTE)
    Performing check and potential update for status control table
    Status 'Executable' (user BWREMOTE)
    Status 'Active' (user BWREMOTE)
    EXTRACTION OF DATAPACKAGE 000001
    EXTRACTION OF DATAPACKAGE 000002
    Job finished
    The question is, why the program  RSBATCH_EXECUTE_PROZESS is not scheduled.  Is it because there is no free resource? Or poor response from SAP ECC?
    Finally what does "EXTRACTION OF DATAPACKAGE 000001" mean? Its not scheduled?
    Regards
    MultiABAP
    Edited by: MultiABAP on Oct 6, 2010 10:32 AM

  • How to finish ABAP program in the process chains

    Hello All,
    we have one ABAP program in the process chains which was created in the BW system only.
    this program we are using in the synchronous mode. according to my understanding we can not capture the failure of the ABAP program when it is in the synchronous mode.
    but i found a way through one this forum topic to capture the failure of the program through asynchrous mode by calling a function module RSPC_ABAP_FINISH but it was with the R/3 program in BW.
    can we use the same function module for BW program also.
    kindly let me know what steps we need to follow for the BW program in the process chains to capture the failure status.
    Regards,
    Ala.

    Hi Ala,
    we created an own processtype, look at this HowTo: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/45d8a990-0201-0010-a290-f22083728179
    and than also an abap which can end red or green:
    PARAMETERS: red   RADIOBUTTON GROUP radi,
                green RADIOBUTTON GROUP radi.
    IF NOT green IS INITIAL.
      MESSAGE i162(00) WITH 'Status' 'Green'.
    ELSE.
      MESSAGE e162(00) WITH 'Status' 'Red'.
    ENDIF.
    with i-message process ends green, with e-message process ends red.
    /manfred

  • ABAP Program Termination in Process Chain

    Hello
    in my process chains i have one abap program and it is getting dump while loading.
    where can i check whether this program got terminated in this particular chain.
    as i have many chains i am not able to check in each and every chain.
    kindly let me know where to check the program termination in process chains.
    do i have any chance to set an automatic process for checking the termination of the program.
    regards,
    Ala.

    Hi Ala,
    If u know the process chain name, u can directly see log view of that process chain and right click on that failed ABAP program click "display mesaged". Now note down the error message and see that in st22.
    If u dont know the process chain name..
    In SM37 go to the job log for that pirticular job which is failed, it gives u tha program name and varient name.
    now goto SE38 and give that program name and variant then click on display.It gives u process chain name.
    Hope it helps.

  • How to implement an abap program in a process chain

    Hi,
    I have an ABAP Program which uploads data into a table.
    Now I want to implement this abap program in a process chain.
    Please could anyone tell me how this can be done.
    Thanks & Regards,
    Sushanth H.S.

    Hi,
    A process chain is a background task for processing data into a BW instance .
    I want to know how to integrate an abap program into the process chain.
    Regards,
    Sushanth H.S.

  • How to execute process chains using planning function

    hi, i need to execute process chains from web. i know the steps to that needs to be followed for accomplishing the task.
    1) RSPC_CHAIN_START ( function module) into which process chain has to be passed
    2) create a planning function to invoke the said function module
    3) create a function button on web and assign the planning function.
    Now the thing is how to create the planning function in BPS. plz provide me a solution with steps. And how to pass the process chain into the function module and handle it.
    Thnaks

    Hi Anand
    RSPC_CHAIN_START is the standard function module to run a process chain which i want use. Now, how to use the said FM in planning function to achive my task. Do i need to maintain any parameter in planning function inorder to execute the FM. If you know the solution plz explain in detail.
    I am very new to BPS..bare me plz
    Thank you

  • Execute process chain before reading is disabled even if BW objects active

    Hi,
    This is also posted on BoB [http://www.forumtopics.com/busobj/viewtopic.php?p=763342#763342].
    I have followed the step described in [http://wiki.sdn.sap.com/wiki/display/BOBJ/ReadingSAPBW].
    - I have my RFC defined and the RFC server is up and running in Data Servi ces Management Console
    - I have a datastore with an Open Hub Tables defined
    - I have a dataflow with the Hub Table as a source.
    Unfortunately, the option Execute process chain before reading is disabled even though all the BW objects are active, as specifically mentioned in [http://wiki.sdn.sap.com/wiki/display/BOBJ/ReadingfromanOpenHub+Destination].
    Is there any other reasons why would this option be unavailable?
    Thanks
    Isabelle
    Edited by: Isabelle Thore on Oct 13, 2010 5:11 AM

    the option will be disable if there is no process chain for the Open Hub, select the Open Hub Destination in the datastore right click and open properties, in the properties windows select attributes, do you see a Attribute named ProcessChain0, if yes do you see a value for this parameter ?
    in there is a process chain for the Open Hub, try reimporting the Open Hub Destination again and see this attribute is set

  • Process chain in APO - batch jobs

    Dear Friends
    what for process chain in APO is used
    For instance in the sytem i noticed
    there are many process chain created
    Daily Master data
    Daily transfer of forcast
    there are so many process chain created
    what for it is used
    can you please give me a clear  idea ..
    Thanks & Regards
    Raj

    Hi
    In APO DP or SNP we have many jobs which have to following certain sequence. For example after loading the sales history only you can generate the CVCs. All these jobs has to start and finish in sequence. In the process chain you can defined or sequence all the your jobs according your need. You can also schedule these process chain as pre our requirement.
    So I will say process chain is better and more flexible way of scheduling and sequencing different jobs in APO. For example In you case you have daily process chain which might be loading the data in different Infoobjects  which are master data.
    Thanks
    Amol

  • Is there any way to execute process chain from the portal?

    Hello,
    Is there any way to execute process chain from the portal? I dont want to link process chain with any of report. I want to have a button in some of portal folders. User presses the button and it executes the process chain.
    I was thinking about to create a fake planning cube, aggregation level and planning function. I call FM within the Fox planning function that runs the process chain. But it should be done within the report.
    Any ideas?
    Thanks a lot in advance!

    Hi.
    I want to have a button in some of portal folders
    You mean that you want to use some link in EP ?
    Regards.

  • Issue with ABAP program execution from process chains

    Hi All:
    We have a process chain with 3 steps, each of them executing the same program with three different variants. The program is ftp's the file from APO's dataexchange (mount) to another ftp server. The first variant transfers file A to a directory in the external ftp server (say /X) . The second and the third variants are supposed to transfer different files, B and C to the same directory.
    That is where the problem is. After the process chain is successful, I see two files B and C but the contents are same and that of C. So, if I switch the steps in the PC to bring in A then C and then B, I see files B and C with content of C. I tried C then A then B. I see the file names correct but now the contents are A, A then B.
    Have any of you come across this issue? Do you know that these is an existing problem? IF you have a solution, pl. let me know.
    Thanks
    Narayanan

    Narayanan,
    Instead of doing it in three steps - would it be possible for you to have one UNIX script or equivalent doing the above and calling the same from your process chain ...?
    We do a lot of FTPs but then our file names are standard and we have a UNIX script for the same executed using a system command through a process chain and it has been working without issues for the past 1 year ...
    Maybe I have not got your situation properly ... some more detail on the program details and what you are doing in more detail would help....  also SP levels please..

  • How to extend the execution time of an ABAP Program using the Process chain

    Hello Sapians,
    Our Environment has got 600seconds = 10 mintues as the execution time.
    My ABAP Program is taking more than this 600 seconds, to show the result, I found this when I tried to execute in debug mode, it shows the result.
    If I execute in background also it shows the results succesfully.
    Only issue is when I execute this report in foreground it has been taking ages and goes on Time OUT Error.
    It has been decided that we can extend the execution time only for this report, and it will reset the time back to 10mintues once the report has been executed successfully or failed in between for any other reasons.
    And we can achieve this by using the process chains.
    Can any body help me please in this regard
    Thanks,

    Hi,,,,,,,,,,
    Besides Process Chain There is another way out for this........
    Resetting time counter of dialog process so that time-out does not
    happen. Use this fm within your program at appropriate locations to
    reset time counter.
    "CALL FUNCTION 'TH_REDISPATCH'."
    Thanks
    Saurabh

  • Short dump in program to trigger process chain

    Hi all,
    We have an ABAP program written to trigger a process chain...When we execute the ABAP program it goes on for a long time and then returns a short dump.It dosent even trigger the process chain.
    What could be the reason for this?
    Can someone please help...
    Regards,
    Suchitra

    Following is the error
    An exception occurred. This exception is dealt with in more detail bel
    . The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB', w
      neither
    caught nor passed along using a RAISING clause, in the procedure
      "Z_BPS_FIELDS_SET_REMOTE_C35" "(FUNCTION)"
    Since the caller of the procedure could not have expected this excepti
      to occur, the running program was terminated.
    The reason for the exception is:
    If you use an ABAP/4 Open SQL array insert to insert a record in
    the database and that record already exists with the same key,
    this results in a termination.
    (With an ABAP/4 Open SQL single record insert in the same error
    situation, processing does not terminate, but SY-SUBRC is set to 4.)

Maybe you are looking for

  • How to delete a blackberryid when you don't know the password or answer to the security question

    I have forgotten my password and answer to security question.  I would like to delete and restablish my blackberry id account.  Is this possible

  • Working with clips in imovie, deleting from the middle

    not finding this very intuitive ... I want to delete a selection from within a clip ... also want to know how to split clips ... I select the section I want to work with but all the options are ghosted in the menus ...

  • Stationery not viewed properly on PC

    I am trying so send a few emails to customers using Stationery, but I have just tried sending it to a colleague using a PC, and only half of the message appears properly. The backgrounds seem to appear correctly, but the rest of the template, for exa

  • Mpeg-2 files won't work in Final Cut Pro

    Please help! I was given mpeg-2 files to edit in Final Cut Pro 6, and they don't play in FCP or Quicktime. Is there a way to convert them to a format that will work? The dimensions are 1440x1080, MPEG-2 Video, MPEG Layer 2 codec, not sure the frame r

  • SCSM Server freezes unexpectedly

    I have been struggling with this issue for two weeks, and i couldn't find any reasonable answer for my problem. We have SCSM server 2012 running on a very powerful blade server together with the database. The hardware specs is surely more than we nee