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: 

how to convert to char132 to raw 255

ayyappan_venugopal2
Participant
0 Kudos

Hi experts,

please tell me anyone how to convert the  contents of char132 data type  to raw 255 data type .

8 REPLIES 8

Former Member
0 Kudos

Check the Function module

SCMS_TEXT_TO_BINARY

0 Kudos

Thank you...

Former Member
0 Kudos

Hi

Pls check below FM.

BANK_API_PP_UT_CHAR16_TO_RAW16

Thanks,

Chandra

0 Kudos

Thank you

gaurab_banerji
Active Participant
0 Kudos

You can enter the data in the i_input table and get the result in i_output    

     CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'

       EXPORTING

         line_width_src              = 134

         line_width_dst              = 255

       TABLES

         content_in                  = i_input

         content_out                 = l_output

       EXCEPTIONS

         err_line_width_src_too_long = 1

         err_line_width_dst_too_long = 2

         err_conv_failed             = 3

         OTHERS                      = 4.

     IF sy-subrc NE 0.

       MESSAGE s000(0k) WITH 'Conversion Failed'.

       EXIT.

     ENDIF.

0 Kudos

Thank you

0 Kudos

Which is the correct answer mark it and close this thread

Regards,

Karthik.R

raymond_giuseppi
Active Contributor
0 Kudos

If you are in an Unicode system, check utilitiy class CL_ABAP_CONV_OUT_CE. Read also Classes for Converting Character Sets and Number Formats and class documentation.

Small sample at Code Page in ICF

Regards,

Raymond