on 05-25-2015 11:36 PM
Hi all, I would like to know if is it possible to feed some deadline time using for TVARV variables.
If I use expression instead of Work Item Creation and take one global variable with sy-datlo + days in TVARV would that work?
Is that a good practice? is better to chance that by SWI1 or SWIA?
Thanks in advance for your guidance...
Regards
Yes it is a good practise to store the deadline in custom or Standard TVARV table to avoid a program change when you have to change deadline dates. This helps in central maintenance(quick view) of workflow deadlines and is quite useful for production support /workflow admin team.
You can use the combination of "Expression" + Time Zone + hrs/min/days/months/years in the Decision task.
Regards
Sandy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, I created a variable in container to store the date, then I created a previous task to set the value, for testing purpose now I'm setting v_date = sy-datlo... And I made this in Requested End tab:
But apparently the date is not visible at this point because if I change &DATEEND& for %SY-DATLO% it works fine, but with variable doesn't... am I missing something?
Thanks, I think I missing something else... well I have the following:
In Calculate Deadline I set DEADLINE_DATE = SY-DATLO, and it's working fine... after that task DEADLINE_DATE is current date.
First I execute with this variables:
The deadline is reached...
But, when I try with the variable instead... which is current date also... the deadline is never reached.
Just one worked.
How can I do this?
I think I'm doing this right, here someone said it worked for him http://scn.sap.com/thread/3356058
Is something in binding?
He as well used container element variables...
Hello
Try to check the deadlines using FM SAP_WAPI_GET_DEADLINES.
Put a breakpoint in FM SWF_CREATE_DEADLINES and check the results.
If nothing works, raise an OSS Message to report the issue. As a workaround, create a background step to calculate the deadlines using TIMLO and variable and in decision step; just use two Variables - date and Time and no time zone option.
Regards
Sandy
Yes, very possible and even recommended.
You can either use an existing object and add the deadline as an attribute &MM_UTIL.DEFAULT_DEADLINE&, or you can code it into a static functional method.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.