Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to Assign Feild Symbol to the Internal Table

atslokesh
Explorer
0 Kudos

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>
2 REPLIES 2

FredericGirod
Active Contributor

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. 

Sandra_Rossi
Active Contributor
0 Kudos

You must declare the field symbols before using them (FIELD-SYMBOLS <...> ...), or declare them through "Inline Declaration" (FIELD-SYMBOL(<...>)), as Frederic explained.