cancel
Showing results for 
Search instead for 
Did you mean: 

Using subroutines in smartforms

Former Member
0 Kudos

Hi,

I am using a subroutine in smartform.I have declared the perform statement in the program lines and form statement in the form routines tab of global definiions.I want to print the value of a particular field in the o/p.This field is getting populated inside this form statement.In debugging mode i can see the value for this field.But when the control comes out of the form statement,this value is missing.Now how can I print the value for this field in the o/p of the smartform?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

->Declare a variabel in the global definitions tab and in the perform use the using value and changing values in the changing value pass your field..

ex: Perform sub using a changing b.

Form sub using P_A changing P_B.

p_b = 1.

Endform.

Thanks,

NN.

Former Member
0 Kudos

hi,

you specify the variable name in output parameters of program lines, so that it stores its value. hope this solves ur problem.

if not,

take a variable of same type, ehich u want to print in global definitions, now copy the value to this, n print this variable.

hope this may work.

still any problem, post it back

reward if helpful.

amit_khare
Active Contributor
0 Kudos

Are you passing the variable as parameter to perform?