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

To Avoid Unwanted characters

Former Member
0 Likes
925

hi everybody,

i am updating a record which is 5000 characters into a 'Y' Datbase table in a field which

can accomodate this 5000 characters in a single line from text editor.

The data is being inputed in Text editor which can carry not more than 5000 characters and if i press

save then the text which is written on the editor will be saved in the database table.

But the problem is i am some unwanted characters of format '#####" are getting stored in the table

which will dynamically incrase its size and position.

for e,g : 'Terms and Conditons Text#### for Material and Services#######.Services Terms can liable

to CENVAT################.Please follow the below steps' .

The above example shown will be stored ine the database despite i have not entered #####

characters.

I want to Print this text in SAP SCRIPT.

I want to print the text which i have entered in Text Editor as it should be.

Note: The Text Editor is designed using Class CL_GUI_TEXTEDIT with methods

SET_TEXT_AS_R3TABLE

GET_TEXT_AS_STREAM.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
750

HI,

Check this Demo program SAPSCRIPT_DEMO_NOTE_EDITOR

hi everybody,

i am updating a record which is 5000 characters into a 'Y' Datbase table in a field which

can accomodate this 5000 characters in a single line from text editor.

The data is being inputed in Text editor which can carry not more than 5000 characters and if i press

save then the text which is written on the editor will be saved in the database table.

But the problem is i am some unwanted characters of format '#####" are getting stored in the table

which will dynamically incrase its size and position.

for e,g : 'Terms and Conditons Text#### for Material and Services#######.Services Terms can liable

to CENVAT################.Please follow the below steps' .

The above example shown will be stored ine the database despite i have not entered #####

characters.

I want to Print this text in SAP SCRIPT.

I want to print the text which i have entered in Text Editor as it should be.

Note: The Text Editor is designed using Class CL_GUI_TEXTEDIT with methods

SET_TEXT_AS_R3TABLE

GET_TEXT_AS_STREAM.

5 REPLIES 5
Read only

Former Member
0 Likes
750

Hi,

maybe your problem can be because unicode problem, with special characters. Check the characters that is in ####.

Read only

rainer_hbenthal
Active Contributor
0 Likes
750

TABs? CRs? LFs? Write a small program reading the table and have a look in the debugger for the real hexadecimal notations. For sure the hash sign is only displayed for non displayable characters.

Read only

Former Member
0 Likes
751

HI,

Check this Demo program SAPSCRIPT_DEMO_NOTE_EDITOR

Read only

Former Member
0 Likes
750

Hi Murali,

The data are stored along with line feed details,thats why you get ## symbols.

use

GET_TEXT_AS_R3TABLE - This allows you to save the editor content without line feeds .

Check this below link

http://help.sap.com/saphelp_45b/helpdata/en/ed/b6f9d3ee1511d1952000a0c930660b/frameset.htm

Hope it helps.

Read only

Former Member
0 Likes
750

hi thanks to all