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

Error in HR_KR_STRING_TO_XSTRING

Former Member
0 Likes
2,110

Hi All,

I need to convert the string to xstring and using the function module HR_KR_STRING_TO_XSTRING , but I am getting the exception error while converting which says INVALID_STRING , but if I am passing the paramter CODEPAGE_TO and passing the value 8300 it is not calling any exception but the xsting data which is further zipped and downloaded , the file data is corrupted.

Please suggest

Thanks

Jatender

Hi All,

I need to convert the string to xstring and using the function module HR_KR_STRING_TO_XSTRING , but I am getting the exception error while converting which says INVALID_STRING , but if I am passing the paramter CODEPAGE_TO and passing the value 8300 it is not calling any exception but the xsting data which is further zipped and downloaded , the file data is corrupted.

Please suggest

Thanks

Jatender

2 REPLIES 2
Read only

venkat_o
Active Contributor
0 Likes
1,096

Hi Jatendar, Instead of HR_KR_STRING_TO_XSTRING function module why don't you try this function module SCMS_STRING_TO_XSTRING.


       CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
         EXPORTING
           text   = content_s
         IMPORTING
           buffer = content_x.
Thanks Venkat.O

Read only

Former Member
0 Likes
1,096

Usefulll