Skip to Content
0
Former Member
Aug 07, 2012 at 10:47 AM

"IT_FIELD" is not type-compatible with formal parameter "DATA_TAB".

4896 Views

Currently upgrading the system from 4.6 to ecc 6.0 .

i am getting the error "IT_FIELD" is not type-compatible with formal parameter "DATA_TAB". when i try to remove the obsolete FM WS_DOWNLOAD.

Using CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD

This was is written in code

* Display the structure of file for input

LOOP AT it_dynpro.

IF it_dynpro-fsetyp = 'E'.

WRITE:/ text-019.

ENDIF.

IF it_dynpro-fsetyp = 'Q'.

CONCATENATE it_dynpro-sefeld '01' INTO it_dynpro-sefeld.

ENDIF.

WRITE:/ it_dynpro-sefeld, '-->',it_dynpro-intlen,

AT 50 it_dynpro-text.

MOVE it_dynpro-sefeld TO it_field.

APPEND it_field.

ENDLOOP.

structure of it field is as follows

CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD

EXPORTING

filename = lv_filename

filetype = 'DAT'

CHANGING

data_tab = it_field

fieldnames = it_field

Any solution to the problem .

Thanks