‎2007 Apr 06 10:51 AM
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.
‎2007 Apr 06 10:56 AM
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
‎2007 Apr 06 11:06 AM
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.
‎2007 Apr 06 11:40 AM
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>