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: 

Function module to convert string to sap script format

former_member200338
Active Contributor
0 Kudos

Hi,

I need to convert a text to SAP script format(TDLINE). I have used the FM CONVERT_STREAM_TO_ITF_TEXT to achieve this functionality. Its working fine. But when there is & symbol passed as input to the FM, the FM converts it into <(>&<)>. This is causing me a problem as the output of the file is being uploaded to a different system.

Is there any other FM which converts the text to script format?

Regards,

Niyaz

3 REPLIES 3

Former Member
0 Kudos

Use FM:

READ_TEXT

Regards

Former Member
0 Kudos

hi

just make sure that whatever text you are copying should not be directly copied from word.

it needs to be copied from word to note pad.Then subsequentely it has to be copied from note pad to the script editor.

hope this helps

regards

Aakash Banga

Former Member
0 Kudos

Hi,

follow the below link , this will provide you required information:

http://help.sap.com/saphelp_40b/helpdata/en/d6/0db8bb494511d182b70000e829fbfe/content.htm

Regards

Saurabh