Show TOC

 Reading Accounting DataLocate this document in the navigation structure

Use

You read accounting data using function module SAPWL_ACCNT_GET_SYSTEM_USAGE. This function module returns the accounting data for an account or a user name over a specified period of time. In addition, it can be used to collect data for one or more instances or clients in your system.

Caution

Due to the host name enhancement in Release 4.6A, the input parameters for accounting modules have changed. Instance IDs are now used for internal administration of data (you do not need to know the IDs).

Parameter Input/Output Repository Type Description Optional

PERIODTYPE

Input

SAPWLACCTP -PERIODTYPE

Time period  (day, week or month)

No

INSTID

Input

SAPWLACCTP -HOSTID

ID of the instance, as in the module SAPWL_ACCNT_GET_ DIRECTORY.

Default: All available instances are transferred (either empty or "*")

If an instance name is transferred to the parameter INSTANCE, the parameter INSTID is deactivated (except where the parameter equals "*")

Yes

INSTANCE

Input

SAPWLACCTD- INSTANCE

Full name of the instance checked (server_<SID>_Instance number)

Default: All available instances are transferred (either empty or "*")

Yes

STARTDATE

Input

SAPWLACCTP -STARTDATE

Start of time period (date of day, date of the Monday in the week, date of the first day of the month)

No

CUMULATON

_MODE

Input

SAPWLACCTP -CUMUL

_MODE

Data is summarized by user name or account.

Default: User name

Yes

CLIENT

Input

SAPWLACCTP -CLIENT

Client for which the data is to be read.

Default: All clients

Yes

USER

_ACCOUNT

_RELATION

Input

USRACCNTV

Table with a user-defined account, different from the current user master record. If the table is empty, the user master record is used (table USR02).

Yes

STATISTIC

Output

SAPWLACCTS

Table with summarized data

No

See also:

SAP Accounting Interface