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

Unicode Errors

Former Member
0 Likes
577

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

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
544

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

4 REPLIES 4
Read only

arindam_m
Active Contributor
0 Likes
544

Hi,

Check the datatype of TEXTPOOL. it cannot be a complex structure it has to be a single character field.

Cheers,

Arindam

Read only

Former Member
0 Likes
544

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

Read only

arindam_m
Active Contributor
0 Likes
544

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

Read only

RaymondGiuseppi
Active Contributor
0 Likes
545

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