SAP BBP_CMS_AUTH_CHECK Function Module for Authorization Check from the Contarct Management Function









BBP_CMS_AUTH_CHECK is a standard bbp cms 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 Authorization Check from the Contarct Management Function 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 bbp cms auth check FM, simply by entering the name BBP_CMS_AUTH_CHECK into the relevant SAP transaction such as SE37 or SE38.

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



Function BBP_CMS_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 'BBP_CMS_AUTH_CHECK'"Authorization Check from the Contarct Management Function
EXPORTING
IV_PUR_ORG = "Purchasing organization
IV_DOCU_TYP = "CMS document type
IV_CONFIDENTIAL = "Checkbox
IV_ACT_COD = " Two digit number for Activity
* IV_LANGU = "Language according to ISO 639

IMPORTING
EV_RET_AUTH = "Return Value of ABAP Statements

TABLES
* IT_AUTH_ORGS = "Table of Authorized purchasing organizations
* IT_AUTH_USRS = "Table of Authorized users
ET_MESSAGE = "Return Parameter
.



IMPORTING Parameters details for BBP_CMS_AUTH_CHECK

IV_PUR_ORG - Purchasing organization

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

IV_DOCU_TYP - CMS document type

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

IV_CONFIDENTIAL - Checkbox

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

IV_ACT_COD - Two digit number for Activity

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

IV_LANGU - Language according to ISO 639

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

EXPORTING Parameters details for BBP_CMS_AUTH_CHECK

EV_RET_AUTH - Return Value of ABAP Statements

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

TABLES Parameters details for BBP_CMS_AUTH_CHECK

IT_AUTH_ORGS - Table of Authorized purchasing organizations

Data type: BBPS_CMS_DOC_PORG
Optional: Yes
Call by Reference: Yes

IT_AUTH_USRS - Table of Authorized users

Data type: BBPS_CMS_DOC_USER
Optional: Yes
Call by Reference: Yes

ET_MESSAGE - Return Parameter

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

Copy and paste ABAP code example for BBP_CMS_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_iv_pur_org  TYPE BBP_CMS_DOC_PORG, "   
lv_ev_ret_auth  TYPE SY-SUBRC, "   
lt_it_auth_orgs  TYPE STANDARD TABLE OF BBPS_CMS_DOC_PORG, "   
lv_iv_docu_typ  TYPE BBP_CMS_DOC_TYPE, "   
lt_it_auth_usrs  TYPE STANDARD TABLE OF BBPS_CMS_DOC_USER, "   
lt_et_message  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_iv_confidential  TYPE XFELD, "   
lv_iv_act_cod  TYPE ACTIV_AUTH, "   
lv_iv_langu  TYPE LAISO. "   

  CALL FUNCTION 'BBP_CMS_AUTH_CHECK'  "Authorization Check from the Contarct Management Function
    EXPORTING
         IV_PUR_ORG = lv_iv_pur_org
         IV_DOCU_TYP = lv_iv_docu_typ
         IV_CONFIDENTIAL = lv_iv_confidential
         IV_ACT_COD = lv_iv_act_cod
         IV_LANGU = lv_iv_langu
    IMPORTING
         EV_RET_AUTH = lv_ev_ret_auth
    TABLES
         IT_AUTH_ORGS = lt_it_auth_orgs
         IT_AUTH_USRS = lt_it_auth_usrs
         ET_MESSAGE = lt_et_message
. " BBP_CMS_AUTH_CHECK




ABAP code using 7.40 inline data declarations to call FM BBP_CMS_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 SUBRC FROM SY INTO @DATA(ld_ev_ret_auth).
 
 
 
 
 
 
 
 


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!