‎2005 Dec 14 11:24 AM
Hi,
I have a requirement like the following in smartforms
if condition satisfy display one set of text or else some other text.(or don't display)
how we can write code in smartforms (not in driver program).If any body knows tell me.
Thanks
Regards,
Nandha
‎2005 Dec 14 11:30 AM
Hi nandha,
You can create a condition node like you create a text element.
You can create all the text elements under 'TRUE' part of the condition. This will display the text elements when the condition is true. Same can be done with the 'FALSE' part.
Try it and you will come to know what exactly i am trying to say.
Regards,
Darshil
‎2005 Dec 14 11:34 AM
Right click on the window you want to implement the code
Choose Create-> Flow Logic -> Alternative
In the true part -> Right Click (Choose)
Create the Text Elements to be displayed
To implement the code block choose
((( Create -> Flow Logic -> Programs Lines (write your ABAP Code here) ))
Message was edited by: Kanthimathi Krishnan
‎2005 Dec 14 12:15 PM
Hi,
Create a condition node( Flow logic--> alternative)..give ur conditions there ( if the condition is pertaining to fields check).. and then put ur texts within the true and false node as required.
If ur check is something different( a code), then before the texts create a node Program Lines, write ur condition n texts in the editor...
hope this helps.
Regards,
Bikash