‎2009 Jan 06 10:30 AM
Hello,
There is a standard include: LE10RF10 which contains two forms I have to use in a report.
How do I include only these 2 forms into my report without including the whole include using:
include LE10RF10 statement, in order to avoid a lot of un-useful data declaration?
I am looking for a method different than copy-paste the code for the corresponding forms.
Thank you.
‎2009 Jan 06 10:36 AM
Don't inlcudes the forms in your report.
Wherever you want to use the form try this:
perform <form_name> in program <program name for LE10RF10 >.
Syntax:
PERFORM subr|(sname) IN PROGRAM [prog|(pname)] [IF FOUND] ... .
‎2009 Jan 06 10:33 AM
I don't think there is another solution; if you include the include you'll get everything in the include attached to your report.
What is wrong with creating your own copies of the subroutines that you need? Personally, I would always prefer to do this in a custom report, since there is nothing to stop SAP from changing its own code at any time and this could affect your report; at least if you have your own copy of the subroutines you can control what they do and when they are changed.
‎2009 Jan 06 10:33 AM
hi
use perform subroutine in program LE10RF10 .
like PERFORM form(prog).
reg
Ramya
Edited by: Ramya S on Jan 6, 2009 11:34 AM
‎2009 Jan 06 10:36 AM
Don't inlcudes the forms in your report.
Wherever you want to use the form try this:
perform <form_name> in program <program name for LE10RF10 >.
Syntax:
PERFORM subr|(sname) IN PROGRAM [prog|(pname)] [IF FOUND] ... .
‎2009 Jan 06 10:38 AM
hi,
use the include in your report as
include LE10RF10.
and use the forms in your program as perform XXXX using XXX.
for example say you have in include LE10RF10 adding two numbers as
form add using i_int1 i_int2 changing i_int3.
i_int3 = i_int1 + i_int2.
endform.
in your zprogram call that include and then call the add subroutine in your program as
perform add using int1 int2 changing int3.
thanks,
anupama.
‎2009 Jan 06 11:00 AM
Hi,
I don't think that you can exclude what is not needed and just include what is needed.
yes,you can use
PERFOM <form name> IN PROGRAM <prg name>.......
only when the Program is TYPE 1 i.e. executable or M,you CANNOT use this command in case of INCLUDE PROGRAM.
so,no option you have to include it completely else not.
Regards,
Neha
‎2009 Jan 06 11:07 AM
Hi Andronic,
You could call the forms with the syntax
perform <form_name> in program <program_name> IF FOUND.
you could use this if the forms have explicit using changing parameters.
Otherwise you may have to declare the forms in ur code.