Question:
I am trying to calculating a new date based on the &_WORKITEM.WORKITEMCREATIONDATE& in a container opperation.
Where number of days is in my container &MY_DAYS&.
***Conatiner****
NEW_DEADLINE_DATE
=
&_WORKITEM.WORKITEMCREATIONDATE&
+(add)
&MY_DAYS&
************************
Is this posibble, any ideas?
Please advise, NewBe2
Answer:
There is only one way to find out. Try it!! Do let us know if it works.
I am curious, how do you intend to use this? &_WORKITEM.WORKITEMCREATIONDATE& is the Workflow creation date or for a step in the workflow?
Answer:
I should have written that I allredy tried it. The result giving me an error .
I am statring the WF with a FM in a transaction user exit, where the user can set a number of days, so in the WF a WorkItem (-Latest end) in the flow can be sett dynamicaly.
Now I do the date caclulation before I send in the new date (for Lates end) into the WF. But can I do it with a container operation?
Regards, NewBe2
Answer:
Hi There!
I am on R/3 Enterprise (6.20) and I get no error. Here is how I did it.
Declared Zdate (sy-datum) & Zdays (sy-index) in the WF container. In the container operation I added the WI creation date and Zdays to get Zdate. Works perfectly.
Cheers,
Ramki Maley
Answer:
Like you point out if works, - with your setup.
I did declare the days container wrong. My error.
Thansk for your input !
Regards, NewBe2