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: 

EBCDIC codepage conversion with packed fields

Former Member
0 Kudos

I know that I can use the conversion class cl_abap_conv_in_ce to translate a EBCDIC file into the system codepage. Does SAP support the translation of EBCDIC files with packed fields? If so, how do I do it?

1 ACCEPTED SOLUTION

nils_buerckel
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Chris,

cl_abap_conv_in_ce expects character like data (a code page conversion is possible for char-like data only).

see http://help.sap.com/saphelp_nw04/helpdata/en/ba/78d3c747b24546ab1c1499a054d8a5/content.htm

As far as I know, packed fields are NOT char like.

Therefore you have to make sure, that input for the class is only char like (e.g. separate the packed fields ...)

Best regards,

Nils Buerckel

SAP AG

3 REPLIES 3

Former Member
0 Kudos

Anyone?

nils_buerckel
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Chris,

cl_abap_conv_in_ce expects character like data (a code page conversion is possible for char-like data only).

see http://help.sap.com/saphelp_nw04/helpdata/en/ba/78d3c747b24546ab1c1499a054d8a5/content.htm

As far as I know, packed fields are NOT char like.

Therefore you have to make sure, that input for the class is only char like (e.g. separate the packed fields ...)

Best regards,

Nils Buerckel

SAP AG

Former Member
0 Kudos

Hi Chris,

Check this wiki for codepage conversion.

http://wiki.sdn.sap.com/wiki/display/ABAP/Characterencodingconversion

Thanks and regards,

Syfulla