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

CL_GUI_HTML_EDITOR VS. CL_GUI_HTML_VIEWER

peter_strauss
Product and Topic Expert
Product and Topic Expert
0 Likes
1,344

Hello,

Regarding CL_GUI_HTML_EDITOR VS. & CL_GUI_HTML_VIEWER, I have recently been recommended to use CL_GUI_HTML_VIEWER instead of CL_GUI_HTML_EDITOR. My customer is getting MESSAGE_TYPE_X errors and SAP Support has suggested that they are being generated because the customer is using CL_GUI_HTML_EDITOR in some of their programs.

The customer is using SAP_BASIS 640.

I've noticed that VIEWER was last updated in 2006, while EDITOR was last updated in 1999. Is VIEWER now considered a complete replacement for EDITOR, covering all of the same functionality? Has EDITOR been depricated (assuming you use that term for ABAP classes).

Kind regards,

Peter

Hello,

Regarding CL_GUI_HTML_EDITOR VS. & CL_GUI_HTML_VIEWER, I have recently been recommended to use CL_GUI_HTML_VIEWER instead of CL_GUI_HTML_EDITOR. My customer is getting MESSAGE_TYPE_X errors and SAP Support has suggested that they are being generated because the customer is using CL_GUI_HTML_EDITOR in some of their programs.

The customer is using SAP_BASIS 640.

I've noticed that VIEWER was last updated in 2006, while EDITOR was last updated in 1999. Is VIEWER now considered a complete replacement for EDITOR, covering all of the same functionality? Has EDITOR been depricated (assuming you use that term for ABAP classes).

Kind regards,

Peter

4 REPLIES 4
Read only

MarcinPciak
Active Contributor
994

Exactly as you say, SAP seems to give up supporting CL_GUI_HTML_EDITOR, while CL_GUI_HTML_VIEWER is still being updated.

I check on two different systems SAP_BASIS 640 and 700. Both have same (as desribed by you) date of last change.

M.

Read only

peter_strauss
Product and Topic Expert
Product and Topic Expert
0 Likes
994

Hello, Thank you for checking that.

Do you know whether these two classes can be used interchangeably? I mean, does the functionality of CL_GUI_HTML_VIEWER completely cover the functionality of CL_GUI_HTML_EDITOR? I'd like to recommend that my customer use VIEWER, however I want to make sure it's possible first.

Kind regards,

Peter

Read only

0 Likes
994

Honestly I have no idea, but what I have noticed is that CL_GUI_HTML_EDITOR has only a few its own methods implemented (rest are inherited from its superclasses - both classes inherit from CL_GUI_CONTROL) whereas CL_GUI_HTML_VIEWER seems to be much more extended (provides much more methods). In this context the latter one is more user firendy and managable as has more "handlers" (methods) for using it to meet our requirements. Probably this one also will be much easier to work with.

Another point is that EDITOR is not documented anywhere. I tried even at help.sap.com with no result. When you google this you also get only one hit. Conversely VIEWER has some documentation.

I think in this case you can easily recommend your customer to use this one and migrate all his old code too new one or use it from scratch.

M.

Read only

peter_strauss
Product and Topic Expert
Product and Topic Expert
0 Likes
994

Thanks again.

I was struck by the lack of documentation for CL_GUI_HTML_EDITOR. I'm going to have trouble getting the customer to do anything without it, but will do my best.

Peter