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 XSTRING to STRING (XSTRING contains MULTIPLE lines)

Former Member
0 Likes
932

Hi,

I am trying to upload a file, it has been uploaded in variable type XSTRING.

Now i am trying to segregate lines of a file as STRING from XSTRING.

I need to feel all the lines in internal table of type STRING.

Pls. let me know if you have any idea how to segreagate the lines of type string. since XSTRING contains multiple lines.

Regards,

Hemant

4 REPLIES 4
Read only

venkat_o
Active Contributor
0 Likes
619

Hi Hemant, <li>Try this HR_KR_XSTRING_TO_STRING function module. Thanks Venkat.O

Read only

Former Member
0 Likes
619

Hi Venkat,

Thanks for quick reply.

But this function wont work. (since in SRM this FM does not exists and i need to convert the whole data in STRING and this can't be more then 1024 char but file will)

The scenario is i have to upload a file in Web Dynpro (SRM Frontend) and then i am reading the file, the file read is in format of XSTRING.

Now i have to convert the XSTRING to STRING but i dont know how to segregate the new line in XSTRING.

And the file contains 1000's of lines.......

after segregating on the basis of line i will format the data in required format.

Regards,

Hemant

Read only

Former Member
0 Likes
619

closed

Read only

Former Member
0 Likes
619

Hi hemant,

If your issue got solved then could you please tell me which FM you have used , as I am also working in SRM module?

Thanks

Snehal