SAP RP_CONVERT_PERIODS_ZA Function Module for Convert one period amount to a new period amount









RP_CONVERT_PERIODS_ZA is a standard rp convert periods za SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Convert one period amount to a new period amount 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 rp convert periods za FM, simply by entering the name RP_CONVERT_PERIODS_ZA into the relevant SAP transaction such as SE37 or SE38.

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



Function RP_CONVERT_PERIODS_ZA 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 'RP_CONVERT_PERIODS_ZA'"Convert one period amount to a new period amount
EXPORTING
* PERMO = "
* T_YEAR = "
* STD_FREQ = "Character field length 1
ZEINH_I = "
ZEINH_O = "Payroll time units
BETRG_I = "

IMPORTING
BETRG_O = "

EXCEPTIONS
FEATURE_ERROR = 1 ILLEGAL_ZEINH = 2 ERROR_549R = 3 ERROR_549Q = 4
.



IMPORTING Parameters details for RP_CONVERT_PERIODS_ZA

PERMO -

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

T_YEAR -

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

STD_FREQ - Character field length 1

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

ZEINH_I -

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

ZEINH_O - Payroll time units

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

BETRG_I -

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

EXPORTING Parameters details for RP_CONVERT_PERIODS_ZA

BETRG_O -

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

EXCEPTIONS details

FEATURE_ERROR -

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

ILLEGAL_ZEINH -

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

ERROR_549R -

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

ERROR_549Q -

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

Copy and paste ABAP code example for RP_CONVERT_PERIODS_ZA 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_permo  TYPE T549R-PERMO, "   
lv_betrg_o  TYPE PC207-BETRG, "   
lv_feature_error  TYPE PC207, "   
lv_t_year  TYPE T549Q-PABRJ, "   
lv_illegal_zeinh  TYPE T549Q, "   
lv_std_freq  TYPE CHAR01, "   
lv_error_549r  TYPE CHAR01, "   
lv_zeinh_i  TYPE T549R-ZEINH, "   
lv_error_549q  TYPE T549R, "   
lv_zeinh_o  TYPE T549R-ZEINH, "   
lv_betrg_i  TYPE PC207-BETRG. "   

  CALL FUNCTION 'RP_CONVERT_PERIODS_ZA'  "Convert one period amount to a new period amount
    EXPORTING
         PERMO = lv_permo
         T_YEAR = lv_t_year
         STD_FREQ = lv_std_freq
         ZEINH_I = lv_zeinh_i
         ZEINH_O = lv_zeinh_o
         BETRG_I = lv_betrg_i
    IMPORTING
         BETRG_O = lv_betrg_o
    EXCEPTIONS
        FEATURE_ERROR = 1
        ILLEGAL_ZEINH = 2
        ERROR_549R = 3
        ERROR_549Q = 4
. " RP_CONVERT_PERIODS_ZA




ABAP code using 7.40 inline data declarations to call FM RP_CONVERT_PERIODS_ZA

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 PERMO FROM T549R INTO @DATA(ld_permo).
 
"SELECT single BETRG FROM PC207 INTO @DATA(ld_betrg_o).
 
 
"SELECT single PABRJ FROM T549Q INTO @DATA(ld_t_year).
 
 
 
 
"SELECT single ZEINH FROM T549R INTO @DATA(ld_zeinh_i).
 
 
"SELECT single ZEINH FROM T549R INTO @DATA(ld_zeinh_o).
 
"SELECT single BETRG FROM PC207 INTO @DATA(ld_betrg_i).
 


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!