on 04-04-2006 3:55 PM
Hello,
I am trying to instantiate the SAPScript-Editor manuelly. But I don't know how to set the parameters of the constructor. Has anybody a report with example.
Thanks.
Regards. Lars.
This is like any other frontend control. You need to put it inside of a container, you must create a custom control in your dynpro and instaniate that. Here is an example, where the editor is implemented in a docking container. It is the same principal.
report zrich_0001.
parameters: p_check type c.
start-of-selection.
at selection-screen output.
data: docking type ref to cl_gui_docking_container,
ss_editor type ref to cl_gui_sapscript_editor.
data: repid type sy-repid.
repid = sy-repid.
check docking is initial.
create object docking
exporting repid = repid
dynnr = sy-dynnr
side = docking->dock_at_left
extension = 1700.
create object ss_editor
exporting
parent = docking.
Regards,
Rich Heilman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Markus,
A long time since you asked the question - but in case others look for this in the future...
To load some text into the SAPSCRIPT editor, I've used FM READ_TEXT to read the text object and then the method set_text_by_header. This loads the editor with some text and automatically converts from ITF to RTF.
To save some text from the editor, use the method get_text_from_editor, which converts from RTF back to ITF. Then I've used the FM SAVE_TEXT to save the text.
Kind Regards
Andrew Barnard
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.