Decision Between Multiple Alternatives-Process Chain Formula

Hi,
I need to write a formula in the process type 'Decision Between Multiple Alternatives'.
If the current date is on the end of month then i need to trigger a monthly snapshot dataflow if not then daily dataflow needs to be triggered.
Anyone have any idea of how to write a formula for this?

You can check both of these docs which defines how to use 'Decision Between Multiple Alternatives' process type:
[http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/900be605-7b59-2b10-c6a8-c4f7b2d98bae&overridelayout=true]
[http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/301fb325-9d90-2c10-7199-89fc7b5a17b9&overridelayout=true]

Similar Messages

  • How to use the 'Decision between multiple alternatives' Process variant

    Hi ,
    Can anyone tell me how to use the 'Decision between multiple alternatives' Process variant in BI 7 Process chains ?
    The requuirement is that I have a DSO eg DSO 1 from which i have to load DSO 2 and DSO 3 . Now if the number of Records in DSO 1 are < 100 i will load DSO 2 from DSO 1 else i will load DSO 3 from DSO 1 .
    So in the PC i have used a 'ABAP Program' variant (which counts the number of rows in DSO 1) after loading DSO 1 and  after this 'ABAP Program' Variant , i have used the 'Decision between multiple alternatives' Process variant. Problem is it is giving me only some some system fields in the formula , like sy-datum or sy-timlo , which are of no use here .
    It would be great if i can receive some help here .
    --Devraj

    in RSPC you create a ABAP processing type "ending with specific values".
    We use true or false for things as you specify.
    your abap program should return a true or a false to indicate which of the situations is applicable.
    Is this helpful?
    Marco

  • Decision between multiple alternatives process type

    Hi All,
    I want to use this process type "decision between multiple alternatives" in one of my process chains, but i want use this process type if the DELTA infopackage pulls ZERO records, skip the next process and more than ZERO records continue the process.
    Please suggest me is it possible anyway.
    Thanks a lot in advance.
    Regards,
    Ravi Kanth

    Hi,
    You can't do it with Decision type process as the conditions allowed are standard System conditions. As Suggested above, you need a code before that. The logic can be sketched as :
    1. Load the provider.
    2. Obtain the latest request in the provider.
    3. Get the data from the request (std SAP prog is available for reading from providers).
    4. Raise error upon getting no data (in this case you need to put the steps to be skipped in another chain and use in the main chain as meta chain).
    --Akashdeep

  • Decision Between Multiple Alternatives in Process Chain

    Hello all!
    I wanted to use the process type "Decision Between Multiple Alternatives" in a process chain, so than i can choose wich DTPs will be executed. I was wondering to use the Function "PREDECESSOR_PARAMETER (<I_FIELDNAME>, <I_LOW_OR_HIGH>, <I_NUMBER_OF_VALUE>)" to get a parameter from an ABAP program step, but i do not know which I_FIELDNAME parameter should i use to receive the parameter. Did anyone use this logic or something similar? Do you think there are better ways of doing this?
    Thanks in advance and Best regards,
    Nuno

    Hi,
    The decision process type allows you to determine a set of conditions
    For more info go though the below link , as they have explained step by step with screenshots
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/900be605-7b59-2b10-c6a8-c4f7b2d98bae&overridelayout=true
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/301fb325-9d90-2c10-7199-89fc7b5a17b9&overridelayout=true
    Regards,
    Marasa.

  • User Defined function in "Decision between multiple alternatives"

    Hello,
    I am looking to create my own User Defined function in the formula builder of the process type - "Decision between multiple alternatives" in a process chain.
    Could anyone advise please how this can be done?
    Many Thanks,
    Abhijit

    Hi Abhijit,
    Where you want create you own user definefunction in Intergation planning or some where else.
    Please specify your requirement.
    Thanks and Regards,
    Venkat.

  • Decision between multiple alternatives -question

    Hello all,
    I have some doubts about process Decision between Multiple Alternatives, from RSPC transaction.
    The problem is like this:
    1. I have one main process chain.
    2. I have the process decision between multiple alternatives, in this main chain, after start.
    I choosed formula and I put an if (as in the code below). Then I put the WORKINGDAY_MONTH
    In it I want to test to have the 19-th working day of the current month , factory calender ' 01'.
    If I have this day I want , I want to raise an event.
    IF( WORKINGDAY_MONTH( Current Date, '01', '' ) = 19, 'ZEVENT_WD', 'ZEVENT_ERROR' )
    This event would be usefull so I can start with it a second chain(inserted in the main chain).
    The system says (when I check my formula) that it is sintactically correct, but incomplete.
    Any clues why this message apears ?
    I don't know if it is ok to put the events like that in my IF (one to start the subchain and one as error).
    Thank you a lot.

    Hi,
    The decision process type allows you to determine a set of conditions
    For more info go though the below link , as they have explained step by step with screenshots
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/900be605-7b59-2b10-c6a8-c4f7b2d98bae&overridelayout=true
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/301fb325-9d90-2c10-7199-89fc7b5a17b9&overridelayout=true
    Regards,
    Marasa.

  • Decision between multiple alternatives

    Hi,
    Can i use the function like this
    MONTH_QUARTER1( '0calmonth' ) = 1 where 0calmonth is a infobject either in DSO or cube.
    When I checked , syntax is correct.
    Can anyone tell me whether I can use the infobject like ocalmonth or 0calday.
    Thanks in advance!

    This will work.  You cannot use 0CALDAY directly because the data needs to be in the format YYYYMM.  So, 0CALMONTH will work directly, but 0CALDAY will need to be converted first:
    MONTH_QUARTER1( DATE_MONTH( 0CALDAY) )

  • Decision variant issue in process chain

    Hi,
    I have a decision variant for my process chain:
    It should be successful when it is 5th working day of month. If the 5th working day of the month is friday, it should be failed..
    Can you please help me to build the formula in Decision variant.
    Thanks,
    Harish

    Hi,
    When I use the below formula in decision variant, I found that it is passing on 5th working day and 6 th and 7th days.
    WORKINGDAY_MONTH( Current Date, 'FI', '' ) = 5 AND DATE_WEEKDAY1( Current Date ) 5
    But my requirement is "it should pass only on fifth working day and if it is friday it should not pass"
    Previously it worked fine. now we are facing issue with this decision varinat..
    Can some please suggest how to fix this

  • What are the practical differences betweens infopackages and process chains

    Hi,
    what are the practical differences betweens infopackages and process chains.
    Thanks,
    cheta.

    Hello BW,
    Hope the following links will give u a clear idea about process chains
    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
    Business Intelligence Old Forum (Read Only Archive)
    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
    /people/siegfried.szameitat/blog/2006/02/26/restarting-processchains
    regards,
    Muralidhar Prasad.C

  • Use ABAP code in "Decision Between Multiple Alernativesu201D in process chain

    Hi, does anybody know if it is possible to include ABAP code in formula definition when using u201CDecision Between Multiple Alernativesu201D in process chain.
    I wanted to read a specific parameter from one table in order to choose the next step in the process chain.
    If it is not possible, do you any workaround?
    Best regards,
    João Arvanas

    Hey.  You could create your own custom formula which you would code.  Then that formula is reuseable in the formula builder.  That should get you where you need to be.
    Here is a document on how to implement the custom formulas:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f095592f-42f7-2a10-6ab1-c836a559b48f?quicklink=index&overridelayout=true
    Hope this helps.
    Thanks

  • How to shedule process chain Multiple time in a month

    Hi to all,
    I have a question.
    suppose we required to shedule the process chain,
    for first 10 days, we need to extract data 8 time a day
    and for remaing days in months, we need to extratc data 1 time a day.
    How can we achive that in process chain.
    Please can any one tell me the solution.
    I shall be thankful to you for this.
    Regards
    Pavneet rana

    Hi,
    Another option would be using the InfoPackage settings. Create 2 infoPackages.
    1st one for first 10 days
    ====================
    In the "Schedue" tab, define the Scheduling options to Hourly and save it. Now, you will see "Periodic Processing" section with two options,
    1. Do Not Cancel Job
    2. Cancel Job After X Runs
    For 2, provide 8.
    2nd for From 11th day
    ==================
    Create another InfoPackage for Daily load.
    In process Chain, you may use the previous "Decision Between Multiple Alternatives" process type (in the command formula, write a simple formula as below:
    RIGHT( 2, Current Date ) <= 10
    Then include 2 ABAP Program for each option (using "BAPI_IPAK_START" with the InfoPackage name) in decision options. (use the InfoPackages as variants).
    This will solve your requirement,
    "for first 10 days, we need to extract data 8 time a day
    and for remaining days in months, we need to extract data 1 time a day."
    Now, further update using DTP, for remaining days in months (i.e. 1 time a day) you can directly include the DTP in the chain. However, for the 1st 10 days you have to dig more.
    Good Luck!
    Sankar Kumar

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

  • Process chains Decision process user defined functions

    Hi Experts,
    In process chains process type decision we can define user defined functions. How to define these functions. Any help greatly appreciated. Thanks.
    Best Regards,
    Suresh.

    I can only find out "decision between multiple alternatives'//are you looking for this?
    This is used to decide b/w different options as given in its menu....
    --SA

  • I have a problem in creating a Process Chain(PC).

    Hi GURU's
    I have a problem in creating a Process Chain(PC). The PC should run on first 3 business days of the month for six times i,e 6am, 7am,8am, 9am,10am,11am.
    For this i have created 3 PC like BD1, BD2, BD3, and i selected the Factory calender provided workday 1, 2 , 3 and time for three chains.
    Now should i schedule it for 6times in a day.
    I tried creating a new job for one of PC's but i have to change the timings for  every month (this is not the proper solution).
    Please help me.
    Regds
    Lajwanth

    Hi Friend,
    For the days part, you can create a new factory calendar with first 3 business days of each month only as working days.
    Then in the scheduling -> Restrictions; you can mention that Factory Calendar id and select radio button for "Move job to next working day". Schedule the chain as Periodic "Hourly".
    Then for the Time part -> You can insert process type "Decision between multiple alternatives" after the start variant.
    After you insert this process type you can create a formula in it to check for system time. In the if condition check for system time i.e., whether it is between 6 - 11. If only the system time is between 6 AM to 11 AM only then the decision step would turn to green and go to the successor step in the process chain.
    Process chain would be like:
    Start variant -> Decision Step -> Rest of the chain.
    So in short the factory calendar will take care of which days the chain will run and decision step will take care of the timings.
    Regards
    Hemant Khemani

  • Process Chain with IF condition

    Hi all,
    It's possibile put in a process chain an IF condition??
    This is my problem:
    I have a process chain that execute  all process even if the result is GREEN or RED.
    At the end of the chain I have to Make a chois, IF one of the previous step is RED the proces chain have to do something IF all  previous step are GREEN  the proces chain have to do something else.
    I hope I have explained my problem well.
    Thank you very much,
    ax.

    Yes something like this,
    I have 5 IP
    IP1 -> IP2 -> IP3 -> IP4 -> IP5
    At the end of PC IF one of IP1 to IP5 is red the PC execute an ABAP program ELSE the PC execute an different ABAP  program.
    Now when i use a Decision Between Multiple Alternatives i have to specify a formula into the variant, right? but how can do this??
    meyby i explain not well my problem :-D
    Thx,
    ax

Maybe you are looking for

  • Sales return process and receiving the inbound return goods

    hi, Standard SAP allow a return order (RE) to incurs an invoice billing at SD side without the need of a inbound dlivery creation (to receive the incoming goods return) AND a goods-receipt creation. question: 1 - why standard SAP allows a invoice bil

  • Help Needed in reporting structure OM

    hi experts I am a certified Fresher in SAP i am doing practices with IDES I created an org unit and its sub units and created positions also ..i want to connect the positions  of the parent node and subnode in reporting structure   O   head unit     

  • Flash projector x-platform maddness-- Can't "show extension" in Mac OS

    Hi has anyone else seen this one?  Outputting flash projectors from CS4.  No problem, in running the mac version on my platform.  The issue is that when my associate emails the projector file from the PC it turns into a folder.  I've tried to "unhide

  • Extension in Select-Options is not working

    Hi, The extension of select-options is not working for the following statement........ SELECTION-SCREEN: BEGIN OF BLOCK sel WITH FRAME TITLE text-001. SELECT-OPTIONS: s_tp_no FOR e070-trkorr. SELECTION-SCREEN: END OF BLOCK sel. Please Help....... Tha

  • Re: Unauthorized payments have been made to my acc...

    I am using Skype number service and the subscription is going to expire in few days later. I am informed by my bank customer service (credit card) this morning that Skype is going to charge me certain amount of money but being rejected by the bank co