Hello Folks,
I am working in SAP FPM (WDP/FPM). As suggested by I have declared the field symbol of type standard table. Still dump or run time error.
In my application, CS_DATA is dynamically changing the structure. Every time different structure is loading. cs_data is of type DATA.
My code:
FIELD-SYMBOLS: <ls_data> TYPE standard table,
<ls_data_title> TYPE any,
<LFS_value> type any.
IF NOT cs_data IS INITIAL.
ASSIGN cs_data->* TO <ls_data>.
IF <ls_data> IS ASSIGNED.
ASSIGN COMPONENT 'TITLE' OF STRUCTURE <ls_data> TO <ls_data_title>.
IF <ls_data_title> IS ASSIGNED AND <ls_data_title> IS NOT INITIAL.
ASSIGN COMPONENT 'ZZEHSM_NEW_NR' OF STRUCTURE <ls_data> TO <LFS_value>.
IF <LFS_value> IS ASSIGNED.
MOVE '2016-06-0001' to <LFS_value>.
ENDIF.
ENDIF.
UNASSIGN: <ls_data_title>, <LFS_value>.
ENDIF.
.
Dump is at statement: ASSIGN cs_data->* TO <ls_data>.
Can you please suggest.
Thanks,
Yerukala Setty