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: 

add field in object

Former Member
0 Kudos

Hello all

am trying to add one field to an object.

i went to su21 and selected the object in change mode but am not able to add one more field as the

field tab is grayed out .

Can you please suggest how to add field

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Sagar,

Please follow the below procedure to add a field to an existing auth. object.

1. Run transaction SU21.

2. Double click on the authorization object you desire to modify.

3. In the pop up window, click 'F5'.

4. Go to "Authorization fields", click on an empty field and then press F4.

5. Double click on authorization field that you want to add, it will be added into the authorization object .

6. Click Save button.

Thanks,

Saby..

6 REPLIES 6

Bernhard_SAP
Employee
Employee
0 Kudos

Hi,

you have to perform the 'where used' check first (pops up automatically when changing to edit mode), then it will work.

b.rgds, bernhard

Former Member
0 Kudos

Here's the info from the pop-up information dialog

Creating and changing authorization objects Note that when creating authorization objects, the structure of the object must be planned exactly. Changes to the structure are very complicated. If, for example, you want to change authorization fields for an object, this is only possible after all authorizations the object uses and all calls of the AUTHORITY-CHECK language commands have been deleted. o The authorization object must be deleted and recreated, if you want to remove fields from the object. o You can add authorization fields to the object if the object is no longer used. Only then can the corresponding fields accept data.

Hope it helps.

Gp.

Former Member
0 Kudos

Hi Sagar,

Please follow the below procedure to add a field to an existing auth. object.

1. Run transaction SU21.

2. Double click on the authorization object you desire to modify.

3. In the pop up window, click 'F5'.

4. Go to "Authorization fields", click on an empty field and then press F4.

5. Double click on authorization field that you want to add, it will be added into the authorization object .

6. Click Save button.

Thanks,

Saby..

0 Kudos

hi,

please guide me, how to remove the added authorization field in authorization object p_origin.

thanks

satya

0 Kudos

tables tobj.

data : itobj type standard table of tobj,

wtobj type tobj.

parameters : p_OBJCT like tobj-OBJCT.

select * from tobj into table itobj where OBJCT = p_OBJCT.

loop at itobj into wtobj.

if wtobj-FIEL8 ne ' '.

wtobj-FIEL8 = ' '.

modify tobj from wtobj.

endif.

endloop.

0 Kudos

Do you really think that is a good idea? (apart from the terrible performance of the coding)