SAP LOAN_GET_ADDITIONAL_DATA Function Module for Dialog Box for Entering Additional Posting Data
LOAN_GET_ADDITIONAL_DATA is a standard loan get additional data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Dialog Box for Entering Additional Posting Data 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 get additional data FM, simply by entering the name LOAN_GET_ADDITIONAL_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: TRBA
Program Name: SAPLTRBA
Main Program: SAPLTRBA
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function LOAN_GET_ADDITIONAL_DATA 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_GET_ADDITIONAL_DATA'"Dialog Box for Entering Additional Posting Data.
EXPORTING
* I_BKTXT = "Text Length 25
* BUDAT = SY-DATUM "Posting Date
ANWENDUNG = "Single-Character Indicator
* SSTOGRD = "Reason for Reversal
* I_TAB_TVDTX = "Table Type for TVDTX
* I_FLG_NO_SIMU = ' ' "'X' -> SIMKZ ausblenden
* I_BUKRS = "Company Code
* I_DISPYN = "Display Posting Date (Yes / No)
IMPORTING
ABBRUCH = "wenn Abbruch PF12 gedrückt = 'X'
BKTXT = "Posting Text
BUDAT = "Posting Date
PROTOCOL = "'X' Buchungsprotokoll ausgeben
SIMULATION = "Simulation Indicator
PERIOD = "Posting Period
SSTOGRD = "Reason for Reversal
IMPORTING Parameters details for LOAN_GET_ADDITIONAL_DATA
I_BKTXT - Text Length 25
Data type: BSSBKPF-BKTXTOptional: Yes
Call by Reference: No ( called with pass by value option)
BUDAT - Posting Date
Data type: BSSBKPF-BUDATDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
ANWENDUNG - Single-Character Indicator
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SSTOGRD - Reason for Reversal
Data type: VDBEKI-SSTOGRDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TAB_TVDTX - Table Type for TVDTX
Data type: TRTY_TVDTXOptional: Yes
Call by Reference: Yes
I_FLG_NO_SIMU - 'X' -> SIMKZ ausblenden
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_BUKRS - Company Code
Data type: BUKRSOptional: Yes
Call by Reference: Yes
I_DISPYN - Display Posting Date (Yes / No)
Data type: TB_DISPYN_CMLCHNOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for LOAN_GET_ADDITIONAL_DATA
ABBRUCH - wenn Abbruch PF12 gedrückt = 'X'
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
BKTXT - Posting Text
Data type: BSSBKPF-BKTXTOptional: No
Call by Reference: No ( called with pass by value option)
BUDAT - Posting Date
Data type: BSSBKPF-BUDATOptional: No
Call by Reference: No ( called with pass by value option)
PROTOCOL - 'X' Buchungsprotokoll ausgeben
Data type: RMF67-JPROTOptional: No
Call by Reference: No ( called with pass by value option)
SIMULATION - Simulation Indicator
Data type: BSSPARA-SIMKZOptional: No
Call by Reference: No ( called with pass by value option)
PERIOD - Posting Period
Data type: BKPF-MONATOptional: No
Call by Reference: No ( called with pass by value option)
SSTOGRD - Reason for Reversal
Data type: VDBEKI-SSTOGRDOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for LOAN_GET_ADDITIONAL_DATA 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_abbruch | TYPE STRING, " | |||
| lv_i_bktxt | TYPE BSSBKPF-BKTXT, " | |||
| lv_bktxt | TYPE BSSBKPF-BKTXT, " | |||
| lv_budat | TYPE BSSBKPF-BUDAT, " SY-DATUM | |||
| lv_budat | TYPE BSSBKPF-BUDAT, " | |||
| lv_anwendung | TYPE BSSBKPF, " | |||
| lv_sstogrd | TYPE VDBEKI-SSTOGRD, " | |||
| lv_protocol | TYPE RMF67-JPROT, " | |||
| lv_simulation | TYPE BSSPARA-SIMKZ, " | |||
| lv_i_tab_tvdtx | TYPE TRTY_TVDTX, " | |||
| lv_period | TYPE BKPF-MONAT, " | |||
| lv_i_flg_no_simu | TYPE XFELD, " SPACE | |||
| lv_i_bukrs | TYPE BUKRS, " | |||
| lv_sstogrd | TYPE VDBEKI-SSTOGRD, " | |||
| lv_i_dispyn | TYPE TB_DISPYN_CMLCHN. " |
|   CALL FUNCTION 'LOAN_GET_ADDITIONAL_DATA' "Dialog Box for Entering Additional Posting Data |
| EXPORTING | ||
| I_BKTXT | = lv_i_bktxt | |
| BUDAT | = lv_budat | |
| ANWENDUNG | = lv_anwendung | |
| SSTOGRD | = lv_sstogrd | |
| I_TAB_TVDTX | = lv_i_tab_tvdtx | |
| I_FLG_NO_SIMU | = lv_i_flg_no_simu | |
| I_BUKRS | = lv_i_bukrs | |
| I_DISPYN | = lv_i_dispyn | |
| IMPORTING | ||
| ABBRUCH | = lv_abbruch | |
| BKTXT | = lv_bktxt | |
| BUDAT | = lv_budat | |
| PROTOCOL | = lv_protocol | |
| SIMULATION | = lv_simulation | |
| PERIOD | = lv_period | |
| SSTOGRD | = lv_sstogrd | |
| . " LOAN_GET_ADDITIONAL_DATA | ||
ABAP code using 7.40 inline data declarations to call FM LOAN_GET_ADDITIONAL_DATA
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 BKTXT FROM BSSBKPF INTO @DATA(ld_i_bktxt). | ||||
| "SELECT single BKTXT FROM BSSBKPF INTO @DATA(ld_bktxt). | ||||
| "SELECT single BUDAT FROM BSSBKPF INTO @DATA(ld_budat). | ||||
| DATA(ld_budat) | = SY-DATUM. | |||
| "SELECT single BUDAT FROM BSSBKPF INTO @DATA(ld_budat). | ||||
| "SELECT single SSTOGRD FROM VDBEKI INTO @DATA(ld_sstogrd). | ||||
| "SELECT single JPROT FROM RMF67 INTO @DATA(ld_protocol). | ||||
| "SELECT single SIMKZ FROM BSSPARA INTO @DATA(ld_simulation). | ||||
| "SELECT single MONAT FROM BKPF INTO @DATA(ld_period). | ||||
| DATA(ld_i_flg_no_simu) | = ' '. | |||
| "SELECT single SSTOGRD FROM VDBEKI INTO @DATA(ld_sstogrd). | ||||
Search for further information about these or an SAP related objects