cancel
Showing results for 
Search instead for 
Did you mean: 

copying standard prog to custome program with includes that includes hd inc

Former Member
0 Kudos

Hi gurus,

i got one requirement,

I have to copy standard program to custome program with includes ,that includes con tain few more includes. so how can i copy all the includes into the custome progam.

please tel me.

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Which standard program r u trying to replicate? I can tell that may be it will be more helpful for you.

Former Member
0 Kudos

Hi Vijayam,

In SE38, give the name of the standard program, in menubar goto program -> copy, which will take you to a pop up, check the checkbox for 'INCLUDES' to copy all the standard includes. But this will not copy the custom includes(starting with Z). To copy the custom include, you need to create new include in your copy program.To create a new include, click on icon 'Display Object List' which will display the objects list for your program, now right click on your program name in this list and select CREATE-> INCLUDE. Give the name of include and now copy the code from standard program include to your include.

I hope your problem is solved now.

Regards,

Pranjali

nabheetscn
Active Contributor
0 Kudos

You can go to se38 and copy it but it will copy the standard includes in the new zprogram which is the problem. So you have to indivually go and copy those include to a Z one.

Thanks

Nabheet

SreekanthKrishn
Contributor
0 Kudos

Hi Vijayam,

You can use the function module get_includes to get all the includes associated with your program.

Then manually copy each of these includes.

By this, you dont have to go through the program to findout the includes.

Thanks,

Sreekanth

matt
Active Contributor
0 Kudos

Copying standard programs, and then changing them is not generally a good idea. If OSS corrections are supplied for the original, then those corrections won't be applied to your program. Further, the correction might change an include which your program uses, and stop your program working. These problems are even worse during a system upgrade.

Use the enhancement framework, user exits etc.first.

Former Member
0 Kudos

You have the options to copy the INCLUDES of the main programs, any sub-include in the include will not displayed while copying the main program.

Those sub-includes need to be copied manually, better copy only that sub-include which requires change otherwise use as it is.

Regards

Munish Garg

Former Member
0 Kudos

What did you do and what didn't work?

Former Member
0 Kudos

If you have to modify also the standard include you have to copy it by set at 'X' Include at popup that system show you in the copy process.

If this process don't copy all include and subinclude, you have to copy they manually.

Regards.