Application Development 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: 

Can We Use Abap Forms In Equaiton

Former Member
0 Kudos
133

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.

1 ACCEPTED SOLUTION

former_member183915
Active Contributor
0 Kudos
104

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 .

4 REPLIES 4

Sm1tje
Active Contributor
0 Kudos
104

You can't do this with subroutines (PERFORM - FORM), but it is possible with methods.

Former Member
0 Kudos
104

Dear Micky,

can you give an example ?

Former Member
0 Kudos
104

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

former_member183915
Active Contributor
0 Kudos
105

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 .