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

Error : fieldsymbol not compatible with internal table

Former Member
0 Likes
1,180

Hi all,

I am doing a select on z table and moving it to internal table t_final.

now i want to delete t_final - duplicates.. so before deleting i want to move ti to another internal tablw with same structure.

so i declared it as t_final1[] = t_final[]

now when i try to loop at t_final1 assigning <fs_final> ehihc is of type z table...

i am getting an error her as The line type of the table "T_FINAL1" is not compatible with field symbol type "<FS_FINAL>".

Please help on how to proceed.

Thanks,

Poonam

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
840

Can u write the declaration of Field symbol as well as the table? Also the loop statement u r using...

Can u write the declaration of Field symbol as well as the table? Also the loop statement u r using...

5 REPLIES 5
Read only

Former Member
0 Likes
841

Can u write the declaration of Field symbol as well as the table? Also the loop statement u r using...

Read only

0 Likes
840

<fs_final> TYPE zgd_sd_t_billdat,

IF NOT t_final[] IS INITIAL.

SORT t_final BY icoso icosoitm.

t_final1[] = t_final[].

DELETE ADJACENT DUPLICATES FROM t_final.

IF NOT t_billno[] IS INITIAL.

LOOP AT t_final1 ASSIGNING <fs_final>.

READ TABLE t_billno ASSIGNING <fs_billno>

WITH KEY vgbel = <fs_final>-icoso

vgpos = <fs_final>-icosoitm BINARY SEARCH.

IF sy-subrc = 0.

<fs_final>-icobillno = <fs_billno>-vbeln.

<fs_final>-icobillitem = <fs_billno>-posnr.

lv_lines = lv_lines + 1.

ENDIF.

ENDLOOP.

Read only

0 Likes
840

Hi,

Check the structures of t_final1 and <fs_final> which may be different.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
840

I think you should read Rob's thread on how to ask an effective question.

If you provide half information, you wont get effective solution. Anyways is the table T_FINAL1 defined as a table of structure zgd_sd_t_billdat ? I am sure it is not hence the issue.

BR,

Suhas

Read only

0 Likes
840

thnks... hence forth effective questions!!!!