2009 Jul 08 7:25 PM
Hello SAPients,
I've been searching but I can't find any BAPI or Function Module to add/remove values from authorization objects. Let's say that in the Object M_MATE_MAT, authorization M_MATNR_ALL and field BEGRU I need to add/remove values to change the authorizations as needed. Something like what the PFCG Tcode does, but with BAPI/FM. My other option consists on using BDC but PFCG is too complicated for that and I don't think that the result is reliable.
Any help would be greatly appreciated.
Thanks in advance for your kind help.
Shamma,
Thanks for your reply. Actually, I'm not adding fields to the Authorization Object, I'm just adding values to the already created fields. For example, I want the users to have access to the invoices 111, 222, and 333, then I add those values to the corresponding field in the corresponding Authorization Object. Later on, we need to avoid the users from changing the invoice number 222, so, I remove the value 222 from the corresponding field in the corresponding Authorization Object, I can do that manually using TCode PFCG but I need to do it programmatically, that's why I'm looking for a BAPI or FM.
Any other idea?
Thanks in advance.
2009 Jul 09 1:21 PM
2009 Jul 09 3:50 PM
Shamma,
Thanks for your reply. Actually, I'm not adding fields to the Authorization Object, I'm just adding values to the already created fields. For example, I want the users to have access to the invoices 111, 222, and 333, then I add those values to the corresponding field in the corresponding Authorization Object. Later on, we need to avoid the users from changing the invoice number 222, so, I remove the value 222 from the corresponding field in the corresponding Authorization Object, I can do that manually using TCode PFCG but I need to do it programmatically, that's why I'm looking for a BAPI or FM.
Any other idea?
Thanks in advance.
2009 Jul 10 6:33 AM
Hello,
You can check with BAPI_MATERIAL_SAVEDATA.
Regards,
Shamma
2009 Jul 10 5:19 PM
Hi Shamma,
Can you please tell me what exactly should I be looking for in BAPI_MATERIAL_SAVEDATA in order to solve my problem?
Thanks!
2009 Jul 22 1:19 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |