‎2011 Oct 19 10:27 AM
HI,
if a user is in CHINA, their setting is set to CHINESE then the error comes from the function module...SAP_WAPI_WORKITEM_COMPLETE.
But if the same user logs in with English as language he does not get any error.
The place from where I am getting teh below error is from function module SAP_WAPI_RESERVE_WORKITEM which gets called in SAP_WAPI_WORKITEM_COMPLETE.
IF return_code = 0.
*- note 860823: check agent
IF lv_wi_handle->m_sww_wihead-wi_type = swfco_wi_normal.
CALL METHOD cl_swf_run_wim_agt_org_check=>get_instance
EXPORTING
im_wi_handle = lv_wi_handle
im_check_org_restriction = 'X'
im_inbox_user = actual_agent
RECEIVING
re_object = lh_object.
l_inbox_agent = lh_object->is_inbox_user( ).
IF l_inbox_agent NE 'X'.
return_code = 1.
CLEAR ls_t100msg.
ls_t100msg-msgid = 'SWR'.
ls_t100msg-msgno = 226.
ls_t100msg-msgty = 'E'.
RAISE EXCEPTION TYPE cx_wapi_exception
EXPORTING
t100_msg = ls_t100msg.
ENDIF.
Please let me know if some standard roles are missing or some authorisations.
‎2011 Oct 19 2:19 PM
Hi there,
The function module "SAP_WAPI_WORKITEM_COMPLETE" has status 'Not released'.
The release status is visible in the Attributes tab in SE37.
According to the note
415983 Modification/customer developments of SAP function
109533 Use of SAP function modules
Attributes. Some of the reasons why internally released Function
modules are not documented are as follows;
- too much overhead
- internally released function modules are often changed and updated
- are designed for specific purposes by the relevant Application
Developers etc.
SAP does not support problems that occur if the customer used non-released function modules.
Many thanks,
Mohammed Hussain.