on 2018 Sep 26 9:54 PM
Hi Experts,
I am getting below error while accessing instance method get_crequest_step of class CL_USMD_WF_SERVICE.
Please find below my code and error.
DATA: g_cl TYPE REF TO cl_usmd_wf_service.
CREATE OBJECT g_cl.
SELECT * FROM usmd120c INTO TABLE lt_sla WHERE usmd_data_active NE 'X' AND usmd_creq_status NE '06'.
LOOP AT lt_sla INTO wa_sla.
CLEAR : lv_crequest.
lv_crequest = wa_sla-usmd_crequest.
CALL METHOD g_cl->get_crequest_step
EXPORTING
id_crequest = wa_sla-usmd_crequest
IMPORTING
ed_step = lv_step.
ENDLOOP.
ERROR.
An instance of the class "CL_USMD_WF_SERVICE" cannot be created outside the class. .
Request clarification before answering.
since this class dont have contructor method you cant creat object as usual, you should create class like this:
g_cl = cl_usmd_wf_service=>get_instance( ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
41 | |
15 | |
10 | |
9 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.