Symptom
- Workflow jobs such as SWWRUNCNT or SAP_WORKFLOW_SWWRUNCNT, SWWDHEX or SAP_WORKFLOW_DEADLINE are canceled.
- “RAISE_EXCEPTION” dumps with exception condition "TYPE_NOT_FOUND" found in ST22.
- “MESSAGE_TYPE_X” on program “CL_SWF_RUN_WIM_LOCAL==========CP” occurs when workflow is started.
- The behavior started from DB migration or system copy.
- The RAISE_EXCEPTION dumps looks like the following
|
Category |
ABAP Programming Error |
|
Runtime Errors |
RAISE_EXCEPTION |
|
ABAP Program |
CL_SWF_CNT_TYPE_SERVICES======CP |
|
Application Component |
BC-BMT-WFM |
|
Short text |
|
Exception condition "TYPE_NOT_FOUND" triggered |
|
How to correct the error |
|
"RAISE_EXCEPTION" |
|
"CL_ABAP_TYPEDESCR=============CP" bzw. CL_ABAP_TYPEDESCR=============CM002 |
|
"DESCRIBE_BY_NAME" |
|
"CL_ABAP_TYPEDESCR=============CP" TYPE_NOT_FOUND |
|
"RSWWRUNCNT" "TYPE_NOT_FOUND" |
|
Source Code Extract |
| CALL METHOD me->_save( ). |
| CATCH cx_swf_run_wim_cnt_persist INTO lh_excp. |
| >>>>> MESSAGE ID lh_excp->t100_msg-msgid |
| TYPE 'X' |
| NUMBER lh_excp->t100_msg-msgno |
| WITH lh_excp->t100_msg-msgv1 me->m_sww_wihead-wfd_id |
| lh_excp->t100_msg-msgv3 lh_excp->t100_msg-msgv4. |
- The MESSAGE_TYPE_X dumps looks like the following. In this example the affected data type is ‘ZAGENT’. This type and workflow template may differ in different cases.
|
Category |
ABAP Programming Error |
|
Runtime Errors |
MESSAGE_TYPE_X |
|
ABAP Program |
CL_SWF_RUN_WIM_LOCAL==========CP |
|
Application Component |
BC-BMT-WFM |
| Short text |
| The current application has triggered a termination with a short dump. |
| Error analysis |
| Short text of the error message: |
| Data type ZAGENT does not exist or is not active |
| Long text of the error message: |
| Technical information about the message: |
| Message class....... WF_CONT |
| Number.............. 052 |
| Variable 1.......... ZAGENT |
| Variable 2.......... WS91000015 |
| How to correct the error |
| "MESSAGE_TYPE_X" |
| "CL_SWF_RUN_WIM_LOCAL==========CP" bzw. CL_SWF_RUN_WIM_LOCAL==========CM051 |
| "IF_SWF_RUN_WIM_PERS_INTERNAL~SAVE" |
|
Source Code Extract |
| * create new descr object |
| case_kind_all admin_tab_line-kind admin_tab_line-xtype. |
| when others. |
| * all others are erros |
| >>>>> raise type_not_found. |
| endcase. |
- The CREATE_DATA_UNKNOWN_TYPE dumps are like the following. In this example field type specified is "/SAPWF/SWF_CNT_MAPPING_TAB__00". It may differ in different cases.
| Category ABAP programming error Runtime Errors CREATE_DATA_UNKNOWN_TYPE Except. CX_SY_CREATE_DATA_ERROR ABAP Program CL_SWF_CNT_STRUCTURE_SERVICE==CP Application Component BC-BMT-WFM |
| Short Text |
| CREATE DATA: The specified type ("/SAPWF/SWF_CNT_MAPPING_TAB__00") is not a |
| valid data type. |
| What happened? |
| Error in the ABAP application program. |
| The current ABAP program "CL_SWF_CNT_STRUCTURE_SERVICE==CP" had to be |
| terminated because it found a statement that could not be executed. |
| How to correct the error |
| "CREATE_DATA_UNKNOWN_TYPE" CX_SY_CREATE_DATA_ERROR |
| "CL_SWF_CNT_STRUCTURE_SERVICE==CP" bzw. CL_SWF_CNT_STRUCTURE_SERVICE==CM006 |
| "CREATE_DATA_BOR_VALUE_TAB" |
| Source Code Extract |
| IF im_element-props O swfcn_p_linetype. |
| CREATE DATA ex_data TYPE STANDARD TABLE OF (l_local_typename). |
| ELSE. |
| >>>>> CREATE DATA ex_data TYPE (l_local_typename). |
| ENDIF. |
Read more...
Environment
- SAP Business Workflow
- SAP NetWeaver
- SAP Basis Release 750 and above
- SAP Web Application Server for SAP S/4 HANA
Product
Keywords
SWF_WORKFLOW, WF_GDPR, E2503,BAPIRET2_T, BAPIRET2_TAB, RSWWRUNCNT, RSWWDHEX, SWF_CNT_STR_EDIT, SWF_CNT_STR_GEN, IM_ORIG_TYPENAME, IM_LOCAL_TYPENAME , KBA , BC-BMT-WFM , Business Workflow , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview