SAP MM_ARRANG_CONDITION_EXIST Function Module for NOTRANSL: Prüfen von Konditionssätzen in Absprachen zum Kondgewährer vor A









MM_ARRANG_CONDITION_EXIST is a standard mm arrang condition exist 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: Prüfen von Konditionssätzen in Absprachen zum Kondgewährer vor A 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 condition exist FM, simply by entering the name MM_ARRANG_CONDITION_EXIST into the relevant SAP transaction such as SE37 or SE38.

Function Group: WNS1
Program Name: SAPLWNS1
Main Program:
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function MM_ARRANG_CONDITION_EXIST 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_CONDITION_EXIST'"NOTRANSL: Prüfen von Konditionssätzen in Absprachen zum Kondgewährer vor A
EXPORTING
* BOLIF = "Condition granter
* EKORG = "Purchasing Organization
* VALUE_CHECK = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* SELECTION_DATE = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* KOMG_VALUE = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* KOMG_FIELD = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* SINGLE_FIELD_CHECK = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION

TABLES
I_KOMG = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* ARRANGEMENTS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* VARIABLER_KEY = "DE-EN-LANG-SWITCH-NO-TRANSLATION
ERROR_MESSAGES = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* LIFNR_RAN = "
* EKORG_RAN = "

EXCEPTIONS
BOLIF_NOT_EXIST = 1 EKORG_BOLIF_NOT_EXIST = 2 BOLIF_NOT_BONUS = 3 ARRANG_NOT_EXIST = 4 ARRANG_NO_CONDITIONS = 5 INVALID_CONDITION_TABLE = 6 FIELD_NOT_IN_DDIC = 7 ARRANGEMENT_NOT_FOUND = 8
.



IMPORTING Parameters details for MM_ARRANG_CONDITION_EXIST

BOLIF - Condition granter

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

EKORG - Purchasing Organization

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

VALUE_CHECK - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

SELECTION_DATE - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

KOMG_VALUE - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

KOMG_FIELD - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

SINGLE_FIELD_CHECK - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

TABLES Parameters details for MM_ARRANG_CONDITION_EXIST

I_KOMG - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

ARRANGEMENTS - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

VARIABLER_KEY - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

ERROR_MESSAGES - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

LIFNR_RAN -

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

EKORG_RAN -

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

EXCEPTIONS details

BOLIF_NOT_EXIST - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

EKORG_BOLIF_NOT_EXIST - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

BOLIF_NOT_BONUS - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

ARRANG_NOT_EXIST - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

ARRANG_NO_CONDITIONS - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

INVALID_CONDITION_TABLE - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

FIELD_NOT_IN_DDIC - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

ARRANGEMENT_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for MM_ARRANG_CONDITION_EXIST 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_bolif  TYPE LFA1-LIFNR, "   
lt_i_komg  TYPE STANDARD TABLE OF KOMG, "   
lv_bolif_not_exist  TYPE KOMG, "   
lv_ekorg  TYPE T024E-EKORG, "   
lt_arrangements  TYPE STANDARD TABLE OF KONA, "   
lv_ekorg_bolif_not_exist  TYPE KONA, "   
lv_value_check  TYPE C, "   SPACE
lt_variabler_key  TYPE STANDARD TABLE OF VAKE, "   
lv_bolif_not_bonus  TYPE VAKE, "   
lt_error_messages  TYPE STANDARD TABLE OF ARRANG_ERR, "   
lv_selection_date  TYPE SY-DATUM, "   
lv_arrang_not_exist  TYPE SY, "   
lt_lifnr_ran  TYPE STANDARD TABLE OF LIFNR_RANG, "   
lv_komg_value  TYPE C, "   
lv_arrang_no_conditions  TYPE C, "   
lt_ekorg_ran  TYPE STANDARD TABLE OF EKORG_RANG, "   
lv_komg_field  TYPE C, "   
lv_invalid_condition_table  TYPE C, "   
lv_field_not_in_ddic  TYPE C, "   
lv_single_field_check  TYPE C, "   SPACE
lv_arrangement_not_found  TYPE C. "   

  CALL FUNCTION 'MM_ARRANG_CONDITION_EXIST'  "NOTRANSL: Prüfen von Konditionssätzen in Absprachen zum Kondgewährer vor A
    EXPORTING
         BOLIF = lv_bolif
         EKORG = lv_ekorg
         VALUE_CHECK = lv_value_check
         SELECTION_DATE = lv_selection_date
         KOMG_VALUE = lv_komg_value
         KOMG_FIELD = lv_komg_field
         SINGLE_FIELD_CHECK = lv_single_field_check
    TABLES
         I_KOMG = lt_i_komg
         ARRANGEMENTS = lt_arrangements
         VARIABLER_KEY = lt_variabler_key
         ERROR_MESSAGES = lt_error_messages
         LIFNR_RAN = lt_lifnr_ran
         EKORG_RAN = lt_ekorg_ran
    EXCEPTIONS
        BOLIF_NOT_EXIST = 1
        EKORG_BOLIF_NOT_EXIST = 2
        BOLIF_NOT_BONUS = 3
        ARRANG_NOT_EXIST = 4
        ARRANG_NO_CONDITIONS = 5
        INVALID_CONDITION_TABLE = 6
        FIELD_NOT_IN_DDIC = 7
        ARRANGEMENT_NOT_FOUND = 8
. " MM_ARRANG_CONDITION_EXIST




ABAP code using 7.40 inline data declarations to call FM MM_ARRANG_CONDITION_EXIST

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 LIFNR FROM LFA1 INTO @DATA(ld_bolif).
 
 
 
"SELECT single EKORG FROM T024E INTO @DATA(ld_ekorg).
 
 
 
DATA(ld_value_check) = ' '.
 
 
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_selection_date).
 
 
 
 
 
 
 
 
 
DATA(ld_single_field_check) = ' '.
 
 


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!