Calling Process Chain after a program

I have written a trigger program to spool RSA7 in BW
every 1 minute to check if a datasource has come to the queue and if so check if it has got data. Once I confirm that there is data I want to EXECUTE a process chain.
Is there a program/function module to execute a process chain in background within BW? Pls help..
Suja

Hi Suja,
         You can write a code to trigger a event in your program once the check is done and then give this event in the start condition for the process chain. I think you can trigger a event using call transqaction statement in ABAP. Transaction to trigger a event is SM64. Hope this helps.
Regards,
Shilpa

Similar Messages

  • Program to call process chain

    hi,
    I would like to call the process chain through a program/function module in 7.0 system. Please advise.
    Thanks in advance...

    hi.......
    Check out this link
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8068a6b6-40e3-2c10-22ab-d52c5ab48f90?QuickLink=index&overridelayout=true
    Rgrds
    Priya

  • Trigger process chain in ABAP program

    Hi Experts,
    We have a requirement to trigger the process chain from an ABAP program. I used the function module RSPC_API_CHAIN_START to trigger the process by passing the process chain name in 'I_CHAIN' and it worked. However, the client wants to trigger this using batch user name as few planners do not have authorization when they executed the custom transaction.
    Based on the return code of the function module I am capturing the status for tracking.
    Please suggest if there is any alternate solution to pass the user name while triggering a process chain in an abap program.
    Thanks and Regards,
    Pavithra

    hi Chintai,
    in bw side, you create a abap program to trigger an event in r/3,
    and include this abap program in your process chain, the abap program like
    CALL FUNCTION 'BP_EVENT_RAISE'
    EXPORTING
    eventid = 'ZRUNJOB_DEL'
    and in r/3 schedule the program to delete previous data with 'after event',
    the event name is same as raise by bw process chain, in this sample ZRUNJOB_DEL.
    hope this helps.

  • Process Chain after EVENT - More than once

    Hi all, I would like to run a process chain after an event; everything works fine with the following model...
    PC1 >>
         >> some processes
         >> EVENT TRIGGER
    PC2 >>
         (after EVENT) runs ok after event ONLY if I SCHEDULE it
    After succesfully run, I've tried to run again immediatly PC1 again and it runs ok, even triggers mentioned EVENT, but PC2 never runs again until I manually SCHEDULE it.
    The answer is: how should I SCHEDULE the process chain PC2 so I'll "never" need again to SCHEDULE it when I want it to run after event triggered on PC1?
    Hope you can help me.
    Thanks a lot!
    Bernardo

    Hello,
    Both process chains are separated. At the model I described, at the end of PC1 event is succesfully triggered. After event is triggered at PC1, PC2 triggers correctly due it is scheduled as "after event".
    Everything works fine, then, if I trigger PC1 again it runs correctly; event is triggered succesfully but PC2 (that is scheduled as "after event") doesn't runs; this is because I haven't SCHEDULED it again (after the first succesfully run).
    What I want is not schedule PC2 after a succesfully run. Is there any way to reach that purpose?
    Thanks again!
    Bernardo

  • How to process process chain in ABAP program

    Hi,buddy:
        If I want to start Process Chain in ABAP program,then which code or function can be used?
        Best Regards.
    Martin Xie

    Hi Martin,
    How-to trigger a process chain using ABAP?
    Hope it suffice,
    Cheers
    SRS

  • Execute Process chain after infopackage run for a PC file

    Hello all.
    The scenario I need to solve is the following.
    I have several files to be load to ODS from P users PC. I will do this with an info package. But after this load there are some more process that have to be run whoch are created in a process chain.
    I would like to automate the execution of the precess chain right after the load from PC file is done.
    Any sugestions?
    Thanks and regards,

    Hello Javier Alvarado,
    If you use process chains, the automatically integrated processes are ignored and have to
    be implemented using the process chain. If you schedule a specific process in a chain,
    you support the automatic insertion of additional, relevant standard processes with the
    consideration of such automatic actions.
    For example, if you have selected the processing types Only PSA and Subsequently in
    Data Targets in the InfoPackage from the tabstrip Processing, and you are using this
    InfoPackage in a process chain, then the further processing into the data target does not
    automatically happen. Instead, it only happens if the process Update PSA is scheduled in
    the respective process chain after the loading process. Thus, the process chain
    maintenance supports the automation in this case. In this way, you generate a process
    variant for updating from the PSA in the chain when inserting the loading process with the
    process types Only PSA and Subsequently in Data Targets automatically into a chain.
    Well i am talking about 30B Version
    Regards,
    Mohan.

  • Process chain - After error ABAP - trigger a metachain start does not work.

    Hi,
    I have a process chain, where after an ABAP runs into red (ERROR MESSAGE triggered), another process type, like start a new meta-chain, or start an infopackage starts.... But is does not work. After i go to logs, it asks me whether i want to trigger the following jobs, if i choose yes, it works. But i need to start it automatically, when the ABAP Routine has an error message (RED) in the chain.
    Any idea, because I tried to solve it all the day, but i did not manage to get itwork...
    Many Thanks,
    L.

    Hi,
    the problem is not the ABAP Program.
    I have the following situation:
    A Metachain contains as second step a call of local chain. After the local chain, according to the status of it (green o red), we have other different steps. So we have two different link (red and green) starting from the local process chain step.
    Inside the local process chain there is the ABAP program that check several parameters and if something is not as expected fails with status red. if this situation happens, the local process chain becomes red and in SM37 inside the job i see the error that i forced, but the status is not triggered to the first metachain , so the corresponding following steps are not triggered.
    This issue happens only if fails the ABAP program because, for example, a Infopackages loading fails every thing works and the corresponding steps in the metachain are executed.
    In the ABAP program in order to force the status red we have the following code:
    MESSAGE e162(00) WITH 'Status' 'Red'.
    Any idea?
    Thanks,
    Veronica

  • How to Trigger a Process Chain through ABAP Program

    Hi
    I have a Requirement to trigger a process Chain on 1st, 2nd and 3rd day of the month for 2 times in a Day.
    Can any one give me any idea, how i can do it by writing a ABAP program and triggering the Process chain.
    If anyone can share the Logic for ABAP program means, that will be helpful for me, as i dont have much expertise on writing ABAP program.
    Regards,
    Muruganand.K

    Hi,
    you can achieve this in a following way.
    DATA : v_date type sy-datum,
    v_day(2) type c.
    v_date = sy-datum.
    v_day = v_date6(2).+
    if v_day = '01' or
       v_day = '02" or
       v_day = '03".
    CALL FUNCTION RSPC_API_CHAIN_START.
    pass the name of the chain to this function module.
    hope this wil help.

  • Trigger a program in ECC from BI using a process chain with out Program

    Hi,
    How can we trigger a program which is in ECC system from BI using a process chain with out writing any program.
    is it possible? if yes how can we achieve this.
    Thanks & Regards,
    Madhu

    Madhu,
    Not possible, indeed need event or Remote Function Call using an ABAP program.
    Other option would be to use a 3rd party tool like Control-M to run programs/jobs on whatever system in your landscape (but requires investments of course).
    Grtx
    Marco

  • DYNPRO_SEND_IN_BACKGROUND short dump in BW while calling Process chain remotely from APO

    Hi,
    While trying to call a process chain remotely from SCM APO system to SAP BW system - we are getting below short dump -
    Short text
        Screen output without connection to user.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "SAPLSDH4" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
    Checked the RFC connection between APO and BW system through SM59 and it is working fine - Can anyone pease suggest what configuration could be missing which might be causing this short dump.
    Thanks in advance.

    Additinal Data from Log -
    User and Transaction
        Client.............. 200
        User................ "AQ1ALE200"
        Language Key........ "E"
        Transaction......... " "
        Transactions ID..... "53F896E0992E0A50E10080000AF04150"
        Program............. "SAPLSDH4"
        Screen.............. "SAPMSSY1 3004"
        Screen Line......... 2
        Information on caller of Remote Function Call (RFC):
        System.............. "AQ1"
        Database Release.... 701
        Kernel Release...... 720
        Connection Type..... 3 (2=R/2, 3=ABAP System, E=Ext., R=Reg. Ext.)
        Call Type........... "synchronous and non-transactional (emode 0, imode 0)"
        Inbound TID.........." "
        Inbound Queue Name..." "
        Outbound TID........." "
        Outbound Queue Name.." "
        Client.............. 200
        User................ "KANDIS"
        Transaction......... "RSPC"
        Call Program........."SAPLRSPC_PROCESSES"
        Function Module..... "RSPC_DESTINATION_F4"
    Call Destination.... "BQ2CLNT200_DIALOG"
    Error analysis
        During background processing, the system attempted to sen
        screen to a user.
        Current screen: "SAPMSSY0 " 0120.
    How to correct the error
        If the error occurred in your own ABAP program or in an SAP
        program you modified, try to remove the error.
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "DYNPRO_SEND_IN_BACKGROUND" " "
        "SAPLSDH4" or "LSDH4F09"
        "DISPLAY_LIST"
    Information on where terminated
        Termination occurred in the ABAP program "SAPLSDH4" - in "DISPLAY_LIST".
        The main program was "SAPMSSY1 ".
        In the source code you have the termination point in line 2205
        of the (Include) program "LSDH4F09".

  • BI Process Chain executing a program in ECC

    I want to build a process chain in BI 7.0, which should also be able to execute a program in ECC.
    Is it possible.
    How do I do that ?
    Thanks
    Mary

    It should be possible:  Your process chain should include an ABAP program.  This program should call an RFC enabled function module in ECC (custom-built)  which should perform the required function in ECC.
    There are many links on including ABAP programs in PCs.  In the ABAP section you will find information about building RFC function modules.
    BR/
    Mathew.

  • Process chain execution using program

    hi,
    i want to run process chain 10 times using a program.
    can any one tell me how to write a program in pc in order to run the chain 10 times.
    any example of running the process chin using program .any nice code will be really useful
    please suggest me.
    i will assign points

    Hi Venkat,
    Go to SE37 input CHAIN  F4 then you will get various function module that can be used for process chain.
    IN you program call the function module RSPC_CHAIN_EXECUTE_REMOTE pass the required parameters and exceute.
    Test throughly in DEV system before moving to PRD. I have not used this earlier.
    Hope this helps.
    PV

  • Server name message when triggering process chain through ABAP PROGRAM

    Hi all,
    When I am trying to execute one process chain with variant as a APD ( In this APD data is getting loaded form one Query to Transactional ODS.) This process chainis being executing through one ABAP program using the following code
    CALL FUNCTION 'RSPC_API_CHAIN_SCHEDULE'
         EXPORTING
           I_CHAIN      =  'XYZ'. ( Dummy Process chain name)
    While executing this program I am getting following message :
    You can specify the name of the application server here
    on which all jobs in the chain are scheduled
    If you do not specify a name, the jobs from batch
    management are divided between the available servers
    How to avoid this message.
    Can we write any code in the above program to assign any fixed server name so that it will not ask for any server name.
    Your help is much appreciated.
    Thanks,
    Uday.

    Hi Shanthi,
    How to write exception handling for this.
    Quick reply is nedeed.
    Thanks,
    Uday.

  • How to schedule a Process Chain using ABAP Program?

    Hi All,
    I want to schedule the activity of extracting data from the query to a flatfile.
    Currently we are schedulling it using the transaction rscrm_bapi.
    I need to know , how we can achieve the same using an abap program and not ( rscrm_bapi) in a process chain.
    Any help would be appreciated.
    Regards
    Purva

    Your problem will be solved if you use the Function Module "RSPC_API_CHAIN_GET_STATUS" instead of the function module "RSPC_API_CHAIN_GET_LOG".
    The function module "RSPC_API_CHAIN_GET_STATUS" gives you the STatus of the process chain, when you pass the Chain Name and the Log ID.
    If you get an output
    G or F - Report that the Chain is Successfully Completed.
    A - The chain is Currently running
    R or X - Report that the chain has ended with Errors.
    Sample code :
    REPORT Z_BW_GET_STATUS_PROZESSKETTE.
    TABLES rspclogchain.
    DATA: gt_rspclogchain LIKE rspclogchain OCCURS 0,
    wa_rspclogchain LIKE rspclogchain.
    DATA: gt_log LIKE rspc_s_msg OCCURS 0,
    wa_log LIKE rspc_s_msg,
    gt_status like RSPC_STATE.
    SELECT * FROM rspclogchain
    INTO CORRESPONDING FIELDS OF TABLE gt_rspclogchain
    WHERE datum = sy-datum
    AND chain_id = 'BD_C02_1D'.
    IF sy-subrc = 0.
    SORT gt_rspclogchain BY datum DESCENDING
    zeit DESCENDING.
    READ TABLE gt_rspclogchain
    INTO wa_rspclogchain INDEX 1.
    CALL FUNCTION 'RSPC_API_CHAIN_GET_STATUS'
    EXPORTING
    i_chain = wa_rspclogchain-chain_id
    i_logid = wa_rspclogchain-log_id
    IMPORTING
    E_STATUS = gt_status.
    IF gt_status = 'G' or gt_status = 'F'.
    WRITE :/ 'BD_C02_2D chain COMPLETED'.
    ELSE.
    WRITE :/ 'BD_CO2_2D chain is Running or Ended with Errors'.
    ENDIF.
    ELSE.
    WRITE :/ 'No chain BD_C02_2D started for today ! or keine Kette BD_C02_2D gestartet !'.
    ENDIF.
    I have just provided a sample code, you might have to edit or add necessary messages to the program.
    Regards,
    Ramya

  • How to delete  old schedule time of process chain after changing

    I am try to change the schedule time of process chain on production but after changed the old schedule is still working (i.e. every day on 7 am I want change it to 6 am only) ,one process scheduled two time.
    I want only last changed. How to remove the older one?
    Thanks

    hmm wierd...one more thing check if this process chain get trigger by anyother process chain by some abap program or any.
    Check the table rspcchain to know if it has any meta chain or not. IF not follow the below steps :
    make your process chain trigger based upon the event. Follow the below step.
    1.SM64 ---> Create event -
    > come to your process chain -> maintain the start variant -> event base---> give that event name here.Now we will be require to create the job which will trigger this event for  this.
    2.Let us take the below PC as example;
    ZL_TD_HCM_004 -- This PC is running after event u2018START_ZL_TD_HCM_004u2019
    3.Go to T Code: SM36 Here we define the Background job which will be available in SM37 after saving it.
    4.It will ask for ABAP Program to be entered. Give it as Z_START_BI_EVENT and Select Variant from the list. (Based on Process chain, you can select it)
    5.Then select Start Conditions and give the start time of process chain. and select periodicity.
    6.Save the newly created job in SM36.It will be now available in SM37.
    This should solve your problem now .. have  fingure crossed
    Thanks,
    Deepak
    Edited by: Deepak Machal on Dec 14, 2011 8:20 AM

Maybe you are looking for

  • Crystal Report Viewer 2008, postback causes a weird QueryString for dates

    HI, I'm having a weird problem that was masked with the error "". What is happening to me is that i have an ASPX page where the QueryString passed in is used as parameters to the report (straightforward).  When the page first loads, this is all fine

  • Error  while creating the service pr

    Dear All, i have one Currency change while creating the PR issue i have co  code  currenecy is  USD while creating the material  PR sysytem is allowing to change the USD currency in AED Currency modifible condition where as if iam creating the Servic

  • Is ACR 7.1 available for Mac OS 10

    I have ACR 6.4.1

  • Using FileInputStream to view File Details.

    Hi, I am unable to view the contents of this XML file using FileInputStream.It doest display anything at all. Am I missing anything? Can someone please help? File f = new File("C:/Order.xml"); FileInputStream fis = new FileInputStream(f); StringBuffe

  • App Launches, Slow Finder, Strange Behavior...

    Usually I can troubleshoot whatever comes my way, but this truly has me stumped: 1. After some regular use on my MBP, apps stop launching and I get the beachball. Unresponsive apps have included: Pages, Keynote, Numbers, System Preferences, Word '08,