Hello! As I can ask, in an evaluation of time, for the period in which we are?
The idea is to pay a payroll concepts depending on the time of year where we are.
For example, create a rule like this:
ZFCO
CMPER 1301
* SCOND=T
< SCOND=F
and then we as TRUE or FALSE, apply one of the other two rules
IF ZFCO
ZFO2
ELSE
ZFO1
But what, I think in times CMPER not work (or I'm writing it wrong, but will not let me save).
is there another way of asking about the period in which we find ourselves?
thanks a lot
Request clarification before answering.
The operation CMPER can't be used in Time Evaluation.
In Time Evaluation, you can use operation VARST to query the current year (VARSTCURYR), the current month (VARSTCURMO) or the current day (VARSTREDAY),
or you can create a constant in V_T511K (such as ZZ001) with a value of 0 from 01/01/2000 to 31/12/2012 and a value of 1 from 01/01/2013 to 31/12/9999, and query it's value in a TE PCR through the operation sequence HRS=CZZ001 HRS?1 (if the return value is =, then the day being evaluated is from 01/01/2013 to 31/12/9999, and if the return value is *, then the day being evaluated is before 01/01/2013).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Other doubt immediately after this one... already I have created the constant in the V_T511K, with both periods, since you have said to me.
Nowadays it was calling to the rule that spends the balances of times to payroll by means of PMB ZAZL (it spends the balances to the table ZL).
Now well, since I have to distinguish between two periods to spend a few balances or others, I have created the rule:
http://i294.photobucket.com/albums/mm90/Ivaneee/Visualizarreglap_zps30abef98.png
That is incomplete, since it will be necessary to me to create the new rule with the concepts to paying from 2013.
Well, my doubt is the following one ... have I to invoke the ZAZL inside the rule ZZZL (yes, the same name that the constant) or how I it do? Since if I invoke to the rule ZZZL with PMB, it does not enter me to any branch of the rule, and if I invoke it with ACTIO she remains clogged in I begin of the ZAZL, hereby:
http://i294.photobucket.com/albums/mm90/Ivaneee/1-1_zps1a9733ac.png
how can I do it?
I have it:
http://i294.photobucket.com/albums/mm90/Ivaneee/2-1_zps487e4b38.png
and later, in my TE schema:
IF ZZZL
PMB ZAZL
ELSE
PMB ZA1L
ENDIF
thankssss!
| User | Count |
|---|---|
| 21 | |
| 17 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.