SAP SD_COND_AUTH_CHECK Function Module for NOTRANSL: Berechtigung prüfung für Kondition auf VKORG-Ebene
SD_COND_AUTH_CHECK is a standard sd cond auth check 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: Berechtigung prüfung für Kondition auf VKORG-Ebene 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 sd cond auth check FM, simply by entering the name SD_COND_AUTH_CHECK into the relevant SAP transaction such as SE37 or SE38.
Function Group: V14A
Program Name: SAPLV14A
Main Program: SAPLV14A
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SD_COND_AUTH_CHECK 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 'SD_COND_AUTH_CHECK'"NOTRANSL: Berechtigung prüfung für Kondition auf VKORG-Ebene.
EXPORTING
* I_VKORG = "
I_ACTIVITY = "
* I_VTWEG = "
* I_SPART = "
* I_KSCHL = "
* I_KVEWE = "
* I_KAPPL = "
* I_KOTABNR = "
* I_EKORG = "
* I_BOART = "
IMPORTING
AUTHORITY_FIELD = "Character Field of Length 10
EXCEPTIONS
NO_AUTHORITY = 1
IMPORTING Parameters details for SD_COND_AUTH_CHECK
I_VKORG -
Data type: KOMG-VKORGOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ACTIVITY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
I_VTWEG -
Data type: KOMG-VTWEGOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SPART -
Data type: KOMG-SPARTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_KSCHL -
Data type: T685-KSCHLOptional: Yes
Call by Reference: No ( called with pass by value option)
I_KVEWE -
Data type: T681V-KVEWEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_KAPPL -
Data type: T681A-KAPPLOptional: Yes
Call by Reference: No ( called with pass by value option)
I_KOTABNR -
Data type: T681-KOTABNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_EKORG -
Data type: T024E-EKORGOptional: Yes
Call by Reference: No ( called with pass by value option)
I_BOART -
Data type: T6B1-BOARTOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SD_COND_AUTH_CHECK
AUTHORITY_FIELD - Character Field of Length 10
Data type: CHAR10Optional: No
Call by Reference: Yes
EXCEPTIONS details
NO_AUTHORITY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SD_COND_AUTH_CHECK 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_vkorg | TYPE KOMG-VKORG, " | |||
| lv_no_authority | TYPE KOMG, " | |||
| lv_authority_field | TYPE CHAR10, " | |||
| lv_i_activity | TYPE CHAR10, " | |||
| lv_i_vtweg | TYPE KOMG-VTWEG, " | |||
| lv_i_spart | TYPE KOMG-SPART, " | |||
| lv_i_kschl | TYPE T685-KSCHL, " | |||
| lv_i_kvewe | TYPE T681V-KVEWE, " | |||
| lv_i_kappl | TYPE T681A-KAPPL, " | |||
| lv_i_kotabnr | TYPE T681-KOTABNR, " | |||
| lv_i_ekorg | TYPE T024E-EKORG, " | |||
| lv_i_boart | TYPE T6B1-BOART. " |
|   CALL FUNCTION 'SD_COND_AUTH_CHECK' "NOTRANSL: Berechtigung prüfung für Kondition auf VKORG-Ebene |
| EXPORTING | ||
| I_VKORG | = lv_i_vkorg | |
| I_ACTIVITY | = lv_i_activity | |
| I_VTWEG | = lv_i_vtweg | |
| I_SPART | = lv_i_spart | |
| I_KSCHL | = lv_i_kschl | |
| I_KVEWE | = lv_i_kvewe | |
| I_KAPPL | = lv_i_kappl | |
| I_KOTABNR | = lv_i_kotabnr | |
| I_EKORG | = lv_i_ekorg | |
| I_BOART | = lv_i_boart | |
| IMPORTING | ||
| AUTHORITY_FIELD | = lv_authority_field | |
| EXCEPTIONS | ||
| NO_AUTHORITY = 1 | ||
| . " SD_COND_AUTH_CHECK | ||
ABAP code using 7.40 inline data declarations to call FM SD_COND_AUTH_CHECK
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 VKORG FROM KOMG INTO @DATA(ld_i_vkorg). | ||||
| "SELECT single VTWEG FROM KOMG INTO @DATA(ld_i_vtweg). | ||||
| "SELECT single SPART FROM KOMG INTO @DATA(ld_i_spart). | ||||
| "SELECT single KSCHL FROM T685 INTO @DATA(ld_i_kschl). | ||||
| "SELECT single KVEWE FROM T681V INTO @DATA(ld_i_kvewe). | ||||
| "SELECT single KAPPL FROM T681A INTO @DATA(ld_i_kappl). | ||||
| "SELECT single KOTABNR FROM T681 INTO @DATA(ld_i_kotabnr). | ||||
| "SELECT single EKORG FROM T024E INTO @DATA(ld_i_ekorg). | ||||
| "SELECT single BOART FROM T6B1 INTO @DATA(ld_i_boart). | ||||
Search for further information about these or an SAP related objects