Application Development 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: 

Regarding Program Copy

Former Member
0 Kudos

hai,

I have created ztable and zprograms in my local object with user "fujikawa"

now I created new user Chandra. i want to continue coding

by copying programs from Fujikawa user.

If at all we copy these PGMS, it seems we cant execute in new user.

Why is it..? any idea is there?

Chandra

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hey

Thanks for your reply.

Regarding point 5.could you pls tell, where should i change the actual table name?

in any transaction?

regards

Chandra

Message was edited by: Chandra kumar

12 REPLIES 12

Former Member
0 Kudos

Hi Chandra,

Your problem description does not seem to be too clear -

1. Are your Z Tables and Z Programs local objects? Or were They created with a transport request?

2. What do you mean by <i>copying the programs to the new user</i>? Why do you want to copy them?

3. If your programs are all local objects, you can edit the program(s) with any user name (meaning , anybody can edit them). The only exception is when you have checked the Editor Lock Flag while creating the program, in which case, only the person who has created the program can edit it.

4. What do you mean "<i>...we can't execute in new user...</i>" ?

5. Lastly, does the new user-id you have created have all the necessary authorizations/roles/profiles ?

Hope these points help you find the problem. If not, please revert.

Regards,

Anand Mandalika.

Former Member
0 Kudos

. Are your Z Tables and Z Programs local objects? Or were They created with a transport request?

yes its in my colleagues local Objects.

2. What do you mean by copying the programs to the new user? Why do you want to copy them?

my colleauge has done few programs connecting with tables and screens.

now i want to continue the coding from my part.

(Also I am in need of renaming few program names and table names from his program)

(Problem is, I want to rename his programs and tables and continue the coding is it possible?

3. If your programs are all local objects, you can edit the program(s) with any user name (meaning , anybody can edit them). The only exception is when you have checked the Editor Lock Flag while creating the program, in which case, only the person who has created the program can edit it.

ofcourse i can access his programs from my user id.

4. What do you mean "...we can't execute in new user..." ?

my colleague said, I cant just copy his programs or edit his programs by renaming his program names and table names and continue coding.. is it?

5. Lastly, does the new user-id you have created have all the necessary authorizations/roles/profiles ?

Yes i have all rights.

Could you please confirm.

0 Kudos

Hello Chandra,

From your descriptions, I don't think there's any problem for you to go ahead and modify the programs and rename the tables/programs. The only point that you need to keep in mind is with regard to renaming the tables and / or programs.

1. Firstly, you don't have to copy the programs. you can just <i>rename</i> them.

2. Renaming a Table : Before you dot hat, just do a where-used list for that table and find out all the instances where the table is being used. It might be used in some programs. So the new name of the table should be used in all the references to it.

2. Renaming a Program : The program might also be referenced elsewhere, for example, through some submit statements. So you have to get a where-used list for the program and change the program name in all the references found.

Hope that should help you understand how to go about it.

Regards,

Anand Mandalika.

P.S : I would like to mention here that answering the posts in SDN requires some time and effort. So when you get an answer that you find to be useful, please do reward it accordingly. For more information, you can refer to the weblog https://weblogs.sdn.sap.com/pub/wlg/680. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]

Former Member
0 Kudos

hai,

Thanks for your reply.your reply is more useful.

i know tables cant be renamed like programs.

could you pls give me steps how to rename table safely?

Chandra kumar.

0 Kudos

Hello Chandra,

Befor the steps to rename a table safely, I shall give you the steps to reward the points to the replies you get.

1. For each of the responses that you get for your question, there will be a yellow star icon in the header of the reply.

2. Just click the icon and you will be taken to a screen where you can reward points to that message based on how useful you have found it to be.

3. For any question, out of all the replies you get, you can reward


  a. 10 points to the one reply that has answered your question.
  b. 6 points to two replies that were very helpful to you.
  c. 2 points to all the answers that have been somewhat useful to you.

As I said earlier, this is a special way to thank the people who have taken their time and effort to answer your question and help you solve your problem...All it takes is a few clicks and a few seconds.

Now coming over to the table renaming...

1. Go to Se11, enter the name of the table you want to rename.

2. Click on the where-used list icon on the toolbar.

3. You will get a pop-up screen. Since you are searching for a custom table (Z-table), it might not have too many references. Select all the objects which you think might have used this table.

4. You will get a list of results along with the exactl location where the table (rather <i>table name</i>)is used. Change all these to the new name and save all the objects (programs). Don't activate the programs at this point.

5. After all the programs and other objects referencing the table have been modified to the new table name, then change the actual table's name.

6. Activate the table with it's new name. Then activate all the objects that you have just modified , to correct the table name.

Hope this has been clear enough for you to understand and go ahead. Now don't again forget to reward the points :-).

Regards,

Anand Mandalika.

Former Member
0 Kudos

hey

Thanks for your reply.

Regarding point 5.could you pls tell, where should i change the actual table name?

in any transaction?

regards

Chandra

Message was edited by: Chandra kumar

0 Kudos

COuld you pls reply for the above question.

chandra

0 Kudos

Hi,

Renaming a table is not possible directly through the ABAP workbench. This is something that requires the intervention of the BASIS support.

For your case,

1. Copy the old table into a new one.

2. Step 1 will only copy the table definition. the data will not be copied. You have to activate the new table and copy the data from theold table to the new table explicitly, through a small ABAP program.

Regards,

Anand Mandalika.

0 Kudos

Chandra kumar I think you should give points to people who helped you.

I can see you have lots of questions and get lots of answers but do not mind to give any points.

0 Kudos

Hey Fuat Ulugay,

I am trying to reward points for the answered message

but when i click UPDATE button,seems it did not work.

So i wonder why it is and also could you please tell

how to confirm that i have rewarded points.

sorry for the inconvinence.

0 Kudos

Hi Chandra,

When you get to the rewards page, just assign the points by clicking once. Don't press repeatedly. You can verify that the points have been rewarded by looking at the change in the color of the star icon for the reply.

Hope that was clear.

Regards,

Anand Mandalika.

0 Kudos

Thanks for the points.

But I am not the one who deserved it here.

Give points to the messages which are helpful to you.