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

Function Module

Former Member
0 Likes
1,444

Which FM is used to convert HEX format to char?

1 ACCEPTED SOLUTION
Read only

bpawanchand
Active Contributor
0 Likes
1,228

Hi

NLS_STRING_CONVERT_TO_SYS (hex to char)

NLS_SRING_CONVERT_FROM_SYS (char to hex)

regards

Pavan

11 REPLIES 11
Read only

bpawanchand
Active Contributor
0 Likes
1,229

Hi

NLS_STRING_CONVERT_TO_SYS (hex to char)

NLS_SRING_CONVERT_FROM_SYS (char to hex)

regards

Pavan

Read only

Former Member
0 Likes
1,228

Hi,

Try,

STPU1_HEX_TO_CHAR

Read only

Former Member
0 Likes
1,228

Sourabh,

try with:

AIN_EPC_HEX_TO_CHAR            Convert Hex EPC to Char EPC  
                                             
STPU1_HEX_TO_CHAR

Amit.

Read only

Former Member
0 Likes
1,228

Hi

For converting the Hex format to Char you acn use FM

NLS_STRING_CONVERT_TO_SYS

Read only

Former Member
0 Likes
1,228

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

.

Read only

Former Member
0 Likes
1,228

This message was moderated.

Read only

Former Member
0 Likes
1,228

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

Read only

Former Member
0 Likes
1,228

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.

Read only

Former Member
0 Likes
1,228

Hi,

The class CL_ABAP_CONV_IN_CE converts the Hexadecimal value to Character.

Check this threads:

Regards

Adil

Read only

Former Member
0 Likes
1,228

Hi

try this function module :

'STPU1_HEX_TO_CHAR'

With Regards

Nikunj Shah

Read only

Former Member
0 Likes
1,228

Hi Sourabh.

I would like to suggest a few,

CHAR_HEX_CONVERSION

SSM_REPLACE_CHAR_BY_HEX_VALUE

HR_RU_CONVERT_HEX_TO_CP HEX string to CHAR string convertion

HR_RU_CONVERT_HEX_TO_STRING HEX string to CHAR string convertion

Hope that's usefull.

Good Luck & Regards.

Harsh Dave