MAP_FROM_WB_OBJECT SAP Method Maps workbench object to object reference
Below is documentation, parameters and attributes of ABAP Method MAP_FROM_WB_OBJECT within SAP class IF_ADT_MAP_TO_OBJREF. 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_ADT_MAP_TO_OBJREF 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 MAP_FROM_WB_OBJECT can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method MAP_FROM_WB_OBJECT
.| Name | Type | Data Type | Description | Default Value |
| MAPPING_OPTIONS | Importing | TYPE REF TO IF_ADT_MAPPING_OPTIONS | ||
| WB_OBJECT | Importing | TYPE REF TO CL_WB_OBJECT | Repository Object | |
| RESULT | Returning | TYPE REF TO CL_ADT_OBJECT_REFERENCE | Data object for ADT object references (URI, type, name, ...) |
Exceptions of Method MAP_FROM_WB_OBJECT
CX_ADT_URI_MAPPING - URI-Mapping exceptionExample ABAP coding
DATA: lo_class TYPE REF TO IF_ADT_MAP_TO_OBJREF.
DATA: lv_MAPPING_OPTIONS TYPE IF_ADT_MAPPING_OPTIONS,
lv_RESULT TYPE CL_ADT_OBJECT_REFERENCE,
lv_WB_OBJECT TYPE CL_WB_OBJECT,
lv_other TYPE c.
CALL METHOD lo_class=>MAP_FROM_WB_OBJECT(
EXPORTING
MAPPING_OPTIONS = lv_MAPPING_OPTIONS
WB_OBJECT = lv_WB_OBJECT
RECEIVING
RESULT = lv_RESULT )
"Alternate coding for Method Call with returning parameter
lv_RESULT = lo_class=>MAP_FROM_WB_OBJECT(
EXPORTING
MAPPING_OPTIONS = lv_MAPPING_OPTIONS
WB_OBJECT = lv_WB_OBJECT ).
Links to Related Class(s)
IF_ADT_M...Full list of available SAP object classes
Search for further information about these or an SAP related objects