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

form include

Former Member
0 Likes
1,480

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,299

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] ... .

6 REPLIES 6
Read only

christine_evans
Active Contributor
0 Likes
1,299

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.

Read only

Former Member
0 Likes
1,299

hi

use perform subroutine in program LE10RF10 .

like PERFORM form(prog).

reg

Ramya

Edited by: Ramya S on Jan 6, 2009 11:34 AM

Read only

Former Member
0 Likes
1,300

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] ... .

Read only

Former Member
0 Likes
1,299

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.

Read only

Former Member
0 Likes
1,299

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

Read only

Former Member
0 Likes
1,299

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.