SAP HRGPBS_DRILL_AUTHORITY_CHECK Function Module for Authority checking for cost objects









HRGPBS_DRILL_AUTHORITY_CHECK is a standard hrgpbs drill authority 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 Authority checking for cost objects 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 hrgpbs drill authority check FM, simply by entering the name HRGPBS_DRILL_AUTHORITY_CHECK into the relevant SAP transaction such as SE37 or SE38.

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



Function HRGPBS_DRILL_AUTHORITY_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 'HRGPBS_DRILL_AUTHORITY_CHECK'"Authority checking for cost objects
EXPORTING
CONTROLLING_AREA = "Controlling area
* STANDARD_CHECK = ' ' "check against default cost object profiles

TABLES
* R_KOSTL = "HRGBPS: Range of cost centers
* R_ORDER = "HRGBPS: Range of orders
* I_ERROR_TABLE = "HRGPBS: Error log structure
* R_WBS_ID = "HRGBPS: Range of WBS elements

EXCEPTIONS
NO_COST_OBJECTS = 1
.



IMPORTING Parameters details for HRGPBS_DRILL_AUTHORITY_CHECK

CONTROLLING_AREA - Controlling area

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

STANDARD_CHECK - check against default cost object profiles

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

TABLES Parameters details for HRGPBS_DRILL_AUTHORITY_CHECK

R_KOSTL - HRGBPS: Range of cost centers

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

R_ORDER - HRGBPS: Range of orders

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

I_ERROR_TABLE - HRGPBS: Error log structure

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

R_WBS_ID - HRGBPS: Range of WBS elements

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

EXCEPTIONS details

NO_COST_OBJECTS - no cost objects were selected

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for HRGPBS_DRILL_AUTHORITY_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:
lt_r_kostl  TYPE STANDARD TABLE OF P08P_DLR_KOSTL_RANGE, "   
lv_no_cost_objects  TYPE P08P_DLR_KOSTL_RANGE, "   
lv_controlling_area  TYPE KOKRS, "   
lt_r_order  TYPE STANDARD TABLE OF P08P_DLR_ORDER_RANGE, "   
lv_standard_check  TYPE C, "   ' '
lt_i_error_table  TYPE STANDARD TABLE OF HRGPBS_ERROR_LOG, "   
lt_r_wbs_id  TYPE STANDARD TABLE OF P08P_DLR_WBS_LIST. "   

  CALL FUNCTION 'HRGPBS_DRILL_AUTHORITY_CHECK'  "Authority checking for cost objects
    EXPORTING
         CONTROLLING_AREA = lv_controlling_area
         STANDARD_CHECK = lv_standard_check
    TABLES
         R_KOSTL = lt_r_kostl
         R_ORDER = lt_r_order
         I_ERROR_TABLE = lt_i_error_table
         R_WBS_ID = lt_r_wbs_id
    EXCEPTIONS
        NO_COST_OBJECTS = 1
. " HRGPBS_DRILL_AUTHORITY_CHECK




ABAP code using 7.40 inline data declarations to call FM HRGPBS_DRILL_AUTHORITY_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.

 
 
 
 
DATA(ld_standard_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!