SAP FRE_PLIFZ_CALC_EINE Function Module for Calculation of planned delivery time for external procurement
FRE_PLIFZ_CALC_EINE is a standard fre plifz calc eine SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Calculation of planned delivery time for external procurement 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 fre plifz calc eine FM, simply by entering the name FRE_PLIFZ_CALC_EINE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FRE_PLIFZ_CALC
Program Name: SAPLFRE_PLIFZ_CALC
Main Program: SAPLFRE_PLIFZ_CALC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FRE_PLIFZ_CALC_EINE 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 'FRE_PLIFZ_CALC_EINE'"Calculation of planned delivery time for external procurement.
EXPORTING
IP_RELIF = "Inherit planned delivery time from regular vendor
* IP_NO_TCHAIN = 'X' "Not overwrite plan. del. time if transp. chain is missing
* IP_HERIT_ONLY = "EINE records don't have to be calculated
IT_EINA = "Table with structure FRE_PLIFZ_EINA_STY
IT_EINE = "Table with structure EINE
* IP_INITIAL_LOAD = "Initialization indicator
* IP_RETURN_FAULTY = "Return Faulty Info Records
IMPORTING
ET_EINE_SAVE = "Table with structure EINE
ET_MARC_SAVE = "Table with structure MARC
ET_MARC_CALC = "Table with structure MARC
ET_EINE_FAULTY = "Table with structure EINE
CHANGING
* XT_EINA_EINE_RELIF = "Table type for fields from EINA and EINE
EXCEPTIONS
NOTHING_TO_DO = 1 INTERNAL_ERROR = 2
IMPORTING Parameters details for FRE_PLIFZ_CALC_EINE
IP_RELIF - Inherit planned delivery time from regular vendor
Data type: FRE_PLIFZ_RELIFOptional: No
Call by Reference: Yes
IP_NO_TCHAIN - Not overwrite plan. del. time if transp. chain is missing
Data type: FRE_PLIFZ_NO_TCHAINDefault: 'X'
Optional: No
Call by Reference: Yes
IP_HERIT_ONLY - EINE records don't have to be calculated
Data type: XFELDOptional: Yes
Call by Reference: Yes
IT_EINA - Table with structure FRE_PLIFZ_EINA_STY
Data type: FRE_PLIFZ_EINA_TTYOptional: No
Call by Reference: Yes
IT_EINE - Table with structure EINE
Data type: WRF_APC_EINE_TTYOptional: No
Call by Reference: Yes
IP_INITIAL_LOAD - Initialization indicator
Data type: XFELDOptional: Yes
Call by Reference: Yes
IP_RETURN_FAULTY - Return Faulty Info Records
Data type: XFELDOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FRE_PLIFZ_CALC_EINE
ET_EINE_SAVE - Table with structure EINE
Data type: WRF_APC_EINE_TTYOptional: No
Call by Reference: Yes
ET_MARC_SAVE - Table with structure MARC
Data type: WRF_REF_MARC_TTYOptional: No
Call by Reference: Yes
ET_MARC_CALC - Table with structure MARC
Data type: WRF_REF_MARC_TTYOptional: No
Call by Reference: Yes
ET_EINE_FAULTY - Table with structure EINE
Data type: WRF_APC_EINE_TTYOptional: No
Call by Reference: Yes
CHANGING Parameters details for FRE_PLIFZ_CALC_EINE
XT_EINA_EINE_RELIF - Table type for fields from EINA and EINE
Data type: FRE_EINA_EINE_TTYOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NOTHING_TO_DO - Nothing to do
Data type:Optional: No
Call by Reference: Yes
INTERNAL_ERROR - Error when calculating planned delivery time
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FRE_PLIFZ_CALC_EINE 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_ip_relif | TYPE FRE_PLIFZ_RELIF, " | |||
| lv_et_eine_save | TYPE WRF_APC_EINE_TTY, " | |||
| lv_nothing_to_do | TYPE WRF_APC_EINE_TTY, " | |||
| lv_xt_eina_eine_relif | TYPE FRE_EINA_EINE_TTY, " | |||
| lv_et_marc_save | TYPE WRF_REF_MARC_TTY, " | |||
| lv_ip_no_tchain | TYPE FRE_PLIFZ_NO_TCHAIN, " 'X' | |||
| lv_internal_error | TYPE FRE_PLIFZ_NO_TCHAIN, " | |||
| lv_et_marc_calc | TYPE WRF_REF_MARC_TTY, " | |||
| lv_ip_herit_only | TYPE XFELD, " | |||
| lv_it_eina | TYPE FRE_PLIFZ_EINA_TTY, " | |||
| lv_et_eine_faulty | TYPE WRF_APC_EINE_TTY, " | |||
| lv_it_eine | TYPE WRF_APC_EINE_TTY, " | |||
| lv_ip_initial_load | TYPE XFELD, " | |||
| lv_ip_return_faulty | TYPE XFELD. " |
|   CALL FUNCTION 'FRE_PLIFZ_CALC_EINE' "Calculation of planned delivery time for external procurement |
| EXPORTING | ||
| IP_RELIF | = lv_ip_relif | |
| IP_NO_TCHAIN | = lv_ip_no_tchain | |
| IP_HERIT_ONLY | = lv_ip_herit_only | |
| IT_EINA | = lv_it_eina | |
| IT_EINE | = lv_it_eine | |
| IP_INITIAL_LOAD | = lv_ip_initial_load | |
| IP_RETURN_FAULTY | = lv_ip_return_faulty | |
| IMPORTING | ||
| ET_EINE_SAVE | = lv_et_eine_save | |
| ET_MARC_SAVE | = lv_et_marc_save | |
| ET_MARC_CALC | = lv_et_marc_calc | |
| ET_EINE_FAULTY | = lv_et_eine_faulty | |
| CHANGING | ||
| XT_EINA_EINE_RELIF | = lv_xt_eina_eine_relif | |
| EXCEPTIONS | ||
| NOTHING_TO_DO = 1 | ||
| INTERNAL_ERROR = 2 | ||
| . " FRE_PLIFZ_CALC_EINE | ||
ABAP code using 7.40 inline data declarations to call FM FRE_PLIFZ_CALC_EINE
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_ip_no_tchain) | = 'X'. | |||
Search for further information about these or an SAP related objects