2010 Jun 18 11:37 AM
Hi experts,
I am performing a FM IN BACKGROUND TASK call in a BADI to automate creation of GR.
Example:
Step 1. User ABC performs GR for plant 0001.
Step 2. BADI checks and automates another GR for plant 0002.
The problem is user ABC only has authorization for plant 0001.
During step 2, the BAPI returns an error saying that there is no authorization for plant 0002 as the BADI is triggered by user ABC.
I am using FM BAPI_GOODSMVT_CREATE. I tried to pass in an ID with SAP_ALL to the PR_UNAME field to indicate this ID as the creator of the GR, but the authorization check still exists.
Is there anyway I can force this background task to be executed by another ID instead of the triggering ID?
Thanks in advance.
Hi experts,
I am performing a FM IN BACKGROUND TASK call in a BADI to automate creation of GR.
Example:
Step 1. User ABC performs GR for plant 0001.
Step 2. BADI checks and automates another GR for plant 0002.
The problem is user ABC only has authorization for plant 0001.
During step 2, the BAPI returns an error saying that there is no authorization for plant 0002 as the BADI is triggered by user ABC.
I am using FM BAPI_GOODSMVT_CREATE. I tried to pass in an ID with SAP_ALL to the PR_UNAME field to indicate this ID as the creator of the GR, but the authorization check still exists.
Is there anyway I can force this background task to be executed by another ID instead of the triggering ID?
Thanks in advance.
2010 Jun 18 12:16 PM
Make sure to discuss this with the security team...
The RFC destination you specify in your [call function - in background task|http://help.sap.com/abapdocu_70/en/ABAPCALL_FUNCTION_BACKGROUND_TASK.htm] can be used to specify a different user. Check for example the logical workflow destinations in transaction SM59...
Cheers, harald
2010 Jun 18 12:54 PM
hi,
Please one time done this in the foreground and when you get the error goto the t-code su53.
There it will display which authorisation fails. After that incoporate that authorisation for the User who is running the T-code.
Hope this might be helpful for u .
With Regards,
Sumodh.P
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |