2010 Feb 25 8:08 AM
Hello everybody,
i just wonder if there is a way to use the abap forms in the equations directly.
For example,
when i get a value from a form to use in an equation, i have to assign the return value to a variable first.
perform get_data using a changing b.
c = b * 2.
i want to use the result of the perform directly like;
c = ( perform get_data using a ) * 2.
we can do this in .net and i wonder if it's possible in abap.
thanks for helping.
have a good day.
2010 Mar 02 8:07 AM
Hi Ali ,
In perform get_data using a ,you cann assign the reult to a global variable.Then use the result in the equation as desired.
Hope you find this useful .
regards ,
Navya .
2010 Feb 25 8:10 AM
You can't do this with subroutines (PERFORM - FORM), but it is possible with methods.
2010 Feb 25 4:39 PM
2010 Feb 25 8:12 AM
Hello,
I don't think it is possible to assign result from subroutine in the fashion mentioned. The only way would be by the formal parameters defined in the subroutine definition with USING/CHANGING.
Regards,
Sachin
2010 Mar 02 8:07 AM
Hi Ali ,
In perform get_data using a ,you cann assign the reult to a global variable.Then use the result in the equation as desired.
Hope you find this useful .
regards ,
Navya .