Application Development 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: 

send i-tables to AUTHORITY-CHECK

Former Member
0 Kudos

Hi.

I wonder if I can send internal tables or values separated by commas in an AUTHORITY-CHECK, for example something like this.

AUTHORITY-CHECK OBJECT 'P_ORGINCON'

ID 'INFTY' '1019', '0001'

ID 'SUBTY' DUMMY

ID 'AUTHC' FIELD 'R'

ID 'PERSA' FIELD PA0001-WERKS

ID 'PERSG' FIELD PA0001-PERSG

ID 'PERSK' FIELD PA0001-PERSK

ID 'VDSK1' FIELD PA0001-VDSK1

ID 'PROFL' FIELD 'Z_HR_OM_OML', 'Z_HR_PA_OML', 'Z_HR_RC_OML',.

4 REPLIES 4

Former Member
0 Kudos

Hi

No! You can't do it, you can only check a single value.

Max

Former Member
0 Kudos

Hi Adrian,

I have tried using "COMMA" earlier but it won't allow. I don't know if any more techniques for this are avialable.

Lanka

0 Kudos

HERE IS THE SOLUTION:

*AGREGAMOS INFOTIPOS

IT_INFTYS-INFTY = '1019'. "HC AUTORIZADO

APPEND IT_INFTYS.

IT_INFTYS-INFTY = '0001'. "HC REAL

APPEND IT_INFTYS.

*REGRESA LA RELACION ENTRE EL USUARIO DE SAP Y SUS PERFILES ESTRUCTURALES

*QUE TIENE ASOCIADOS

SELECT PROFL

INTO TABLE IT_PROFL

FROM T77UA

WHERE UNAME = SY-UNAME.

AUTHORITY-CHECK OBJECT 'P_ORGINCON'

ID 'INFTY' FIELD IT_INFTYS

ID 'SUBTY' DUMMY

ID 'AUTHC' FIELD 'R'

ID 'PERSA' DUMMY

ID 'PERSG' DUMMY

ID 'PERSK' DUMMY

ID 'VDSK1' FIELD S_UNID

ID 'PROFL' FIELD IT_PROFL.

IF SY-SUBRC = 0.

MESSAGE E001(ZHR_MSG).

ENDIF.

0 Kudos

Hi Adrian,

Thanks for the solution . It really helps.

Lanka