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

Re: Avoiding Hard coded user names in ABAP code

$
0
0

Hi Suba,

 

Creating Authorization Objects and Authority-Check is the best approach.

If you dont want to use it and if you are only concerned about EPC error, then replace the username with constatns.

 

CONSTANTS : c_username type sy-uname value 'USERNAME'.

if sy-uname = C_USERNAME.

do something.

endif.

 

With this you can pass the EPC check. But still it is not the right appraoch.

Go for Authorization Objects and use Authority Check statement for it is the correct approach.


Viewing all articles
Browse latest Browse all 8545

Trending Articles



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