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: 

sub routines

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

Yes, you can call sub routine in other program.

ex- prog1.

form a.

endform.

prom2.

perform a from (prog1).

Regards,

paruchuri_nagesh
Active Contributor
0 Kudos

hi

use follow syntax

perform sub1(zprogram)

regards

Nagesh.Paruchuri

Former Member
0 Kudos

Hi Venu,

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

thanks,

maheedhar

varma_narayana
Active Contributor
0 Kudos

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.