Hi Experts,
We record the response time of different high critical SAP and Customer programs before and after any SAP release change. We use the workload statistics in transaction STAD and export the data into Excel manually.
We would to automate this process by using Excel VBA Script and download the workload statistics of last day from SAP into Excel.
We found that the function module "SAPWL_STATREC_READ_REMOTE" gives us the best results we need.
Our problem now is that we get an export error before executing/calling the RFC (see trace.txt as a attachment).
My questions:
- How can we define export and import Parameters for this FM?
- And if FM succeeds how to implement the results from import tables in Excel?
Please support us with example of VBA code how to call the FM! The Script ends properly but function call is false!
Notes: In SAP there is no short dumps and no entries in syslog found!
Best Thanks for your suggestion!
See VBA CODE as a attachment