SAP MR_STRING_DETERMINE Function Module for NOTRANSL: Ermittlung des Buchungsstrings und der BUZID
MR_STRING_DETERMINE is a standard mr string determine 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: Ermittlung des Buchungsstrings und der BUZID 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 mr string determine FM, simply by entering the name MR_STRING_DETERMINE into the relevant SAP transaction such as SE37 or SE38.
Function Group: KONT
Program Name: SAPLKONT
Main Program: SAPLKONT
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MR_STRING_DETERMINE 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 'MR_STRING_DETERMINE'"NOTRANSL: Ermittlung des Buchungsstrings und der BUZID.
EXPORTING
I_KNTTP = "
I_KOART = "Account Type
I_PSTYP = "
I_VGART = "Transaction/Event Type
* I_XEKBZ = ' ' "
* I_KZBWS = ' ' "
* I_ANLN1 = "
* I_TBTKZ = "
IMPORTING
E_BUSTW = "Posting String
E_BUZID = "
EXCEPTIONS
NOT_FOUND_T163K = 1 NOT_FOUND_T169W = 2
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLKONT_001 User Exit Before MR_CHECK_TOLERANCE
EXIT_SAPLKONT_002 Customer Exit: Change Tolerance Check - Conventional Invoice Verification
EXIT_SAPLKONT_011 Account Grouping for GR/IR Account Determination
EXIT_SAPLKONT_412 Brazil: User Exit to determination Acct Modif.for 3rd NF for F. Del.
IMPORTING Parameters details for MR_STRING_DETERMINE
I_KNTTP -
Data type: EKPO-KNTTPOptional: No
Call by Reference: No ( called with pass by value option)
I_KOART - Account Type
Data type: ACCIT-KOARTOptional: No
Call by Reference: No ( called with pass by value option)
I_PSTYP -
Data type: EKPO-PSTYPOptional: No
Call by Reference: No ( called with pass by value option)
I_VGART - Transaction/Event Type
Data type: T169-VGARTOptional: No
Call by Reference: No ( called with pass by value option)
I_XEKBZ -
Data type: DRSEG-XEKBZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_KZBWS -
Data type: DRSEG-KZBWSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ANLN1 -
Data type: BSEG-ANLN1Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TBTKZ -
Data type: RSEG-TBTKZOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for MR_STRING_DETERMINE
E_BUSTW - Posting String
Data type: T169W-BUSTWOptional: No
Call by Reference: No ( called with pass by value option)
E_BUZID -
Data type: ACCIT-BUZIDOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_FOUND_T163K -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_FOUND_T169W -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MR_STRING_DETERMINE 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_bustw | TYPE T169W-BUSTW, " | |||
| lv_i_knttp | TYPE EKPO-KNTTP, " | |||
| lv_not_found_t163k | TYPE EKPO, " | |||
| lv_e_buzid | TYPE ACCIT-BUZID, " | |||
| lv_i_koart | TYPE ACCIT-KOART, " | |||
| lv_not_found_t169w | TYPE ACCIT, " | |||
| lv_i_pstyp | TYPE EKPO-PSTYP, " | |||
| lv_i_vgart | TYPE T169-VGART, " | |||
| lv_i_xekbz | TYPE DRSEG-XEKBZ, " SPACE | |||
| lv_i_kzbws | TYPE DRSEG-KZBWS, " SPACE | |||
| lv_i_anln1 | TYPE BSEG-ANLN1, " | |||
| lv_i_tbtkz | TYPE RSEG-TBTKZ. " |
|   CALL FUNCTION 'MR_STRING_DETERMINE' "NOTRANSL: Ermittlung des Buchungsstrings und der BUZID |
| EXPORTING | ||
| I_KNTTP | = lv_i_knttp | |
| I_KOART | = lv_i_koart | |
| I_PSTYP | = lv_i_pstyp | |
| I_VGART | = lv_i_vgart | |
| I_XEKBZ | = lv_i_xekbz | |
| I_KZBWS | = lv_i_kzbws | |
| I_ANLN1 | = lv_i_anln1 | |
| I_TBTKZ | = lv_i_tbtkz | |
| IMPORTING | ||
| E_BUSTW | = lv_e_bustw | |
| E_BUZID | = lv_e_buzid | |
| EXCEPTIONS | ||
| NOT_FOUND_T163K = 1 | ||
| NOT_FOUND_T169W = 2 | ||
| . " MR_STRING_DETERMINE | ||
ABAP code using 7.40 inline data declarations to call FM MR_STRING_DETERMINE
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 BUSTW FROM T169W INTO @DATA(ld_e_bustw). | ||||
| "SELECT single KNTTP FROM EKPO INTO @DATA(ld_i_knttp). | ||||
| "SELECT single BUZID FROM ACCIT INTO @DATA(ld_e_buzid). | ||||
| "SELECT single KOART FROM ACCIT INTO @DATA(ld_i_koart). | ||||
| "SELECT single PSTYP FROM EKPO INTO @DATA(ld_i_pstyp). | ||||
| "SELECT single VGART FROM T169 INTO @DATA(ld_i_vgart). | ||||
| "SELECT single XEKBZ FROM DRSEG INTO @DATA(ld_i_xekbz). | ||||
| DATA(ld_i_xekbz) | = ' '. | |||
| "SELECT single KZBWS FROM DRSEG INTO @DATA(ld_i_kzbws). | ||||
| DATA(ld_i_kzbws) | = ' '. | |||
| "SELECT single ANLN1 FROM BSEG INTO @DATA(ld_i_anln1). | ||||
| "SELECT single TBTKZ FROM RSEG INTO @DATA(ld_i_tbtkz). | ||||
Search for further information about these or an SAP related objects