SAP MM_ARRANG_USER_COMMAND Function Module for NOTRANSL: Ereignis at user-command Listreports Absprachen Einkauf
MM_ARRANG_USER_COMMAND is a standard mm arrang user command 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: Ereignis at user-command Listreports Absprachen Einkauf 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 user command FM, simply by entering the name MM_ARRANG_USER_COMMAND into the relevant SAP transaction such as SE37 or SE38.
Function Group: WN10
Program Name: SAPLWN10
Main Program: SAPLWN10
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MM_ARRANG_USER_COMMAND 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_USER_COMMAND'"NOTRANSL: Ereignis at user-command Listreports Absprachen Einkauf.
EXPORTING
OK_CODE = "Code of function to be performed
* I_HIDE_KONA = "Hide variable for interactive reporting
* I_HI_SETTLEMENT_VALUES = "Hide variable for interactive reporting
* I_HIDE_EKBO = "Hide variable for interactive reporting
* I_HIDE_EBOX = "
* I_HIDE_PARTNER = "Hide variable for interactive reporting
* I_HIDE_ERROR_MESSAGES = "Hide variable for interactive reporting
REPORT_TYP = "Type of report (settlement, business volume, etc.)
* NOCHANGE = 'X' "No functions with database changes
* TURN_OVER_TYPE = '000' "Version of statistical data
* TURN_OVER_NOT_VALID = ' ' "Vendor business volume imported, data in list invalid
* I_TURN_OVER_KSPAE = "Analysis: default value for scope of analysis
* I_DOCUMENT_PAKET_SIZE = 100 "
* I_STAT_DATA_DELETE = ' ' "
* I_NO_CHECK_LEFT_TO_RIGHT = ' ' "Compare documents: error in case of difference
IMPORTING
HIDE_KONA = "Hide variable for interactive reporting
HIDE_LINE_TYPE = "Hide variable for interactive reporting
HI_SETTLEMENT_VALUES = "Hide variable for interactive reporting
HIDE_EKBO = "Hide variable for interactive reporting
HIDE_EBOX = "
HIDE_PARTNER = "Hide variable for interactive reporting
HIDE_ERROR_MESSAGES = "Hide variable for interactive reporting
ES_BOSTA_CHANGE = "
TABLES
* T_SORT_KONA = "Control data, rebate arrangement (external data)
EXCEPTIONS
INVALID_REPORT_TYPE = 1
IMPORTING Parameters details for MM_ARRANG_USER_COMMAND
OK_CODE - Code of function to be performed
Data type: SY-UCOMMOptional: No
Call by Reference: No ( called with pass by value option)
I_HIDE_KONA - Hide variable for interactive reporting
Data type: KONAOptional: Yes
Call by Reference: No ( called with pass by value option)
I_HI_SETTLEMENT_VALUES - Hide variable for interactive reporting
Data type: ARRANG_VALOptional: Yes
Call by Reference: No ( called with pass by value option)
I_HIDE_EKBO - Hide variable for interactive reporting
Data type: RNACHWEISOptional: Yes
Call by Reference: No ( called with pass by value option)
I_HIDE_EBOX -
Data type: EBOXOptional: Yes
Call by Reference: No ( called with pass by value option)
I_HIDE_PARTNER - Hide variable for interactive reporting
Data type: KOPAOptional: Yes
Call by Reference: No ( called with pass by value option)
I_HIDE_ERROR_MESSAGES - Hide variable for interactive reporting
Data type: ARRANG_ERROptional: Yes
Call by Reference: No ( called with pass by value option)
REPORT_TYP - Type of report (settlement, business volume, etc.)
Data type: RWM02-REPOTOptional: No
Call by Reference: No ( called with pass by value option)
NOCHANGE - No functions with database changes
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TURN_OVER_TYPE - Version of statistical data
Data type: RWM01-VRSIODefault: '000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TURN_OVER_NOT_VALID - Vendor business volume imported, data in list invalid
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TURN_OVER_KSPAE - Analysis: default value for scope of analysis
Data type: RWM01-KSPAEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DOCUMENT_PAKET_SIZE -
Data type: RWM01-DCSTPDefault: 100
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_STAT_DATA_DELETE -
Data type: RWM02-DELTODefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_NO_CHECK_LEFT_TO_RIGHT - Compare documents: error in case of difference
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for MM_ARRANG_USER_COMMAND
HIDE_KONA - Hide variable for interactive reporting
Data type: KONAOptional: No
Call by Reference: Yes
HIDE_LINE_TYPE - Hide variable for interactive reporting
Data type: COptional: No
Call by Reference: Yes
HI_SETTLEMENT_VALUES - Hide variable for interactive reporting
Data type: ARRANG_VALOptional: No
Call by Reference: Yes
HIDE_EKBO - Hide variable for interactive reporting
Data type: RNACHWEISOptional: No
Call by Reference: Yes
HIDE_EBOX -
Data type: EBOXOptional: No
Call by Reference: Yes
HIDE_PARTNER - Hide variable for interactive reporting
Data type: KOPAOptional: No
Call by Reference: Yes
HIDE_ERROR_MESSAGES - Hide variable for interactive reporting
Data type: ARRANG_ERROptional: No
Call by Reference: Yes
ES_BOSTA_CHANGE -
Data type: ARRANG_BOSTA_CHANGE_STYOptional: No
Call by Reference: Yes
TABLES Parameters details for MM_ARRANG_USER_COMMAND
T_SORT_KONA - Control data, rebate arrangement (external data)
Data type: KONA_MMINDOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INVALID_REPORT_TYPE - Type of report not defined
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MM_ARRANG_USER_COMMAND 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_ok_code | TYPE SY-UCOMM, " | |||
| lv_hide_kona | TYPE KONA, " | |||
| lt_t_sort_kona | TYPE STANDARD TABLE OF KONA_MMIND, " | |||
| lv_invalid_report_type | TYPE KONA_MMIND, " | |||
| lv_i_hide_kona | TYPE KONA, " | |||
| lv_i_hi_settlement_values | TYPE ARRANG_VAL, " | |||
| lv_i_hide_ekbo | TYPE RNACHWEIS, " | |||
| lv_i_hide_ebox | TYPE EBOX, " | |||
| lv_i_hide_partner | TYPE KOPA, " | |||
| lv_i_hide_error_messages | TYPE ARRANG_ERR, " | |||
| lv_report_typ | TYPE RWM02-REPOT, " | |||
| lv_hide_line_type | TYPE C, " | |||
| lv_nochange | TYPE C, " 'X' | |||
| lv_hi_settlement_values | TYPE ARRANG_VAL, " | |||
| lv_hide_ekbo | TYPE RNACHWEIS, " | |||
| lv_turn_over_type | TYPE RWM01-VRSIO, " '000' | |||
| lv_hide_ebox | TYPE EBOX, " | |||
| lv_turn_over_not_valid | TYPE C, " SPACE | |||
| lv_hide_partner | TYPE KOPA, " | |||
| lv_i_turn_over_kspae | TYPE RWM01-KSPAE, " | |||
| lv_hide_error_messages | TYPE ARRANG_ERR, " | |||
| lv_i_document_paket_size | TYPE RWM01-DCSTP, " 100 | |||
| lv_es_bosta_change | TYPE ARRANG_BOSTA_CHANGE_STY, " | |||
| lv_i_stat_data_delete | TYPE RWM02-DELTO, " SPACE | |||
| lv_i_no_check_left_to_right | TYPE C. " SPACE |
|   CALL FUNCTION 'MM_ARRANG_USER_COMMAND' "NOTRANSL: Ereignis at user-command Listreports Absprachen Einkauf |
| EXPORTING | ||
| OK_CODE | = lv_ok_code | |
| I_HIDE_KONA | = lv_i_hide_kona | |
| I_HI_SETTLEMENT_VALUES | = lv_i_hi_settlement_values | |
| I_HIDE_EKBO | = lv_i_hide_ekbo | |
| I_HIDE_EBOX | = lv_i_hide_ebox | |
| I_HIDE_PARTNER | = lv_i_hide_partner | |
| I_HIDE_ERROR_MESSAGES | = lv_i_hide_error_messages | |
| REPORT_TYP | = lv_report_typ | |
| NOCHANGE | = lv_nochange | |
| TURN_OVER_TYPE | = lv_turn_over_type | |
| TURN_OVER_NOT_VALID | = lv_turn_over_not_valid | |
| I_TURN_OVER_KSPAE | = lv_i_turn_over_kspae | |
| I_DOCUMENT_PAKET_SIZE | = lv_i_document_paket_size | |
| I_STAT_DATA_DELETE | = lv_i_stat_data_delete | |
| I_NO_CHECK_LEFT_TO_RIGHT | = lv_i_no_check_left_to_right | |
| IMPORTING | ||
| HIDE_KONA | = lv_hide_kona | |
| HIDE_LINE_TYPE | = lv_hide_line_type | |
| HI_SETTLEMENT_VALUES | = lv_hi_settlement_values | |
| HIDE_EKBO | = lv_hide_ekbo | |
| HIDE_EBOX | = lv_hide_ebox | |
| HIDE_PARTNER | = lv_hide_partner | |
| HIDE_ERROR_MESSAGES | = lv_hide_error_messages | |
| ES_BOSTA_CHANGE | = lv_es_bosta_change | |
| TABLES | ||
| T_SORT_KONA | = lt_t_sort_kona | |
| EXCEPTIONS | ||
| INVALID_REPORT_TYPE = 1 | ||
| . " MM_ARRANG_USER_COMMAND | ||
ABAP code using 7.40 inline data declarations to call FM MM_ARRANG_USER_COMMAND
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 UCOMM FROM SY INTO @DATA(ld_ok_code). | ||||
| "SELECT single REPOT FROM RWM02 INTO @DATA(ld_report_typ). | ||||
| DATA(ld_nochange) | = 'X'. | |||
| "SELECT single VRSIO FROM RWM01 INTO @DATA(ld_turn_over_type). | ||||
| DATA(ld_turn_over_type) | = '000'. | |||
| DATA(ld_turn_over_not_valid) | = ' '. | |||
| "SELECT single KSPAE FROM RWM01 INTO @DATA(ld_i_turn_over_kspae). | ||||
| "SELECT single DCSTP FROM RWM01 INTO @DATA(ld_i_document_paket_size). | ||||
| DATA(ld_i_document_paket_size) | = 100. | |||
| "SELECT single DELTO FROM RWM02 INTO @DATA(ld_i_stat_data_delete). | ||||
| DATA(ld_i_stat_data_delete) | = ' '. | |||
| DATA(ld_i_no_check_left_to_right) | = ' '. | |||
Search for further information about these or an SAP related objects