SAP TPM_TRD_PFL_PROCESS Function Module for PFL processing
TPM_TRD_PFL_PROCESS is a standard tpm trd pfl process SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for PFL processing 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 tpm trd pfl process FM, simply by entering the name TPM_TRD_PFL_PROCESS into the relevant SAP transaction such as SE37 or SE38.
Function Group: TPM_TRD_GENERAL
Program Name: SAPLTPM_TRD_GENERAL
Main Program: SAPLTPM_TRD_GENERAL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function TPM_TRD_PFL_PROCESS 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 'TPM_TRD_PFL_PROCESS'"PFL processing.
EXPORTING
IM_TAB_POSITION = "Treasury: Table with Class Position in Securities Account
IM_FI_REVERSAL_DATE = "Different FI Reversal Date
IM_FI_REVERSAL_PERIOD = "Alternative FI Reversal Period
IM_REVERSAL_REASON = "Reversal indicator
IM_OPERATION = "Single-Character Indicator
* IM_KEY_DATE = "Due date
IM_FI_POSTING_DATE = "Different FI Posting Date
IM_FI_POSTING_PERIOD = "Different FI Posting Period
IM_DOCUMENT_DATE = "Document Date in Document
IM_FLG_TEST = "Test run
* IM_FLG_DISPLAY = "Display flows before processing
* IM_RNG_DATE = "Payment Date Range
IMPORTING
ET_RESULT = "PFL: processing result
ET_PH_MESSAGE = "Application Log: Table with Messages
ET_ACCP = "Log: All Information for Posting Log
ET_ACCR = "Log: All Information for Reversal Log
ET_PAYP = "Informations about payments
ET_TRIL = "Log: All Information for Hedge Accounting Log
IMPORTING Parameters details for TPM_TRD_PFL_PROCESS
IM_TAB_POSITION - Treasury: Table with Class Position in Securities Account
Data type: TRDY_PFL_POSITIONOptional: No
Call by Reference: No ( called with pass by value option)
IM_FI_REVERSAL_DATE - Different FI Reversal Date
Data type: TPM_FI_REVERSAL_DATEOptional: No
Call by Reference: No ( called with pass by value option)
IM_FI_REVERSAL_PERIOD - Alternative FI Reversal Period
Data type: TPM_FI_REVERSAL_PERIODOptional: No
Call by Reference: No ( called with pass by value option)
IM_REVERSAL_REASON - Reversal indicator
Data type: SSTOGRDOptional: No
Call by Reference: No ( called with pass by value option)
IM_OPERATION - Single-Character Indicator
Data type: CHAR1Optional: No
Call by Reference: No ( called with pass by value option)
IM_KEY_DATE - Due date
Data type: DFAELLOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_FI_POSTING_DATE - Different FI Posting Date
Data type: TPM_FI_POSTING_DATEOptional: No
Call by Reference: No ( called with pass by value option)
IM_FI_POSTING_PERIOD - Different FI Posting Period
Data type: TPM_FI_POSTING_PERIODOptional: No
Call by Reference: No ( called with pass by value option)
IM_DOCUMENT_DATE - Document Date in Document
Data type: BLDATOptional: No
Call by Reference: No ( called with pass by value option)
IM_FLG_TEST - Test run
Data type: XFELDOptional: No
Call by Reference: No ( called with pass by value option)
IM_FLG_DISPLAY - Display flows before processing
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_RNG_DATE - Payment Date Range
Data type: TRGR_PAYMENT_DATEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for TPM_TRD_PFL_PROCESS
ET_RESULT - PFL: processing result
Data type: TRDY_PFL_RESULT_FLOWOptional: No
Call by Reference: No ( called with pass by value option)
ET_PH_MESSAGE - Application Log: Table with Messages
Data type: BAL_T_MSGOptional: No
Call by Reference: No ( called with pass by value option)
ET_ACCP - Log: All Information for Posting Log
Data type: TRACS_PROT_POST_DATAOptional: No
Call by Reference: No ( called with pass by value option)
ET_ACCR - Log: All Information for Reversal Log
Data type: TRACS_PROT_REV_DATAOptional: No
Call by Reference: No ( called with pass by value option)
ET_PAYP - Informations about payments
Data type: TRPRY_PAYMENT_PROTOptional: No
Call by Reference: No ( called with pass by value option)
ET_TRIL - Log: All Information for Hedge Accounting Log
Data type: TRILS_PROT_DATAOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for TPM_TRD_PFL_PROCESS 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_et_result | TYPE TRDY_PFL_RESULT_FLOW, " | |||
| lv_im_tab_position | TYPE TRDY_PFL_POSITION, " | |||
| lv_im_fi_reversal_date | TYPE TPM_FI_REVERSAL_DATE, " | |||
| lv_im_fi_reversal_period | TYPE TPM_FI_REVERSAL_PERIOD, " | |||
| lv_im_reversal_reason | TYPE SSTOGRD, " | |||
| lv_im_operation | TYPE CHAR1, " | |||
| lv_et_ph_message | TYPE BAL_T_MSG, " | |||
| lv_et_accp | TYPE TRACS_PROT_POST_DATA, " | |||
| lv_im_key_date | TYPE DFAELL, " | |||
| lv_et_accr | TYPE TRACS_PROT_REV_DATA, " | |||
| lv_im_fi_posting_date | TYPE TPM_FI_POSTING_DATE, " | |||
| lv_et_payp | TYPE TRPRY_PAYMENT_PROT, " | |||
| lv_im_fi_posting_period | TYPE TPM_FI_POSTING_PERIOD, " | |||
| lv_et_tril | TYPE TRILS_PROT_DATA, " | |||
| lv_im_document_date | TYPE BLDAT, " | |||
| lv_im_flg_test | TYPE XFELD, " | |||
| lv_im_flg_display | TYPE XFELD, " | |||
| lv_im_rng_date | TYPE TRGR_PAYMENT_DATE. " |
|   CALL FUNCTION 'TPM_TRD_PFL_PROCESS' "PFL processing |
| EXPORTING | ||
| IM_TAB_POSITION | = lv_im_tab_position | |
| IM_FI_REVERSAL_DATE | = lv_im_fi_reversal_date | |
| IM_FI_REVERSAL_PERIOD | = lv_im_fi_reversal_period | |
| IM_REVERSAL_REASON | = lv_im_reversal_reason | |
| IM_OPERATION | = lv_im_operation | |
| IM_KEY_DATE | = lv_im_key_date | |
| IM_FI_POSTING_DATE | = lv_im_fi_posting_date | |
| IM_FI_POSTING_PERIOD | = lv_im_fi_posting_period | |
| IM_DOCUMENT_DATE | = lv_im_document_date | |
| IM_FLG_TEST | = lv_im_flg_test | |
| IM_FLG_DISPLAY | = lv_im_flg_display | |
| IM_RNG_DATE | = lv_im_rng_date | |
| IMPORTING | ||
| ET_RESULT | = lv_et_result | |
| ET_PH_MESSAGE | = lv_et_ph_message | |
| ET_ACCP | = lv_et_accp | |
| ET_ACCR | = lv_et_accr | |
| ET_PAYP | = lv_et_payp | |
| ET_TRIL | = lv_et_tril | |
| . " TPM_TRD_PFL_PROCESS | ||
ABAP code using 7.40 inline data declarations to call FM TPM_TRD_PFL_PROCESS
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.Search for further information about these or an SAP related objects