SAP TPM_AD_ACCRUAL_DEFERRAL Function Module for









TPM_AD_ACCRUAL_DEFERRAL is a standard tpm ad accrual deferral 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 tpm ad accrual deferral FM, simply by entering the name TPM_AD_ACCRUAL_DEFERRAL into the relevant SAP transaction such as SE37 or SE38.

Function Group: TPM_TRLI_AD
Program Name: SAPLTPM_TRLI_AD
Main Program: SAPLTPM_TRLI_AD
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function TPM_AD_ACCRUAL_DEFERRAL 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_AD_ACCRUAL_DEFERRAL'"
EXPORTING
IM_PROGR = "
IM_FIPER = "
IM_RDOC = "
IM_RFIPER = "
IM_TAB_FLOWT = "
IM_FLG_POST = "
* IM_ONLY_FIXED_VAR_INT = ' ' "Accrue/Defer Only Fixed Variable Interest Flows
IM_TAB_POSITIONS_GUID = "
* IM_TCODE = "
IM_KEYDAT = "
IM_INCLUD = "
IM_ULTIMO = "
IM_TEST = "
IM_FIDATE = "
IM_RDATE = "
IM_RFIDAT = "
IM_DOCDAT = "

IMPORTING
EX_FLG_ACCRUED = "
EX_PROT_TAB_HEADER = "
EX_PROT_TAB_ITEM = "
EX_TAB_PH_MESSAGE = "
EX_TAB_ACCP = "
EX_TAB_ACCR = "
.



IMPORTING Parameters details for TPM_AD_ACCRUAL_DEFERRAL

IM_PROGR -

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

IM_FIPER -

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

IM_RDOC -

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

IM_RFIPER -

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

IM_TAB_FLOWT -

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

IM_FLG_POST -

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

IM_ONLY_FIXED_VAR_INT - Accrue/Defer Only Fixed Variable Interest Flows

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

IM_TAB_POSITIONS_GUID -

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

IM_TCODE -

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

IM_KEYDAT -

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

IM_INCLUD -

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

IM_ULTIMO -

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

IM_TEST -

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

IM_FIDATE -

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

IM_RDATE -

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

IM_RFIDAT -

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

IM_DOCDAT -

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

EXPORTING Parameters details for TPM_AD_ACCRUAL_DEFERRAL

EX_FLG_ACCRUED -

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

EX_PROT_TAB_HEADER -

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

EX_PROT_TAB_ITEM -

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

EX_TAB_PH_MESSAGE -

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

EX_TAB_ACCP -

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

EX_TAB_ACCR -

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

Copy and paste ABAP code example for TPM_AD_ACCRUAL_DEFERRAL 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_im_progr  TYPE FLAG, "   
lv_ex_flg_accrued  TYPE XFELD, "   
lv_im_fiper  TYPE TPM_FI_POSTING_PERIOD, "   
lv_im_rdoc  TYPE BLDAT, "   
lv_im_rfiper  TYPE TPM_FI_POSTING_PERIOD, "   
lv_im_tab_flowt  TYPE TRGR_DIS_FLOWTYPE, "   
lv_im_flg_post  TYPE TB_SPOST, "   
lv_im_only_fixed_var_int  TYPE TPM_ONLY_FIXED_VARIABLE_INT, "   SPACE
lv_im_tab_positions_guid  TYPE TPMY_GUID, "   
lv_im_tcode  TYPE TCODE, "   
lv_im_keydat  TYPE TPM_AD_KEYDATE, "   
lv_ex_prot_tab_header  TYPE TRLIY_AD_LIST_HEADER, "   
lv_im_includ  TYPE TPM_KEY_DATE_INCL, "   
lv_ex_prot_tab_item  TYPE TRLIY_AD_LIST_ITEM, "   
lv_im_ultimo  TYPE TPM_KEY_DATE_ULT, "   
lv_ex_tab_ph_message  TYPE BAL_T_MSG, "   
lv_im_test  TYPE FLAG, "   
lv_ex_tab_accp  TYPE TRACS_PROT_POST_DATA, "   
lv_im_fidate  TYPE TPM_FI_POSTING_DATE, "   
lv_ex_tab_accr  TYPE TRACS_PROT_REV_DATA, "   
lv_im_rdate  TYPE TPM_POSTING_DATE, "   
lv_im_rfidat  TYPE TPM_FI_POSTING_DATE, "   
lv_im_docdat  TYPE BLDAT. "   

  CALL FUNCTION 'TPM_AD_ACCRUAL_DEFERRAL'  "
    EXPORTING
         IM_PROGR = lv_im_progr
         IM_FIPER = lv_im_fiper
         IM_RDOC = lv_im_rdoc
         IM_RFIPER = lv_im_rfiper
         IM_TAB_FLOWT = lv_im_tab_flowt
         IM_FLG_POST = lv_im_flg_post
         IM_ONLY_FIXED_VAR_INT = lv_im_only_fixed_var_int
         IM_TAB_POSITIONS_GUID = lv_im_tab_positions_guid
         IM_TCODE = lv_im_tcode
         IM_KEYDAT = lv_im_keydat
         IM_INCLUD = lv_im_includ
         IM_ULTIMO = lv_im_ultimo
         IM_TEST = lv_im_test
         IM_FIDATE = lv_im_fidate
         IM_RDATE = lv_im_rdate
         IM_RFIDAT = lv_im_rfidat
         IM_DOCDAT = lv_im_docdat
    IMPORTING
         EX_FLG_ACCRUED = lv_ex_flg_accrued
         EX_PROT_TAB_HEADER = lv_ex_prot_tab_header
         EX_PROT_TAB_ITEM = lv_ex_prot_tab_item
         EX_TAB_PH_MESSAGE = lv_ex_tab_ph_message
         EX_TAB_ACCP = lv_ex_tab_accp
         EX_TAB_ACCR = lv_ex_tab_accr
. " TPM_AD_ACCRUAL_DEFERRAL




ABAP code using 7.40 inline data declarations to call FM TPM_AD_ACCRUAL_DEFERRAL

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_im_only_fixed_var_int) = ' '.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!