GENERATE_GETTER_AND_SETTER SAP Method Generate Attribute SETTER and GETTER Methods









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

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_BSP_WD_ENHANCEMENT_API into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Static

This is a Static Method so you can call it directly

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

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


Parameters of Method GENERATE_GETTER_AND_SETTER

.

NameTypeData TypeDescriptionDefault Value
IV_APPL_MODELImportingTYPE REF TO
IF_BSP_WD_APPL_MODEL
IV_ATTR_NAMEImportingTYPE
STRING
IV_BSP_APPLImportingTYPE
O2APPLNAME
Physical BSP Application Where the View Is Stored
IV_LOGICAL_BSP_APPLImportingTYPE
O2APPLNAME
Logical BSP Application Where the View Is Used
IV_MODELNODE_NAMEImportingTYPE
NAME_KOMP
IV_VIEW_NAMEImportingTYPE
O2PAGEEXT



Exceptions of Method GENERATE_GETTER_AND_SETTER

FAILED_WITH_LOG - Method Failed; Application Log Is Available

Example ABAP coding


DATA: lv_IV_APPL_MODEL TYPE IF_BSP_WD_APPL_MODEL,
lv_IV_ATTR_NAME TYPE STRING,
lv_IV_BSP_APPL TYPE O2APPLNAME,
lv_IV_LOGICAL_BSP_APPL TYPE O2APPLNAME,
lv_IV_MODELNODE_NAME TYPE NAME_KOMP,
lv_IV_VIEW_NAME TYPE O2PAGEEXT,
lv_other TYPE c.

CALL METHOD CL_BSP_WD_ENHANCEMENT_API=>GENERATE_GETTER_AND_SETTER(
EXPORTING
IV_APPL_MODEL = lv_IV_APPL_MODEL
IV_ATTR_NAME = lv_IV_ATTR_NAME
IV_BSP_APPL = lv_IV_BSP_APPL
IV_LOGICAL_BSP_APPL = lv_IV_LOGICAL_BSP_APPL
IV_MODELNODE_NAME = lv_IV_MODELNODE_NAME
IV_VIEW_NAME = lv_IV_VIEW_NAME ).

Links to Related Class(s)

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