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: 

how to use subroutine of a subroutine pool inside a badi

Former Member
0 Kudos
320

Hi experts,

i have a subroutine pool..

now i would like to make use of it in a badi implementation....... how can i do it....?

4 REPLIES 4

Former Member
0 Kudos
131

Hi Vasu,

You can call the subroutine with the following syntax.

PERFORM subroutine(program name) or PERFORM subroutine IN PROGRAM program name.

Regards,

Immanuel.

0 Kudos
131

Hi Immanuel,

Thank you for your immediate response.

i have a program name ZXYZ type s(subroutine pool), which contains some includes.

one include for variable declaration and another is for logic.

now i need to call the ZXYZ in the BADI Implementation.

0 Kudos
131

Hi Vasu,

Yes. You are right. You should use the subroutine pool program name. You cannot use the include program name.

PERFORM subroutine(ZXYZ).

Regards,

Immanuel.

Former Member
0 Kudos
131

Hi Vasu,

Better to use a function module. In that function you include the includes and subroutine pool. Within the function module you call the function as required.

Reagrds,

Amitava