SAP HR_CH_CALC_SV_PERIOD Function Module for









HR_CH_CALC_SV_PERIOD is a standard hr ch calc sv period SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 hr ch calc sv period FM, simply by entering the name HR_CH_CALC_SV_PERIOD into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_CH_CALC_SV_PERIOD 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 'HR_CH_CALC_SV_PERIOD'"
EXPORTING
P02_ANWSCHL = "
* P02_APPENDCHVS = "
* P02_WAERS = "
* P02_PR_AN = "
* P02_PR_AG = "
P02_BEGDA = "
P02_ENDDA = "
P02_I5CS1 = "
P02_DIV = "
* P02_SPLIT = "
* P02_EINH = "

CHANGING
P02_ABRDAT = "

TABLES
* P02_PTEXT = "
* P02_ERROR_PTEXT = "

EXCEPTIONS
ERROR_ROUND = 1
.



IMPORTING Parameters details for HR_CH_CALC_SV_PERIOD

P02_ANWSCHL -

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

P02_APPENDCHVS -

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

P02_WAERS -

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

P02_PR_AN -

Data type: T511K-KWERT
Optional: Yes
Call by Reference: Yes

P02_PR_AG -

Data type: T511K-KWERT
Optional: Yes
Call by Reference: Yes

P02_BEGDA -

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

P02_ENDDA -

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

P02_I5CS1 -

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

P02_DIV -

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

P02_SPLIT -

Data type: PC207-CNTR3
Optional: Yes
Call by Reference: Yes

P02_EINH -

Data type: T5CS7-EINHEIT
Optional: Yes
Call by Reference: Yes

CHANGING Parameters details for HR_CH_CALC_SV_PERIOD

P02_ABRDAT -

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

TABLES Parameters details for HR_CH_CALC_SV_PERIOD

P02_PTEXT -

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

P02_ERROR_PTEXT -

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

EXCEPTIONS details

ERROR_ROUND -

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

Copy and paste ABAP code example for HR_CH_CALC_SV_PERIOD 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_p02_ptext  TYPE STANDARD TABLE OF PLOG_TEXT, "   
lv_p02_abrdat  TYPE PCH03_ABRDAT, "   
lv_error_round  TYPE PCH03_ABRDAT, "   
lv_p02_anwschl  TYPE P02_ANWSCH, "   
lv_p02_appendchvs  TYPE PCH03_KENNZ, "   
lv_p02_waers  TYPE WAERS, "   
lv_p02_pr_an  TYPE T511K-KWERT, "   
lt_p02_error_ptext  TYPE STANDARD TABLE OF PLOG_TEXT, "   
lv_p02_pr_ag  TYPE T511K-KWERT, "   
lv_p02_begda  TYPE BEGDA, "   
lv_p02_endda  TYPE ENDDA, "   
lv_p02_i5cs1  TYPE PCH03_I5CS1, "   
lv_p02_div  TYPE PCH03_DIV, "   
lv_p02_split  TYPE PC207-CNTR3, "   
lv_p02_einh  TYPE T5CS7-EINHEIT. "   

  CALL FUNCTION 'HR_CH_CALC_SV_PERIOD'  "
    EXPORTING
         P02_ANWSCHL = lv_p02_anwschl
         P02_APPENDCHVS = lv_p02_appendchvs
         P02_WAERS = lv_p02_waers
         P02_PR_AN = lv_p02_pr_an
         P02_PR_AG = lv_p02_pr_ag
         P02_BEGDA = lv_p02_begda
         P02_ENDDA = lv_p02_endda
         P02_I5CS1 = lv_p02_i5cs1
         P02_DIV = lv_p02_div
         P02_SPLIT = lv_p02_split
         P02_EINH = lv_p02_einh
    CHANGING
         P02_ABRDAT = lv_p02_abrdat
    TABLES
         P02_PTEXT = lt_p02_ptext
         P02_ERROR_PTEXT = lt_p02_error_ptext
    EXCEPTIONS
        ERROR_ROUND = 1
. " HR_CH_CALC_SV_PERIOD




ABAP code using 7.40 inline data declarations to call FM HR_CH_CALC_SV_PERIOD

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 KWERT FROM T511K INTO @DATA(ld_p02_pr_an).
 
 
"SELECT single KWERT FROM T511K INTO @DATA(ld_p02_pr_ag).
 
 
 
 
 
"SELECT single CNTR3 FROM PC207 INTO @DATA(ld_p02_split).
 
"SELECT single EINHEIT FROM T5CS7 INTO @DATA(ld_p02_einh).
 


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!