on 12-12-2013 3:19 PM
Hi Experts,
I have an issue with IF condition used in workflow task description.
I have to display a certain description to user only if one of the container element has some value. If that container element is blank then description should not appear to the user to achieve it I have used IF-ENDIF but it is not working, task is displaying entire task even if value of container element is blank. We have few other tasks in our system with IF conditions implemented which are working fine.
Please let me know what could be the possible reason for this.
Thanks,
Vishesh
Hi All,
Thanks for your responses!
I have got the issues with the ABAP statement I used inside task.
While testing above part I did few tests with other values as well and found in workflow standard task description few parameters does not work. Below are my findings :
I have concluded above points based on results of tests I performed. If I mistook anything, please feel free to correct me. Also, if anyone knows/finds a link where we could read about all such possibilities and incompatibilities then please share.
Thanks,
Vishesh
Message was edited by: Vishesh Malik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vishesh,
I think you are putting your condition in IF as &CON_ELEM& = ' ' OR &CON_ELEM& = ABAP_FALSE.
This will not work.
Instead create one additional container element of same type as that of container element which you want to compare in task container tab. This container will always be blank and it will be just used for comparison in IF statement. this way it works. i have used in this way in my workflows.
Thanks,
Ibrahim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ibrahim,
First of all thanks a lot , I noticed missing &s in my code only after your reply .
Also, you have mentioned that &CON_ELEM& = ' ' won't work , it actually works. If you meant use of Logical operator(OR , AND) won't work then you are right and I misunderstood. I replied just to make sure that you are also aware of this, just in case you are not.
Cheers,
Vishesh
Hi Ibrahim,
First of all thanks a lot , I noticed missing &s in my code only after your reply .
Also, you have mentioned that &CON_ELEM& = ' ' won't work , it actually works. If you meant use of Logical operator(OR , AND) won't work then you are right and I misunderstood. I replied just to make sure that you are also aware of this, just in case you are not.
Cheers,
Vishesh
Hello,
Show us the code and we'll be able to tell you the answer.
regards
Rick Bakker
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
G'day Vishesh,
Is the variable you're checking a simple character field? If not you might want to try using one.
Have fun,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.