SAP HRGPBS_DRILL_READ_COVP Function Module for Read from table COVP









HRGPBS_DRILL_READ_COVP is a standard hrgpbs drill read covp SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read from table COVP 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 read covp FM, simply by entering the name HRGPBS_DRILL_READ_COVP into the relevant SAP transaction such as SE37 or SE38.

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



Function HRGPBS_DRILL_READ_COVP 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_READ_COVP'"Read from table COVP
EXPORTING
ID_ACTIVITY = "C = create;R = reverse;G = get reposting
* DOC_TYPE = 'HRPAY' "Reference procedure
CONTROLLING_AREA = "Controlling Area

TABLES
R_KOSTL = "HRGBPS: Range of cost centers
R_ORDER = "HRGBPS: Range of orders
R_WBS_ID = "HRGBPS: Range of WBS elements
R_WBS_ORIG = "HRGBPS: Range of WBS elements
R_BUDAT = "HRGBPS: Range of posting dates
R_PERIOD = "HRGBPS: Range of FI periods
R_YEAR = "HRGBPS: Range of fiscal years
R_ELEM = "HRGBPS: Range of G/L accounts
IT_DOCNUM = "HRGBPS:Document numbers for selection from HR posting tables

EXCEPTIONS
COVP_ERROR = 1 NO_HR_DOCS = 2
.



IMPORTING Parameters details for HRGPBS_DRILL_READ_COVP

ID_ACTIVITY - C = create;R = reverse;G = get reposting

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

DOC_TYPE - Reference procedure

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

CONTROLLING_AREA - Controlling Area

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

TABLES Parameters details for HRGPBS_DRILL_READ_COVP

R_KOSTL - HRGBPS: Range of cost centers

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

R_ORDER - HRGBPS: Range of orders

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

R_WBS_ID - HRGBPS: Range of WBS elements

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

R_WBS_ORIG - HRGBPS: Range of WBS elements

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

R_BUDAT - HRGBPS: Range of posting dates

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

R_PERIOD - HRGBPS: Range of FI periods

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

R_YEAR - HRGBPS: Range of fiscal years

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

R_ELEM - HRGBPS: Range of G/L accounts

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

IT_DOCNUM - HRGBPS:Document numbers for selection from HR posting tables

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

EXCEPTIONS details

COVP_ERROR - Error when reading COVP

Data type:
Optional: No
Call by Reference: Yes

NO_HR_DOCS - nor HR documents have been selected

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for HRGPBS_DRILL_READ_COVP 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_covp_error  TYPE P08P_DLR_KOSTL_RANGE, "   
lv_id_activity  TYPE C, "   
lt_r_order  TYPE STANDARD TABLE OF P08P_DLR_ORDER_RANGE, "   
lv_doc_type  TYPE AWTYP, "   'HRPAY'
lv_no_hr_docs  TYPE AWTYP, "   
lt_r_wbs_id  TYPE STANDARD TABLE OF P08P_DLR_WBS_LIST, "   
lv_controlling_area  TYPE KOKRS, "   
lt_r_wbs_orig  TYPE STANDARD TABLE OF P08P_DLR_WBS_RANGE, "   
lt_r_budat  TYPE STANDARD TABLE OF P08P_DLR_BUDAT_RANGE, "   
lt_r_period  TYPE STANDARD TABLE OF P08P_DLR_PERIO_RANGE, "   
lt_r_year  TYPE STANDARD TABLE OF P08P_DLR_GJAHR_RANGE, "   
lt_r_elem  TYPE STANDARD TABLE OF P08P_DLR_ACC_RANGE, "   
lt_it_docnum  TYPE STANDARD TABLE OF P08P_DLR_DOCNUM. "   

  CALL FUNCTION 'HRGPBS_DRILL_READ_COVP'  "Read from table COVP
    EXPORTING
         ID_ACTIVITY = lv_id_activity
         DOC_TYPE = lv_doc_type
         CONTROLLING_AREA = lv_controlling_area
    TABLES
         R_KOSTL = lt_r_kostl
         R_ORDER = lt_r_order
         R_WBS_ID = lt_r_wbs_id
         R_WBS_ORIG = lt_r_wbs_orig
         R_BUDAT = lt_r_budat
         R_PERIOD = lt_r_period
         R_YEAR = lt_r_year
         R_ELEM = lt_r_elem
         IT_DOCNUM = lt_it_docnum
    EXCEPTIONS
        COVP_ERROR = 1
        NO_HR_DOCS = 2
. " HRGPBS_DRILL_READ_COVP




ABAP code using 7.40 inline data declarations to call FM HRGPBS_DRILL_READ_COVP

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_doc_type) = 'HRPAY'.
 
 
 
 
 
 
 
 
 
 


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!