SAP PSM_AUTH_CHECK_DSTR Function Module for Authorization check: F_PSM_DRUL









PSM_AUTH_CHECK_DSTR is a standard psm auth check dstr SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Authorization check: F_PSM_DRUL 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 psm auth check dstr FM, simply by entering the name PSM_AUTH_CHECK_DSTR into the relevant SAP transaction such as SE37 or SE38.

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



Function PSM_AUTH_CHECK_DSTR 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 'PSM_AUTH_CHECK_DSTR'"Authorization check: F_PSM_DRUL
EXPORTING
I_ACTVT = "Activity
* I_ACTVT_A = "Activity
I_DRAPCL = "Application class for DD objects (not used)
I_DRSUBCL = "Subgroup by Application Class
I_DRSTRID = "Strategy ID
I_DRENV = "Environment for strategy
* I_MSGTY = "Message Type

IMPORTING
E_FLG_AUTH = "Checkbox
E_FLG_AUTH_A = "Checkbox
.




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_SAPLFMDT_001 FMDERIVE Customer User Exits
EXIT_SAPLFMDT_002 FMDERIVE Customer User Exits - Additional fields

IMPORTING Parameters details for PSM_AUTH_CHECK_DSTR

I_ACTVT - Activity

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

I_ACTVT_A - Activity

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

I_DRAPCL - Application class for DD objects (not used)

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

I_DRSUBCL - Subgroup by Application Class

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

I_DRSTRID - Strategy ID

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

I_DRENV - Environment for strategy

Data type: ABADRENV
Optional: No
Call by Reference: Yes

I_MSGTY - Message Type

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

EXPORTING Parameters details for PSM_AUTH_CHECK_DSTR

E_FLG_AUTH - Checkbox

Data type: FMDY-XFELD
Optional: No
Call by Reference: Yes

E_FLG_AUTH_A - Checkbox

Data type: FMDY-XFELD
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for PSM_AUTH_CHECK_DSTR 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_actvt  TYPE TACT-ACTVT, "   
lv_e_flg_auth  TYPE FMDY-XFELD, "   
lv_i_actvt_a  TYPE TACT-ACTVT, "   
lv_e_flg_auth_a  TYPE FMDY-XFELD, "   
lv_i_drapcl  TYPE TABADR-APPLCLASS, "   
lv_i_drsubcl  TYPE TABADR-SUBCLASS, "   
lv_i_drstrid  TYPE TABADR-ABADRSTRATID, "   
lv_i_drenv  TYPE ABADRENV, "   
lv_i_msgty  TYPE SY-MSGTY. "   

  CALL FUNCTION 'PSM_AUTH_CHECK_DSTR'  "Authorization check: F_PSM_DRUL
    EXPORTING
         I_ACTVT = lv_i_actvt
         I_ACTVT_A = lv_i_actvt_a
         I_DRAPCL = lv_i_drapcl
         I_DRSUBCL = lv_i_drsubcl
         I_DRSTRID = lv_i_drstrid
         I_DRENV = lv_i_drenv
         I_MSGTY = lv_i_msgty
    IMPORTING
         E_FLG_AUTH = lv_e_flg_auth
         E_FLG_AUTH_A = lv_e_flg_auth_a
. " PSM_AUTH_CHECK_DSTR




ABAP code using 7.40 inline data declarations to call FM PSM_AUTH_CHECK_DSTR

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 ACTVT FROM TACT INTO @DATA(ld_i_actvt).
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_e_flg_auth).
 
"SELECT single ACTVT FROM TACT INTO @DATA(ld_i_actvt_a).
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_e_flg_auth_a).
 
"SELECT single APPLCLASS FROM TABADR INTO @DATA(ld_i_drapcl).
 
"SELECT single SUBCLASS FROM TABADR INTO @DATA(ld_i_drsubcl).
 
"SELECT single ABADRSTRATID FROM TABADR INTO @DATA(ld_i_drstrid).
 
 
"SELECT single MSGTY FROM SY INTO @DATA(ld_i_msgty).
 


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!