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: 

Can we give more than one value for an Authorization field in Auth-Check.

0 Kudos

Hi all,

Can we give more than one value for an Authorization field in Auth-Check.

Ex: AUTHORITY-CHECK OBJECT 'S_TRVL_BKS'

ID 'ACTVT' FIELD '02'

ID 'CUSTTYPE' FIELD <Value 1> <Value 2> <Value 3>.

IF SY-SUBRC 0.

MESSAGE E...

ENDIF.

If yes, please help me with exact syntax.

Think it will be like

ID 'CUSTTYPE' FIELD: <Value 1>, <Value 2>, <Value 3>.

1 REPLY 1

Former Member
0 Kudos

Hi,

yes we can give more than one field.

program an AUTHORITY-CHECK.

AUTHORITY-CHECK OBJECT <authorization object>

ID <authority field 1> FIELD <field value 1>.

ID <authority field 2> FIELD <field value 2>.

...

ID <authority-field n> FIELD <field value n>.

The OBJECT parameter specifies the authorization object.

The ID parameter specifies an authorization field (in the authorization object).

The FIELD parameter specifies a value for the authorization field.

The authorization object and its fields have to be suitable for the transaction. In most cases you will be able to use the existing authorization objects to protect your data. But new developments may require that you define new authorization objects and fields.

please reward points, if it is useful.

satish.