Application Development 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: 

Unicode Error for TYPE x

Former Member
0 Kudos
108

Hi,

I am getting error ""T_NULL_AND_SPACE" must be a character-type data object (data type C, N, D, T or STRING)." for the below code in Unicode system:

DATA: BEGIN OF T_NULL_AND_SPACE,

NULL TYPE X,

LEN TYPE C,

END OF T_NULL_AND_SPACE.

DATA: LS_WLP TYPE SAPWLPFNRM.

TRANSLATE: LS_WLP-TCODE USING T_NULL_AND_SPACE.

How to replace TYPE x in this scenario to solve the issue?

Regards,

Yogita

3 REPLIES 3

Former Member
0 Kudos
51

try this:

NULL TYPE C VALUE SPACE

Thanks,

SKJ

Former Member
0 Kudos
51

Try like this :

Field-Symbols <f_Hex> type x.

Data: w_Char type c.

Move 'A' to w_Char.

Assign w_Char to <f_Hex> casting.

Break-point.

Thanks

Seshu

Former Member
0 Kudos
51

manually look at the code and see if there are any commands specified in the UNICODE COOKBOOK for ABAP used in the program.

Check the below links :

/people/thomas.mann2/blog/2006/08/22/sap-upgrade-conflicts-1

Thanks