SAP MEASUREM_DOCUM_INTERVAL_SPLIT Function Module for NOTRANSL: Intervallbeleg bei Bedarf splitten









MEASUREM_DOCUM_INTERVAL_SPLIT is a standard measurem docum interval split 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: Intervallbeleg bei Bedarf splitten 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 measurem docum interval split FM, simply by entering the name MEASUREM_DOCUM_INTERVAL_SPLIT 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 MEASUREM_DOCUM_INTERVAL_SPLIT 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 'MEASUREM_DOCUM_INTERVAL_SPLIT'"NOTRANSL: Intervallbeleg bei Bedarf splitten
EXPORTING
* DOCUMENT_TO_SPLIT = ' ' "Measurement Document
* MEASUREMENT_POINT = ' ' "Measuring Point
SPLIT_DATE = "Date of the Measurement
SPLIT_TIME = "Time of Measurement
* UPDATE_BUFFER = 'X' "Yes/No (X/ )
* UPDATE_ONLY_IF_GAP = ' ' "Yes/No (X/ )
* MDOCM_IGNORE = ' ' "Measurement Document

IMPORTING
IMRG_FOUND = "Measurement Document
IMRG_SPLIT_LO = "Measurement Document
IMRG_SPLIT_HI = "Measurement Document
SPLIT_TIME_OCCUPIED = "Yes/No (X/ )
SPLIT_NOT_REQUIRED = "Yes/No (X/ )
REAL_SPLIT = "Yes/No (X/ )

EXCEPTIONS
SPLIT_NOT_ALLOWED = 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 MEASUREM_DOCUM_INTERVAL_SPLIT

DOCUMENT_TO_SPLIT - Measurement Document

Data type: IMRG-MDOCM
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

MEASUREMENT_POINT - Measuring Point

Data type: IMRG-POINT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

SPLIT_DATE - Date of the Measurement

Data type: IMRG-IDATE
Optional: No
Call by Reference: No ( called with pass by value option)

SPLIT_TIME - Time of Measurement

Data type: IMRG-ITIME
Optional: No
Call by Reference: No ( called with pass by value option)

UPDATE_BUFFER - Yes/No (X/ )

Data type: IREF-IIND
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

UPDATE_ONLY_IF_GAP - Yes/No (X/ )

Data type: IREF-IIND
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

MDOCM_IGNORE - Measurement Document

Data type: IMRG-MDOCM
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for MEASUREM_DOCUM_INTERVAL_SPLIT

IMRG_FOUND - Measurement Document

Data type: IMRG
Optional: No
Call by Reference: No ( called with pass by value option)

IMRG_SPLIT_LO - Measurement Document

Data type: IMRG
Optional: No
Call by Reference: No ( called with pass by value option)

IMRG_SPLIT_HI - Measurement Document

Data type: IMRG
Optional: No
Call by Reference: No ( called with pass by value option)

SPLIT_TIME_OCCUPIED - Yes/No (X/ )

Data type: IREF-IIND
Optional: No
Call by Reference: No ( called with pass by value option)

SPLIT_NOT_REQUIRED - Yes/No (X/ )

Data type: IREF-IIND
Optional: No
Call by Reference: No ( called with pass by value option)

REAL_SPLIT - Yes/No (X/ )

Data type: IREF-IIND
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

SPLIT_NOT_ALLOWED - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for MEASUREM_DOCUM_INTERVAL_SPLIT 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_imrg_found  TYPE IMRG, "   
lv_document_to_split  TYPE IMRG-MDOCM, "   SPACE
lv_split_not_allowed  TYPE IMRG, "   
lv_imrg_split_lo  TYPE IMRG, "   
lv_measurement_point  TYPE IMRG-POINT, "   SPACE
lv_split_date  TYPE IMRG-IDATE, "   
lv_imrg_split_hi  TYPE IMRG, "   
lv_split_time  TYPE IMRG-ITIME, "   
lv_split_time_occupied  TYPE IREF-IIND, "   
lv_update_buffer  TYPE IREF-IIND, "   'X'
lv_split_not_required  TYPE IREF-IIND, "   
lv_real_split  TYPE IREF-IIND, "   
lv_update_only_if_gap  TYPE IREF-IIND, "   SPACE
lv_mdocm_ignore  TYPE IMRG-MDOCM. "   SPACE

  CALL FUNCTION 'MEASUREM_DOCUM_INTERVAL_SPLIT'  "NOTRANSL: Intervallbeleg bei Bedarf splitten
    EXPORTING
         DOCUMENT_TO_SPLIT = lv_document_to_split
         MEASUREMENT_POINT = lv_measurement_point
         SPLIT_DATE = lv_split_date
         SPLIT_TIME = lv_split_time
         UPDATE_BUFFER = lv_update_buffer
         UPDATE_ONLY_IF_GAP = lv_update_only_if_gap
         MDOCM_IGNORE = lv_mdocm_ignore
    IMPORTING
         IMRG_FOUND = lv_imrg_found
         IMRG_SPLIT_LO = lv_imrg_split_lo
         IMRG_SPLIT_HI = lv_imrg_split_hi
         SPLIT_TIME_OCCUPIED = lv_split_time_occupied
         SPLIT_NOT_REQUIRED = lv_split_not_required
         REAL_SPLIT = lv_real_split
    EXCEPTIONS
        SPLIT_NOT_ALLOWED = 1
. " MEASUREM_DOCUM_INTERVAL_SPLIT




ABAP code using 7.40 inline data declarations to call FM MEASUREM_DOCUM_INTERVAL_SPLIT

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 MDOCM FROM IMRG INTO @DATA(ld_document_to_split).
DATA(ld_document_to_split) = ' '.
 
 
 
"SELECT single POINT FROM IMRG INTO @DATA(ld_measurement_point).
DATA(ld_measurement_point) = ' '.
 
"SELECT single IDATE FROM IMRG INTO @DATA(ld_split_date).
 
 
"SELECT single ITIME FROM IMRG INTO @DATA(ld_split_time).
 
"SELECT single IIND FROM IREF INTO @DATA(ld_split_time_occupied).
 
"SELECT single IIND FROM IREF INTO @DATA(ld_update_buffer).
DATA(ld_update_buffer) = 'X'.
 
"SELECT single IIND FROM IREF INTO @DATA(ld_split_not_required).
 
"SELECT single IIND FROM IREF INTO @DATA(ld_real_split).
 
"SELECT single IIND FROM IREF INTO @DATA(ld_update_only_if_gap).
DATA(ld_update_only_if_gap) = ' '.
 
"SELECT single MDOCM FROM IMRG INTO @DATA(ld_mdocm_ignore).
DATA(ld_mdocm_ignore) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!