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

Former Member
0 Kudos

Hi All,

As part of my Unicode upgrade in old versons the program is as follows.

data:ipad       LIKE pad27.
data:A1001 LIKE  P1001.

ipad = a1001-adata.

the above code is throwing unicode error.

Can any one help me to resolve this problem.

regards

Krishna

4 REPLIES 4

Former Member
0 Kudos

Hi

do like this and see

data:ipad type pad27.

data:A1001 type P1001.

ipad = a1001-adata.

Regards

Anji

Former Member
0 Kudos

Use TYPE instead of LIKE

0 Kudos

Hi All

I am sorry to say that i got answer for this Issue.

Use the following function modules

CALL METHOD cl_hr_adata_type_cast=>padnn_to_adata

EXPORTING

padnn =

  • IMPORTING

  • ADATA = .

CALL METHOD cl_hr_adata_type_cast=>adata_to_padnn

EXPORTING

adata =

  • IMPORTING

  • PADNN =

.

former_member386202
Active Contributor
0 Kudos

Hi,

Dont use LIKE instead of that use TYPE data element

data:ipad type pad27.

data: adata type adata.

ipad = a1001-adata.

Regards,

PRashant