Execute process chain step based on value in a custom table

HI,
I have a requirement where i need to execute a process chain step based in the value of a field in a custom table.
e.g. If ztable-zflag = 'X' then execute next step else stop.
I am trying to use the decision between multiple alternatives process type, but i guess we can only use formulas in it.
Also, i created a custom method and called it through the badi RSAR_CONNECTOR, but the same isnt working as expected.
Would appreciate inputs from the experts.

Hi,
Thank you for your response.
I followed exactly what is written in the document. But when I execute the process chain with the Decision between Multiple Alternatives process type, it fails with an exception message.
Below is what I have done:
Below is the code that I entered in the method (Please note that ZPC_CONTROL is the table from which I need to check the value. This table contains 2 fields: Process Chain Name and Flag. My requirement is that when a particular process chain has the flag checked, then the process chain should move ahead):
Below is the GET method:
Finally, here is the formula that I have written in the Decision Between Multiple Alternatives process type:
And the event is Option 2 (which I assume will move the process chain forward if the flag is checked for the process chain ‘TEMP_TEST’)
Please note that the flag for process chain ‘TEMP_TEST’ is checked in the table ZPC_CONTROL.
Below is the error in the process chain:
Please let me know where am I going wrong here. Appreciate your help.

Similar Messages

  • Process chain flow - based on table values

    Hi,
    I want to control the flow of Process chain run through the values that exist in a field ZCONTROL of Z table.
    I have created an ABAP Program where I access the Ztable to get the ZCONTROL values and have added the program in the ABAP process type.
    Below the ABAP process type, I have added the Process type "Decision between Multiple Alternatives" and created a formula using Predecessor_Parameter function to get the ZCONTROL values.
    The format is PREDECESSOR_PARAMETER( <I_FIELDNAME>, <I_LOW_OR_HIGH>, <I_NUM
    How should I get the I_FIELDNAME value here?
    Please help.
    Thanks.

    Hi Eric / Steph,
    Thanks for your reponses.
    Eric,
    My table has the infopackages name and ZCONTROL field, which contains an indicator "X" or SPACE based the scheduling requirements.  If "X", the Infopackage is scheduled else, it is not.
    In the formula, how will I import the infopackage name.  The custom function can be created with export parameters as ZCONTROL values.
    But when I use the custom funtion, I will need to use the fields on the left hand side and it should have the infopackage name ideally.
    If you get any idea, please let me know.
    Steph,
    I will try your suggestion. 
    Can one ABAP program added as an ABAP Process type in the Process chain, trigger multiple events for different process chains?
    Also, if the infopackages are scheduled, one below the other, if one is not scheduled, will it move to the next one?  Will it go as an error(red) or green?  Should 2 load infopackages process types connected as success or Always?
    Please clarify.
    Thanks.
    Also,

  • 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

  • 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

  • Send Message from Process Chain Step without Process Log

    We send a mail message, depending on the success or failure of the process chain step, to user list.
    When the message is sent not only custom message but also the status information and the process log are sent.
    Our users are only interested about the result of the chain and they don' t want to view all technical information.
    Is it possible to send message without process log?
    Regards

    Hi,
    Take 2 process(red and green line) from each of the process in the process Chain, one is for sucessfull and other is for failure and at the end of the proces chain,  just put all failure process to the OR and have add a ABAP Program (with Not Sucessfull) and then just put all sucessfull process to the AND and have add a ABAP Program (with Sucessfull) .
    This wil send the mail to the users, when ever there is failure in PC any where, or sends a mail ..if the process chain completes sucessfully.
    If you want only add the send of mail option at the end of the process chain, we can just add 2 process (red and green line) and have same flow as above. so that.. it will only sends mail..when there is failure or sucessfull of the process chian.
    Hope it helps ......

  • Process chain step by step documentation

    Hi friends,
    I am looking step by step documentation for process chains,please  send me documents.
    thanks for advace
    bye
    habeeb
    [email protected]

    Hi Habeeb,
    look at www.service.sap.com/bi --> SAP BW old release --> BI Infoindex --> P: you will find 5 documents on Process Chains.
    Go through this help documents and downloads.
    http://help.sap.com/saphelp_nw04/helpdata/en/67/13843b74f7be0fe10000000a114084/content.htm
    SAP help Creating process chains..
    http://help.sap.com/saphelp_nw2004s/helpdata/en/8f/c08b3baaa59649e10000000a11402f/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8da0cd90-0201-0010-2d9a-abab69f10045
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/19683495-0501-0010-4381-b31db6ece1e9
    ..http://help.sap.com/saphelp_nw2004s/helpdata/en/8f/c08b3baaa59649e10000000a11402f/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8da0cd90-0201-0010-2d9a-abab69f10045
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/19683495-0501-0010-4381-b31db6ece1e9
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/36693695-0501-0010-698a-a015c6aac9e1
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9936e790-0201-0010-f185-89d0377639db
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3507aa90-0201-0010-6891-d7df8c4722f7
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/263de690-0201-0010-bc9f-b65b3e7ba11c
    Process Chains
    Steps for 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
    and also check this.
    http://help.sap.com/saphelp_nw04s/helpdata/en/58/9c6c4251e4c153e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/44/60c800738d311de10000000a155369/content.htm
    /people/sap.user72/blog/2005/12/27/the-new-sap-netweaver-job-scheduler-a-redwood-oem-tool
    http://help.sap.com/saphelp_nw2004s/helpdata/en/86/6ff03b166c8d66e10000000a11402f/frameset.htm
    ***Pls assign the points , if info is useful**
    Regards
    CSM Reddy

  • Process Chain Step by Step

    Hi to all,
    Please can any one tell me, how to designe Process Chain Step by Step.
    Or any Document Related to that.
    i shall be thankful to you for this.
    Regards
    Pavneet Rana

    Hi Rana,
    Have you searched in the SDN or Google. this is the general topic was discussed n no of times and lots of documents are there on this.
    Check the below link which givs step by step
    Process chain creation - step by step
    /people/juergen.noe/blog/2008/01/11/process-chain-creation--step-by-step
    https://wiki.sdn.sap.com/wiki/display/BI/Processchainscreationandmonitoring
    Regards
    KP
    Edited by: prashanthk on Jan 19, 2011 5:08 PM

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

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

  • Process Chain step repeat/restart

    I have a process chain which schedules 3 loads to psa and then loads the data into ods/cubes. it often fails here due to data problems. now there are at least 4 subsequent steps that are not executed due to this failure which is correct but i don't want to have to fix the problem with the data by deleting the requests from the ods/cube and correcting in the PSA and then have to do all the subsequent steps manually.
    Once i have corrected the data in the PSA:
    if i repeat the load to ODS step will it continue through the rest of the chain?
    if i restart the chain will it repeat the extract to PSA steps which i definitely don't want it to do?
    or can i schedule the subsequent part of the chain to run from the planning view?

    Hi Richard,
    I guess when there is some data issue, there is always need for manual intervention.
    "if i repeat the load to ODS step will it continue through the rest of the chain?"
    <i>You have to delete the failed request manually from DataTarget before doing this.</i>
    "if i restart the chain will it repeat the extract to PSA steps which i definitely don't want it to do?"
    <i>Yes. Restarting chain will extract the data again.</i>
    or can i schedule the subsequent part of the chain to run from the planning view?
    <i>I don't think you can start a chain from the middle from planning view.</i>
    Regards,
    Sree

  • Process Chain step status

    Hello All,
    In one of our process chain , we have an AND step, where in its checks its 4 preeceding steps, its all 4 are green,the AND Step executes and it goes to the next step.
    Chain is running fine since many years. But yesterday , we faced the issue that even if the preeceding steps were green, the AND step status showed Completed  rather it should show Successfully Completed.
    So we had to manually change the status to Successfully Completed  and it went fine.
    We check with the Basis also, the system was fine during that point.
    Any pointers why the step did not get the Status as Successfully Completed.
    Job name: BI_PROCESS_AND
    Regards,
    Mayank

    Hi,
    You can find the necessary logs & status of the process chains in the RSPCLOGCHAIN table.
    Let's know the status.
    Also check in table RSPCPROCESSLOG
    Let us know the details.
    Reg
    Pra

  • How to handle delta failed process chain steps

    Hi All,
    I have a query regarding process chains were in processstep has delta load and there is dependency between the predeseccor and successor process steps,then
    if the delta load fails due to any one of the following reasons
    1) due to remote_icp locked the prtclr Infoobject the process step is executing .
    2) due to any psa records errors and so on
    Then how to handle delta and see that correct delta records were updated .
    Because again for the nextday loads if the previous delta is incorrect it will give pop-up message that it is not possible.
    If any suugestions pl guide me.
    thanks
    Venkat
    [email protected]

    1)Remove the lock by force from sm12 or wait till the lock is gone.Then see if the delta data has come till the PSA.Mark failed delta load RED and back it out from target.Then read everything in manually from PSA to target.
    In process chains u can go the monitor entry for the failed load by..highlight chain..click log icon..give selection..for proper selection..see the failed node..right click..display messages..click on process monitor.
    Sometimes even if infopackage is run successful manually,next steps in the chain do not kick off.
    Use Siggi's excellent blog on this..(it works really well)
    /people/siegfried.szameitat/blog/2006/02/26/restarting-processchains
    2)Make request RED and back it out from target.
    Correct records in the PSA and read everything in manually from PSA to data target.
    Then use Siggi's blog.
    If data hasnt come to PSA do a delta repeat.
    Always check yesterday's chain run about 1-2 hrs before today's chain kicks off.
    cheers,
    Vishvesh
    Message was edited by: Vishvesh

  • Process Chain Steps

    Hello,
    I need to schedule a job using process chain my job details as follows
    PSA(Delta)>DSO(Delta)-->INFOCUBE(Delta)
    Steps as follows
    Start
    Deleting InfoCube Index
    Execute InfoPackage(PSA-->DSO) as Delta Load
    Activate the DSO data
    Execute Data Transfer Process(loading DSO -->INFOCUBE) as Delta Load
    Above procedure is good way to do? any draw backs
    Thanks

    Yes .. for all steps
    Infopackage (delta)--Successful then only Execute one by one
    DTP for DSO (delta) -- when successful do next step
    Activate DSO  -- when successful do next step
    Delete index infocube -- when successful do next step
    DTP for cube (delta) -- when successful do next step
    Create index.

  • Error while Executing Process chains

    Hi All,
    Initially i have created infopack with full load and Executed it manually, later i have changed same infopack to Delta load and kept in Process chains, when i execute the Process chains, the start Process have get triggred, but my Process stops at load data.when i have check the log file it is showing the Below Message:
    "Message_Type_x" " "
    "CL_RSSM_LOADING===============CP" or "CL_RSSM_LOADING===============CM005"
    In Sm37 it is showing
    BI_PROCESS_TRIGGER   is Finished
    BI_PROCESS_LOADING is Cancled
    Please help meto find out  what might be the cause of this Error.
    Note: The infopackage will get data from Generic data Source.
    when i run the Process chains, the request is not going to R/3 Side.
    Thanks and regards,
    santosh.

    Hi Santosh,
    Go through this below note.
    Note 852443 - Dump in include LRSSMU36/RSSM_OLTPSOURCE_SELECTIONS.
    If Init is successfull then you can manually try the delta and check it.
    Hope this helps
    regards
    KP
    Asign points if helpfull

  • Process Chain step failures

    Hi,
    We have a process chain that frequently fails on a load data step. The step prior is a delete index. The data load is loading to a PSA and then to the data targets. The issue we are seeeing is if you repeat the data load step when it fails the delete index, which was already successful, changes to yellow. The delete index step stays yellow and never changes to green, it really is not running. Then the data load step that was repeated actually does run and complete successfully but the step never changes to green it stays red. As a result the process chain never completes. I have a work around, by running the info package manually then changing the failed step to green. But I would like to find out why this happens and can we stop it from happening.
    Thanks
    Cheryl Farley

    Hi,
    When loading the data from PSA and then into datatargets fails at the second stage from PSA to target,
    here if u repeat the chain as far i guess the load to PSA appears into yellow and then changes to green when the data is updated o target...
    but in ur case u r saying tht the delte index step is failing/changing into yellow when repeating at load step..
    now confirm from where u r repeating ur chain either from load to PSA or PSA to target...
    in both the cases the delte index shuld not be running again..once chk the whole design of ur chain,,,
    rgds,

Maybe you are looking for

  • Problem in installing a HP network printer

    I have a P2055dn laserjet.  It is connected directly to the router on my network.  I have a computer that uses it regularly and I can install it on another one.  It goes thru the installation, finds the printer itself and when it's close to completio

  • I am data roaming, have a 3g signal but no data. How do I get a data back?

    I am currently in London with my US iPhone5 (AT&T). I have a data roaming package and it has been working fine for the past week, then yesterday, I go into the tube and when I get out, I have no data connection, but the 3g signal is still showing. I

  • How to turn off Face Tracking

    I tried to turn off the face tracking under Face Tracking Options (there are three options, off, continous and smart). I clicked "off" each time, but it did work. The setting automatically returns to either "continous" or "smart". Can anyone help?

  • Writing XML Object to a File

    Hi, I am using InDesign JavaScript to make an XML object in memory. When my script is done, I want to write the XML to a file. When I run the code below, the file is created, but the XML is not written to the file. Any help would be appreciated. Than

  • Is it possible to have a field in the form to insert an image, like in Adobe livecyle?

    Should I use Adobe livecyle, does it still exists?