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

Problem in Copying module pool program

Former Member
0 Likes
1,859

Hi All,

i have to change a existing module pool program and i have to refer all of its screen elements to a newly created table, while i have copied my module pool program, it has some include program associated with it, when i copied my module pool program i have set another include name for each include program , but it is taking old include program and this is the reason i am not able to make changes into it, because whenever i make changes into it, it reflects my old programs, and hence it gives error.

I have searched many threads on SCN but not able to solve my problem, so please guide me, how could i copy so that all includes get changed, and i can make all entries change.

6 REPLIES 6
Read only

Private_Member_7726
Active Contributor
0 Likes
1,483

Hi,

Did you change the INCLUDE statements to refer to new includes? The, I believe, you'll have to do manually.

cheers

Jānis

Read only

0 Likes
1,483

Hi Janis,

i have changes the target includes , but still it is not giving desired results.

Read only

0 Likes
1,483

Actually, even the manual change of INCLUDE statements is not always necessary. I just copied Module pool SAPMZKSV01 to SAPMZKSV02 as follows:

1) in SE38

2) select copy everything:

3) system proposes the new include names automatically:

4) confirm everything and the INCUDE statements in the Main program are changed automatically as well:

Maybe proposing new names and changing of include statements does not happen automatically if the naming does not follow SAP conventions for module pools...

What do you mean by "but it is taking old include program" - what is taking, where? In the new code created by copying? Then just find and change the include statements manually...

cheers

Jānis

Read only

Former Member
0 Likes
1,483

This message was moderated.

Read only

former_member202818
Active Contributor
0 Likes
1,483

Hi Shweta,

I believe u have done everything perfectly except one ignorance while copying Includes....

While copying an include you must select the required includes as shown in the below image.

In this case, even if i gave new name for TOP include it is not going to copy to ZTMS_UPDATE_TOP_COPY(it will not generate) because i have not selected the item.

Regards

Sreekanth

Read only

Former Member
0 Likes
1,483

Hi,

Go to SE80 workbench, Give your program name.

Right click on program name--->copy.

Provide your include names, then click OK.

Try to activate the program, it will work,

OR

If you still facing any problem then seach for the include name "GLOBALLY", then replace them

with your include names, It will surely work.