cancel
Showing results for 
Search instead for 
Did you mean: 

If condition in forms

Former Member
0 Kudos

Hi,

Can anyone post how to implement if condition in smartforms text module so that based on it we have to call a subroutine by means of perform statement and we have to print the value of changing parameter in the text module of smartform.

can anyone post the solution for the above requirement so that I'll award max points to them.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI,

IF condition EQ 'XYZ.

perform <subroutinename> in program <pgm name>

using <var>

changing<var>

endperform.

else.

perform <subroutinename1> in program <pgm name>

using <var1>

changing<var1>

endperform.

endif.

In the program

FORM <subroutinename1> TABLES INPUT STRUCTURE ITCSY

OUTPUT STRUCTURE ITCSY.

After doing the manipulations pass these values to OUTPUT

and then in the form print those changing or using parameters.

ENDFORM.

Regards,

Venkatesh

Answers (0)