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 can I extract the data from Xstring .

Naval_bhatt
Contributor
0 Likes
2,639

Hi Gurus ,

How can I extract the data from a XSTRING .

I have to get the data which is filled in the survey form the data is getting saved in form of xstring .

Someone told me that there is a standard FM for that . but I am not able to find .

Please reply with the FM in case some one knows about it .

Thanks in advance .

Hi Gurus ,

How can I extract the data from a XSTRING .

I have to get the data which is filled in the survey form the data is getting saved in form of xstring .

Someone told me that there is a standard FM for that . but I am not able to find .

Please reply with the FM in case some one knows about it .

Thanks in advance .

8 REPLIES 8
Read only

Former Member
0 Likes
2,012

You can convert an XSTRING to a string.

Refer to the below link-

http://www.divulgesap.com/blog.php?p=NjA=

Cheers,

Ravikiran

Read only

0 Likes
2,012

please dont send the links in which I have to regt and then that forum starts spamming me with mails .

Read only

0 Likes
2,012

Try FM

HR_RU_CONVERT_HEX_TO_STRING

Br,

Vijay.

Read only

0 Likes
2,012

HR_RU_CONVERT_HEX_TO_STRING Not present in SAP CRM .

Read only

Sandra_Rossi
Active Contributor
0 Likes
2,012

The following code works as of 7.0 (in any SAP system):


FORM XSTRING_TO_STRING USING input TYPE xstring CHANGING output TYPE string.
TYPES : BEGIN OF ty_struc,
          line TYPE c LENGTH 100,
        END OF ty_struc.
DATA lt_char TYPE TABLE OF ty_struc.
DATA length TYPE i.
length = xstrlen( input ) / cl_abap_char_utilities=>charsize.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
  EXPORTING
    buffer                = input
  tables
    binary_tab            = lt_char.
CONCATENATE LINES OF lt_char INTO output RESPECTING BLANKS.
output = output(length).
ENDFORM.

Edited by: Sandra Rossi on Mar 30, 2010 12:24 AM

Read only

Former Member
0 Likes
2,012

Hi,

Use the FM SMUM_XML_PARSE. It will solve your problem.

Regards,

Raveesh

Read only

Former Member
0 Likes
2,012

FM - 'LXE_COMMON_XSTRING_TO_STRING' can solve ur problem.

Read only

Naval_bhatt
Contributor
0 Likes
2,012

Thanks to all .

I am using CRM_SVY_GET_SURVEY_TEXTS because I want my CRM survey text .