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

add field in object

Former Member
0 Likes
4,699

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
Read only

Former Member
0 Likes
4,444

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..

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

6 REPLIES 6
Read only

Bernhard_SAP
Product and Topic Expert
Product and Topic Expert
0 Likes
4,444

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

Read only

Former Member
0 Likes
4,444

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.

Read only

Former Member
0 Likes
4,445

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..

Read only

0 Likes
4,444

hi,

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

thanks

satya

Read only

0 Likes
4,444

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.

Read only

0 Likes
4,444

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