Application Development and Automation 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: 
Read only

Dynamic Perform

danilo_henriques
Explorer
0 Likes
1,299

Hello,

I pretend do create a table which will have names of several form's. I'll select those forms names and call them inside the program.

Is it possbile to call a form using a field-symbol instead of the name ?

FIELD-SYMBOLS <fs_routine> TYPE ANY.

ASSIGN 'F_TEST' TO <fs_routine>.

PERFORM <fs_routine>.


FORM F_TEST.
 BREAK-POINT.
ENDFORM.

The code above is just an example of what i want to do!

Thanks!

1 ACCEPTED SOLUTION
Read only

ThomasZloch
Active Contributor
0 Likes
1,137

It's simpler, you can do this:

data subr type string value 'F_TEST'.

perform (subr) in program ...

Check F1 help for PERFORM statement for all details.

Thomas

1 REPLY 1
Read only

ThomasZloch
Active Contributor
0 Likes
1,138

It's simpler, you can do this:

data subr type string value 'F_TEST'.

perform (subr) in program ...

Check F1 help for PERFORM statement for all details.

Thomas