How can I get the IP address of the system programmatically?
You can use cl_gui_frontend_services to get the system IP address.
DATA ip_addr(50) TYPE c.
CALL METHOD cl_gui_frontend_services=>get_ip_address
RECEIVING
ip_address = ip_addr
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
not_supported_by_gui = 3
OTHERS = 4.
DATA terminal LIKE USR41-TERMINAL.
CALL FUNCTION 'TERMINAL_ID_GET'
EXPORTING
USERNAME = sy-uname
IMPORTING
TERMINAL = terminal.
* e-abap님에 의해서 게시물 이동되었습니다 (2007-11-05 12:45)
댓글 6
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
102 | (-)부호를 앞으로 바꿔주는 함수입니다 [13] | ecbase | 2006.12.01 | 4846 |
101 | 공휴일 체크 및 다음 휴일 구하기 [5] | ecbase | 2006.12.01 | 11131 |
100 | 문자인지 숫자인지 구분 [8] | ecbase | 2006.12.01 | 10702 |
99 | 소수점 이하 체크 [5] | ecbase | 2006.12.02 | 9751 |
98 | 숫자 왼쪽의 0 없애기 [8] | ecbase | 2006.12.02 | 15255 |
97 | ALV BUFFER CLEAR [3] | ecbase | 2006.12.02 | 8024 |
96 | SELECT 구문을 사용하지 않고 데이터 가져오는 방법 [13] | sapjoy | 2006.12.04 | 7619 |
95 | R/3 접속자에게 메세지 보내기 [12] | sapjoy | 2006.12.05 | 6198 |
94 | STRING 관련 함수 [3] | sapjoy | 2006.12.28 | 6802 |
93 | background 관련 함수 [1] | sapjoy | 2006.12.28 | 4639 |
92 | 도메인 고정 값 read [2] | sapjoy | 2007.02.11 | 5381 |
91 | 백그라운드 작업 관련 함수(batch job) [3] | sapjoy | 2007.03.02 | 6693 |
90 | IP를 가져오는 함수 [3] | sapjoy | 2007.03.09 | 4250 |
89 | 현재 떠있는 화면에서 특정 필드의 값을 읽어오는 함수. [7] | 나침반친구 | 2007.03.13 | 4518 |
88 | FUNCTION MODULES [27] | sapjoy | 2007.03.29 | 4488 |
87 | FUNCTION 모음 [3] | 명신용 | 2007.04.03 | 6204 |
» | IP를 가져오는 클래스 메소드 및 함수 [6] | sapjoy | 2007.04.04 | 4943 |
85 | SEARCH HELP FUNCTION 이용한 예제 [2] | 이종원 | 2007.04.06 | 5342 |
84 | 유용한 Function 올려봅니다. [30] | 김지성 | 2007.04.17 | 9897 |
83 | function 날짜 정합성 점검 [5] | senk | 2007.04.20 | 5842 |