SAP MP_TRANS_WITHIN_OBJECT Function Module for NOTRANSL: Messwertweitergabe innerhalb eines Objekts
MP_TRANS_WITHIN_OBJECT is a standard mp trans within object SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Messwertweitergabe innerhalb eines Objekts processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for mp trans within object FM, simply by entering the name MP_TRANS_WITHIN_OBJECT into the relevant SAP transaction such as SE37 or SE38.
Function Group: IMR0
Program Name: SAPLIMR0
Main Program: SAPLIMR0
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MP_TRANS_WITHIN_OBJECT pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'MP_TRANS_WITHIN_OBJECT'"NOTRANSL: Messwertweitergabe innerhalb eines Objekts.
EXPORTING
IV_TRANS_POINT = "Measuring Point from Which Meas. Reading Was Transferred
IV_CHARACTERISTIC_NAME = "Characteristic Name
IS_ITOB = "Generated Table for View ITOB
IS_IMPT = "Measuring Point (Structure)
IV_TRANS_DATE_FROM = "Valid-from date
IV_TRANS_TIME_FROM = "Time: Valid From (Exclusive)
IV_ORIGIN_INDICATOR = "Origin indicator
IV_MEASUREMENT_TRANSFER_SUP = "Indicator That Measurement Reading Transfer is Supported
* IV_TRANSFER_TAKE_UP_DOCS_REQ = "
IMPORTING
ET_TRANSFER_TAKE_UP_DOCS = "
CHANGING
CT_RETURN = "Return Table
EXCEPTIONS
TRANSFER_POINT_MISSING = 1
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLIMR0_001 User Exit Before Update of Measuring Points/Documents (After COMMIT WORK)
EXIT_SAPLIMR0_002 User Exit for Customer Function in Measuring Point Menu
EXIT_SAPLIMR0_003 User Exit for Customer Function in Measurement Document Menu
EXIT_SAPLIMR0_004 Exit after standard checks for new measurement documents
IMPORTING Parameters details for MP_TRANS_WITHIN_OBJECT
IV_TRANS_POINT - Measuring Point from Which Meas. Reading Was Transferred
Data type: IMRC_TRANSOptional: No
Call by Reference: No ( called with pass by value option)
IV_CHARACTERISTIC_NAME - Characteristic Name
Data type: ATNAMOptional: No
Call by Reference: No ( called with pass by value option)
IS_ITOB - Generated Table for View ITOB
Data type: ITOBOptional: No
Call by Reference: No ( called with pass by value option)
IS_IMPT - Measuring Point (Structure)
Data type: IMPTOptional: No
Call by Reference: No ( called with pass by value option)
IV_TRANS_DATE_FROM - Valid-from date
Data type: IMRC_DATLOOptional: No
Call by Reference: No ( called with pass by value option)
IV_TRANS_TIME_FROM - Time: Valid From (Exclusive)
Data type: IMRC_TIMLOOptional: No
Call by Reference: No ( called with pass by value option)
IV_ORIGIN_INDICATOR - Origin indicator
Data type: IMRG-GENEROptional: No
Call by Reference: No ( called with pass by value option)
IV_MEASUREMENT_TRANSFER_SUP - Indicator That Measurement Reading Transfer is Supported
Data type: IMRC_INDTROptional: No
Call by Reference: No ( called with pass by value option)
IV_TRANSFER_TAKE_UP_DOCS_REQ -
Data type: FLAGOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for MP_TRANS_WITHIN_OBJECT
ET_TRANSFER_TAKE_UP_DOCS -
Data type: IMRG_TABOptional: No
Call by Reference: Yes
CHANGING Parameters details for MP_TRANS_WITHIN_OBJECT
CT_RETURN - Return Table
Data type: BAPIRET2_TOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
TRANSFER_POINT_MISSING -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for MP_TRANS_WITHIN_OBJECT Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_ct_return | TYPE BAPIRET2_T, " | |||
| lv_iv_trans_point | TYPE IMRC_TRANS, " | |||
| lv_transfer_point_missing | TYPE IMRC_TRANS, " | |||
| lv_et_transfer_take_up_docs | TYPE IMRG_TAB, " | |||
| lv_iv_characteristic_name | TYPE ATNAM, " | |||
| lv_is_itob | TYPE ITOB, " | |||
| lv_is_impt | TYPE IMPT, " | |||
| lv_iv_trans_date_from | TYPE IMRC_DATLO, " | |||
| lv_iv_trans_time_from | TYPE IMRC_TIMLO, " | |||
| lv_iv_origin_indicator | TYPE IMRG-GENER, " | |||
| lv_iv_measurement_transfer_sup | TYPE IMRC_INDTR, " | |||
| lv_iv_transfer_take_up_docs_req | TYPE FLAG. " |
|   CALL FUNCTION 'MP_TRANS_WITHIN_OBJECT' "NOTRANSL: Messwertweitergabe innerhalb eines Objekts |
| EXPORTING | ||
| IV_TRANS_POINT | = lv_iv_trans_point | |
| IV_CHARACTERISTIC_NAME | = lv_iv_characteristic_name | |
| IS_ITOB | = lv_is_itob | |
| IS_IMPT | = lv_is_impt | |
| IV_TRANS_DATE_FROM | = lv_iv_trans_date_from | |
| IV_TRANS_TIME_FROM | = lv_iv_trans_time_from | |
| IV_ORIGIN_INDICATOR | = lv_iv_origin_indicator | |
| IV_MEASUREMENT_TRANSFER_SUP | = lv_iv_measurement_transfer_sup | |
| IV_TRANSFER_TAKE_UP_DOCS_REQ | = lv_iv_transfer_take_up_docs_req | |
| IMPORTING | ||
| ET_TRANSFER_TAKE_UP_DOCS | = lv_et_transfer_take_up_docs | |
| CHANGING | ||
| CT_RETURN | = lv_ct_return | |
| EXCEPTIONS | ||
| TRANSFER_POINT_MISSING = 1 | ||
| . " MP_TRANS_WITHIN_OBJECT | ||
ABAP code using 7.40 inline data declarations to call FM MP_TRANS_WITHIN_OBJECT
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single GENER FROM IMRG INTO @DATA(ld_iv_origin_indicator). | ||||
Search for further information about these or an SAP related objects