Quantcast
Channel: SCN: Message List - ABAP Development
Viewing all articles
Browse latest Browse all 10425

Re: Avoiding Hard coded user names in ABAP code

$
0
0

Hi Suba,

 

 

if sy-uname = 'XXXXX'.

do something.

end if.

 

the above code which u said is generally used to get easier during debuugging of code, but it not recommended to move the that code with those lines to production.

 

or i guess u can go with building ranges for usernames and check..

 

if sy-uname = r_usernames. ( r_usernames contain all the usernames)

do something.

end if.

 

thanks,

Azhar


Viewing all articles
Browse latest Browse all 10425

Trending Articles



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