SAP Function Modules

DPWTY_MEASUREMENT_REGISTRATION SAP Function module - RFC Create measurement document for masterwarranty start







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

Associated Function Group: DPWTY_RFC
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM DPWTY_MEASUREMENT_REGISTRATION - DPWTY MEASUREMENT REGISTRATION





CALL FUNCTION 'DPWTY_MEASUREMENT_REGISTRATION' "RFC Create measurement document for masterwarranty start
  EXPORTING
    iv_relty =                  " wty_relty     Type of Warranty Object
*   iv_relob_ext =              " wty_relob_ext  External Object Number
*   iv_relob =                  " wty_relob     Internal Object Number
*   iv_equnr =                  " wty_equnr     Equipment Number
*   iv_serno =                  " wty_serno     Serial Number
    iv_mganr =                  " wty_mganr     Master Warranty
    iv_startdate =              " wty_gwldt     Start Date of Assigned Warranty
*   iv_initial_value =          " wty_counter_value  Value of Counter in Counter Unit
*   iv_counter_unit =           " wty_mseh6     Unit for Counter of Master Warranty
*   iv_short_text =             " imrc_mdtxt    Measurement Document Text
*   iv_time = '000010'          " imrc_itime    Current Time of Application Server
  IMPORTING
    et_return =                 " bapiret2_t    Return parameter table
    ev_nothing_done =           " flag          No document to create
    ev_mdocm =                  " imrg-mdocm    Measurement Document
    .  "  DPWTY_MEASUREMENT_REGISTRATION

ABAP code example for Function Module DPWTY_MEASUREMENT_REGISTRATION





The ABAP code below is a full code listing to execute function module DPWTY_MEASUREMENT_REGISTRATION 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_et_return  TYPE BAPIRET2_T ,
ld_ev_nothing_done  TYPE FLAG ,
ld_ev_mdocm  TYPE IMRG-MDOCM .

DATA(ld_iv_relty) = 'Check type of data required'.
DATA(ld_iv_relob_ext) = 'Check type of data required'.
DATA(ld_iv_relob) = 'Check type of data required'.
DATA(ld_iv_equnr) = 'Check type of data required'.
DATA(ld_iv_serno) = 'Check type of data required'.
DATA(ld_iv_mganr) = 'Check type of data required'.
DATA(ld_iv_startdate) = 'Check type of data required'.
DATA(ld_iv_initial_value) = 'Check type of data required'.
DATA(ld_iv_counter_unit) = 'Check type of data required'.
DATA(ld_iv_short_text) = 'Check type of data required'.
DATA(ld_iv_time) = 'Check type of data required'. . CALL FUNCTION 'DPWTY_MEASUREMENT_REGISTRATION' EXPORTING iv_relty = ld_iv_relty * iv_relob_ext = ld_iv_relob_ext * iv_relob = ld_iv_relob * iv_equnr = ld_iv_equnr * iv_serno = ld_iv_serno iv_mganr = ld_iv_mganr iv_startdate = ld_iv_startdate * iv_initial_value = ld_iv_initial_value * iv_counter_unit = ld_iv_counter_unit * iv_short_text = ld_iv_short_text * iv_time = ld_iv_time IMPORTING et_return = ld_et_return ev_nothing_done = ld_ev_nothing_done ev_mdocm = ld_ev_mdocm . " DPWTY_MEASUREMENT_REGISTRATION
IF SY-SUBRC EQ 0. "All OK 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_et_return  TYPE BAPIRET2_T ,
ld_iv_relty  TYPE WTY_RELTY ,
ld_ev_nothing_done  TYPE FLAG ,
ld_iv_relob_ext  TYPE WTY_RELOB_EXT ,
ld_ev_mdocm  TYPE IMRG-MDOCM ,
ld_iv_relob  TYPE WTY_RELOB ,
ld_iv_equnr  TYPE WTY_EQUNR ,
ld_iv_serno  TYPE WTY_SERNO ,
ld_iv_mganr  TYPE WTY_MGANR ,
ld_iv_startdate  TYPE WTY_GWLDT ,
ld_iv_initial_value  TYPE WTY_COUNTER_VALUE ,
ld_iv_counter_unit  TYPE WTY_MSEH6 ,
ld_iv_short_text  TYPE IMRC_MDTXT ,
ld_iv_time  TYPE IMRC_ITIME .

ld_iv_relty = 'Check type of data required'.
ld_iv_relob_ext = 'Check type of data required'.
ld_iv_relob = 'Check type of data required'.
ld_iv_equnr = 'Check type of data required'.
ld_iv_serno = 'Check type of data required'.
ld_iv_mganr = 'Check type of data required'.
ld_iv_startdate = 'Check type of data required'.
ld_iv_initial_value = 'Check type of data required'.
ld_iv_counter_unit = 'Check type of data required'.
ld_iv_short_text = 'Check type of data required'.
ld_iv_time = '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 DPWTY_MEASUREMENT_REGISTRATION or its description.