DATA : l_periodtype LIKE sapwlacctp-periodtype,
l_date LIKE sapwlacctp-startdate.
l_periodtype = 'M'. " 월간 조회 / 일간 조회는 'D'
" TRANSACTION 사용량 조회
CALL FUNCTION 'SAPWL_WORKLOAD_GET_STATISTIC'
EXPORTING
periodtype = l_periodtype
startdate = l_date
only_application_statistic = 'X'
instance = 'TOTAL'
TABLES
application_statistic = lt_data
EXCEPTIONS
unknown_periodtype = 1
no_data_found = 2
no_server_given = 3
OTHERS = 4.
IF sy-subrc <> 0.
ENDIF.
반응형
'SAP > Function' 카테고리의 다른 글
| RKD_WORD_WRAP : 스트링을 글자수 대로 테이블로 잘라주는 함수 (0) | 2015.03.03 |
|---|---|
| 저장,삭제시 확인 팝업용 함수 - POPUP_TO_CONFIRM (0) | 2014.11.17 |
| ABAP DATE 를 FLOAT 으로 변환하는 함수 (0) | 2014.09.23 |
| SAP WBS code 필드 Conversion 함수 (0) | 2014.08.28 |
| Material Internal No 를 External No 로 변경하는 함수 (0) | 2014.08.19 |
| Call Transaction 권한 체크 (0) | 2014.07.29 |
| Table 조회시 Day, Select 시 TAG 으로 나오는 경우 (0) | 2014.07.28 |
| SE93 Tcode 에서 Package 가져오기(RS_ACCESS_PERMISSION) (0) | 2014.04.11 |
| 소수점 올림, 반올림, 내림 함수 (0) | 2014.03.19 |
| ALV 앞에 0 제거 (0) | 2013.02.06 |