INSERT_COLUMN_INT SAP Method Inserts or Appends a Column









Below is documentation, parameters and attributes of ABAP Method INSERT_COLUMN_INT within SAP class CL_GUI_COLUMN_TREE. There is also a number of example ABAP code snipts to help you use the functionality of this method.

This is a private Method so can only be executed from within the class itself. I.e. You could access it from another method of the class.

This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name CL_GUI_COLUMN_TREE into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Instance

This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.

The following technical details of method INSERT_COLUMN_INT can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method INSERT_COLUMN_INT

.

NameTypeData TypeDescriptionDefault Value
ADD_COLUMNImportingTYPE
AS4FLAG
'
ALIGNMENTImportingTYPE
I
Column Alignment
DISABLEDImportingTYPE
AS4FLAG
'X' = Cannot Be Selected
HEADER_IMAGEImportingTYPE
TV_IMAGE
Picture in Header
HEADER_TEXTImportingTYPE
TV_HEADING
Text for Header
HEADER_TOOLTIPImportingTYPE
TV_HEADING
Tool Tip for Header
HIDDENImportingTYPE
AS4FLAG
'X' = Invisible
NAMEImportingTYPE
TV_ITMNAME
Column Name
PREDECESSOR_COLUMNImportingTYPE
TV_ITMNAME
Name of Previous Column
WIDTHImportingTYPE
I
Column width
WIDTH_PIXImportingTYPE
AS4FLAG
'X' = Width in Pixels; ' ' = Width in Characters



Exceptions of Method INSERT_COLUMN_INT

TOO_MANY_COLUMNS - Maximum Number of Columns is 250

Example ABAP coding

This is a private Method so the below code can only be executed from within the class itself. I.e. from another method of the class.

DATA: lo_class TYPE REF TO CL_GUI_COLUMN_TREE.
DATA: lv_ADD_COLUMN TYPE AS4FLAG,
lv_ALIGNMENT TYPE I,
lv_DISABLED TYPE AS4FLAG,
lv_HEADER_IMAGE TYPE TV_IMAGE,
lv_HEADER_TEXT TYPE TV_HEADING,
lv_HEADER_TOOLTIP TYPE TV_HEADING,
lv_HIDDEN TYPE AS4FLAG,
lv_NAME TYPE TV_ITMNAME,
lv_PREDECESSOR_COLUMN TYPE TV_ITMNAME,
lv_WIDTH TYPE I,
lv_WIDTH_PIX TYPE AS4FLAG,
lv_other TYPE c.

CALL METHOD lo_class=>INSERT_COLUMN_INT(
EXPORTING
ADD_COLUMN = lv_ADD_COLUMN
ALIGNMENT = lv_ALIGNMENT
DISABLED = lv_DISABLED
HEADER_IMAGE = lv_HEADER_IMAGE
HEADER_TEXT = lv_HEADER_TEXT
HEADER_TOOLTIP = lv_HEADER_TOOLTIP
HIDDEN = lv_HIDDEN
NAME = lv_NAME
PREDECESSOR_COLUMN = lv_PREDECESSOR_COLUMN
WIDTH = lv_WIDTH
WIDTH_PIX = lv_WIDTH_PIX ).

Links to Related Class(s)

CL_GUI_C...
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!