ADOPT_MAIN_VIEW_ID SAP Method Adopt the main view ID according to the main view type
Below is documentation, parameters and attributes of ABAP Method ADOPT_MAIN_VIEW_ID within SAP class IF_BADI_SLS_LO_OIF_ENTRY_VIEW. 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_BADI_SLS_LO_OIF_ENTRY_VIEW 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 ADOPT_MAIN_VIEW_ID can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method ADOPT_MAIN_VIEW_ID
.| Name | Type | Data Type | Description | Default Value |
| IO_MODEL_EXT | Importing | TYPE REF TO IF_LO_OIF_MODEL_EXT | Interface for external access to class CL_LO_OIF_MODEL | |
| IV_AUART | Importing | TYPE AUART | Sales Document Type | |
| IV_CALLER_ID | Importing | TYPE TDD_CALLER_ID | ID of Caller | |
| IV_MAIN_VIEW_TYPE | Importing | TYPE STRING | Main View Type | |
| IV_TRTYP | Importing | TYPE TRTYP | Transaction type | |
| IV_TRVOG | Importing | TYPE TRVOG_VA | Transaction group | |
| IV_VBTYP | Importing | TYPE VBTYP | SD document category | |
| IV_VBTYP | Importing | TYPE VBTYPL | SD document category | |
| CV_MAIN_VIEW_ID | Changing | TYPE STRING | Main View ID |
Exceptions of Method ADOPT_MAIN_VIEW_ID
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO IF_BADI_SLS_LO_OIF_ENTRY_VIEW.
DATA: lv_CV_MAIN_VIEW_ID TYPE STRING,
lv_IO_MODEL_EXT TYPE IF_LO_OIF_MODEL_EXT,
lv_IV_AUART TYPE AUART,
lv_IV_CALLER_ID TYPE TDD_CALLER_ID,
lv_IV_MAIN_VIEW_TYPE TYPE STRING,
lv_IV_TRTYP TYPE TRTYP,
lv_IV_TRVOG TYPE TRVOG_VA,
lv_IV_VBTYP TYPE VBTYP,
lv_IV_VBTYP TYPE VBTYPL,
lv_other TYPE c.
CALL METHOD lo_class=>ADOPT_MAIN_VIEW_ID(
EXPORTING
IO_MODEL_EXT = lv_IO_MODEL_EXT
IV_AUART = lv_IV_AUART
IV_CALLER_ID = lv_IV_CALLER_ID
IV_MAIN_VIEW_TYPE = lv_IV_MAIN_VIEW_TYPE
IV_TRTYP = lv_IV_TRTYP
IV_TRVOG = lv_IV_TRVOG
IV_VBTYP = lv_IV_VBTYP
IV_VBTYP = lv_IV_VBTYP
CHANGING
CV_MAIN_VIEW_ID = lv_CV_MAIN_VIEW_ID ).
Links to Related Class(s)
IF_BADI_...Full list of available SAP object classes
Search for further information about these or an SAP related objects