We are using "SWNC_STATREC_READ_INSTANCE" BAPI function to get statistical records by user for particular time interval. This is working fine if there is only one application server, but with multiple application servers, it is not fetching records if user performs transactions in different application server.

Please suggest any other way to get records/transactions performed by particular user for particular interval of time from all application servers.

We are executing this function through JCO and did not find the parameter to specify the server name in this BAPI.

1

There are 1 answers

0
Sandra Rossi On BEST ANSWER

The list of application servers can be obtained via the function TH_SERVER_LIST and you may call SWNC_STATREC_READ_INSTANCE once per server, you pass the server name through the parameter target_instance.

The parameter target_instance is available in old ABAP-based systems (7.40 SP 10 and backported to 7.31 SP 15, dixit Note 2088824). If you don't have this parameter, I guess your only solution is to contact SAP people at your company.

NB: SWNC_STATREC_READ_INSTANCE is not BAPI, it's just RFC-enabled.