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

table type x to xstring

Former Member
0 Likes
1,660

Hi all,

I have an i_tab of type x filled with data.

Now I have to copy this data to a file on a server.

I would like to do this through a dataset transfer (not with gui_download). I think that I have to transfer a xstring, but how do I get the data from the i_tab into a xstring?

Greetz Fred.

5 REPLIES 5
Read only

Former Member
0 Likes
954

Hi,

I think you can achieve it with CONCATENATE..

For example,

DATA: s_xstring TYPE xstring.

LOOP AT i_tab.

CONCATENATE s_xstring i_tab INTO s_xstring

IN BYTE MODE.

ENDLOOP.

WRITE: s_xstring.

Hope this helps..

Sri

Message was edited by: Srikanth Pinnamaneni

Read only

Former Member
0 Likes
954

Hi Sri,

I already tried that, but it doesn't work, because i_tab must be of type x or xstring.

greetz Fred.

Read only

0 Likes
954

Hi Fred,

I thought your internal table is of type X.

Any way, I think you can also try the following fm,

SCMS_BINARY_TO_XSTRING

Please do a where-used list on this fm in case you need more info..

In fact check this fm also,

<b>SCMS_TEXT_TO_XSTRING</b>

Sri

Message was edited by: Srikanth Pinnamaneni

Read only

0 Likes
954

Hi,

Check this help:

http://help.sap.com/saphelp_nw04/helpdata/en/ba/78d3c747b24546ab1c1499a054d8a5/content.htm

It explains all about uploading(or downloading) and manipulating the content.

Eddy

Read only

0 Likes
954

Hi,

Pls don't forget to reward points and close the question if you find the answers useful.

Eddy