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: 

Compress String in ABAP from CHAR10 to CHAR6...

rishabh_gupta
Explorer
0 Kudos

Hi,

I need to convert a CHAR10 string field to a CHAR6 string field.

Does anyone know how to perform this compression so that the CHAR6 field can also be uniquely decompressed back to the

CHAR10 field.

Any help on this is welcome...:)

Regards,

Rishabh Gupta

4 REPLIES 4

Former Member
0 Kudos

hii,

you have to use the conversion routine..

ths is in the domain of the data element..

reward points if helpful.

thanks...

0 Kudos

Hi Mainak,

Thanks for the quick reply.

Can you please explain how the domain can be used?

I have a 10 character string and I have to store it in a table field which is of length 6 characters.

Regards,

Rishabh

0 Kudos

hii..

go to the domain of the data element.. there you will find a defination attribute.

there you can specify the input length and and output lenght.

there you specify the conversion routine as alpha.

try it hopefully it will help.

reward if helpful.

Former Member
0 Kudos

use FM

CONVERSION_EXIT_ALPHA_output

and CONVERSION_EXIT_ALPHA_input

to get the desired output.

Award points if it helps