Application Development 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: 

how to move string into an internal table???

Former Member
0 Kudos

Hi

Please help me move string into an internal table.

Thanx

5 REPLIES 5

Former Member

Hi Rippy ,

What is your exact requirement?

What i understand is you have a string and want to move it to an internal table.

IF it is so the define an internal table as

Data : Begin of it_1 occurs 0 ,

str type string.

End of it_1.

it_1-str = v_string.

append it_1.

Regards

Arun

*Assign points if helpful

0 Kudos

i actually want to <b>create an error file</b> incase of error in GUI_DOWNLOAD to presentation and application server.

the error file is <b>txt</b> with the string as " Error while opening file!!".

0 Kudos

Hi Rippy,

you can use the option i had given, this must work.

Just check the value of su-subrc returned by the FM and assign a text to the variable and append it to the internal table.

Regards

Arun

0 Kudos

Hi,

You can use the FM

SWA_STRING_TO_TABLE

Regards,

Sesh

.

Former Member
0 Kudos

you can use

data: begin of itab_d occurs 0,

text(255) type c,

end of itab_d.

data v_string type string.

pass ur string and internal table to below fm and you can use each line how many charcters ,

length would be 255 charcters ( what ever you want ,you can keep in FM )

SWA_STRING_SPLIT