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

Convert Internal table to Xstring format

Former Member
0 Likes
4,735

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

3 REPLIES 3
Read only

former_member342104
Participant
0 Likes
1,541

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

Read only

Former Member
0 Likes
1,541

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

Read only

Former Member
0 Likes
1,541

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