SAP/Function

ST03 Transaction 사용 내역 조회 함수

그녀는애교쟁이 2014. 4. 11. 10:29
반응형











     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.