2023 Mar 10 4:20 AM
While creating a field symbol to the Internal Table, I'm getting this error, Please guide me
READ TABLE it_ptr_mail1 ASSIGNING <fs_ptr_mai> WITH KEY pid = <fs_ptr_bal>-pid BINARY SEARCH. <br> IF sy-subrc = 0.<br> w_final_bal-mail_id = <fs_ptr_mai>-emailid.<br> ENDIF.<br>
2023 Mar 10 6:33 AM
you have forgot:
Field-Symbols <fs_ptr_mai> Type ANY.
or
READ TABLE it_ptr_mail1 ASSIGNING field-symbol(<fs_ptr_mai>) WITH KEY pid = <fs_ptr_bal>-pid BINARY SEARCH.
2023 Mar 10 6:01 PM
You must declare the field symbols before using them (FIELD-SYMBOLS <...> ...), or declare them through "Inline Declaration" (FIELD-SYMBOL(<...>)), as Frederic explained.