2010 Mar 29 8:18 AM
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 .
2010 Mar 29 8:26 AM
You can convert an XSTRING to a string.
Refer to the below link-
http://www.divulgesap.com/blog.php?p=NjA=
Cheers,
Ravikiran
2010 Mar 29 8:30 AM
please dont send the links in which I have to regt and then that forum starts spamming me with mails .
2010 Mar 29 8:50 AM
2010 Mar 29 8:59 AM
2010 Mar 29 11:17 PM
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
2010 Mar 30 6:45 AM
Hi,
Use the FM SMUM_XML_PARSE. It will solve your problem.
Regards,
Raveesh
2010 Mar 31 6:52 AM
2010 Mar 31 7:19 AM
Thanks to all .
I am using CRM_SVY_GET_SURVEY_TEXTS because I want my CRM survey text .
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |