SAP LOAN_POST Function Module for Posting Interface for Loans









LOAN_POST is a standard loan post SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Posting Interface for Loans 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 loan post FM, simply by entering the name LOAN_POST into the relevant SAP transaction such as SE37 or SE38.

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



Function LOAN_POST 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 'LOAN_POST'"Posting Interface for Loans
EXPORTING
I_BUDAT = "Posting Date
* I_DELETE_PLAN = 'X' "
* I_UPDATE_IST = 'X' "
* I_CLEAR_OP_BUFFER = "
* I_ACT_RZEBEL_FROM_INTERNAL_REF = "Rzebel über in interne Tabellen aktualisieren
* I_BLDAT = "Übergebenes Belegdatum
* I_FLG_SINGLE_IP = "Incoming Payment
* I_CLEAR_LOANREF_V = "Initialisiert Puffer für valutarische Klammer
* I_FLG_NO_ACC_PRINCIPLE = ' ' "'X' -> Buchung ohne RLV
* I_FVD_LOAN_POST = "BAdI Interface IF_EX_FVD_LOAN_POST
* I_FLG_NO_WAERS_CHECK = ' ' "'X' -> keine Währungsverprobung
I_BKTXT = "Document Header Text
* I_FLG_NO_FI_DOC = ' ' "'X' -> keine Buchung ins FI
* I_CCC_CALC_DATE = "
* I_FLG_PREP_NEGATIVE_POSTINGS = '' "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
* I_PROTOCOL = '1' "Protokollerzeugung und - anzeigen
I_SIMU = "X = Simulation , ' ' = Echtlauf
I_PRIMANOTA = "Source Document
I_SUPERPRIMANOTA = "General Daybook No.
* I_SPECIALPERIOD = "Special Period
* I_PROTOCOL_TEXT = "Text für das Buchungsprotokoll
I_OMIT_CHECKS = "Spezielle Prüfungen durchführen

TABLES
XT_VDBEPP = "zu buchende Plansätze
* XT_ADDBEPP_ADD = "Additional Information About VDBEPP
* XT_VDZNB_SEPA = "
* XT_ADDBEPP = "Zusatzinformationen zu Plansätzen
* XT_BSID = "bereits gelesene offene Posten
* XT_BSIS = "bereits gelesene offene Posten
XT_VDBEKI = "erzeugte Nebenbuch-Belegköpfe
XT_VDBEPI = "erzeugte Nebenbuch-Belegpostionen
* XT_LOANREF_A = "
* ET_BKPF_FI = "erzeugte FI-Belegköpfe
* ET_BSEG_OP = "aktuelle OPs

EXCEPTIONS
POSTING_IMPOSSIBLE = 1
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLTRDB_001 User-Exit segement text for transfer in FI documents

IMPORTING Parameters details for LOAN_POST

I_BUDAT - Posting Date

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

I_DELETE_PLAN -

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

I_UPDATE_IST -

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

I_CLEAR_OP_BUFFER -

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

I_ACT_RZEBEL_FROM_INTERNAL_REF - Rzebel über in interne Tabellen aktualisieren

Data type:
Optional: Yes
Call by Reference: Yes

I_BLDAT - Übergebenes Belegdatum

Data type: VDBEKI-DBLDAT
Optional: Yes
Call by Reference: Yes

I_FLG_SINGLE_IP - Incoming Payment

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

I_CLEAR_LOANREF_V - Initialisiert Puffer für valutarische Klammer

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

I_FLG_NO_ACC_PRINCIPLE - 'X' -> Buchung ohne RLV

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

I_FVD_LOAN_POST - BAdI Interface IF_EX_FVD_LOAN_POST

Data type: IF_EX_FVD_LOAN_POST
Optional: Yes
Call by Reference: Yes

I_FLG_NO_WAERS_CHECK - 'X' -> keine Währungsverprobung

Data type: FLAG
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_BKTXT - Document Header Text

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

I_FLG_NO_FI_DOC - 'X' -> keine Buchung ins FI

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_CCC_CALC_DATE -

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

I_FLG_PREP_NEGATIVE_POSTINGS - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')

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

I_PROTOCOL - Protokollerzeugung und - anzeigen

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

I_SIMU - X = Simulation , ' ' = Echtlauf

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

I_PRIMANOTA - Source Document

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

I_SUPERPRIMANOTA - General Daybook No.

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

I_SPECIALPERIOD - Special Period

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

I_PROTOCOL_TEXT - Text für das Buchungsprotokoll

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

I_OMIT_CHECKS - Spezielle Prüfungen durchführen

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

TABLES Parameters details for LOAN_POST

XT_VDBEPP - zu buchende Plansätze

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

XT_ADDBEPP_ADD - Additional Information About VDBEPP

Data type: ADDBEPP_ADD
Optional: Yes
Call by Reference: Yes

XT_VDZNB_SEPA -

Data type: VDZNB_SEPA
Optional: Yes
Call by Reference: Yes

XT_ADDBEPP - Zusatzinformationen zu Plansätzen

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

XT_BSID - bereits gelesene offene Posten

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

XT_BSIS - bereits gelesene offene Posten

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

XT_VDBEKI - erzeugte Nebenbuch-Belegköpfe

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

XT_VDBEPI - erzeugte Nebenbuch-Belegpostionen

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

XT_LOANREF_A -

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

ET_BKPF_FI - erzeugte FI-Belegköpfe

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

ET_BSEG_OP - aktuelle OPs

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

EXCEPTIONS details

POSTING_IMPOSSIBLE -

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

Copy and paste ABAP code example for LOAN_POST 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_budat  TYPE VDBEKI-DBUDAT, "   
lt_xt_vdbepp  TYPE STANDARD TABLE OF VDBEPP, "   
lv_posting_impossible  TYPE VDBEPP, "   
lv_i_delete_plan  TYPE VDBEPP, "   'X'
lt_xt_addbepp_add  TYPE STANDARD TABLE OF ADDBEPP_ADD, "   
lv_i_update_ist  TYPE ADDBEPP_ADD, "   'X'
lt_xt_vdznb_sepa  TYPE STANDARD TABLE OF VDZNB_SEPA, "   
lv_i_clear_op_buffer  TYPE VDZNB_SEPA, "   
lv_i_act_rzebel_from_internal_ref  TYPE VDZNB_SEPA, "   
lv_i_bldat  TYPE VDBEKI-DBLDAT, "   
lv_i_flg_single_ip  TYPE VDBEKI, "   
lv_i_clear_loanref_v  TYPE XFLAG, "   
lv_i_flg_no_acc_principle  TYPE XFELD, "   SPACE
lv_i_fvd_loan_post  TYPE IF_EX_FVD_LOAN_POST, "   
lv_i_flg_no_waers_check  TYPE FLAG, "   SPACE
lv_i_bktxt  TYPE BKPF-BKTXT, "   
lt_xt_addbepp  TYPE STANDARD TABLE OF ADDBEPP, "   
lv_i_flg_no_fi_doc  TYPE XFELD, "   SPACE
lv_i_ccc_calc_date  TYPE VDBEPP-DDISPO, "   
lv_i_flg_prep_negative_postings  TYPE TB_CTRL_4_NEGATIVE_POSTINGS, "   ''
lt_xt_bsid  TYPE STANDARD TABLE OF BSID, "   
lv_i_protocol  TYPE BSID, "   '1'
lv_i_simu  TYPE BSID, "   
lt_xt_bsis  TYPE STANDARD TABLE OF BSIS, "   
lt_xt_vdbeki  TYPE STANDARD TABLE OF VDBEKI, "   
lv_i_primanota  TYPE VDBEPP-RPNNR, "   
lt_xt_vdbepi  TYPE STANDARD TABLE OF VDBEPI, "   
lv_i_superprimanota  TYPE VDBEPP-RPNNR, "   
lt_xt_loanref_a  TYPE STANDARD TABLE OF LOANREF, "   
lv_i_specialperiod  TYPE BKPF-MONAT, "   
lt_et_bkpf_fi  TYPE STANDARD TABLE OF BKPF, "   
lv_i_protocol_text  TYPE BKPF, "   
lt_et_bseg_op  TYPE STANDARD TABLE OF BSEG, "   
lv_i_omit_checks  TYPE BSEG. "   

  CALL FUNCTION 'LOAN_POST'  "Posting Interface for Loans
    EXPORTING
         I_BUDAT = lv_i_budat
         I_DELETE_PLAN = lv_i_delete_plan
         I_UPDATE_IST = lv_i_update_ist
         I_CLEAR_OP_BUFFER = lv_i_clear_op_buffer
         I_ACT_RZEBEL_FROM_INTERNAL_REF = lv_i_act_rzebel_from_internal_ref
         I_BLDAT = lv_i_bldat
         I_FLG_SINGLE_IP = lv_i_flg_single_ip
         I_CLEAR_LOANREF_V = lv_i_clear_loanref_v
         I_FLG_NO_ACC_PRINCIPLE = lv_i_flg_no_acc_principle
         I_FVD_LOAN_POST = lv_i_fvd_loan_post
         I_FLG_NO_WAERS_CHECK = lv_i_flg_no_waers_check
         I_BKTXT = lv_i_bktxt
         I_FLG_NO_FI_DOC = lv_i_flg_no_fi_doc
         I_CCC_CALC_DATE = lv_i_ccc_calc_date
         I_FLG_PREP_NEGATIVE_POSTINGS = lv_i_flg_prep_negative_postings
         I_PROTOCOL = lv_i_protocol
         I_SIMU = lv_i_simu
         I_PRIMANOTA = lv_i_primanota
         I_SUPERPRIMANOTA = lv_i_superprimanota
         I_SPECIALPERIOD = lv_i_specialperiod
         I_PROTOCOL_TEXT = lv_i_protocol_text
         I_OMIT_CHECKS = lv_i_omit_checks
    TABLES
         XT_VDBEPP = lt_xt_vdbepp
         XT_ADDBEPP_ADD = lt_xt_addbepp_add
         XT_VDZNB_SEPA = lt_xt_vdznb_sepa
         XT_ADDBEPP = lt_xt_addbepp
         XT_BSID = lt_xt_bsid
         XT_BSIS = lt_xt_bsis
         XT_VDBEKI = lt_xt_vdbeki
         XT_VDBEPI = lt_xt_vdbepi
         XT_LOANREF_A = lt_xt_loanref_a
         ET_BKPF_FI = lt_et_bkpf_fi
         ET_BSEG_OP = lt_et_bseg_op
    EXCEPTIONS
        POSTING_IMPOSSIBLE = 1
. " LOAN_POST




ABAP code using 7.40 inline data declarations to call FM LOAN_POST

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 DBUDAT FROM VDBEKI INTO @DATA(ld_i_budat).
 
 
 
DATA(ld_i_delete_plan) = 'X'.
 
 
DATA(ld_i_update_ist) = 'X'.
 
 
 
 
"SELECT single DBLDAT FROM VDBEKI INTO @DATA(ld_i_bldat).
 
 
 
DATA(ld_i_flg_no_acc_principle) = ' '.
 
 
DATA(ld_i_flg_no_waers_check) = ' '.
 
"SELECT single BKTXT FROM BKPF INTO @DATA(ld_i_bktxt).
 
 
DATA(ld_i_flg_no_fi_doc) = ' '.
 
"SELECT single DDISPO FROM VDBEPP INTO @DATA(ld_i_ccc_calc_date).
 
DATA(ld_i_flg_prep_negative_postings) = ''.
 
 
DATA(ld_i_protocol) = '1'.
 
 
 
 
"SELECT single RPNNR FROM VDBEPP INTO @DATA(ld_i_primanota).
 
 
"SELECT single RPNNR FROM VDBEPP INTO @DATA(ld_i_superprimanota).
 
 
"SELECT single MONAT FROM BKPF INTO @DATA(ld_i_specialperiod).
 
 
 
 
 


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!