Skip to Content
0
Former Member
Nov 13, 2019 at 03:47 AM

how to handle this error: ASSIGN_BASE_WRONG_ALIGNMENT

1010 Views Last edit Nov 13, 2019 at 03:50 AM 2 rev

Hi, sap pros, In table maintenance source code Include LSVIMF44 line 14, I tried writing the same code as it in view cluster event 03, but above error occurs:

DATA: L_VIEWNAME TYPE C LENGTH 20.
DATA: LS_IT TYPE YVIT_FOOD,
 LT_IT TYPE TABLE OF YVIT_FOOD,
 LS_TJ TYPE YTTJ_FOOD.
DATA: eflag type vcl_flag_type.
FIELD-SYMBOLS: <FS_IT> TYPE ANY,
 <FS_IT_TEMP> TYPE ANY,
 <FS_IT_STRUC> TYPE ANY.
L_VIEWNAME = 'YVIT_FOOD'.
PERFORM VCL_SET_TABLE_ACCESS_FOR_OBJ USING 'YVIT_FOOD' CHANGING EFLAG.
APPEND INITIAL LINE TO <VCL_TOTAL> ASSIGNING <FS_IT>.
ASSIGN: <FS_IT> TO <FS_IT_TEMP> CASTING TYPE c.
ASSIGN <FS_IT> TO <FS_IT_STRUC> CASTING TYPE (L_VIEWNAME).  "-------------->>>>error line