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

How to know character's binary format?

Former Member
0 Likes
1,312

Dear gurus,

if i have string 'ABCDE', how to know its binary byte format?

Thanks a lot

Dear gurus,

if i have string 'ABCDE', how to know its binary byte format?

Thanks a lot

7 REPLIES 7
Read only

Former Member
0 Likes
1,170

any body help it?

Read only

0 Likes
1,170

SCMS_FTEXT_TO_BINARY may be try this by clicking on where used list

Read only

0 Likes
1,170

SCMS_XSTRING_TO_BINARY seems to be a useful one...

Read only

Former Member
0 Likes
1,170

hi..

you can use this FM "SCMS_XSTRING_TO_BINARY".

regards

Lokesh

Read only

Former Member
0 Likes
1,170

Hi Donghai Liang,

check out below FMs..

SCMS_FTEXT_TO_BINARY

SCMS_TEXT_TO_BINARY

SCMS_XSTRING_TO_BINARY

RSPO_SR_TABLE_WRITE_BINARY

RSPO_SR_WRITE_BINARY

SRET_TEXT_TO_BINARY

Hope it will solve your problem..

Thanks & Regards

ilesh 24x7

Read only

0 Likes
1,170

Could any guru give me real detailed sample for the string "abcde"

Thanks a lot

Read only

Former Member
0 Likes
1,170

Hi,

Check this sample code:

DATA: 
    filesize TYPE i,
     org_xml TYPE xstring.

  DATA : 
    BEGIN OF itab OCCURS 0,
      line TYPE x LENGTH 255,
    END OF itab.

    org_xml = 'ABCDE'.

  CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
    EXPORTING
      buffer        = org_xml
    IMPORTING
      output_length = filesize
    TABLES
      binary_tab    = itab.

      WRITE: SY-SUBRC.

check itab.

Regards

Adil