INIT SAP Method Constructor: Initialize Graphic Proxy
Below is documentation, parameters and attributes of ABAP Method INIT within SAP class IF_GRAPHIC_PROXY. 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 IF_GRAPHIC_PROXY 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 INIT can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method INIT
.| Name | Type | Data Type | Description | Default Value |
| DC | Importing | TYPE REF TO IF_DC_SUBSCRIPTION | Reference to data container | |
| EVTCODE_LIST | Importing | TYPE CNTL_SIMPLE_EVENTS | See SET_EVENT_LIST | |
| FILTER_LIST | Importing | TYPE GFW_FILTER_LIST | See SET_FILTER_LIST | |
| FORCE_PROD | Importing | TYPE GFW_BOOLEAN | Yes: Force specified product | |
| HEIGHT | Importing | TYPE I | Height of the graphic (dynpro metric) | |
| LEFT | Importing | TYPE I | Gap between graphic and left edge of dynpro (dynpro metric) | |
| PARENT | Importing | TYPE REF TO CL_GUI_CONTAINER | Container object where the graphic is placed | |
| PROD_ID | Importing | TYPE TGPN-PRODUKT | ID of graphic product used | |
| PROD_PRIO | Importing | TYPE TGPN-PRIO | Priority of product used | |
| TOP | Importing | TYPE I | Gap between graphic and upper edge of dynpro (dynpro metric) | |
| WIDTH | Importing | TYPE I | Width of the graphic (dynpro metric) | |
| RETVAL | Exporting | TYPE SYMSGNO | CL_GFW -> OK: Successful |
Exceptions of Method INIT
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO IF_GRAPHIC_PROXY.
DATA: lv_DC TYPE IF_DC_SUBSCRIPTION,
lv_EVTCODE_LIST TYPE CNTL_SIMPLE_EVENTS,
lv_FILTER_LIST TYPE GFW_FILTER_LIST,
lv_FORCE_PROD TYPE GFW_BOOLEAN,
lv_HEIGHT TYPE I,
lv_LEFT TYPE I,
lv_PARENT TYPE CL_GUI_CONTAINER,
lv_PROD_ID TYPE TGPN-PRODUKT,
lv_PROD_PRIO TYPE TGPN-PRIO,
lv_RETVAL TYPE SYMSGNO,
lv_TOP TYPE I,
lv_WIDTH TYPE I,
lv_other TYPE c.
CALL METHOD lo_class=>INIT(
EXPORTING
DC = lv_DC
EVTCODE_LIST = lv_EVTCODE_LIST
FILTER_LIST = lv_FILTER_LIST
FORCE_PROD = lv_FORCE_PROD
HEIGHT = lv_HEIGHT
LEFT = lv_LEFT
PARENT = lv_PARENT
PROD_ID = lv_PROD_ID
PROD_PRIO = lv_PROD_PRIO
TOP = lv_TOP
WIDTH = lv_WIDTH
IMPORTING
RETVAL = lv_RETVAL ).
Links to Related Class(s)
IF_GRAPH...Full list of available SAP object classes
Search for further information about these or an SAP related objects