Hi All,
kindly see below solution.
http://wiki.scn.sap.com/wiki/display/ABAP/Gateway+Errors+for+CCMS+Agent
Access can be permitted based on simply settings in sec and reg file(this also depends on individual environments and kernel levels)
Please check
#1408081 - Basic settings for reg_info and sec_info
#1425765 - Generating sec_info reg_info
Example for reg
#VERSION=2
#
# the following line should be the LAST line in the reginfo,
# see Note 1592493!
#
P TP=*
Example for sec
#VERSION=2
P TP=* USER=* HOST=*
~
~
Regards
PB