Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

If condition in forms

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.

Former Member
Former Member replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question