SAP MABW_DIFF_MAINTAINED_ORGLEVS Function Module for NOTRANSL: Ermitteln der abweichend gepflegten Organisationsebenen
MABW_DIFF_MAINTAINED_ORGLEVS is a standard mabw diff maintained orglevs 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: Ermitteln der abweichend gepflegten Organisationsebenen 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 mabw diff maintained orglevs FM, simply by entering the name MABW_DIFF_MAINTAINED_ORGLEVS into the relevant SAP transaction such as SE37 or SE38.
Function Group: MGWL
Program Name: SAPLMGWL
Main Program: SAPLMGWL
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MABW_DIFF_MAINTAINED_ORGLEVS 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 'MABW_DIFF_MAINTAINED_ORGLEVS'"NOTRANSL: Ermitteln der abweichend gepflegten Organisationsebenen.
EXPORTING
S_RMMG1 = "
P_RPSTA = "
S_RMMW2 = "
IMPORTING
P_ABW_ART = "
TABLES
T_DIR_ABW = "
T_VTL_ABW = "
T_ABW_FELDER = "
EXCEPTIONS
MISSING_INPUT_DATA = 1 WRONG_INPUT_DATA = 2 NO_REF_PLANT_FOUND = 3 ASSIGN_ERROR = 4
IMPORTING Parameters details for MABW_DIFF_MAINTAINED_ORGLEVS
S_RMMG1 -
Data type: RMMG1Optional: No
Call by Reference: No ( called with pass by value option)
P_RPSTA -
Data type: T133A-RPSTAOptional: No
Call by Reference: No ( called with pass by value option)
S_RMMW2 -
Data type: RMMW2Optional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for MABW_DIFF_MAINTAINED_ORGLEVS
P_ABW_ART -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for MABW_DIFF_MAINTAINED_ORGLEVS
T_DIR_ABW -
Data type: MABWOptional: No
Call by Reference: No ( called with pass by value option)
T_VTL_ABW -
Data type: MABWOptional: No
Call by Reference: No ( called with pass by value option)
T_ABW_FELDER -
Data type: MABW_DETOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
MISSING_INPUT_DATA -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_INPUT_DATA - Incorrect Input Parameters
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_REF_PLANT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ASSIGN_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MABW_DIFF_MAINTAINED_ORGLEVS 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_s_rmmg1 | TYPE RMMG1, " | |||
| lv_p_abw_art | TYPE RMMG1, " | |||
| lt_t_dir_abw | TYPE STANDARD TABLE OF MABW, " | |||
| lv_missing_input_data | TYPE MABW, " | |||
| lv_p_rpsta | TYPE T133A-RPSTA, " | |||
| lt_t_vtl_abw | TYPE STANDARD TABLE OF MABW, " | |||
| lv_wrong_input_data | TYPE MABW, " | |||
| lv_s_rmmw2 | TYPE RMMW2, " | |||
| lt_t_abw_felder | TYPE STANDARD TABLE OF MABW_DET, " | |||
| lv_no_ref_plant_found | TYPE MABW_DET, " | |||
| lv_assign_error | TYPE MABW_DET. " |
|   CALL FUNCTION 'MABW_DIFF_MAINTAINED_ORGLEVS' "NOTRANSL: Ermitteln der abweichend gepflegten Organisationsebenen |
| EXPORTING | ||
| S_RMMG1 | = lv_s_rmmg1 | |
| P_RPSTA | = lv_p_rpsta | |
| S_RMMW2 | = lv_s_rmmw2 | |
| IMPORTING | ||
| P_ABW_ART | = lv_p_abw_art | |
| TABLES | ||
| T_DIR_ABW | = lt_t_dir_abw | |
| T_VTL_ABW | = lt_t_vtl_abw | |
| T_ABW_FELDER | = lt_t_abw_felder | |
| EXCEPTIONS | ||
| MISSING_INPUT_DATA = 1 | ||
| WRONG_INPUT_DATA = 2 | ||
| NO_REF_PLANT_FOUND = 3 | ||
| ASSIGN_ERROR = 4 | ||
| . " MABW_DIFF_MAINTAINED_ORGLEVS | ||
ABAP code using 7.40 inline data declarations to call FM MABW_DIFF_MAINTAINED_ORGLEVS
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 RPSTA FROM T133A INTO @DATA(ld_p_rpsta). | ||||
Search for further information about these or an SAP related objects