‎2008 Nov 05 7:37 AM
Hi,
I am trying to convert an Itab into xstring using the
"CONCATENATE LINES OF itab INTO xstring1 SEPARATED BY space."
but, I get error saying xstring1 should be of "XSTRING1" must be a character-type data object (data type C, N, D, T,or STRING).
How do I use this? Is there any better method to convert it to xstring type?
Cheers
Kiran
‎2008 Nov 05 7:53 AM
hi
try to this function
SAP_CONVERT_TO_TEX_FORMAT
and convert string to xstring SCMS_TEXT_TO_XSTRING
regards
kk
Edited by: kk on Nov 5, 2008 1:29 PM
‎2008 Nov 05 8:01 AM
Hi,
You can try this.
DATA: str TYPE string,
xstr TYPE xstring.
CONCATENATE LINES OF itab INTO str SEPARATED BY space.
MOVE str to xstr.
**************
Regards,
Syed
‎2008 Nov 05 11:24 AM
Hi,
Both the above suggestions do not work
I have say an ITAB of type SPFLI.
How do I convert this data into xstring type?
Also does my ITAB have to be a specific type for me to get this to work?
Cheers
Kiran