SAP MM_ARRANG_SETTLE_DOC_NUMBERS Function Module for NOTRANSL: Abrechnungsbelege zu Konditionen von Absprachen suchen









MM_ARRANG_SETTLE_DOC_NUMBERS is a standard mm arrang settle doc numbers 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: Abrechnungsbelege zu Konditionen von Absprachen suchen 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 settle doc numbers FM, simply by entering the name MM_ARRANG_SETTLE_DOC_NUMBERS into the relevant SAP transaction such as SE37 or SE38.

Function Group: WN32
Program Name: SAPLWN32
Main Program:
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function MM_ARRANG_SETTLE_DOC_NUMBERS 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_SETTLE_DOC_NUMBERS'"NOTRANSL: Abrechnungsbelege zu Konditionen von Absprachen suchen
EXPORTING
* I_COND_NUMBER = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_COND_KOPOS = '01' "Condition item
I_ARRANGEMENT = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_ABRLF = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_READ_ALL_DOCS = 'X' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_DATA_FOR_LIST = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION

IMPORTING
E_ERROR = "Fatal Error

TABLES
* T_KNUMH_RAN = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* T_EBOX = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* T_BKPF = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* T_MCVBRKB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* T_MCWBRKB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* T_ERROR_MESSAGES = "Error Messages
* T_VARIABLE_KEY = "DE-EN-LANG-SWITCH-NO-TRANSLATION

EXCEPTIONS
RECORD_NOT_FOUND = 1 NO_KNUMH_FOUND = 2 NO_SETTLEMENT_DOCUMENTS = 3
.



IMPORTING Parameters details for MM_ARRANG_SETTLE_DOC_NUMBERS

I_COND_NUMBER - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: KONP-KNUMH
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_COND_KOPOS - Condition item

Data type: KONP-KOPOS
Default: '01'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ARRANGEMENT - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_ABRLF - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: EBOX-ABRLF
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_READ_ALL_DOCS - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_DATA_FOR_LIST - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: C
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for MM_ARRANG_SETTLE_DOC_NUMBERS

E_ERROR - Fatal Error

Data type: SY-SUBRC
Optional: No
Call by Reference: Yes

TABLES Parameters details for MM_ARRANG_SETTLE_DOC_NUMBERS

T_KNUMH_RAN - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

T_EBOX - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

T_BKPF - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

T_MCVBRKB - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

T_MCWBRKB - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

T_ERROR_MESSAGES - Error Messages

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

T_VARIABLE_KEY - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

EXCEPTIONS details

RECORD_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

NO_KNUMH_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

NO_SETTLEMENT_DOCUMENTS - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

Copy and paste ABAP code example for MM_ARRANG_SETTLE_DOC_NUMBERS 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_e_error  TYPE SY-SUBRC, "   
lt_t_knumh_ran  TYPE STANDARD TABLE OF KNUMH_RAN, "   
lv_i_cond_number  TYPE KONP-KNUMH, "   
lv_record_not_found  TYPE KONP, "   
lt_t_ebox  TYPE STANDARD TABLE OF EBOX, "   
lv_i_cond_kopos  TYPE KONP-KOPOS, "   '01'
lv_no_knumh_found  TYPE KONP, "   
lt_t_bkpf  TYPE STANDARD TABLE OF BKPF, "   
lv_i_arrangement  TYPE KONA, "   
lv_no_settlement_documents  TYPE KONA, "   
lv_i_abrlf  TYPE EBOX-ABRLF, "   
lt_t_mcvbrkb  TYPE STANDARD TABLE OF MCVBRKB, "   
lt_t_mcwbrkb  TYPE STANDARD TABLE OF MCWBRKB, "   
lv_i_read_all_docs  TYPE C, "   'X'
lv_i_data_for_list  TYPE C, "   ' '
lt_t_error_messages  TYPE STANDARD TABLE OF ARRANGERRA, "   
lt_t_variable_key  TYPE STANDARD TABLE OF VAKE. "   

  CALL FUNCTION 'MM_ARRANG_SETTLE_DOC_NUMBERS'  "NOTRANSL: Abrechnungsbelege zu Konditionen von Absprachen suchen
    EXPORTING
         I_COND_NUMBER = lv_i_cond_number
         I_COND_KOPOS = lv_i_cond_kopos
         I_ARRANGEMENT = lv_i_arrangement
         I_ABRLF = lv_i_abrlf
         I_READ_ALL_DOCS = lv_i_read_all_docs
         I_DATA_FOR_LIST = lv_i_data_for_list
    IMPORTING
         E_ERROR = lv_e_error
    TABLES
         T_KNUMH_RAN = lt_t_knumh_ran
         T_EBOX = lt_t_ebox
         T_BKPF = lt_t_bkpf
         T_MCVBRKB = lt_t_mcvbrkb
         T_MCWBRKB = lt_t_mcwbrkb
         T_ERROR_MESSAGES = lt_t_error_messages
         T_VARIABLE_KEY = lt_t_variable_key
    EXCEPTIONS
        RECORD_NOT_FOUND = 1
        NO_KNUMH_FOUND = 2
        NO_SETTLEMENT_DOCUMENTS = 3
. " MM_ARRANG_SETTLE_DOC_NUMBERS




ABAP code using 7.40 inline data declarations to call FM MM_ARRANG_SETTLE_DOC_NUMBERS

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 SUBRC FROM SY INTO @DATA(ld_e_error).
 
 
"SELECT single KNUMH FROM KONP INTO @DATA(ld_i_cond_number).
 
 
 
"SELECT single KOPOS FROM KONP INTO @DATA(ld_i_cond_kopos).
DATA(ld_i_cond_kopos) = '01'.
 
 
 
 
 
"SELECT single ABRLF FROM EBOX INTO @DATA(ld_i_abrlf).
 
 
 
DATA(ld_i_read_all_docs) = 'X'.
 
DATA(ld_i_data_for_list) = ' '.
 
 
 


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!