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 Error for TYPE x

Former Member
0 Likes
581

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
Read only

Former Member
0 Likes
524

try this:

NULL TYPE C VALUE SPACE

Thanks,

SKJ

Read only

Former Member
0 Likes
524

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

Read only

Former Member
0 Likes
524

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