SAP RFIDPT_CALC_ENTITY_GET Function Module for Get Pro-Rata calculation entity









RFIDPT_CALC_ENTITY_GET is a standard rfidpt calc entity get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get Pro-Rata calculation entity 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 rfidpt calc entity get FM, simply by entering the name RFIDPT_CALC_ENTITY_GET into the relevant SAP transaction such as SE37 or SE38.

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



Function RFIDPT_CALC_ENTITY_GET 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 'RFIDPT_CALC_ENTITY_GET'"Get Pro-Rata calculation entity
EXPORTING
I_LAND1 = "Country Key
I_PRYEAR = "Pro-Rata year
* I_PRPER = 00 "Pro-Rata period
I_BKPF = "Accounting Document Header
I_BSEG = "Accounting Document Segment
* I_DEFCF = 100 "Pro-Rata default coefficient

IMPORTING
E_PR_ENT_CALC = "Pro-Rata entity for calculation
E_PR_COEF = "Definitive Pro-Rata Percentage
E_SUBRC = "Return Value, Return Value After ABAP Statements
.



IMPORTING Parameters details for RFIDPT_CALC_ENTITY_GET

I_LAND1 - Country Key

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

I_PRYEAR - Pro-Rata year

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

I_PRPER - Pro-Rata period

Data type: DFIDPT_PRPER
Default: 00
Optional: Yes
Call by Reference: Yes

I_BKPF - Accounting Document Header

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

I_BSEG - Accounting Document Segment

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

I_DEFCF - Pro-Rata default coefficient

Data type: DFIDPT_DPR
Default: 100
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for RFIDPT_CALC_ENTITY_GET

E_PR_ENT_CALC - Pro-Rata entity for calculation

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

E_PR_COEF - Definitive Pro-Rata Percentage

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

E_SUBRC - Return Value, Return Value After ABAP Statements

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

Copy and paste ABAP code example for RFIDPT_CALC_ENTITY_GET 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_i_land1  TYPE LAND1, "   
lv_e_pr_ent_calc  TYPE DFIDPT_PRCLC, "   
lv_i_pryear  TYPE DFIDPT_PRYEAR, "   
lv_e_pr_coef  TYPE DFIDPT_DPR, "   
lv_e_subrc  TYPE SYSUBRC, "   
lv_i_prper  TYPE DFIDPT_PRPER, "   00
lv_i_bkpf  TYPE BKPF, "   
lv_i_bseg  TYPE BSEG, "   
lv_i_defcf  TYPE DFIDPT_DPR. "   100

  CALL FUNCTION 'RFIDPT_CALC_ENTITY_GET'  "Get Pro-Rata calculation entity
    EXPORTING
         I_LAND1 = lv_i_land1
         I_PRYEAR = lv_i_pryear
         I_PRPER = lv_i_prper
         I_BKPF = lv_i_bkpf
         I_BSEG = lv_i_bseg
         I_DEFCF = lv_i_defcf
    IMPORTING
         E_PR_ENT_CALC = lv_e_pr_ent_calc
         E_PR_COEF = lv_e_pr_coef
         E_SUBRC = lv_e_subrc
. " RFIDPT_CALC_ENTITY_GET




ABAP code using 7.40 inline data declarations to call FM RFIDPT_CALC_ENTITY_GET

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_i_prper) = 00.
 
 
 
DATA(ld_i_defcf) = 100.
 


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!