Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8604

Re: How to check the authorizations in the custom programs

$
0
0

Hi

 

Please check the following

 

For Display

* Authority Check on Company Code

         AUTHORITY-CHECK OBJECT 'F_BKPF_BUK'

                  ID 'BUKRS' FIELD < Company Code>   " Comcode can be your selection parameter

                                                                              " Work area field or variable

                  ID 'ACTVT' FIELD '03'.

         IF sy-subrc <> 0.

* Implement a suitable exception handling here

           MESSAGE < Error Message>

       ENDIF.

  

 

* Edit

* Authority Check on Company Code

         AUTHORITY-CHECK OBJECT 'F_BKPF_BUK'

                  ID 'BUKRS' FIELD < Company Code>   " Comcode can be your selection parameter

                                                                              " Work area field or variable

                  ID 'ACTVT' FIELD '02'.

         IF sy-subrc <> 0.

* Implement a suitable exception handling here

           MESSAGE < Error Message>

       ENDIF.


Viewing all articles
Browse latest Browse all 8604

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>