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: 

How to copy an authorization object

jorge_velasquez
Contributor
0 Kudos

Hi Experts,

I want to copy an authorization object in tx su21 but I can´t find the way to do it.

On the other hand, could it have the programs associated to the original object?

Regards.

Edited by: jorge velasquez on Mar 16, 2010 12:54 PM

1 ACCEPTED SOLUTION

jurjen_heeck
Active Contributor
0 Kudos

I want to copy an authorization object in tx su21 but I can´t find the way to do it.

What do you mean by 'copy'? If you want to create a new object with the same fields but a different name what is wrong with just creating it?

On the other hand, could it have the programs associated to the original object?

Nope, all checks refer to the name of the original objects and you cannot have two objects with the same name.

Maybe you can enlighten us on your real requirement so we can think along with you.

9 REPLIES 9

jurjen_heeck
Active Contributor
0 Kudos

I want to copy an authorization object in tx su21 but I can´t find the way to do it.

What do you mean by 'copy'? If you want to create a new object with the same fields but a different name what is wrong with just creating it?

On the other hand, could it have the programs associated to the original object?

Nope, all checks refer to the name of the original objects and you cannot have two objects with the same name.

Maybe you can enlighten us on your real requirement so we can think along with you.

0 Kudos

Hi,

I don´t want to copy an object with the same name, I want to copy the object M_MSEG_BWA and renamed it with Z_M_MSEG_BWA and add the following fields:

WERKS

LGORT

The thing is that the programs from the original object are not taken

FM07MEB0

LIE4N_CGPF02

LIPW4F16

LIPW4F17

LIPW4F80

LMICKU04

RM07MAUT

Edited by: jorge velasquez on Mar 16, 2010 3:36 PM

0 Kudos

there is no scope available to add programs as authorization fields. Please go through the documentations for ABAP authorization before you start doing anything.

Also for creating new object do not look for any object copy option... create a new one just by adding the fields.

Regards,

Dipanjan

0 Kudos

Hi Dipanjan,

I created a new object and add the required fields. My doubt was generated because the Abap programmer watched several programs in the original object M_MSEG_BWA, that's the reason I'm asking you. However I think my question was not clear enough. I don't want to add programs to fields I know that's not possible. I want to know why the new object in tx su21 doesn't has programs associated but the original object M_MSEG_BWA has them.

Regards.

Edited by: jorge velasquez on Mar 16, 2010 10:07 PM

Edited by: jorge velasquez on Mar 16, 2010 11:09 PM

0 Kudos

> I want to know why the new object in tx su21 doesn't has programs associated but the original object M_MSEG_BWA has them.

That is because authorization objects do not have "programs associated to them". They are used in checks in the program code and that is the only real relationship. As long as your new objects isn't programmatically referred to from the ABAP sourcecode it will not be used.

0 Kudos

> Otherwise I am not going to do anything until I'm shure of what I'm doing.

That is generally good advise.

> However I think my question was not clear enough.

There might be a language barrier here as well, in which case I apologize for my comment but still recommend some training and reading the documentation.

For example in transaction ABAPDOCU you can click on the yellow "?" button and then type "AUTHORITY-CHECK" into the keyword field and hit enter. It is well explained there.

Cheers,

Julius

sdipanjan
Active Contributor
0 Kudos

I want to copy an authorization object in tx su21 but I can´t find the way to do it.

NO. There is no such option exist in SAP to copy an exiting Object. This is also not at per the Authorization concept if you think yourself to provide copy option for copying an aithorization object.

On the other hand, could it have the programs associated to the original object?

Authorization Objects are not the representation of some programs, rather they are used in the programs with some specific Program statements to check the fields defined in the Object which are being availed through the dynamic program as per the screen design and the values collected during runtime whether these values are supposed to be available for the online user id in use at that moment.

A suggestion is to go through the " Authorization Made Easy" book (available in SMP). Also try to attend the ADM courses for Security.

regards, Dipanjan

Former Member
0 Kudos

I think you need to read the documentation on several doubts and should be restricted to display only until you have attended some training...

Just being honest.

Cheers,

Julius

0 Kudos

Julius I have no comments for you to be honest. Otherwise I am not going to do anything until I'm shure of what I'm doing.