SAP CL_GUI_SAPSCRIPT_EDITOR OO Class - SAP SAPscript Editor Control









CL_GUI_SAPSCRIPT_EDITOR is a standard SAP object class available within R/3 SAP systems depending on your version and release level. You can view/maintain the class details by entering its name into the relevant SAP transactions such as SE24, SE80 or even SE84. Below is the documentation available for class CL_GUI_SAPSCRIPT_EDITOR including details of:

  • Interface class implementations
  • Inheritance details
  • Methods defined within class ( including link to full details )
  • Attributes ( including initial values )
  • Class Events

Inheritance

This OO class has a superclass assigned to it, which means it will inherit its objects and methods. The superclass for CL_GUI_SAPSCRIPT_EDITOR is CL_GUI_RTF_EDITOR

Method list of CL_GUI_SAPSCRIPT_EDITOR SAP class


A method is a coding block that performs a certain procedure (i.e. ABAP functionality) on an object within the overall SAP class. In simple terms if the object is an SAP database table a method could be the procedure to add a record or to delete a record. If you are new to OO in many respects, the implementation of a method is similar to a function module and can be called in a very similar way using CALL METHOD. Instead of "CALL FUNCTION", Methods are referenced using the following syntax: CALL METHOD =>methodname EXPORTING/IMPORTING...


Method NameDescriptionVisability
ADD_BUTTONAdd new button to toolbarPublic
CALL METHOD cl_gui_sapscript_editor=>ADD_BUTTON...more details

ADD_FORMATBAR_ENTRYAdds format to formatbarPrivate
CALL METHOD cl_gui_sapscript_editor=>ADD_FORMATBAR_ENTRY...more details

CHANGE_FORMATChange formats of textPrivate
CALL METHOD cl_gui_sapscript_editor=>CHANGE_FORMAT...more details

CHECK_SYMBOL_NAMECheck the syntax of a symbol field namePrivate
CALL METHOD cl_gui_sapscript_editor=>CHECK_SYMBOL_NAME...more details

CHECK_USER_ATTRCheck user attributesPrivate
CALL METHOD cl_gui_sapscript_editor=>CHECK_USER_ATTR...more details

COMMAND_COPYCopy selected text into clipboardPrivate
CALL METHOD cl_gui_sapscript_editor=>COMMAND_COPY...more details

COMMAND_CUTCut selected text into clipboardPrivate
CALL METHOD cl_gui_sapscript_editor=>COMMAND_CUT...more details

COMMAND_INSERT_URLInsert URL at current positionPrivate
CALL METHOD cl_gui_sapscript_editor=>COMMAND_INSERT_URL...more details

COMMAND_PASTEPaste text from clipboard into editor controlPrivate
CALL METHOD cl_gui_sapscript_editor=>COMMAND_PASTE...more details

COMMAND_RESET_FORMATSReset character formats at current positionPrivate
CALL METHOD cl_gui_sapscript_editor=>COMMAND_RESET_FORMATS...more details

COMMAND_SEARCHSearch text key in editor controlPrivate
CALL METHOD cl_gui_sapscript_editor=>COMMAND_SEARCH...more details

COMMAND_SEARCH_NEXTSearch next text key in editor controlPrivate
CALL METHOD cl_gui_sapscript_editor=>COMMAND_SEARCH_NEXT...more details

COMMAND_SHOW_BREAKSShow line and paragraph breaksPrivate
CALL METHOD cl_gui_sapscript_editor=>COMMAND_SHOW_BREAKS...more details

COMMAND_SHOW_FORMATSShow character and paragraph formats at current positionPrivate
CALL METHOD cl_gui_sapscript_editor=>COMMAND_SHOW_FORMATS...more details

COMMAND_SYMBOL_CHANGEChange field symbol at current positionPrivate
CALL METHOD cl_gui_sapscript_editor=>COMMAND_SYMBOL_CHANGE...more details

COMMAND_SYMBOL_DELETEDelete selected field symbol in textPrivate
CALL METHOD cl_gui_sapscript_editor=>COMMAND_SYMBOL_DELETE...more details

COMMAND_SYMBOL_INSERTInsert field symbol at current positionPrivate
CALL METHOD cl_gui_sapscript_editor=>COMMAND_SYMBOL_INSERT...more details

COMPL_STYLETAB_CHARComplete internal style attribute tablePrivate
CALL METHOD cl_gui_sapscript_editor=>COMPL_STYLETAB_CHAR...more details

COMPL_STYLETAB_PARComplete internal paragraph attribute tablePrivate
CALL METHOD cl_gui_sapscript_editor=>COMPL_STYLETAB_PAR...more details

COMPL_STYLETAB_RESET_CHARComplete internal style attribute table for reset formatsPrivate
CALL METHOD cl_gui_sapscript_editor=>COMPL_STYLETAB_RESET_CHAR...more details

COMPL_STYLETAB_XPASComplete internal style attribute table for text pastePrivate
CALL METHOD cl_gui_sapscript_editor=>COMPL_STYLETAB_XPAS...more details

COMPUTE_TEMPFORMATCreate a new temporary format for textPrivate
CALL METHOD cl_gui_sapscript_editor=>COMPUTE_TEMPFORMAT...more details

CONSTRUCTORCreates and links SAPscript editor controlPublic
CALL METHOD cl_gui_sapscript_editor=>CONSTRUCTOR...more details

CREATE_STYLETABCreate internal style attribute tablePrivate
CALL METHOD cl_gui_sapscript_editor=>CREATE_STYLETAB...more details

CREATE_TOOLBARCreate all buttons of the editor toolbarPrivate
CALL METHOD cl_gui_sapscript_editor=>CREATE_TOOLBAR...more details

DELETE_BUTTONDelete a specified button from toolbarPublic
CALL METHOD cl_gui_sapscript_editor=>DELETE_BUTTON...more details

EVENT_PARAGRAPH_DELETEDProcessing paragraph deleted event on combobox itemsPrivate
CALL METHOD cl_gui_sapscript_editor=>EVENT_PARAGRAPH_DELETED...more details

EVENT_PASTE_REQUESTEDProcessing paste text event in text editor (control-v)Private
CALL METHOD cl_gui_sapscript_editor=>EVENT_PASTE_REQUESTED...more details

EVENT_SINGLE_CLICKProcessing single click event on combobox itemsPrivate
CALL METHOD cl_gui_sapscript_editor=>EVENT_SINGLE_CLICK...more details

GET_SYMBOL_VALUEGet attributes of the selected field symbol in textPublic
CALL METHOD cl_gui_sapscript_editor=>GET_SYMBOL_VALUE...more details

GET_TEXT_FROM_EDITORGet RTF text from the control and convert it into ITF textPublic
CALL METHOD cl_gui_sapscript_editor=>GET_TEXT_FROM_EDITOR...more details

INITIALIZEInitialization of SAPscript editor controlPrivate
CALL METHOD cl_gui_sapscript_editor=>INITIALIZE...more details

ON_TOOLBAR_FUNCTION_SELECTEDProcessing button events on toolbar objectPrivate
CALL METHOD cl_gui_sapscript_editor=>ON_TOOLBAR_FUNCTION_SELECTED...more details

READ_FIELDRead the text field at current cursor positionPrivate
CALL METHOD cl_gui_sapscript_editor=>READ_FIELD...more details

RENAME_FIELDSRename field names for text pastePrivate
CALL METHOD cl_gui_sapscript_editor=>RENAME_FIELDS...more details

SET_BUTTON_STATESet display mode of toolbar buttons (enabled or disabled)Public
CALL METHOD cl_gui_sapscript_editor=>SET_BUTTON_STATE...more details

SET_CHARACTER_FORMATSet character formatPrivate
CALL METHOD cl_gui_sapscript_editor=>SET_CHARACTER_FORMAT...more details

SET_CHARFORMAT_NO_SELSet character format (no text selection)Private
CALL METHOD cl_gui_sapscript_editor=>SET_CHARFORMAT_NO_SEL...more details

SET_CHARFORMAT_SELSet character format (text selection)Private
CALL METHOD cl_gui_sapscript_editor=>SET_CHARFORMAT_SEL...more details

SET_FIXED_FIELD_LENGTHSet fields to fixed length (window size)Private
CALL METHOD cl_gui_sapscript_editor=>SET_FIXED_FIELD_LENGTH...more details

SET_FORMATBAR_TABLESets the correct formatbar tablePrivate
CALL METHOD cl_gui_sapscript_editor=>SET_FORMATBAR_TABLE...more details

SET_PARAGRAPH_FORMATSet paragraph formatPrivate
CALL METHOD cl_gui_sapscript_editor=>SET_PARAGRAPH_FORMAT...more details

SET_PARFORMAT_EMPTY_TEXTSet paragraph format for empty textPrivate
CALL METHOD cl_gui_sapscript_editor=>SET_PARFORMAT_EMPTY_TEXT...more details

SET_TEXT_BY_HEADERPut text into editor control using text headerPublic
CALL METHOD cl_gui_sapscript_editor=>SET_TEXT_BY_HEADER...more details

SET_TEXT_BY_STYLEPut text into editor control using Smart StylePublic
CALL METHOD cl_gui_sapscript_editor=>SET_TEXT_BY_STYLE...more details

SYMBOL_INSERTInsert field symbol at current positionPublic
CALL METHOD cl_gui_sapscript_editor=>SYMBOL_INSERT...more details



CL_GUI_SAPSCRIPT_EDITOR attributes

List of attributes within class CL_ABAP_CHAR_UTILITIES. These can be referenced using the following syntax CL_ABAP_CHAR_UTILITIES=>. Although depending on where you are inserting the ABAP code you do need to check if the attribute is public or private.

NameLevelDescriptionInitial ValueTypeVisability
CHARFORMTABInstance AttributeCharacter formatLIKE
SEDCFORM
Private
C_FORMAT_BOLDConstantFixed format: bold'%B'LIKE
CHAR2
Private
C_FORMAT_ITALICConstantFixed format: italic'%I'LIKE
CHAR2
Private
C_FORMAT_UNDERLINEConstantFixed format: italic'%U'LIKE
CHAR2
Private
C_FORMAT_URLConstantFixed format: URL'%W'LIKE
CHAR2
Private
C_VARIABLE_LENGTHConstantC_VARIABLE_LENGTH-1LIKE
I
Private
FIELDTABInstance AttributeField attributesLIKE
SEDFIELD
Private
M_CAPTION_LISTInstance AttributeList of logical field names (captions) in editor controlLIKE
TEDCAPLIST
Private
M_COMBOBOX1_IDInstance AttributeID of first comboboxLIKE
I
Private
M_COMBOBOX2_IDInstance AttributeID of second comboboxLIKE
I
Private
M_CONVERTERInstance AttributeObject for text conversionLIKE
LCL_CONVERT
Private
M_FIX_FIELD_LENGTHInstance AttributeFixed length of fieldsLIKE
I
Private
M_FORMATSInstance AttributeCombined formats in editorLIKE
TRTFFRMT
Private
M_FRAME_IDInstance AttributeID of frame objectLIKE
I
Private
M_ORG_CURSORInstance AttributeRestore original cursorC_TRUELIKE
I
Private
M_STATUSBAR1_IDInstance AttributeID of first status barLIKE
I
Private
M_STATUSBAR2_IDInstance AttributeID of second status barLIKE
I
Private
M_STATUSBAR3_IDInstance AttributeID of dummy status barLIKE
I
Private
M_STYLE_NAMEInstance AttributeCurrent style nameLIKE
TDSSNAME
Private
M_STYLE_VARIANTInstance AttributeCurrent style variantLIKE
TDVARIANT
Private
M_TOOLBARInstance AttributeToolbar objectLIKE
CL_GUI_TOOLBAR
Private
M_USE_CAPTIONInstance AttributeDisplay logical field names (captions) in editor controlFALSELIKE
BOOLEAN
Private
PARFORMTABInstance AttributeParagraph formatLIKE
SEDPFORM
Private
STYLETABInstance AttributeStyle attributesLIKE
S_STYLETAB
Private
TAB_FIELDTABInstance AttributeTable of field attributesLIKE
TEDFIELD
Private
TAB_STYLETABInstance AttributeTable of style attributesLIKE
T_STYLETAB
Private
TEMPFORMTABInstance AttributeTempory formatLIKE
SEDTFORM
Private


Events of Class CL_GUI_SAPSCRIPT_EDITOR

Events are created within your class using special event handler methods. These must be registered at runtime for the event and can then be triggered using the ABAP syntax: RAISE EVENT EXPOTING... FUNCTION_SELECTED - Button or menu entry selected



CL_GUI_SAPSCRIPT_EDITOR types

S_STYLETAB - S_STYLETAB
T_STYLETAB - T_STYLETAB

Links to Related Class(s)

CL_GUI_S...
Full list of available SAP object classes

Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!