Process Chain Decision Maker Step

Hi,
Decision Making is required to find the current day is not a 4rth Work Day of the Month. I have written a formula in the Decision Maker which looks like below. Can some one validate?
WORKINGDAY_MONTH( RIGHT( 2, Current Date ), SUBSTRING( Current Date, 4, 2 ), LEFT( 4, Current Date ) ) <> 4
If something is missing, please correct.

Hi Nilesh,
I have a problem with a decision step in my process chain.  Also using 'WORKINGDAY_MONTH'  However I don't understand what it is doing.  Here is the formula;
1st Line
Command -> IF
Formula -> WORKINGDAY_MONTH( Current Date, 'IE', '' ) = 1
then
Event - > Option 1
2nd Line
Command -> Else IF
Formula -> WORKINGDAY_MONTH( Current Date, 'IE', '' ) 1
then
Event -> Option 2
3rd Line
Command -> Else
then
Error.
I would expect that on 1st day of each month it would trigger event option 1.  This has been working sucessfully in previous months, however in Jan, it has triggered event option 1 for each of the following days, 1st, 2nd, 3rd, 4th & 5th Jan(today).
Following this decision point, it triggers Dataloads, only required at month end, ie 1st of each month.  Everyday this week I had reverse the process.
Can you help me to understand what is happening?  What transaction can I use to view logic of this function WORKINGDAY_MONTH.
Thanks very much,
Michelle

Similar Messages

  • Process Chain - Decision Step - 1st Day of Month

    Hi All,
    I have a process chain decision that detemines if it is 1st of Month,
    1st Line
    Command -> IF
    Formula -> WORKINGDAY_MONTH( Current Date, 'IE', '' ) = 1
    then
    Event - > Option 1
    2nd Line
    Command -> Else IF
    Formula -> WORKINGDAY_MONTH( Current Date, 'IE', '' ) <>1
    then
    Event -> Option 2
    3rd Line
    Command -> Else
    then
    Error.
    However, this month it has failed to work correctly.  It was sucessful on 1st Jan, but it is also triggering Option 1 on 2nd, 3rd & 4th Jan.  Can you help me to understand why it is doing this?
    Thanking you,
    Michelle

    Thank you Npathak,
    The process chains should run everyday therefore I don't understand how this would affect the process chain.
    This is just a decision step at the end of the Daily Meta Chain, where if it is the 1st of the Month, it will continue and process a DTP for Stock Balances.  The problem I have is that for the last 3 days, it has continued to process final step eventhough it is not 1st of Month.
    For info; When I check the decision logic in the variant, I can see that the date that is being used in syst-datum.
    Have you any other ideas?
    Thank you,
    Michelle

  • Error in process Chain at 'AND' Step

    Hi,
    I have a Process chain which has different process which are activating different DSO's plus a loading data to a DSO in same level of Process chain. Now the next process is AND step, which will be executed if all the above process are successful.
    Now all the activation step are sucess and also loading the DSO, but still there is a error in AND step. Error message is 'Job cancelled after system exception ERROR_MESSAGE'. And one more thing is the previous step of DSO loading data loaded successfully, but in details tab, Last step is showing the message as 'Process Chains: Errors Occured'. But the data is transferred and added in the target.
    Please suggest what will be the cause for this error.
    Regards,
    Vishnu
    Edited by: Vishnuvadhan K on May 9, 2008 9:12 AM

    Hi,
      you are talking about monitor details tab or process chain details tab?
    'Process Chain: errors occured". you will get this msg at monitor details tab bcoz data has been loaded to ODS through process chian, even the load is successful but the chain is not yet completed  successfully. so once the chain is success this msg will trun to green. try to figure about the error and rectify it.
    did you repeate the AND process to execute next process in process chian.
    if you didnt get repeate option you can try with  RSPC_PROCESS_FINISH in SE37.

  • How to CHANGE formulas in Process Chain decision?

    Hi,
    I'm working on a BI 2004s system with SP10.
    I have created a Process Chain with a decision. This decision should check the first day in the month. In that case the chain should follow another path.
    After creating a formula in the decision process type for the check, it's not possible to display or change this formula anymore!?!?!?!? I have only an option to create formula's: the white button.
    Please advise.
    Cheers,
    Patrick

    Hi Paolo,
    That's exactly the problem: there is no pencil button.
    I only see a create button.
    Have you applied a special note to get the change button available?
    Cheers,
    Patrick

  • 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

  • To Make Process Chain Green From Red

    Hi Guys,
    can any one help in this..
    i have a one Process chain at one step i.e DTP got failed and the below steps got success. i manually executed that DTP because the below steps are already successed.
    Now in the Process chain it shows that DTP step is failed and other steps are success and Process chain is showing as RED, now i want to make that Process chain as Green. what i need to do?
    i did the following steps even it is showing red in the RSPCM screen.
    i_logid
    i_type
    i_variant
    i_instance
    i_state as 'G'
    in the se37 using function module RSPC_PROCESS_FINISH
    Thanks,
    Naresh

    hi,
    you cannot change the status of the process chain as one of the step in it is red and the status of that red step was not changed. Why do you want to change the status of the chain? do you want to trigger some other chain, if yes then the Se38 program would have already triggered it. If you only want to change it to green to see it in RSPCM it is not possible.
    regards,
    Arvind.

  • Reg: Process Chain, query performance tuning steps

    Hi All,
    I come across a question like,  There is a process chain of 20 processes.out of which 5 processes are completed at the 6th step error occured and it cannot be rectified. I should start the chain again from the 7th step.If i go to a prticular step i can do that particular step, How can i start the entair chain again from step 7.i know that i need to use a function module but i dont know the name of FM. Please somebody help me out.
    Please let me know the steps involved in query performance tuning and aggregate tuning.
    Thanks & Regards
    Omkar.K

    Hi,
    Process Chain
    Method 1 (when it fails in a step/request)
    /people/siegfried.szameitat/blog/2006/02/26/restarting-processchains
    How is it possible to restart a process chain at a failed step/request?
    Sometimes, it doesn't help to just set a request to green status in order to run the process chain from that step on to the end.
    You need to set the failed request/step to green in the database as well as you need to raise the event that will force the process chain to run to the end from the next request/step on.
    Therefore you need to open the messages of a failed step by right clicking on it and selecting 'display messages'.
    In the opened popup click on the tab 'Chain'.
    In a parallel session goto transaction se16 for table rspcprocesslog and display the entries with the following selections:
    1. copy the variant from the popup to the variante of table rspcprocesslog
    2. copy the instance from the popup to the instance of table rspcprocesslog
    3. copy the start date from the popup to the batchdate of table rspcprocesslog
    Press F8 to display the entries of table rspcprocesslog.
    Now open another session and goto transaction se37. Enter RSPC_PROCESS_FINISH as the name of the function module and run the fm in test mode.
    Now copy the entries of table rspcprocesslog to the input parameters of the function module like described as follows:
    1. rspcprocesslog-log_id -> i_logid
    2. rspcprocesslog-type -> i_type
    3. rspcprocesslog-variante -> i_variant
    4. rspcprocesslog-instance -> i_instance
    5. enter 'G' for parameter i_state (sets the status to green).
    Now press F8 to run the fm.
    Now the actual process will be set to green and the following process in the chain will be started and the chain can run to the end.
    Of course you can also set the state of a specific step in the chain to any other possible value like 'R' = ended with errors, 'F' = finished, 'X' = cancelled ....
    Check out the value help on field rspcprocesslog-state in transaction se16 for the possible values.
    Query performance tuning
    General tips
    Using aggregates and compression.
    Using  less and complex cell definitions if possible.
    1. Avoid using too many nav. attr
    2. Avoid RKF and CKF
    3. Many chars in row.
    By using T-codes ST03 or ST03N
    Go to transaction ST03 > switch to expert mode > from left side menu > and there in system load history and distribution for a particual day > check query execution time.
    /people/andreas.vogel/blog/2007/04/08/statistical-records-part-4-how-to-read-st03n-datasets-from-db-in-nw2004
    /people/andreas.vogel/blog/2007/03/16/how-to-read-st03n-datasets-from-db
    Try table rsddstats to get the statistics
    Using cache memoery will decrease the loading time of the report.
    Run reporting agent at night and sending results to email.This will ensure use of OLAP cache. So later report execution will retrieve the result faster from the OLAP cache.
    Also try
    1.  Use different parameters in ST03 to see the two important parameters aggregation ratio and records transferred to F/E to DB selected.
    2. Use the program SAP_INFOCUBE_DESIGNS (Performance of BW infocubes) to see the aggregation ratio for the cube. If the cube does not appear in the list of this report, try to run RSRV checks on the cube and aggregates.
    Go to SE38 > Run the program SAP_INFOCUBE_DESIGNS
    It will shown dimension Vs Fact tables Size in percent.If you mean speed of queries on a cube as performance metric of cube,measure query runtime.
    3. --- sign is the valuation of the aggregate. You can say -3 is the valuation of the aggregate design and usage. ++ means that its compression is good and access is also more (in effect, performance is good). If you check its compression ratio, it must be good. -- means the compression ratio is not so good and access is also not so good (performance is not so good).The more is the positives...more is useful the aggregate and more it satisfies the number of queries. The greater the number of minus signs, the worse the evaluation of the aggregate. The larger the number of plus signs, the better the evaluation of the aggregate.
    if "-----" then it means it just an overhead. Aggregate can potentially be deleted and "+++++" means Aggregate is potentially very useful.
    Refer.
    http://help.sap.com/saphelp_nw70/helpdata/en/b8/23813b310c4a0ee10000000a114084/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/60/f0fb411e255f24e10000000a1550b0/frameset.htm
    4. Run your query in RSRT and run the query in the debug mode. Select "Display Aggregates Found" and "Do not use cache" in the debug mode. This will tell you if it hit any aggregates while running. If it does not show any aggregates, you might want to redesign your aggregates for the query.
    Also your query performance can depend upon criteria and since you have given selection only on one infoprovider...just check if you are selecting huge amount of data in the report
    Check for the query read mode in RSRT.(whether its A,X or H)..advisable read mode is X.
    5. In BI 7 statistics need to be activated for ST03 and BI admin cockpit to work.
    By implementing BW Statistics Business Content - you need to install, feed data and through ready made reports which for analysis.
    http://help.sap.com/saphelp_nw70/helpdata/en/26/4bc0417951d117e10000000a155106/frameset.htm
    /people/vikash.agrawal/blog/2006/04/17/query-performance-150-is-aggregates-the-way-out-for-me
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1955ba90-0201-0010-d3aa-8b2a4ef6bbb2
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ce7fb368-0601-0010-64ba-fadc985a1f94
    http://help.sap.com/saphelp_nw04/helpdata/en/c1/0dbf65e04311d286d6006008b32e84/frameset.htm
    You can go to T-Code DB20 which gives you all the performance related information like
    Partitions
    Databases
    Schemas
    Buffer Pools
    Tablespaces etc
    use tool RSDDK_CHECK_AGGREGATE in se38 to check for the corrupt aggregates
    If aggregates contain incorrect data, you must regenerate them.
    Note 646402 - Programs for checking aggregates (as of BW 3.0B SP15)
    Thanks,
    JituK

  • Failind AND step of process chain

    Hi all
    I am facing problem with AND step in one process chain.
    AND step is failing as soon as chain is triggered.
    All the proceses before AND are executing properly with GREEN Status.
    "This AND process is not waiting for event RSPROCESS, parameter 4BYB726KFX6RHP8SWWPP1CIR9" is the message displayed... parameter mentioned is a DTP.
    Please Help
    Thanks
    SUDEEP

    Did you transport the process chain again?
    Go to edit mode of the process chain, right click on AND, maintain and press Ok ! try to activate the process chain again and see if that shows any error.
    - Danny

  • Is a save step neccessary in a Process Chain when loading hierarchies with an ABAP program?

    We are loading hierarchies using the ABAP routine found here in the SDN. 
    We have come accross the issue where the process chain loads successfully, but does not update the hierarchy (this problem is documented in the SDN).  It is not a consistent issue, but it causes problems when it does occur.
    OSS note 652856 points out that a SAVE HIERARCHY step is needed after the load and before the Change Attribute run.
    We have added the step to the process chain, which leads me to the question.
         In using the ABAP program to load hierarchies is the addition of the Save Hierarchy step necessary?
         Will that resolve the issue with hierarchies not updating?

    Hi Bill,
    Yes, SAVE HIERARCHY step is required when hierarchies are loaded as part of process chain. This step ensures that the hierarchy data loaded to BW has been saved. Then we have to run ACR so that these hierarchies will be activated and adjusted.
    This is the reason why even the hierarchy data loaded using infopackage needs this step. This step is not required if the Infopackage is triggered manually.
    This link will help you in better understanding
    http://help.sap.com/saphelp_nw04/helpdata/en/3d/320e3d89195c59e10000000a114084/content.htm
    Regards
    Chandu

  • How repeat a process step in a process chain automatically after error?

    Hello guys.
    Have some method to repeat automatically a process in a process chain after a error occur ?
    Now, we need to make a manual procedure for repeat the process... We need make it more "fast", one "auto repeat" when failing.

    Hi Leo,
    Auto repeat of a process chain is always not ad visible as in most of the cases we can see the job got finished in SM37 and even spool got generated but unfortunately it will fail if any of the data package is wrong.In these cases we can skip the process chain and make it continue.
    I have written a blog on the same.please go through it.i feel for those scenarios it is good.
    How to override a process block in the process chain and make it force complete ?
    My personal advice is to go and check the job log before repeating any process as the job may fail for n no of cases.it is a complex challenge of adding all those errors tracked.
    Regards,
    Kannan

  • Failed meta chain maintenance in Process chain in SAP BI

    Hi all,
    I have a Process chain having the meta chain of master data population.When successful , proceeds with the further steps in process chain. It has been scheduled in midnight.
    After monitoring the PC , found the error in the master meta chain , so i repeat the step.
    Here , after success of meta chain all steps gets running down the line till the end step in PC.
    I do not want to re-run the steps below meta chain after repeat step.
    Any Ideas to ignore the re-run ??

    Hi,
    If your Process is still running(Yellow color status) then right click it and go to Schduled Jobs. On this you will go to Job Overview there you can press STOP.
    Else go to the SM37, there you can go and select your process using your process ID and STOP it.
    And if you want to kill the complete process chain then go for Remove from Schedule.
    Different Ways to stop process chain
    1)SM37 -->Kill Job
    2)SM50/sm66- ->Kill process
    3)RSPC>Job Log>Make the process RED forecefully.
    4)RSPC>Process chain> main Menu"Remove from Scheduling" OR
    5)se37-->RSPC_API_CHAIN_INTERRUPT
    give RFC BW system name(technical) and process chain name(technical)
    Steps 1 -3 stops the chain running in process
    Steps 4-5 stops the chain AFTER the current job which is running is completed as sucessful or Failure by nature.
    Hope this helps you.

  • Masterdata  Process Chain Help

    I was asked to complete the  master data process chain for whole of finance...its all business content?
    How do I proceed.....do  I need to go check manually each and every infoobject if it has masterdata?
    Any easy way out?

    Hi ,
    You need to create a process chain and have steps to load each and every Info Object in FI area.
    Basically make a list of all FI master data Info Objects and when you create a process chain create a start variant (ideally schedule it , during low data extract from r/3 to BW ) and also get an approval for the load scheule say daily, weekly , monthly etc.
    Then attach the Execute InfoPackage process type for each info object and link them all. So it will load step by step all Master data Info Objects of FI.
    Hope this helps.
    Cheers
    Raja

  • Collection in source system ended-Process chain error

    Hi friends,
    I have  got a  PC which failed due to error : Collection in source system ended.
    My flow of PC is .
    start--
           --Load IP 1
          ---Load IP2
          _--load Ip 3
    Load IP4
          ---Load Ip 5.
    I got this error at IP2 and so my pc fail .
    can i manually upload this IP2  and  make the process chain OK?
    what are the steps involved in rectifying this?
    regards,
    siddartha

    First try to find out the reason for the load failure. Once you fix this, do a manual run of the infopackage and when successful you can continue with the rest of process chain.
    Sometimes, it doesn't help to just set a request to green status in order to run the process chain from that step on to the end.
    You need to set the failed request/step to green in the database as well as you need to raise the event that will force the process chain to run to the end from the next request/step on.
    Therefore you need to open the messages of a failed step by right clicking on it and selecting 'display messages'.
    In the opened popup click on the tab 'Chain'.
    In a parallel session goto transaction se16 for table rspcprocesslog and display the entries with the following selections:
    1. copy the variant from the popup to the variante of table rspcprocesslog
    2. copy the instance from the popup to the instance of table rspcprocesslog
    3. copy the start date from the popup to the batchdate of table rspcprocesslog
    Press F8 to display the entries of table rspcprocesslog.
    Now open another session and goto transaction se37. Enter RSPC_PROCESS_FINISH as the name of the function module and run the fm in test mode.
    Now copy the entries of table rspcprocesslog to the input parameters of the function module like described as follows:
    1. rspcprocesslog-log_id -> i_logid
    2. rspcprocesslog-type -> i_type
    3. rspcprocesslog-variante -> i_variant
    4. rspcprocesslog-instance -> i_instance
    5. enter 'G' for parameter i_state (sets the status to green).
    Now press F8 to run the fm.
    Now the actual process will be set to green and the following process in the chain will be started and the chain can run to the end.

  • Process Chain Creation

    Hi All,
    I am creating process chain.
    first i have given the name and description of the process chain --> then next step is insert start process So, i have clicked on new and given the name then click on continue --> so it populates one window  and it says that " Changes to Repository or cross-client Customizing are not permitted " AND ''Choose 'Display object' or 'Cancel'' .
    when i clicked on display object it shows "Changes cannot be made, display user only"
    and in brief it says that
    Diagnosis:
    In this logon client, any changes to the Repository and to cross-client Customizing objects are prohibited.
    System Response:
    The function terminates
    Procedure:
    If you still want to make the changes, contact the system administrator, who can allocate you a user in a client where you can make the changes.
    What should i do ?
    Regards,
    BI NEW

    Hi
    This is an authorization problem
    Check this link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/35/c7e442e3c15704e10000000a155106/frameset.htm.
    Ask for proper authorization for creating the process chain.
    Hope this helps.
    Regards
    Shilpa

  • Plzz correct me reagrding process chains.

    hi friends,
    iam  working on BW in process chains.
    i want to know the possible ways of correcting the process chains  and plz help me if iam wrong and by providing ur suggestions.
    1) whenever process chain fails ,  we will check process monitor in logview and find out  that type of load . if it full load,  we delete the request and we will restart the entire process chain.
    restarting means we will again  schedule and activate it right?
    I refer a  weblog on restarting of PC , it said  that
    Sometimes, it doesn't help to just set a request to green status in order to run the process chain from that step on to the end.
    You need to set the failed request/step to green in the database as well as you need to raise the event that will force the process chain to run to the end from the next request/step on.
    My question is why will make the request green  from red? and also if we the reuqest from rd to green , will the process chain works normally though it contains errors ?
    2) how to correct if teh load is delta load.
    Iam very much confused in handling the errors of process chains .
    can any one explain me clearly plzz. any good documentation for error handlin plzz.
    regards,
    Siddartha

    No duplicate posts please. Moderators will not entertain the duplicate posts.

Maybe you are looking for

  • [SOLVED]Amarok 2.0.2 Build Fails..Help

    Hello all I am trying to compile amarok 2.0.2 but it fails at 8%. I tried to install it from aur and manually but the same error: [  4%] Building CXX object src/scriptengine/generator/generator/CMakeFiles/generator.dir/moc_shellimplgenerator.o       

  • No charging over USB after Using Firewire charging - 5G ipod

    After charging two 5G ipods (30 & 60G models) with my sons firewire power adaptor (charging is supposed to be supported for 5G models just not syncing) both iPods have not been able to be charged using orginal USB cable supplied through macbook pro a

  • Program To List Object in Change Request

    Hi: is there a standard program available which will list Object Technical Name and Description in Change Request? Please let me know. If you have custom code please send it to me. Thanks

  • Question Bank Question

    Hello 2 Questions I'm affraid Question 1 I am using Captivate 5.  Is there a way to say have 10 questions in a question bank but randomly only ever show 5 questions. For example two people sitting next to each other at a PC both taking the same cours

  • ERP HCM Business Process Mapping

    Hi We are planning to implement SAP ERP 2005 HCM and Payroll in near future. Does any one have any list/document which can be used as guideline to map our requirements with SAP HCM modules/functions to help prepare a good RFP for this phase of the pr