2013 May 15 10:18 AM
Hi All,
I am doing UCCHECK for the programs.
And facing an error and not able to resolve.
I searched in SDN and also tried my own but no luck.
in one program they written statement as:
DESCRIBE FIELD T_TEXTPOOL LENGTH W_BIN_WIDTH in CHARACTER MODE.
But the t_textpool is declared like ..
T_TEXTPOOL LIKE TEXTPOOL OCCURS 0 WITH HEADER LINE
W_BIN_WIDTH is declared as type I.And
now the error is coming as "T_TEXTPOOL" must be a character-type field (data type C, N, D or T).
can any one help on this...
Regards
Raj
2013 May 15 12:31 PM
Are you sure of your requirement ?
DESCRIBE FIELD T_TEXTPOOL LENGTH W_BIN_WIDTH in CHARACTER MODE.
The field name suggests BYTE MODE, what usage is intended with the result value ?
Anyway, SAP won't allow you to get a CHARACTER MODE length as TEXTPOOL contain a trailing field of type INTEGER. (Ref: DESCRIBE FIELD)
When using IN CHARACTER MODE, the data type of dobj must be flat and character-like.
Regards,
Raymond
2013 May 15 11:36 AM
Hi,
Check the datatype of TEXTPOOL. it cannot be a complex structure it has to be a single character field.
Cheers,
Arindam
2013 May 15 12:00 PM
Hi ,
Textpool is a standard database structure having fields like shown.
ID TEXTPOOLID CHAR 1 0
KEY TEXTPOOLKY CHAR 8 0
ENTRY TEXTPOOLTX CHAR 255 0
LENGTH TEXTPOOLLN INT4 10 0
Then how i need to solve this error.
Regards
Raj
2013 May 15 12:43 PM
Hi,
In UNICODE systems the CHARACTER MODE is used for structures where all fields are character. You have to use the IN BYTE MODE as you have INT4 Field type in structure. Prior to UNICODE i.e. until 4.6C mode specification is not given and default is IN BYTE MODE.
Cheers,
Arindam
2013 May 15 12:31 PM
Are you sure of your requirement ?
DESCRIBE FIELD T_TEXTPOOL LENGTH W_BIN_WIDTH in CHARACTER MODE.
The field name suggests BYTE MODE, what usage is intended with the result value ?
Anyway, SAP won't allow you to get a CHARACTER MODE length as TEXTPOOL contain a trailing field of type INTEGER. (Ref: DESCRIBE FIELD)
When using IN CHARACTER MODE, the data type of dobj must be flat and character-like.
Regards,
Raymond