on 09-20-2010 7:06 AM
I m modifiying the smartform which was develped in 4.6 by copying in ECC version, I have the below error in one of the program line node which was created under the main window., Please sugest me
FIELD-SYMBOLS: <ls_table>.
ASSIGN LOCAL COPY OF INITIAL LINE OF <it_pos> TO <ls_table>.
error: Field Symbol is not defined as a local field symbol
Try below code:-
DATA g_dobj TYPE i.
DATA dref TYPE REF TO data.
FIELD-SYMBOLS <l_dobj> TYPE ANY.
CREATE DATA dref LIKE g_dobj.
ASSIGN dref->* TO <l_dobj>.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
FIELD-SYMBOLS: <ls_table>. " Should be declared inside a subroutine.
Actually ASSIGN LOCAL COPY statement is obsolete.
Instead you can use CREATE DATA statement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.