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

How to adapt a standard Program (TCode LEER)

Former Member
0 Likes
868

Hi experts,

I want to copy Program RVFTPRER (Tcode LEER) and adapt the code because I want to make some modifications ...

The problem is that there are a lot of Functions (FT_VEND_DECL_SD, FT_VEND_DECL_SD_GET_DATA, FT_VEND_DECL_SD_SHOW_LIST etc...).

If I modify just one function, I have to copy it as ZFT_VEND_DECL_SD_SHOW_LIST for example, and I must modify the program who call this function ... Hope you understand ...

I need help, thans.

Greetz,David

5 REPLIES 5
Read only

Former Member
0 Likes
803

Hi David

You're right, if you need to change some functions using in that report you'll have to change the report too in order to replace the calls of those fms.

But it would be better you create a copy of std report and update it instead of the standard one.

Max

Read only

0 Likes
803

Hi max,

thanks for the answer ...

If I create a copy of this report, it's obligatory to make a copy of all Function Groups, Type Groups, Includes and Functions used in this report no ?

Greetz, David.

Read only

0 Likes
803

Hi

No, It's not obligatory.

U have to copy function group and the function modules you need to use (it's not obligatory to copy all function modules of a function group) and then copy only the include you need to change.

In generally when std object has to be copied, it create a copy of main object only and then copy the objects have to be changed for the modifications.

Max

Read only

RaymondGiuseppi
Active Contributor
0 Likes
803

Be aware that the modified FM will not be member of the same Function Group than the original one.

If the old FM use common data with the others FM called in the program you risk to encounter some problems.

Regards

Read only

former_member188827
Active Contributor
0 Likes
803

hi

if u kno exactly which includes u dont need den in ur zprog comment dose includes.

copy da code in includes needed, create new includes and paste in dem.

den u'll b able to modify.

same goes for functions as well.

rgds