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,

Similar Messages

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

  • Reg : To view process chain flow for a cube

    HI Experts,
    I need to view process chain flow for a particular cube of sales distribution.Can you please tell me stps to perform .

    Hi,
    If the cube is already loaded then you can just to the infopackages which are loading it and in the infopackages you have option in the "schedule" tab to see which process chain it is loading.
    if not then you will have to identify which data source is loading to the cube and check for the infopackge.
    and I think the DTP will be in the same chain  as well.
    For DTP it is alreday mentioned by the others.
    Thanks
    Ajeet

  • Process chain delete index from TABLE

    is it possible to put a step in a process chain (/rspc) to delete and rebuild indexes from a normal table?
    I can only find a way to do this for cubes... ?
    thanks!

    Hi,
    You have to export the table name and index name using the following str to FM :RSDU_DROP_INDEX
    begin of rsdu_s_index,
        tabname              like ddstorage-tabname,
        indexname            type rsdu_indexname,
        dbidxname            type rsdu_index,
        fieldname            type rsd_fieldnm,    "like dd17v-fieldname,
        type_expected        type rsdu_indextype,
        type                 type rsdu_indextype,
        type_check           type rsdu_check,
        unique_expected      type rsdu_indexunique,
        unique               type rsdu_indexunique,
        unique_check         type rsdu_check,
        partitioned_expected type rs_bool,
        partitioned          type rs_bool,
        partitioned_check    type rsdu_check,
        status               type rsdu_indexstatus,
        status_check         type rsdu_check,
    end of rsdu_s_index,
    so, you need to pass table name and index name through this structure.
    hope it help....
    Regards,
    Raju

  • Process Chain Flow doubt

    Hi,
    There is a process chain of flow start>Infopackage>DTP>ActivateDSO_->InfoPackage1>DTP1>ActivateDSO1_
    Only doubt starts where it is underlined. why the infopackage1 has been linked after the Activate DSO eventhough no dependency for DSO1?
    Instead the infopackage1 can be linked after start variant of the same process chain, right?
    regards,
    Draj S

    hi,
    please checkout the below link it may help you
    http://help.sap.com/saphelp_nw70/helpdata/en/67/13843b74f7be0fe10000000a114084/content.htm
    DataFlow of Process Chains in different SAP BW-BI
    Steps for Process Chains in BI 7.0 for a Cube.
    1. Start
    2. Execute Infopackage
    3. Delete Indexes for Cube
    4.Execute DTP
    5. Create Indexes for Cube
    For DSO
    1. Start
    2. Execute Infopackage
    3. Execute DTP
    5. Activate DSO
    For an IO
    1. Start
    2.Execute infopackage
    3.Execute DTP
    4.Attribute Change Run
    Data to Cube thru a DSO
    1. Start
    2. Execute Infopackage ( loads till psa )
    3.Execute DTP ( to load DSO from PSA )
    4.Activate DSO
    5.Further Processing
    6.Delete Indexes for Cube
    7.Execute DTP ( to load Cube from DSO )
    8.Create Indexes for Cube
    Thakns,
    Neelam

  • Trying to get the input parameter of a web service fxn based on table value

    Hello--
    I am new to ADF and Jdev 11g (I am a forms developer). I had created a web service from a pl/sql stored db package. I can successfully execute a function with an input parameter from ADF Faces.
    Instead of the input parameter being enterable by the user, I would like it to be based on a selected ADF table column value. How would I correlate the selected row column value as the function input parameter?
    I played with an ADF output text based on the ADF table column with the PartialTriggers value set to the ADF table...which updates the output text based on the column selected. Do I use some sort of partial trigger on the input parameter?
    From a forms point of view, I am looking for the "Copy Value from Item" property :)

    Hi,
    Not sure if this would help you.
    But if your table is bound to a ViewObject, it will be easier to get the current selection.
    Supose your table is bound to iterator1.
    In your backBean code:
    DCBindingContainer dcBindings = (DCBindingContainer)getBindings();
    DCIteratorBinding iterator =dcBindings.findIteratorBinding("iterator1");
    Row row = iterator.getCurrentRow();
    Object selectedValue = row.getAttarbute(<value of the column you are looking for>);
    public BindingContainer getBindings() throws Exception {
    try {
    if (this.bindings == null) {
    FacesContext fc = FacesContext.getCurrentInstance();
    this.bindings =
    (BindingContainer)fc.getApplication().evaluateExpressionGet(fc,
    "#{bindings}",
    BindingContainer.class);
    return this.bindings;
    } catch (Exception ex) {
    displayMessage("Error occurred. Please contact your IT Adminstrator.");
    return this.bindings;
    Let me know if this helps.
    -Makrand

  • Dynamic tabs based on table values

    Hi all,
    How can you display tabs dynamically based on user authorization and values in a table that contains the page id's and tab id's for example?

    based on user authorizationThat is already standard Apex functionality.
    and values in a tableYou can use jQuery to hide a tab. So, you create a tab in Apex, but hide it when necessary when running the page. Something like:
    if (<some condition>) {
       $("#tab_id").hide();
    };Put this in the "Execute when Page Loads" in the JavaScript section on the Page definition.

  • Application express security based on table values

    If for example 100 customers use an application build with application express, how can I restrict rows on there forms and reports.
    Each customer is allowed to see only their own articles (using the same table; condition on custno)

    Use Oracle VPD (Virtual Private Database) simply put. I currently use it in our applications.
    Do a search on OTN, Oracle's main website and also google between all three you will see how to implement it. It isn't bad, if you need further help let me know.
    http://www.oracle.com/technology/deploy/security/database-security/virtual-private-database/index.html
    Justin

  • Triggering Process chain based on execution of R3 job and Process Chain

    Hi All,
    I need your help in arriving at a solution for a reqirement.
    Scenario is., I need to trigger a process chain B based on successful execution of Process chain A and an R3 job. If both conditions(Completion of R3 job and Process Chain A) are met then only it has to trigger process Chain B.
    I know that we can use events to trigger a process chain using R3 job.But my case is differenet I need to consider the success message from both process chain and R3 job.Is there any way to solve it ?
    Please provide me with your valuable inputs.
    Thanks,
    Bindu

    Hi Hima,
    You can use the  'AND' variant for both, If both are success then trigger the process chain.
    Regards,
    Ravi Kanth
    Edited by: Ravi kanth on Apr 30, 2009 3:36 PM

  • Process chain tables - how to find process chains

    I have an info cube; I want to know what are the process chains that are loading data into this info cube; how to find it using the tables? I want to know the specific rspc table to get this information
    thanks
    rajan

    Hello,
    RSPCCHAIN   Process chain details
    use this table ..
    Regards,

  • Status of process chain

    hi all,
    This is the scenario. I  have  a badi in ecc in which i save the new projects and after saving a project it triggers a job in ecc ,which in turns trigger the process chain.When i try to save several projects in ecc in quick succession, say 3 projects A,B,C then there are 3 jobs which are active in ecc,which inturns triggers the process chain 3 times and hence the p.c gets locked and fails.
    In the badi, we had rfc fm which checks the status of the process chain whether its ACTIVE from rspcprocesslog table and then if the status become to G:successfully completed, the second job shold trigger.however its not working.
    in the rspcprocesslog(BI side), we find that the status field in the table is having  only two values F:completed or G:successsfully completed, whereas  other values such as ACTIVE ,cancelled are not getting stored.
    so i would like to know
    1. whether this table holds only  G or F values and why the status like Active or cancelled is not gettin g stored.?
    2. apart from these tables what is the method by which i can know the status of process chain or status of thelast process of the chain can be found.?
    3.  is there any way to check for the information we get in sm 37 job log in BI side for the last process present in the process chain? *is  the job log stored in some table ,if so what is the table name?*
    so can anyone please suggest to  make the second job in ecc to  get scheduled only when the process chain which got triggered for the first job is completed other than the two mentioned(rspcprocesslog, and job log)?

    Hi,
    You can find the necessary logs & status of the process chains in the RSPCLOGCHAIN table.
    ANALYZED_STATUS field stores the values of process status.
    G -> Completed
    R -> Ended with errors
    A -> Active
    X -> Cancelled.
    Many thanks,
    Arda.

  • Broadcasting through process chains

    How to broadcast reports to indivdual mailboxs in the company through process chains. say current data should be broadcasted into individual email account every time a new sales order or purchase order is created or by the end of the day , it should automatically trigger the mail with the report. can anyone help on this.

    Hi,
    Here see the blog details.
    The goal of information broadcasting is to distribute the right information, in the appropriate format, to the right people, through different channels, at the right time.
    With the BEx Broadcaster, you can precalculate queries, query views, Web templates, reports and workbooks and broadcast them by e-mail or to the portal. In addition to the precalculated documents in various formats (HTML, MHTML, ZIP and so on) that contain historical data, you can also generate online links.
    Accessing the Broadcaster
    The broadcaster can also be accessed via the Portal through the delivered BI Role.
    You can determine the Scheduling for Information Broadcaster
    Based on a data change event triggered by a process chain.
    Based on a pre-defined time point.
    Freely definable scheduling.
    Steps to Schedule Information Broadcaster based on a data change event triggered by a process chain
    Create the Query in the Query Designer.
    Execute the report in the BEx Web Analyzer.
    Click on u201CSendu201D to create the settings for broadcasting.
    The Broadcast Wizard takes you through a series of prompts where you supply the key information required to develop a broadcast. At any time you can leave the Wizard and use the standard settings dialogs which offer more settings.
    Then schedule the broadcast. If you start the Broadcaster for a query (or template or workbook) that gets data from an InfoProvider that will be selected in the process chain, you can select the InfoProvider for Scheduling.
    Create the process chain and include the event data change, include process type "Trigger Event Data Change (for Broadcaster), itu2019s available under "Load Process and Post -Processing".
    The Process Chain is created including the process types: (1) Start (2) Execute InfoPackage (3) Delta Data Transfer Process (4) Activate DSO (5) Trigger Event data Change.
    When you create the Variant for the Event Data Change, using checkbox we can indicate when the Broadcast should trigger.
    As soon as that InfoProvider is affected by a Process Chain, the Broadcasting is triggered.
    After successful activation you can now schedule your chain. Press button u201CScheduleu201D or menu u201CExecution -> scheduleu201D. The chain will be scheduled as background job. You can see it in SM37. You will find a job named u201CBI_PROCESS_TRIGGERu201D. Unfortunately every process chain is scheduled with a job with this name. In the job variant you will find which process chain will be executed. During execution the steps defined in RSPCPROCESSCHAIN will be executed one after each other. The execution of the next event is triggered by events defined in the table.  You can watch SM37 for new executed jobs starting with u201CBI_u201D or look at the protocol view of the chain.
    You can monitor the Broadcaster from the SOST transaction.
    Note:
    Depending on authorizations, end-users can schedule their Broadcasting Settings.
    Only for those queries which are checked "Execution with Data Change in the Infoprovider" while you schedule, will be triggered by process chain event.
    You may wish to refer the Note on Settings for Information Broadcasting- 760775
    Hope this help you
    Regards,
    Rakesh

  • When to use the "construct database statistics" process chain' item

    Hello, everybody.
    Information 1:
    In our BW system we have a job from DBA guys that build statistcs for the entire database. This job runs every day in the dawn.
    Information 2:
    In several process chain flows, we use the item "Construct Database Statistics" to update the statistics after cube upload.
    Information 3:
    I checked the log from both jobs and found several tables analyzed in first and second cases.
    The question:
    Is this step inside the process chain unnecessary? Exist any situation when this step is useful?
    Thanks in advance,
    Henrique Teodoro

    Hi.
    I found one advice about this issue in the follow thread:
    /message/3460818#3460818 [original link is broken]
    Regards,
    Henrique Teodoro

  • PSA Deletion Process in Process Chains Transport Question

    BI Guru's
    I am working on investigating a method of deleting PSA Requests this will be a stand alone process so no loads will be done in this process chain.  My question I cannot use the Object Type of InfoPackage  or DTP since these objects wont be in the Process Chain leaving me PSA Table option but since I will be developing this in Dev and transporting through environment into prod how will this be handled since PSA tables change from system to system?  Does the system automatically translate it for me or will the value stay the same?

    Hi Alex,
    System will automatically identifies the table in quality and then in Production system. You do not have to worry. I had same question and I tested it with transporting the Process chain from developement to quality. In quality system automatically identified the table corresponding to data target/Master data.
    Regards,
    Kams

  • Dependent process chains design

    HI,
        we need to create the transactional process chains design based on the master data flow status. since this both are present in the different flows, we can't have them in the same chains,once the master data process chains are completed then this process chain has to be triggered.
    whether we have to write some abap code or another way.
    please suggest on this

    Either you can add them in Meta chain like below
    MC
    I
    MD loads
    I
    TD Loads
    OR
    MC
    I
    MD loads
    I
    Event to trigger TD chain --(This event you can add for TD PC/start variant - When the event is triggered it will automatically activates TD laods)
    -Above design lets TD loads has to wait till all the MD loads gets success, If you can able to understand relation between MD and TD then you can split the chains for MD and create event to trigger corresponding TD chains.. This way as soon as MD loaded corresponding TD will trigger .. OR If you don't have many MD loads and they don't take much time to load then above option would be good
    Edited by: Srinivas on Aug 16, 2010 2:31 PM

Maybe you are looking for