Decision Making in Process Chain
Hi Experts
I want to create a decision node in the process chain which has to trigger only on 16th of every month.
basically i want to load the data from DSO to infocube on 16th of every month.
Kindly suggest how to write a formula in formula builder of decision process and test it.
Thanks & Regards
Jana
Hi
you can achieve this with 2 options.
1) create PC which has this loading steps and schedule this PC to run on monthly basis(every month 16th)
2) say you have already PC which is running daily and you want to insert this loading step in that PC.
used decision process type, decision process will work based on IF-Else loop.
create condition if sys date is 16 then trigger both else trigger 1.
check below article
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/705aefe8-8a27-2d10-7b8e-88017ee9158c?quicklink=index&overridelayout=true
Regards,
Venkatesh
Similar Messages
-
Decision type in process chain
Hi
I have added decision type in process chain with below formula.
WORKINGDAY_MONTH( SYST-DATUM, 'US', '' ) <= 7
now, i want to run this same process for last working day of the month as well,,
How can i add that here.
Please guide.
Thanks
AnujaHello Anuja,
You can try with below formula !
DATE_MONTH( SYST-DATUM + 1 ) <> DATE_MONTH( SYST-DATUM )
This will check if today is the last day of current month, means this code will check if today's month is equal to tomorrow's month . If not then this is last working day of the month.
And on every lst working day it will be successful.
Secondly you can try writing the ABAP Code ( Customer Exit) for this.
Hope this helps !
Regards
YN -
Decision Step in Process chain
Hello All,
I have a meta chain which run at 00:30 midnight everyday.
It consist of 4 sub process chain.
The last process chain consist of decision step in it.
This last process chain should run only at first friday of every month.
For this reason this decision step is included in it.
It consist of the following formula.
"( ( Local Time > '17:00:00' ) AND ( DATE_WEEKDAY1( Local date + 1 ) = '6' ) AND ( RIGHT( 2, ( Local date + 1 ) ) <= '07' ) ) OR ( ( Local Time <= '17:00:00' ) AND ( DATE_WEEKDAY1( Local date ) = '6' ) AND ( RIGHT( 2, ( Local date ) ) <= '07' ) )"
Till now the process chain had never executed at 1st friday of every month.
The third sub process chain finishes at 3:30 everyday. So due to that the local time of starting the 4th process will be 3:32 and then this decison checks.
The first condition fails as the local time is <17:00:00 and not > 17:00:00.
Hence it will move to the other OR condition.
But friday is weekday '05' and not as '06' hence again the second condition is failing. Hence the process chain is not executed at first friday.
After doing this small change also what further more changes should be done in the formula which will help me to execute that chain only at first friday of every month and for rest day it should not execute.
Points will be assigned for helpful answere.The decision step is fine and making changes in the formulae would be ideal but another alternative is through restrictions in the start step for the 4th process chain w.r.t the calenday you will choose. You can restrict it to a particular day for the month with marking only 1st Friday for every month as workday
-
How to create own functions in the decision maker for process chains?
I need a further function which is not already implemented and available in the decision maker of the process chains. But I do not know how to implement a new function.
Please give me some help!!!!!What does the new function need to do?
You may have to create a new process type. There are a few white papers and blogs about different ways of doing this. Needs ABAP knowledge however.
matt -
Help On Creating Process Chain
Dear Experts,
we have a Process chain A running twice a day (01:00 AM & 13:00PM). Now I've created a Process Chain B(Broadcasting workbook in SAP BW 3.x). This Chain has to run by following 01:00AM only once after finishing the Process Chain A(this is running twice a day). Whereas my Process chain A has to run only once a day. Please give me your inputs & suggestions.
Regards,
PassionateHi
You can achieve this using decision step in Process chain.
include decision step and then your PC B in your PC A. decision step will work based on If-Else. give condition if Systime is less then 13:00 then your PC B has to trigger.
check the below article.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/705aefe8-8a27-2d10-7b8e-88017ee9158c?quicklink=index&overridelayout=true
Regards,
Venkatesh -
Process chains - change tree structure
I am making a process chain for the first time. I am able to see my chain only in "Tree" format but I want to view and work as "Org Chart". How can I do it?
I think you are talking about "Flow Chart".
Your present setting is "Tree Display". Just go to the top menu "Setting" which is third from right, and Click on "Network Display" which is at the bottom. It will then display your process chain in the "Network" format, which is like flow charts... -
Hello BI experts,
Iam making a Process chain where I need to load the data in to 2 DSOs (say B1 & B2) from DSO A . I have created Transformation and DTP between A - B1 and A - B2 . DSO B1 is required for the year of 2007 and B2 for 2008. Can any one let me know how to schedule this in Process chain ? Do I need to use ABAP Code for this, if so please let me know the sample code how to do this...
Thanks in advanceI want to do the following
Check if LOad Date (SYSDATE) lies between TOO9B - BDATJ (20007) & TOO9B - POPER (01 TO 12)
Then use DTP to load the the "2007 order cube"
Else
Check if LOad Date (SYSDATE) lies between TOO9B - BDATJ (20008) & TOO9B - POPER (01 TO 12)
Then use DTP to load the the "2008 order cube"
Please help me with logic or any standard functionaility that can resolve the above
RANGES: IT_TCODE FOR TOO9B - BDATJ
IT_TCODE-SIGN = 'I'
IT_TCODE-OPTION = 'EQ'
IT_TCODE-LOW = ''2007"
APPEND IT_TCODE.
IT_TCODE-SIGN = 'I'
IT_TCODE-OPTION = 'EQ'
IT_TCODE-LOW = '01'
APPEND IT_TCODE.
IT_TCODE-SIGN = 'I'
IT_TCODE-OPTION = 'EQ'
IT_TCODE-LOW = '12
APPEND IT_TCODE. -
Can any body tell me OR condition in Process Chains.
Dear ALL
Can any body tell me OR condition in Process Chains..
I have a process chain 0FI_GL_4 datasource.
I this i have a start variant then execute infopackage then activate datastore data
and at last we have put the OR Condition which has a description Every (With End : OFIGL_O02 Process Chain has failed).
That was the description showing to me.
Now the process chain is running successfully , but iam not getting the OR Condition , why they have put .Hi Anil, Please refer this [article|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/005fa02b-8a27-2d10-66a1-df845ef07d15]. This explains how to use Intelligence in Process Chains. Second [article |http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/705aefe8-8a27-2d10-7b8e-88017ee9158c]is reg. using Decision Steps in Process Chains.
-
Attribute Change Run in Process Chain
I'm making a process chain purely for attributes. Every time I add an infopackage for attributes I get prompted to make an attribute change run. Do I need an attribute change after every attribute infopackage or can I just have one at the end?
Hi,
You can have one attribute change run at the end of the process chain for all the attribute loads.
Cheers,
Malli. -
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 -
Process Chain - How to make decision based on data in PSA and execute DTP
Need to create process in Process Chain, which will execute the DTP based on data in PSA.
Say we have two DSO A & B, both getting data from same datasource.
In process chain, we need to read data in one of the date field in PSA and make a decision, which DTP to get execute in process chain.
Say if date field contains year = 2000, than load to DSO A, if year is 2001, load data to DSO B.
Suggest the solution. ...Hi,
Tyr this steps.
1) Develop ABAP process types
ABAP report to read PSA data using function module
Trigger events based on year
event1 -> for even year data
event2 -> for add year data
2) Develop local process chains for each DTPs and schdule it with events mentioned above.
Do reply with comments. -
Creation of Decision in Process Chain to load data to a SPO
Hi,
I have a question regarding adding a Decision type to my Process chain.
I want to load data to a SPO that contains 12 InfoCubes (Jan - Dec) from a DSO, but I do not want to start all 12 DTP's.
Want I am looking for is a way to only start the DTP's that load to the InfoCubes that contain current month, last month and all other data should be loaded to a Infocube (nr 13) that is not a part of the SPO so I would only have 3 DTP's running at the same time and not 13.
E.g. A delta load to the DSO contains 3 records; 1 for 2014.09, 1 for 2014.08 and 1 for 05.2013 triggers the DTP to the January InfoCube, the DTP to the August InfoCube and the DTP to the 13 Infocube.
Is this possible by using a Decision and if so how?
Kind Regards
SteffenI haven't worked with SPOs yet, but I do work frequently with decisions, so here's my 5 cents...
In your case you wish to have your decision based on the data contained in "a delta load to the DSO". I'm assuming you're talking InfoPackage here, because you wish to execute the DTP's afterwards.
So basically you need to determine which "months" are in your incoming data packages. The only way I see that possible is via start/end routine. In your example, you would look the data package and find 3 records each with a different month, being 08.2014, 09.2014 & 05.2013. You could then "convert" these to just numbers ranging from 1 to 13. That makes it relatively "easy" to link the right DTP to the right "number".
Now, how to pass that info (those numbers) back to the "decision" process? By default you base your formula on a "system" field (see basic how to link below). I don't see how this would work in your case. You'll need to somehow export your "numbers" (most likely an internal table or a "range") to memory (or fill it in a [z-]table) and then read it back in with custom code. I haven't done that yet (at least not in the context of decision steps), but I would recommend to have a look at the "experienced" way of working document below. It won't be easy, but I think it could work.
Cheers,
Raf
The official documentation can be found here.
For a "basic" how to on decision step, click here.
For a more "experienced" way of working, click here. -
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,
PatrickHi 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 -
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,
HarishHi,
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 -
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,
MichelleThank 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
Maybe you are looking for
-
I'm trying to make a very simple 20 second video clip of me hula hooping, and every 4 seconds, draw a circle around my hula hoop that remains there for the duration of the video. So at the beginning there will be 1 circle, at the end there will be 6.
-
Substitution string used in custom Report column name does not display in PDF version of report
I am using Apex 4.2.6.00.03, Apex Listener 2 via Glassfish4 and have set up all my applications and reports on this system. We previously used Oracle 10.2, with Apache with a custom fopping document. My issue is that I have a report that has custom
-
Problem of permission in my PKGBUILD
Hello, I'm trying to build my first package from scratch. It's "Biometrics manager" a GUI form BioAPI package. I wrote a very basic PKGUILD pkgname=biometrics-manager pkgver=0.4rc1 pkgrel=1 pkgdesc="Gnome graphical interface for BioAPI" url="http://w
-
my iphone4 says its cinnected to 3g but when i use safari it says "could not activate mobile data network". Any ideas please?
-
Finding 'things' dynamically from within a program
Hi all, I have the following 'problem': I'm writing a program that should find a particular folder in SAP Office. I want the program to find this folder as dynamically as possible: so I certainly don't want to use the folder-id hard-coded (besides: I