Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

using if condition in smartforms

Former Member
0 Likes
1,520

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

3 REPLIES 3
Read only

Former Member
0 Likes
751

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

Read only

kanthimathikris
Advisor
Advisor
0 Likes
751

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

Read only

Former Member
0 Likes
751

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