on 08-27-2011 12:18 PM
hello gurus,
i am very new to webdynpro abap.
i have one requirement relevent to TEXTEDIT UI element to store the unlimited text on the screen.
i have one view with textedit UI element and SAVE and PRINT buttons.
if i entered unlimited text in texteditor and click on save button it is creating standard text in backend using FM create_text.
when i click on print it will display the same standard text in using read_text.all these functions are working properly as per my requirement. but here i got one problem,what ever the text i entered in textedit UI element it is not saved in same format whatever i eneterd in textedit UI element at the time of saving.means if entered one line with 72 chars it is splitting and some charectors going to second line.this is my problem .
could any one please suggest me on this.could any one send me sample code if possible.
regards,
babu.
Issue is not with UI or your WDA application, but the way you are storing it using SAVE_TEXT function module. If you specify "" on each line while converting into text format, those characters will be printed on new paragraph. Put "" only when you get new line chracter in your text, other wise keep it blank.
Nitesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What you could also do is create a custom table for your texts, instead as saving them as SAP standard texts. Using a table, you can make use of the pre-defined data element WDY_MD_TRANSLATABLE_TEXT to store the text. This way, you avoid having to use quotation marks or adhere to those pesky old IBM mainframe-related 72-character limitations
Regards,
Trond
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.