Application Development and Automation 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: 
Read only

Field Symbol Error

Former Member
0 Likes
837

Hello Experts,

                      I am having error saying that " Field Symbol is assigned Yet", even though i have assigned it. Please find the code show below . Please help me regarding this.

CODE:

FIELD-SYMBOLS : <FSDATA> TYPE ANY TABLE ,

               <FSOUT> TYPE ANY TABLE,

                <FSCALC> TYPE ANY.

DATA : gt_data TYPE REF TO DATA.

ASSIGN gt_data->* TO  <FSDATA>.

wd_assist->Z_dispatch_pbo( EXPORTING io_event = io_event

                            IMPORTING lt_data  = <FSDATA> ).

Thanks,

Vishnu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
812

Hello:

Before ASSIGN gt_data->* TO  <FSDATA> you must declare:

CREATE DATA gt_data TYPE STANDARD TABLE OF "Table type".

Best regards.

5 REPLIES 5
Read only

SharathYaralkattimath
Contributor
0 Likes
812

Do sy-subrc Check after ASSIGN,

Read only

RaymondGiuseppi
Active Contributor
0 Likes
812

Where is the CREATE DATA?


Regards,

Raymond

Read only

0 Likes
812

Hi Vishnu,

The data type for the reference variable must be fully typed. Please check the example in the key word documentation for ASSIGN keyword.

Thanks,

Muralikrishnan

Read only

Former Member
0 Likes
813

Hello:

Before ASSIGN gt_data->* TO  <FSDATA> you must declare:

CREATE DATA gt_data TYPE STANDARD TABLE OF "Table type".

Best regards.

Read only

gregorygotera
Explorer
0 Likes
812

Hi

You can check if field symbol is assigned.

IF FIELD_SYMBOL IS ASSIGNED

.....

ENDIF.

Regards

Gregory