Trigger Process Chain through the Web

Hi,
I am trying to allow the users to control when they trigger a process chain through the web.
The users have a number of integrated planning sheets, which they access and input, once they are happy with the inputs, then they want to trigger the process chain to carry out additional loads.
I am using function module RSPC_CHAIN_ACTIVATE_REMOTE to trigger the process chain, when I test this with the chain set to direct scheduling it works fine.
I have set a planning function to call RSPC_CHAIN_ACTIVATE_REMOTE, with the process chain in question.  Now when I run it with the chain set to direct scheduling it repeatedly calls the process chain over and over again, like it is in an endless loop.
When I try setting the chain to Meta Chain or API nothing happens.
Does anyone have any ideas why I can't get this to work through the web?
Thanks
D

CALL FUNCTION 'RSPC_API_CHAIN_START'
    EXPORTING
      i_chain       = 'YOUR PROCESS CHAIN NAME'
    EXCEPTIONS
      error_message = 1.
   IF sy-subrc <> 0.
      CALL FUNCTION 'BALW_BAPIRETURN_GET1'
       EXPORTING
        type             = sy-msgty
        cl               = sy-msgid
        number           = sy-msgno
        par1             = sy-msgv1
        par2             = sy-msgv2
        par3             = sy-msgv3
        par4             = sy-msgv4
       IMPORTING
        bapireturn       = p_return.
      RAISE STREAM_FAIL.
   ELSE.
     RAISE STREAM_SUCCES.
     RETURN.
   ENDIF.

Similar Messages

  • Trigger Process chains through ABAP program using selection screens

    Hi All
       I am loading flat files through process chains. My requirment is such that i need to create a ABAP selection screen so that user can load the flat file from his PC. when the user is loading the flat file i have to copy the file onto the application server folder and then display him the monitor errors/warnings (if any). when my data load is complete i need to archive the file with time stamp onto the application server folder.
    Please help me in this regard....
    thanks and regards
    sairam phani

    Hi sairam
    can you check this link hope this might help you out
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3507aa90-0201-0010-6891-d7df8c4722f7
    Going thru your query hope i get the right   solution
    Thanks=points in SDN
    Sanjeev kumar hamsala

  • How to trigger a process chain through

    Hi All,
    Can any one send me the steps to trigger a process chain through a job in sm37.
    Thanx
    Kishore

    Just a trigger ?
    Best way I can suggest is to call the function module 'RSPC_API_CHAIN_START'...
    So, create an ABAP Program, call the function in the program. You can add parameters and a selection screen to make the program generic and add variants to it.
    Once you are done with this, schedule a job with this program and whichever variant you're lookin for and you should be done.
    - Aditya
    Assign points if helpful

  • PI Interface Posting Files - Trigger Process Chain Issue

    Dear Reader,
    Situation -
    We get multiple flat files from source system via PI interface. To process this in BW 7.0 side we have created the web service interface. In the function module we have written a code to trigger process chain, once a data is posted.
    Issue -
    As there are multiple files being posted, the PC runs on completion of the every single post, which is not desired. We need to run the process chain only once at the end of all the files being posted.
    Notes -
    1. Number of files keep varying.
    2. Clubbing all the files in a single file and then posting it would cause performance issues.
    Request your help in find a way like -
    1. A file being posted of name, say 'START PC', which can be trapped in the funciton module and controll the PC call.
    2. <any Other idea>
    regards,
    vinay gupta

    Hi Dhanya,
    This is the code i have in the ABAP program in the process chain. I just included the API_SEMBPS_POST part, but still it doesn't work. Please give me your email address so that i can send some screenshots.
    REPORT  ZHTEST.
    DATA: l_subrc TYPE sy-subrc.
    DATA: ls_return TYPE bapiret2.
    CALL FUNCTION 'API_SEMBPS_POST'
    IMPORTING
       E_SUBRC         = l_subrc
       ES_RETURN       = ls_return.
    CALL FUNCTION 'RSAPO_CLOSE_TRANS_REQUEST'
      EXPORTING
        I_INFOCUBE               = 'ZMAP_TAB'
    EXCEPTIONS
      ILLEGAL_INPUT            = 1
      REQUEST_NOT_CLOSED       = 2
      INHERITED_ERROR          = 3
      OTHERS                   = 4
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • 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)

  • How to Trigger process chains??

    hi all
    How to Trigger process chains??
    Can anybody step by steps??
    thanks
    Senthil

    The background control options are available to directly schedule the start process. You can start the start process immediately , that is when activating the process chain, for a specified time, or after a particular event. When you activate the process chain, the start process is scheduled in the background as defined in your selections.
    You can also trigger the start of a process chain via a meta chain. A meta chain is when a process chain, to which you set this start condition, is fixed to another process chain. The process chain is started directly by this meta chain.
    When you start the start process via a meta chain, it is not scheduled after you activated the related process chain. The process is only started when the meta chain, to which it is linked, is running.
    The remaining chain processes, that is the application processes and the collection processes, are scheduled to wait for an event.
    The start process has the following special features:
    Only the start process can be scheduled without a predecessor process.
    The start process can not be a successor to another process.
    Only one start process is allowed for each process chain.
    One start process can only be used in an individual process chain

  • Trigger process chains from UNIX

    Hi,
    I just wanted to know how can we trigger Process chains from UNIX Server.
    Any pointers will be appreciated.
    Thanks

    I suggest to use the sapevt.exe.
    With it you can trigger an event in the SAP system with the execution of a simple command file (.bat for ex.)
    So the event will start the chain as you require.
    You can find more info for sapevt in:
    http://help.sap.com/saphelp_nw04/helpdata/en/fa/096e6b543b11d1898e0000e8322d00/frameset.htm
    Regards,
    Sregio
    Did you try that?
    Message was edited by: Sergio Locatelli

  • Can we redistribute SAP document materials through the web?

    Hi all,
    Is it legal to redistribute SAP document materials through the web?
    Thanks!

    Hi Christian,
    Thanks for replying. Just curious on this thing though, I have few SAP documents in .pdf format stating the following: (Can someone clarfy and help me about this? Thanks!)
    <b>Terms for Included Open Source Software</b>
    This SAP software contains also the third party open source software products listed below. Please note that for these third party products the following special terms and conditions shall apply.
    SAP License Agreement for STLport
    SAP License Agreement for STLport
    between
    SAP Aktiengesellschaft
    Systems, Applications, Products in Data Processing
    Neurottstrasse 16
    69190 Walldorf
    Germany
    ( hereinafter: SAP )
    and
    you
    ( hereinafter: Customer )
    1. Subject Matter of the Agreement
    a. SAP grants Customer a non-exclusive, non-transferable, royalty-free license to use the STLport.org C++ library (STLport) and its documentation without fee.
    b. By downloading, using, or copying STLport or any portion thereof Customer agrees to abide by the intellectual property laws, and to all of the terms and conditions of this Agreement.
    <b>c. The Customer may distribute binaries compiled with STLport (whether original or modified) without any royalties or restrictions.</b>
    d. Customer shall maintain the following copyright and permission notices on STLport sources and its documentation unchanged: Copyright 2001 SAP AG
    e. The Customer may distribute original or modified STLport sources, provided that:
    • The conditions indicated in the above permission notice are met;
    • The following copyright notices are retained when present, and conditions provided in accompanying permission notices are met:
    Copyright 1994 Hewlett-Packard Company
    Copyright 1996,97 Silicon Graphics Computer Systems, Inc.
    Copyright 1997 Moscow Center for SPARC Technology.
    Copyright 1999,2000 Boris Fomitchev
    Copyright 2001 SAP AG
    Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. Hewlett-Packard Company makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
    Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. Silicon Graphics makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
    Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. Moscow Center for SPARC

  • Use event trigger process chain

    Hi friends,
    I am working on a process chain tuning task.
    One request is to change a schedule method  of an interrupt from date/time to event.
    I know how to generate and utilize event.
    My worrying is:
    Is an event has duration?
    E.g Today's process chain scheduled at 01am,,processing, the interrupt was triggered  by event at 04am, but at 10am, the event was trigger again for some unknown reason.
    Then,the process chain with the interrupt will be scheduled  at 04am tomorrow, but actually, there may be no event for tomorrow as requirement(due to some reasons,we do not like PC run everyday).
    Anyone know how to solve this problem?

    Martin
    You partially answered my questions.
    My chain contains both date/time schedule and event trigger.
    As is:
    Start-date/time schedule daily at 1:00am
    step1,step2,,etc
    interrupt-now, it is date/time schedule,at 4:00am
    other steps.
    To be:
    Start-date/time schedule daily at 1:00am
    step1,step2,,etc
    interrupt-  event trigger schedule
    other steps.
    I know how to trigger event by ABAP program.
    My concern is:
    Today afternoon, someone run this ABAP 10 times to generate 10 events,what will happen tomorrow?
    Actually,according to business requirement,tomorrow's process chain(interrupt below part) shall not be ran.

  • Is it possible to run process chain from the certain process/point?

    Hello
    Is it possible to run process chain from the certain process?
    How?
    Thanks

    Hello,
    yes it possible! use the following steps.
    1. Goto the process which you want the chain to start from.Goto display messages>> Chain tab. In the generated instance note the variant and instance.
    2. Goto table RSPROCESSLOG and give variant and instance and get logid details.
    3. t codese37>> run FM RSPROCESSFINISH.
    4. give the deatils u have got in RSPROCESSLOG table here and say execute.
    This will solve ur problem.
    Hope this helps!
    Reg
    Deepmala

  • 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 stop a process chain after the current running process

    Hi experts,
    I try to stop a running process chain, but only at the end of the current process load.
    I try to unscheduled process chain : the job of the current process is killed and the process stop
    I try to execute the programm rspc_process_finsh : same result.
    Actually, I aim at waiting of the current process completion and stop the chain.
    Thanks and regards,
    Bobby

    Hi all,
    Thanks for answer.
    If I resume the situation :
    - Click on Unschedule process chain stop the current process. We have to change the status of the process in Yellow to Red.
    - Go to sm37 to kill the job change the statut in red.
    So there is no way to stop the running of a process chain only after the good or bad end of the last runnning process ?
    Example :
    My chain is running. The process which is running is a DTP loading process. There are 50 packages to load. I decide to click on Unschedule process chain when the package 18 is running.
    If I do that, the loading of package 19 will not start right ?
    So is there a way to wait that the 50 packages are loaded before that the system stop the chain ?
    Thanks in advance,
    Bobby.

  • Trigger Process Chain from Source System into Target System

    Hello...actually in source system BZD, we have a process chain, in the target system BWD, we have another process chain as well. We want to have a process of combining these two process chain together. When the process chain in source system is completed successfully, the system will sent out some sort of signal to start the process chain in BWD. I am not sure how this can be done, I try to use the function module "BP_EVENT_RAISE" in the BZD and when this module is called, it does not start the process chain in BWD after the process chain in BZD is completed. I just wondering am I using the correct method. If will be good if anyone here can help...thanks alot.

    >
    FluffyToffee wrote:
    > Hello...actually in source system BZD, we have a process chain, in the target system BWD, we have another process chain as well. We want to have a process of combining these two process chain together. When the process chain in source system is completed successfully, the system will sent out some sort of signal to start the process chain in BWD. I am not sure how this can be done, I try to use the function module "BP_EVENT_RAISE" in the BZD and when this module is called, it does not start the process chain in BWD after the process chain in BZD is completed. I just wondering am I using the correct method. If will be good if anyone here can help...thanks alot.
    Hi Fluffy,
    Check RFC connection between the two sysems.
    Try using remote process chain process type in the process chain. the fllowing link may help you.
    http://help.sap.com/saphelp_nw70/helpdata/EN/86/6ff03b166c8d66e10000000a11402f/frameset.htm
    Regards,
    sunmit.

  • 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 can I realize a period process chain start: the 1st to 3rd day every?

    Hi,All
    I want to set a start in a process chain as the following:
    a period value: the 1st to 3rd day every month
    How can I realize it ? Thanks.
    Best Regards
    Jiande Ding

    Hi Jiande Ding 
    create original chain as a Meta chain.
    create the another process chain with immedaite in start varaint..
    and put abap step in that PC after process chain..
    put this below code in that abap program.
    DATA: wwdate like sy-datum,
              WWDAY(2).
    wwday = sy-datum+6(2).
    IF WWDAY EQ '01' OR WWDAY EQ '03'.
       CALL FUNCTION 'RSPC_API_CHAIN_START'
      EXPORTING
        I_CHAIN             = <ur meta chain tech.name>
    ENDIF.
    Edited by: shanthi bhaskar on May 5, 2009 4:44 PM

Maybe you are looking for

  • Customer Exits for Delivery & Goods Receipt - Very Urgent

    Hi Everyone,   We have got a requirement where we have to trigger a screen exit/badi at the time of posting the material document in transaction MIGO or delivery document in VL01N, can any one tell me the right exit as this is very urgent. Rgds,

  • Badi triggered on po creation?

    hi experts, can anyone tell me which BADI is triggered when A PURCHASE ORDER is been created in tcode ME21N? thanks a lot. Moderator Message: Please search before posting. Thread locked. Edited by: Suhas Saha on Jan 2, 2012 12:23 PM

  • Breaking a pdf into multiple pdf's

    I have a 250 page pdf.  each page represents a departments information.  Is there a way to break apart that pdf into single pdf's but using part of the file to name the pdf? for example, if the first report has a title that contains department 123, I

  • Help me some xml scheme problem

    hi, everybody I'm have some question about xml document, that can have xml scheme more than one on a document ?. please.

  • Oop's alv concept

    dear expert ,     i am not getting output in oops Alv. i m in learning state  .Please help me     my code : - REPORT  ZTEST12_O2. TYPE-POOLS: ICON. TYPE-POOLS:SYM. TABLES : VBRK. data itab TYPE TABLE OF vbrk WITH HEADER LINE . DATA : IT_FCAT TYPE STA