DISTMODEL_GETVIEW is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name DISTMODEL_GETVIEW into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
BDDISTMODEL
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'DISTMODEL_GETVIEW' "
* EXPORTING
* viewname = " bdm1_viewname_type
* flag_use_senders = " c
* flag_use_receivers = " c
* flag_use_bapis = " c
* flag_use_messagetypes = " c
* flag_get_mcomms = " c
* flag_get_bcomms = " c
* flag_get_msg_filter = " c
* flag_get_bapi_rcvfilter = " c
* flag_get_bapi_datafilter = " c
IMPORTING
modelview = " bdm1_modelview_type
* TABLES
* t_senders = " bdm1_system_ltype
* t_receivers = " bdm1_system_ltype
* t_bapis = " bdm1_bapi_ltype
* t_messagetypes = " bdm1_messagetype_ltype
EXCEPTIONS
INVALID_VIEW = 1 "
UNEXPECTED_ERROR = 2 "
. " DISTMODEL_GETVIEW
The ABAP code below is a full code listing to execute function module DISTMODEL_GETVIEW including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).
| ld_modelview | TYPE BDM1_MODELVIEW_TYPE , |
| it_t_senders | TYPE STANDARD TABLE OF BDM1_SYSTEM_LTYPE,"TABLES PARAM |
| wa_t_senders | LIKE LINE OF it_t_senders , |
| it_t_receivers | TYPE STANDARD TABLE OF BDM1_SYSTEM_LTYPE,"TABLES PARAM |
| wa_t_receivers | LIKE LINE OF it_t_receivers , |
| it_t_bapis | TYPE STANDARD TABLE OF BDM1_BAPI_LTYPE,"TABLES PARAM |
| wa_t_bapis | LIKE LINE OF it_t_bapis , |
| it_t_messagetypes | TYPE STANDARD TABLE OF BDM1_MESSAGETYPE_LTYPE,"TABLES PARAM |
| wa_t_messagetypes | LIKE LINE OF it_t_messagetypes . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_modelview | TYPE BDM1_MODELVIEW_TYPE , |
| ld_viewname | TYPE BDM1_VIEWNAME_TYPE , |
| it_t_senders | TYPE STANDARD TABLE OF BDM1_SYSTEM_LTYPE , |
| wa_t_senders | LIKE LINE OF it_t_senders, |
| ld_flag_use_senders | TYPE C , |
| it_t_receivers | TYPE STANDARD TABLE OF BDM1_SYSTEM_LTYPE , |
| wa_t_receivers | LIKE LINE OF it_t_receivers, |
| ld_flag_use_receivers | TYPE C , |
| it_t_bapis | TYPE STANDARD TABLE OF BDM1_BAPI_LTYPE , |
| wa_t_bapis | LIKE LINE OF it_t_bapis, |
| ld_flag_use_bapis | TYPE C , |
| it_t_messagetypes | TYPE STANDARD TABLE OF BDM1_MESSAGETYPE_LTYPE , |
| wa_t_messagetypes | LIKE LINE OF it_t_messagetypes, |
| ld_flag_use_messagetypes | TYPE C , |
| ld_flag_get_mcomms | TYPE C , |
| ld_flag_get_bcomms | TYPE C , |
| ld_flag_get_msg_filter | TYPE C , |
| ld_flag_get_bapi_rcvfilter | TYPE C , |
| ld_flag_get_bapi_datafilter | TYPE C . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name DISTMODEL_GETVIEW or its description.