SAP Function Modules

BDM1MODEL_UPDVIEW SAP Function module







BDM1MODEL_UPDVIEW 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 BDM1MODEL_UPDVIEW into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: BDDISTMODEL
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM BDM1MODEL_UPDVIEW - BDM1MODEL UPDVIEW





CALL FUNCTION 'BDM1MODEL_UPDVIEW' "
  EXPORTING
    modelview =                 " bdm1_modelview_type
*   flag_updateshorttext =      " c
*   flag_updatevalidationdate =   " c
*   flag_updateowner =          " c
*   flag_updatepartners =       " c
*   flag_updatevariables =      " c
*   flag_updatecomms =          " c
*   flag_testmode =             " c
  CHANGING
    bdm1model =                 " bdm1_distmodel_type
  EXCEPTIONS
    INVALID_VIEW = 1            "
    INVALID_DATE = 2            "
    INVALID_MODEL_OWNER = 3     "
    SAME_SENDER_RECEIVER = 4    "
    INVALID_SENDER = 5          "
    INVALID_RECEIVER = 6        "
    INVALID_METHOD = 7          "
    INVALID_MESSAGETYPE = 8     "
    INVALID_FILTER = 9          "
    INVALID_VARIABLE = 10       "
    DUPLICATE_CONNECTION = 11   "
    UNEXPECTED_ERROR = 12       "
    .  "  BDM1MODEL_UPDVIEW

ABAP code example for Function Module BDM1MODEL_UPDVIEW





The ABAP code below is a full code listing to execute function module BDM1MODEL_UPDVIEW 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).


DATA(ld_bdm1model) = 'Check type of data required'.
DATA(ld_modelview) = 'Check type of data required'.
DATA(ld_flag_updateshorttext) = 'Check type of data required'.
DATA(ld_flag_updatevalidationdate) = 'Check type of data required'.
DATA(ld_flag_updateowner) = 'Check type of data required'.
DATA(ld_flag_updatepartners) = 'Check type of data required'.
DATA(ld_flag_updatevariables) = 'Check type of data required'.
DATA(ld_flag_updatecomms) = 'Check type of data required'.
DATA(ld_flag_testmode) = 'Check type of data required'. . CALL FUNCTION 'BDM1MODEL_UPDVIEW' EXPORTING modelview = ld_modelview * flag_updateshorttext = ld_flag_updateshorttext * flag_updatevalidationdate = ld_flag_updatevalidationdate * flag_updateowner = ld_flag_updateowner * flag_updatepartners = ld_flag_updatepartners * flag_updatevariables = ld_flag_updatevariables * flag_updatecomms = ld_flag_updatecomms * flag_testmode = ld_flag_testmode CHANGING bdm1model = ld_bdm1model EXCEPTIONS INVALID_VIEW = 1 INVALID_DATE = 2 INVALID_MODEL_OWNER = 3 SAME_SENDER_RECEIVER = 4 INVALID_SENDER = 5 INVALID_RECEIVER = 6 INVALID_METHOD = 7 INVALID_MESSAGETYPE = 8 INVALID_FILTER = 9 INVALID_VARIABLE = 10 DUPLICATE_CONNECTION = 11 UNEXPECTED_ERROR = 12 . " BDM1MODEL_UPDVIEW
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 8. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 9. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 10. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 11. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 12. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

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_bdm1model  TYPE BDM1_DISTMODEL_TYPE ,
ld_modelview  TYPE BDM1_MODELVIEW_TYPE ,
ld_flag_updateshorttext  TYPE C ,
ld_flag_updatevalidationdate  TYPE C ,
ld_flag_updateowner  TYPE C ,
ld_flag_updatepartners  TYPE C ,
ld_flag_updatevariables  TYPE C ,
ld_flag_updatecomms  TYPE C ,
ld_flag_testmode  TYPE C .

ld_bdm1model = 'Check type of data required'.
ld_modelview = 'Check type of data required'.
ld_flag_updateshorttext = 'Check type of data required'.
ld_flag_updatevalidationdate = 'Check type of data required'.
ld_flag_updateowner = 'Check type of data required'.
ld_flag_updatepartners = 'Check type of data required'.
ld_flag_updatevariables = 'Check type of data required'.
ld_flag_updatecomms = 'Check type of data required'.
ld_flag_testmode = 'Check type of data required'.

Contribute (Add Comments)

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 BDM1MODEL_UPDVIEW or its description.