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

Syntax error while checking unicode to upgrade version.

Former Member
0 Likes
431

Hi All,

I got a syntax error while upgrading the version from 4.6 to ECC6.0.

The Error is "The line type of <b>"TAB_TEXT" must be compatible with one of the types "TEXTPOOL".</b>

The code follows.

DATA: BEGIN OF TAB_TEXT OCCURS 500,

LANGU LIKE T002-SPRAS.

INCLUDE STRUCTURE TEXTPOOL. "=ID, KEY, ENTRY, LENGTH

DATA: END OF TAB_TEXT.

FORM READ_SAP_TEXT_ELEMENTS_OLD TABLES TAB_TEXT STRUCTURE

TAB_TEXT

USING R_NAME

CHANGING R_TITLE R_SUBTXT R_COLTXT R_SELTXT

R_SYMTXT.

READ TEXTPOOL R_NAME INTO TAB_TEXT

LANGUAGE P_LANGU.

The Error is coming at READ TEXTPOOL.

Can anybody please help me..

Thanks,

Naveen.

3 REPLIES 3
Read only

Former Member
0 Likes
401

hI NAVEEN.,

Problem with your itab.

take itab as follows:

<b>DATA: BEGIN OF TAB_TEXT OCCURS 500,

id(1) type c,

key(8) type c,

entry(255) type c,

length type i,

END OF TAB_TEXT</b>

or..

u can take::

<b>DATA: TAB_TEXT type standard table of textpool with header line.</b>

Message was edited by:

Rammohan Nagam

Read only

0 Likes
401

Hi Mohan,

Thanks for reply.

U mean to say instead of including the structure just take the fields into itab??

I did like that.But i am getting the same error.

Thanks,

Naveen.

Read only

0 Likes
401

Hi Naveen,

it is working fine with me. try once again..

DATA: BEGIN OF TAB_TEXT OCCURS 500,

id(1) type c,

key(8) type c,

entry(255) type c,

length type i,

END OF TAB_TEXT

or..

u can take::

<b>DATA: TAB_TEXT type standard table of textpool with header line.</b>