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

sub routines

Former Member
0 Likes
622

I have defined a SUB Routine ( FORM and ENDFORM) in program_1 how can call the same routine into antoher program program_2?

I have defined a SUB Routine ( FORM and ENDFORM) in program_1 how can call the same routine into antoher program program_2?

4 REPLIES 4
Read only

Former Member
0 Likes
594

Hi,

Yes, you can call sub routine in other program.

ex- prog1.

form a.

endform.

prom2.

perform a from (prog1).

Regards,

Read only

paruchuri_nagesh
Active Contributor
0 Likes
594

hi

use follow syntax

perform sub1(zprogram)

regards

Nagesh.Paruchuri

Read only

Former Member
0 Likes
594

Hi Venu,

Syntax is: Perform <form name> (reportname).

thanks,

maheedhar

Read only

varma_narayana
Active Contributor
0 Likes
594

Hi..

To call a subroutine from External Program

PERFORM <formname>(<PROGRAM>) [ parameters ] IF FOUND.

Eg:

PERFORM F_GET_DATA(ZPRG01) IF FOUND.

REWARD IF HELPFUL.