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

import another subroutine

Former Member
0 Likes
390

Hi,

I need to use a subroutine present in another include of a function group into my include of another function group.

Is there any way to do that.

Thankyou.

2 REPLIES 2
Read only

Former Member
0 Likes
369

Hi,

do like this.

perform sub_routine(include_name) using values.

Regards,

Niyaz

Read only

Former Member
0 Likes
369

Hi,

pls find the below syntax.

/: PERFORM <form> IN PROGRAM <prog>

/: USING &INVAR1&

/: USING &INVAR2&

......

/: CHANGING &OUTVAR1&

/: CHANGING &OUTVAR2&

......

/: ENDPERFORM

it will be used in SAP scripts, by using avalable values you can get another values or you can change the existing values.

in this you have to wirte your own program <prog> of type 'Subroutine pool'.

OR

perform xxxxx(program name) using .......

changing.....

Reward if useful.

Thanks,

Sreeram.