2010 Oct 07 3:43 AM
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....?
2010 Oct 07 3:47 AM
Hi Vasu,
You can call the subroutine with the following syntax.
PERFORM subroutine(program name) or PERFORM subroutine IN PROGRAM program name.
Regards,
Immanuel.
2010 Oct 07 3:59 AM
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.
2010 Oct 07 4:46 AM
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.
2010 Oct 07 5:10 AM
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