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

Authorization issue in BDC Program

Former Member
0 Likes
2,384

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

1 ACCEPTED SOLUTION
Read only

satyabrata_sahoo3
Contributor
0 Likes
1,891

Its not a good idea to override authorization (If any way its possible, not sure in background !).

12 REPLIES 12
Read only

Former Member
0 Likes
1,891

Can someone pls help me in this issue??

-Sowmya

Read only

Former Member
0 Likes
1,891

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

Read only

0 Likes
1,891

Thanks!

And where / how does this custom FM be used?

-Sowmya

Read only

Former Member
0 Likes
1,891

If I execute my BDC program in background, I'm getting the following Dump:

OBJECTS_OBJREF_NOT_ASSIGNED.

How to avoid this?

-Sowmya

Read only

0 Likes
1,891

This Dump issue is resolved.

-Sowmya

Read only

Former Member
0 Likes
1,891

Hi,

Use this FM to disable the authorization check.

HR_READ_INFOTYPE_AUTHC_DISABLE

Regards,

Vijay

Read only

0 Likes
1,891

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

Read only

0 Likes
1,891

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.

Read only

0 Likes
1,891

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

Read only

0 Likes
1,891

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.

Read only

satyabrata_sahoo3
Contributor
0 Likes
1,892

Its not a good idea to override authorization (If any way its possible, not sure in background !).

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,891

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