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

Problem with authorization

Former Member
0 Likes
557

Hi all,

I have the following problem;

With the same user executing the same FM from two different programs.

In one it gives me a mistake and in other one not.

The FM does one;

CALL TRANSACTION 'SWO1' USING bdcdata

OPTIONS FROM opt

MESSAGES INTO messtab.

I have put a break-point in this point.

If I push F5 in one one executes me correctly, in other one jumps the following mistake;

"you are not authorized to use transaction SWO1."

The internal tables bdcdata and opt contain exactly the same thing in both cases.

How can it be that executing with the same user me of mistake of authorization in one and in other one not?

Thanks in Advance!

4 REPLIES 4
Read only

gautam_totekar
Active Participant
0 Likes
527

conatct BASIS and ask them to give authorization for SW01. they will do it . In debugging it alllows execution if there is no authority-check inside the program.

Read only

Former Member
0 Likes
527

HI,

Can you just try running transaction SU53 after the error to check which authorisations were passed and which resulted in errors?

Regards,

Ankur Parab

Read only

0 Likes
527

Thank you for your answers.

Already I had executed the transaction su53 before and after the F5 in the break-point to the call transaction.

And I have seen that really does not have authorization for the transaction SWO1.

I might put on it, but what I do not understand is;

Why from a program does it work and from other one not? He is the same user and therefore he has the same authorizations.

In fact, from the program that works if I go to su53 it does not say that he lacking authorization to swo1...

This is super strange.

Read only

0 Likes
527

Change the table TCDCOUPLES from SE97.