Skip to Content
author's profile photo Former Member
Former Member

Function Module

Which FM is used to convert HEX format to char?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

11 Answers

  • Best Answer
    Posted on Jul 25, 2008 at 10:06 AM

    Hi

    NLS_STRING_CONVERT_TO_SYS (hex to char)

    NLS_SRING_CONVERT_FROM_SYS (char to hex)

    regards

    Pavan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2008 at 10:07 AM

    Hi,

    Try,

    STPU1_HEX_TO_CHAR

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 25, 2008 at 10:08 AM

    Sourabh,

    try with:

    AIN_EPC_HEX_TO_CHAR            Convert Hex EPC to Char EPC  
                                                 
    STPU1_HEX_TO_CHAR

    Amit.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2008 at 10:08 AM

    Hi

    For converting the Hex format to Char you acn use FM

    NLS_STRING_CONVERT_TO_SYS

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2008 at 10:08 AM

    data: hex_str(3) type X,

    c_str(10) type C.

    CALL FUNCTION 'STPU1_HEX_TO_CHAR'

    EXPORTING

    HEX_STRING = hex_str

    IMPORTING

    CHAR_STRING = c_str

    .

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2008 at 10:10 AM

    This message was moderated.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2008 at 10:21 AM

    HI Sourabh ,,

    NLS_STRING_CONVERT_TO_SYS (hex to char)

    The following FM is used to convert from character to any datatype

    CONVERT_FROM_CHAR_SORT_RFW.

    Regards,

    Sreekar.Kadiri

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2008 at 12:36 PM

    In this function module it converts the Hex Value to the corresponding character,represented by it,

    CALL FUNCTION 'HR_RU_CONVERT_HEX_TO_STRING'

    EXPORTING

    XSTRING = L_TEMP

    IMPORTING

    CSTRING = L_OUT.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 25, 2008 at 12:43 PM

    Hi,

    The class CL_ABAP_CONV_IN_CE converts the Hexadecimal value to Character.

    Check this threads:

    hex-to-char-conversion

    hex-to-char

    Regards

    Adil

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2008 at 12:47 PM

    Hi

    try this function module :

    'STPU1_HEX_TO_CHAR'

    With Regards

    Nikunj Shah

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.