2013 Mar 05 8:31 AM
Hello Experts,
I've a custom program where in I'm using BDC to update the Vendor Email Id.
(w.r.t my previous thread - http://scn.sap.com/thread/3308237) - My BDC code is available in this Thread.
This is working for only those users who have FK02 Authorizaiton.
But I want this program to be working for all the users who use this Program to update the Email Id of the Vendor. It should check only the AUTHORITY-OBJECT that I've provided in my Program.
Is there any way to override FK02 Authorization??
Please do help!!!!!!!
Thanks & Regards,
Sowmya
2013 Mar 13 3:50 PM
Its not a good idea to override authorization (If any way its possible, not sure in background !).
2013 Mar 05 11:20 AM
2013 Mar 05 11:25 AM
Hi,
Not sure,but try like this........
copy FM C160_TRANSACTION_CALL to z_C160_TRANSACTION_CALL(pass your t-code & bdcdata here).
pass BDCDATA tables and change the flowlogic
CALL TRANSACTION T_code using <BDCDATA table>...
Regards
Vamshi
2013 Mar 13 7:21 AM
2013 Mar 05 11:33 AM
If I execute my BDC program in background, I'm getting the following Dump:
OBJECTS_OBJREF_NOT_ASSIGNED.
How to avoid this?
-Sowmya
2013 Mar 13 9:50 AM
2013 Mar 05 11:35 AM
Hi,
Use this FM to disable the authorization check.
HR_READ_INFOTYPE_AUTHC_DISABLE
Regards,
Vijay
2013 Mar 05 12:22 PM
Thanks Vijay. I will try this out.
Why is my Program not working in background?
Getting the following Dump:
OBJECTS_OBJREF_NOT_ASSIGNED
Appreciate your help / inputs.
Thanks & Regards,
Sowmya
2013 Mar 13 9:12 AM
hi,
please post the snapshot of your dump..
so that it ll be easy to sort it out, which is responsible for it..
thanks,
Mathan R.
2013 Mar 13 9:49 AM
Hi Mathan,
It's not a short dump.
The issue is with Authorization.
Since I'm using BDC of FK02 to change the email address of the Vendor, it is checking for FK02 Authorization.
My requirement is : All the users who has the Auth to this particular custom Z-tcode (my prog) should be able to use this tcode and change the email address.
In my case, it is working for only those users who is having FK02 Auth and not others.
Tcode access is there, but in the Output, it displays as "No authorization for changing Vendor for Accounting...".
So, I wanted to know whether it is possible to override this FK02 Authorization in the custom program.
Thanks & Regards,
Sowmya
2013 Mar 13 3:37 PM
Hi Sowmya,
I think you can't upload the data since the authorization is given at transaction code level.
Here you need to take the help of basis team regarding authorizations.
Thanks,
Vineesh.
2013 Mar 13 3:50 PM
Its not a good idea to override authorization (If any way its possible, not sure in background !).
2013 Mar 13 3:55 PM
If the XK02/FK02 transaction is called from a Z transaction via CALL TRANSACTION, you can use SE97 to disable authorization check to call XK02/FK02 transaction. Problem is that the CALL TRANSACTION will "break" the calling BDC, so XK02 call must be last action.
Regards,
Raymond
(*) Also read again Override FK02 AUTHORITY-CHECK in a custom program answers..