SAP MM_ARRANG_MAINTENANCE Function Module for NOTRANSL: Absprachepflege über Call-Dialog und Funktionsbaustein
MM_ARRANG_MAINTENANCE is a standard mm arrang maintenance 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: Absprachepflege über Call-Dialog und Funktionsbaustein 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 mm arrang maintenance FM, simply by entering the name MM_ARRANG_MAINTENANCE into the relevant SAP transaction such as SE37 or SE38.
Function Group: WNA1
Program Name: SAPLWNA1
Main Program: SAPLWNA1
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MM_ARRANG_MAINTENANCE 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 'MM_ARRANG_MAINTENANCE'"NOTRANSL: Absprachepflege über Call-Dialog und Funktionsbaustein.
EXPORTING
* I_T6B1 = ' ' "
* I_DATAB = "
* I_DATBI = "
* I_AKTNR_TXT = ' ' "Promotion Text
* I_AKTNR = ' ' "Promotion Number
* I_AKTION = ' ' "
* I_FCODE = "
* I_T6B1T = ' ' "
* I_KONA = ' ' "Rebate Arrangement
* I_KNUMA = ' ' "Arrangement No.
* I_BOART = ' ' "
* I_ABTYP_GENERAL = ' ' "Agreement category
I_AKTYP = "Activity Category
* I_KONA_DELETE = ' ' "
* I_ORGDATA = ' ' "
IMPORTING
I_KONA = "Rebate Arrangement
I_KNUMA = "Arrangement No.
I_T6B1 = "
I_T6B1T = "
E_SAVE_REQUESTED = "
E_ARRANGEMENT_CHANGE = "
E_DATALOSS = "Loss of Data Possible
EXCEPTIONS
NO_DATBI = 1 MISSING_BOART = 10 INVALID_BOART = 11 FATAL_ERROR = 12 KONA_NOT_FOUND = 13 ABTYP_ERROR = 14 INVALID_PROMOTION_DATA_SETTLE = 15 INVALID_COND_CLASS = 16 TABLE_NOT_VALID = 17 ENQUEUE_ON_RECORD = 18 NO_AUTHORITY = 19 NO_DATAB = 2 INVALID_AKTYP = 20 SOFTWARE_COMPONENT_NOT_ACTIVE = 21 NO_AKTYP = 3 NO_ARRANG_CREATE = 4 INVALID_ARRANG_DATA_SETTLE = 5 INVALID_KONA_NUMBER = 6 INVALID_DELETE = 7 INVALID_KOBOG = 8 KOBOG_NOT_COMPLET = 9
IMPORTING Parameters details for MM_ARRANG_MAINTENANCE
I_T6B1 -
Data type: T6B1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DATAB -
Data type: KONA-DATABOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DATBI -
Data type: KONA-DATBIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_AKTNR_TXT - Promotion Text
Data type: WAKT-AKTKTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_AKTNR - Promotion Number
Data type: KONA-AKTNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_AKTION -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FCODE -
Data type: T185-FCODEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_T6B1T -
Data type: T6B1TDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_KONA - Rebate Arrangement
Data type: KONADefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_KNUMA - Arrangement No.
Data type: KONA-KNUMADefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_BOART -
Data type: T6B1-BOARTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ABTYP_GENERAL - Agreement category
Data type: KONA-ABTYPDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_AKTYP - Activity Category
Data type: T180-AKTYPOptional: No
Call by Reference: No ( called with pass by value option)
I_KONA_DELETE -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ORGDATA -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for MM_ARRANG_MAINTENANCE
I_KONA - Rebate Arrangement
Data type: KONAOptional: No
Call by Reference: No ( called with pass by value option)
I_KNUMA - Arrangement No.
Data type: KONA-KNUMAOptional: No
Call by Reference: No ( called with pass by value option)
I_T6B1 -
Data type: T6B1Optional: No
Call by Reference: No ( called with pass by value option)
I_T6B1T -
Data type: T6B1TOptional: No
Call by Reference: No ( called with pass by value option)
E_SAVE_REQUESTED -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
E_ARRANGEMENT_CHANGE -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
E_DATALOSS - Loss of Data Possible
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_DATBI -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MISSING_BOART -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_BOART -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FATAL_ERROR - Internal error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
KONA_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ABTYP_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_PROMOTION_DATA_SETTLE - Invalid Date
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_COND_CLASS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLE_NOT_VALID - Invalid table
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ENQUEUE_ON_RECORD -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY - No Authorization
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_DATAB -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_AKTYP - Invalid activity type
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SOFTWARE_COMPONENT_NOT_ACTIVE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AKTYP -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_ARRANG_CREATE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_ARRANG_DATA_SETTLE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_KONA_NUMBER -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_DELETE - Deletion not possible
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_KOBOG -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
KOBOG_NOT_COMPLET -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MM_ARRANG_MAINTENANCE 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_i_kona | TYPE KONA, " | |||
| lv_i_t6b1 | TYPE T6B1, " SPACE | |||
| lv_no_datbi | TYPE T6B1, " | |||
| lv_i_datab | TYPE KONA-DATAB, " | |||
| lv_missing_boart | TYPE KONA, " | |||
| lv_i_datbi | TYPE KONA-DATBI, " | |||
| lv_invalid_boart | TYPE KONA, " | |||
| lv_fatal_error | TYPE KONA, " | |||
| lv_i_aktnr_txt | TYPE WAKT-AKTKT, " SPACE | |||
| lv_i_aktnr | TYPE KONA-AKTNR, " SPACE | |||
| lv_kona_not_found | TYPE KONA, " | |||
| lv_i_aktion | TYPE C, " SPACE | |||
| lv_abtyp_error | TYPE C, " | |||
| lv_i_fcode | TYPE T185-FCODE, " | |||
| lv_invalid_promotion_data_settle | TYPE T185, " | |||
| lv_invalid_cond_class | TYPE T185, " | |||
| lv_table_not_valid | TYPE T185, " | |||
| lv_enqueue_on_record | TYPE T185, " | |||
| lv_no_authority | TYPE T185, " | |||
| lv_i_knuma | TYPE KONA-KNUMA, " | |||
| lv_i_t6b1t | TYPE T6B1T, " SPACE | |||
| lv_no_datab | TYPE T6B1T, " | |||
| lv_invalid_aktyp | TYPE T6B1T, " | |||
| lv_software_component_not_active | TYPE T6B1T, " | |||
| lv_i_kona | TYPE KONA, " SPACE | |||
| lv_i_t6b1 | TYPE T6B1, " | |||
| lv_no_aktyp | TYPE T6B1, " | |||
| lv_i_knuma | TYPE KONA-KNUMA, " SPACE | |||
| lv_i_t6b1t | TYPE T6B1T, " | |||
| lv_no_arrang_create | TYPE T6B1T, " | |||
| lv_i_boart | TYPE T6B1-BOART, " SPACE | |||
| lv_e_save_requested | TYPE C, " | |||
| lv_invalid_arrang_data_settle | TYPE C, " | |||
| lv_i_abtyp_general | TYPE KONA-ABTYP, " SPACE | |||
| lv_invalid_kona_number | TYPE KONA, " | |||
| lv_e_arrangement_change | TYPE C, " | |||
| lv_i_aktyp | TYPE T180-AKTYP, " | |||
| lv_e_dataloss | TYPE C, " | |||
| lv_invalid_delete | TYPE C, " | |||
| lv_invalid_kobog | TYPE C, " | |||
| lv_i_kona_delete | TYPE C, " SPACE | |||
| lv_i_orgdata | TYPE C, " SPACE | |||
| lv_kobog_not_complet | TYPE C. " |
|   CALL FUNCTION 'MM_ARRANG_MAINTENANCE' "NOTRANSL: Absprachepflege über Call-Dialog und Funktionsbaustein |
| EXPORTING | ||
| I_T6B1 | = lv_i_t6b1 | |
| I_DATAB | = lv_i_datab | |
| I_DATBI | = lv_i_datbi | |
| I_AKTNR_TXT | = lv_i_aktnr_txt | |
| I_AKTNR | = lv_i_aktnr | |
| I_AKTION | = lv_i_aktion | |
| I_FCODE | = lv_i_fcode | |
| I_T6B1T | = lv_i_t6b1t | |
| I_KONA | = lv_i_kona | |
| I_KNUMA | = lv_i_knuma | |
| I_BOART | = lv_i_boart | |
| I_ABTYP_GENERAL | = lv_i_abtyp_general | |
| I_AKTYP | = lv_i_aktyp | |
| I_KONA_DELETE | = lv_i_kona_delete | |
| I_ORGDATA | = lv_i_orgdata | |
| IMPORTING | ||
| I_KONA | = lv_i_kona | |
| I_KNUMA | = lv_i_knuma | |
| I_T6B1 | = lv_i_t6b1 | |
| I_T6B1T | = lv_i_t6b1t | |
| E_SAVE_REQUESTED | = lv_e_save_requested | |
| E_ARRANGEMENT_CHANGE | = lv_e_arrangement_change | |
| E_DATALOSS | = lv_e_dataloss | |
| EXCEPTIONS | ||
| NO_DATBI = 1 | ||
| MISSING_BOART = 10 | ||
| INVALID_BOART = 11 | ||
| FATAL_ERROR = 12 | ||
| KONA_NOT_FOUND = 13 | ||
| ABTYP_ERROR = 14 | ||
| INVALID_PROMOTION_DATA_SETTLE = 15 | ||
| INVALID_COND_CLASS = 16 | ||
| TABLE_NOT_VALID = 17 | ||
| ENQUEUE_ON_RECORD = 18 | ||
| NO_AUTHORITY = 19 | ||
| NO_DATAB = 2 | ||
| INVALID_AKTYP = 20 | ||
| SOFTWARE_COMPONENT_NOT_ACTIVE = 21 | ||
| NO_AKTYP = 3 | ||
| NO_ARRANG_CREATE = 4 | ||
| INVALID_ARRANG_DATA_SETTLE = 5 | ||
| INVALID_KONA_NUMBER = 6 | ||
| INVALID_DELETE = 7 | ||
| INVALID_KOBOG = 8 | ||
| KOBOG_NOT_COMPLET = 9 | ||
| . " MM_ARRANG_MAINTENANCE | ||
ABAP code using 7.40 inline data declarations to call FM MM_ARRANG_MAINTENANCE
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.| DATA(ld_i_t6b1) | = ' '. | |||
| "SELECT single DATAB FROM KONA INTO @DATA(ld_i_datab). | ||||
| "SELECT single DATBI FROM KONA INTO @DATA(ld_i_datbi). | ||||
| "SELECT single AKTKT FROM WAKT INTO @DATA(ld_i_aktnr_txt). | ||||
| DATA(ld_i_aktnr_txt) | = ' '. | |||
| "SELECT single AKTNR FROM KONA INTO @DATA(ld_i_aktnr). | ||||
| DATA(ld_i_aktnr) | = ' '. | |||
| DATA(ld_i_aktion) | = ' '. | |||
| "SELECT single FCODE FROM T185 INTO @DATA(ld_i_fcode). | ||||
| "SELECT single KNUMA FROM KONA INTO @DATA(ld_i_knuma). | ||||
| DATA(ld_i_t6b1t) | = ' '. | |||
| DATA(ld_i_kona) | = ' '. | |||
| "SELECT single KNUMA FROM KONA INTO @DATA(ld_i_knuma). | ||||
| DATA(ld_i_knuma) | = ' '. | |||
| "SELECT single BOART FROM T6B1 INTO @DATA(ld_i_boart). | ||||
| DATA(ld_i_boart) | = ' '. | |||
| "SELECT single ABTYP FROM KONA INTO @DATA(ld_i_abtyp_general). | ||||
| DATA(ld_i_abtyp_general) | = ' '. | |||
| "SELECT single AKTYP FROM T180 INTO @DATA(ld_i_aktyp). | ||||
| DATA(ld_i_kona_delete) | = ' '. | |||
| DATA(ld_i_orgdata) | = ' '. | |||
Search for further information about these or an SAP related objects