SAP Knowledge Base Article - Preview

3219580 - OTF6 | Runtime Errors ASSIGN_TYPE_CONFLICT

Symptom

Runtime Errors ASSIGN_TYPE_CONFLICT appears in transaction OTF6
Example:

Category               ABAP programming error
Runtime Errors         ASSIGN_TYPE_CONFLICT
ABAP Program           SAPLSVCM
Application Component  BC-CUS-TOL-TME
Date and Time          30.06.2022 12:49:10

 Short Text
     Type conflict in ASSIGN in program "SAPLSVCM".

 What happened?
     Error in the ABAP application program.

     The current ABAP program "SAPLSVCM" had to be terminated because it found a
     statement that could not be executed.

 Error analysis
     An attempt was made to assign a field to a typed field symbol, but the
     field does not have the required type.

 Trigger Location of Runtime Error
     Program                                 SAPLSVCM
     Include                                 LSVCMU02
     Row                                     35
     Module Type                             (FUNCTION)
     Module Name                             VIEWCLUSTER_DELETE_DEPENDENT

 Source Code Extract

 Line  SourceCde

     5 *"             VALUE(VIEW_NAME) LIKE  DD02V-TABNAME
     6 *"             VALUE(STATUS_MODE)
     7 *"             VALUE(WORKAREA)
     8 *"             VALUE(NO_DIALOG) DEFAULT ' '
     9 *"       EXPORTING
    10 *"             VALUE(IGN_ENTRIES_EXIST)
    11 *"----------------------------------------------------------------------
    12
    13 FIELD-SYMBOLS: <HEADER> TYPE VCL_HEADER_TYPE,
    14                <NAMTAB> TYPE VCL_NAMTAB_TYPE,
    15                <DBASELLIST> TYPE VCL_SELLIST_TYPE,
    16                <DPLSELLIST> TYPE VCL_SELLIST_TYPE,
    17                <INDEXTAB> TYPE INDEXTAB_TYPE,
    18                <TOTAL> TYPE TABLE,
    19                <EXTRACT> TYPE TABLE.
    20
    21 DATA: TABNAME TYPE VCL_TABLE_NAME,
    22       STRUC_TAB_WA LIKE VCL_STRUC_TAB,
    23       POSITION LIKE SY-TABIX.
    24 DATA: align type f, TMP_WA TYPE VCL_LINE_UL.
    25
    26   CLEAR IGN_ENTRIES_EXIST.
    27
    28   IF VCLDIR_ENTRY-HIEROPSOFF = 'X'.  " Hierarch. Löschen abgeschaltet
    29     EXIT.
    30   ENDIF.
    31
    32   READ TABLE VCL_STRUC_TAB
    33              WITH KEY OBJECT = VIEW_NAME INTO STRUC_TAB_WA.
    34   POSITION = STRUC_TAB_WA-OBJPOS.
 >>>>>   ASSIGN COMPONENT POSITION OF STRUCTURE VCL_CLUSTER_HEADER TO <HEADER>.
    36   ASSIGN COMPONENT POSITION OF STRUCTURE VCL_CLUSTER_NAMTAB TO <NAMTAB>.
    37   ASSIGN COMPONENT POSITION OF STRUCTURE VCL_CLUSTER_DBASELLIST


Read more...

Environment

This KBA applies to all SAP Products based on NetWeaver and S4H

Keywords

View cluster VC_TGAR2
V_TGAV Define Freight Code Set
V_TGAR2 Define and Assign Freight Class
V_TGAF Freight Code Determination , KBA , BC-CUS-TOL-TME , View Maintenance Tool , 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.