2606861 - Workflow Jobs such as SWWRUNCNT or SAP_WORKFLOW_SWWRUNCNT cancelled with “RAISE_EXCEPTION” dumps | SAP Knowledge Base Article

SAP Knowledge Base Article - Preview

2606861 - Workflow Jobs such as SWWRUNCNT or SAP_WORKFLOW_SWWRUNCNT cancelled with “RAISE_EXCEPTION” dumps

Symptom

  •  Workflow jobs such as SWWRUNCNT or SAP_WORKFLOW_SWWRUNCNT, SWWDHEX or SAP_WORKFLOW_DEADLINE are cancelled.
  • “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

    5         CALL METHOD me->_save( ).
    6       CATCH cx_swf_run_wim_cnt_persist INTO lh_excp. 
>>>>>         MESSAGE ID lh_excp->t100_msg-msgid  
    8                 TYPE 'X' 
    9                 NUMBER lh_excp->t100_msg-msgno 
   10                 WITH lh_excp->t100_msg-msgv1 me->m_sww_wihead-wfd_id
   11                      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 workfow template may be different in your case.

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

    46   *     create new descr object  
    47       case_kind_all admin_tab_line-kind admin_tab_line-xtype.
    48         when others.                 
    49 *         all others are erros 
 >>>>>           raise type_not_found. 
    51       endcase. 

Read more...

Environment

  • SAP Business Workflow
  • SAP NetWeaver
  • SAP Basis Release 750 and above

Product

SAP NetWeaver 7.5

Keywords

SWF_WORKFLOW, WFMSTD, E2503,BAPIRET2_T, BAPIRET2_TAB, RSWWRUNCNT, RSWWDHEX , 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 ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.