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: 

BAPI's or FM's to change org elements of a Role (Tables AGR_1252, AGR_1251)

Former Member
0 Kudos

Dear all,

I would like to modify organisational elements related data of a role, using a program. These values are stored in AGR_1252 and AGR_1251 table. Kindly let me know if any BAPI or FM or RFC's are available.

Thanks in advance!

Regards,

Aravind.

1 ACCEPTED SOLUTION

SuhaSaha
Advisor
Advisor
0 Kudos

I would like to modify organisational elements related data of a role, using a program. These values are stored in AGR_1252 and AGR_1251 table. Kindly let me know if any BAPI or FM or RFC's are available.

Hello Aravind,

AFAIK the authorization data for org elements are stored in AGR_1252 & not in AGR_1251!

If you want to modify the org. elements you should use the FM PRGN_1252_SAVE_ORG_LEVELS. After the call to the previous FM you need to call the FM PRGN_UPDATE_DATABASE to write the data in the database(the change docs are written as well).

BR,

Suhas

3 REPLIES 3

madhu_vadlamani
Active Contributor
0 Kudos

Hi Aravind,

Check with this PRGN_CHANGEDOCUMENT_WRITE_1252.

Regards,

Madhu.

SuhaSaha
Advisor
Advisor
0 Kudos

I would like to modify organisational elements related data of a role, using a program. These values are stored in AGR_1252 and AGR_1251 table. Kindly let me know if any BAPI or FM or RFC's are available.

Hello Aravind,

AFAIK the authorization data for org elements are stored in AGR_1252 & not in AGR_1251!

If you want to modify the org. elements you should use the FM PRGN_1252_SAVE_ORG_LEVELS. After the call to the previous FM you need to call the FM PRGN_UPDATE_DATABASE to write the data in the database(the change docs are written as well).

BR,

Suhas

Former Member
0 Kudos

Dear Suhas,

Thanks a lot. Its working.

Previously, the mistake i have done is I have not used FM 'PRGN_UPDATE_DATABASE'.

Just out of curiosity, do we have any BAPI/RFC to make the changes? I tried checking, but could not find an apt one

Thanks,

Aravind