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

reading file into a single variable

Former Member
0 Likes
1,008

Hi,

1. is it possible to get the contents of .txt file(local machine) into a single variable say l_data.

--> the length is greated than 255 (since it is a file )

2. how can i concatenate the data from a internal table ( with only 1 field of type raw)into a single variable say l_xstr.

tried :::: the keyword CONCATENATE is applicateble only to data types C,N,String etc... and not for binary data i.e RAW type of data

THANKS

3 REPLIES 3
Read only

Former Member
0 Likes
644

1) Yes its is possible.

If there are multiple lines, then you can concantenate them using a STRING type variable

data: v_string type string.

call function 'GUI_UPLOAD' to get the data of the file into a itab.

loop at itab.

concatenate itab-data v_string into v_string.

endloop.

Regards,

Ravi

Read only

Former Member
0 Likes
644

can anyone tell me how to concatenate data of type RAW

Read only

Former Member
0 Likes
644

i found the solution

Use CONCATENATE ...... IN BYTE MODE