Skip to Content
0
Former Member
May 31, 2005 at 03:51 PM

Authority-Check

55 Views

Hello everyone,

I'm having a problem with the authority-check.

I assign a new role and authorization that I created for user DDIC in MINISAP, and in my program I put the fallowing chunk of code.

AUTHORITY-CHECK OBJECT 'S_CARRID'

ID 'P_CAR' FIELD 'AA'

ID 'ACTVT' FIELD '02'.

IF sy-subrc = 4.

MESSAGE e157(zfidemsg).

  • User not authorized. Session terminated

ENDIF.

then, in the role I specify, the user will have Display access to the object s_carrid (field carrid) to all the airline carriers, but when in my program I select LH (a carrier) is not allowing me to display the selection. and I only check for AA.

Can someone tell me which is my mistake.

Thanks in advanced,

Fidel