Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

FM DATA NOT DISPLAY

Former Member
0 Likes
481

DEAR ALL,

I AM USING BELOW MENTIONED FM WITH PARAMETER PERIODTYPE AND STARTDATE. BUT DATA IS NOT DISPLAY.

PLEASE EXPLAIN.

SAPWL_WORKLOAD_GET_STATISTIC

THANKS

NARENDRA JINGER

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
417

Hi narendrajinger ,

The possible issue could be values you are passing in the parameters, Just follow the below code, Hope this resolves your issue.


PARAMETER: month TYPE dats DEFAULT sy-datum.

DATA: t_usertcode  TYPE STANDARD TABLE OF sapwlustcx,
      wa_usertcode TYPE sapwlustcx.


CALL FUNCTION 'SAPWL_WORKLOAD_GET_STATISTIC'
    EXPORTING
      periodtype            = 'M'
      startdate             = month
      instance              = 'TOTAL '
    TABLES
      application_statistic = t_usertcode
    EXCEPTIONS
      unknown_periodtype    = 1
      no_data_found         = 2
      no_server_given       = 3
      OTHERS                = 4.

Thanks

Saurabh

1 REPLY 1
Read only

Former Member
0 Likes
418

Hi narendrajinger ,

The possible issue could be values you are passing in the parameters, Just follow the below code, Hope this resolves your issue.


PARAMETER: month TYPE dats DEFAULT sy-datum.

DATA: t_usertcode  TYPE STANDARD TABLE OF sapwlustcx,
      wa_usertcode TYPE sapwlustcx.


CALL FUNCTION 'SAPWL_WORKLOAD_GET_STATISTIC'
    EXPORTING
      periodtype            = 'M'
      startdate             = month
      instance              = 'TOTAL '
    TABLES
      application_statistic = t_usertcode
    EXCEPTIONS
      unknown_periodtype    = 1
      no_data_found         = 2
      no_server_given       = 3
      OTHERS                = 4.

Thanks

Saurabh