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

Authority-Check

Former Member
0 Likes
450

Hello,

is it possible to test two different authority objects combined with a "and"?

authority-check object 'obj1'

                          id 'A' field '01'.

          if sy-subrc <> 0.

             'Message'

          endif.

authority-check object 'obj2'

                          id 'A' field '01'.

          if sy-subrc <> 0.

             'Message'

          endif.

Can i test something like the following?

obj1 and obj2 == true

Regards

Pascal

Hello,

is it possible to test two different authority objects combined with a "and"?

authority-check object 'obj1'

                          id 'A' field '01'.

          if sy-subrc <> 0.

             'Message'

          endif.

authority-check object 'obj2'

                          id 'A' field '01'.

          if sy-subrc <> 0.

             'Message'

          endif.

Can i test something like the following?

obj1 and obj2 == true

Regards

Pascal

1 REPLY 1
Read only

yogendra_bhaskar
Contributor
0 Likes
424

Hi Pascal ,

How about doing this way :

authority-check object 'obj1'

                          id 'A' field '01'.

          if sy-subrc <> 0.

             'Message'

          elseif sy-subrc eq 0.

            

             authority-check object 'obj2'

                          id 'A' field '01'.

                       if sy-subrc <> 0.

                          'Message'

                       endif.

          endif.

Regards

Yogendra