SAP TR_SE_ACC_INTERFACE_PREPARE Function Module for TR-TM-SE: Posting Interface: Prepare for FI Interface Call
TR_SE_ACC_INTERFACE_PREPARE is a standard tr se acc interface prepare SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for TR-TM-SE: Posting Interface: Prepare for FI Interface Call 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 tr se acc interface prepare FM, simply by entering the name TR_SE_ACC_INTERFACE_PREPARE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FWF1
Program Name: SAPLFWF1
Main Program: SAPLFWF1
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function TR_SE_ACC_INTERFACE_PREPARE 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 'TR_SE_ACC_INTERFACE_PREPARE'"TR-TM-SE: Posting Interface: Prepare for FI Interface Call.
EXPORTING
I_BUKRS = "Company Code
I_POST_TRANSACTIONS = "Zu buchende Bewegungen
* I_BUDAT = SY-DATUM "Posting Date
* I_BLDAT = SY-DATUM "Document Date
* I_PERIOD = 00 "Posting Period
* I_PRIMANOTA = ' ' "Vorgegebene Primanota
* I_SIMULATION = ' ' "X: Simulation, Sonst: Echtlauf
I_TCODE = "Transaktionscode des Aufrufers (für Batch)
I_BUS_TRANS_DETAIL = "Geschäftsvorfallsdaten für Buchungsprotokoll
IMPORTING
E_BEKI = "Erzeugte BEKI-Sätze
E_BEPI = "Erzeugte BEPI-Sätze
E_PRIMANOTA = "Neu vergebene Primanota
E_NUMBER_FI_POSTINGS = "Anzahl der gebuchten FI-Belege
EXCEPTIONS
ERROR_OCCURED = 1 ERROR_AUTHORITY_CHECK = 2
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_SAPLFWF1_001 TR-TM-SE: User Exit Posting Interface: Account Determination
IMPORTING Parameters details for TR_SE_ACC_INTERFACE_PREPARE
I_BUKRS - Company Code
Data type: T001-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_POST_TRANSACTIONS - Zu buchende Bewegungen
Data type: TRPM_IT_VWBEPPOptional: No
Call by Reference: No ( called with pass by value option)
I_BUDAT - Posting Date
Data type: BKPF-BUDATDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_BLDAT - Document Date
Data type: BKPF-BLDATDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_PERIOD - Posting Period
Data type: BKPF-MONATDefault: 00
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_PRIMANOTA - Vorgegebene Primanota
Data type: VWBEKI-RPNNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SIMULATION - X: Simulation, Sonst: Echtlauf
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TCODE - Transaktionscode des Aufrufers (für Batch)
Data type: TSTC-TCODEOptional: No
Call by Reference: No ( called with pass by value option)
I_BUS_TRANS_DETAIL - Geschäftsvorfallsdaten für Buchungsprotokoll
Data type: TBS_SEC_BUSINESS_TRANSOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for TR_SE_ACC_INTERFACE_PREPARE
E_BEKI - Erzeugte BEKI-Sätze
Data type: TRPM_IT_VWBEKIOptional: No
Call by Reference: Yes
E_BEPI - Erzeugte BEPI-Sätze
Data type: TRPM_IT_VWBEPIOptional: No
Call by Reference: Yes
E_PRIMANOTA - Neu vergebene Primanota
Data type: VWBEKI-RPNNROptional: No
Call by Reference: No ( called with pass by value option)
E_NUMBER_FI_POSTINGS - Anzahl der gebuchten FI-Belege
Data type: IOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR_OCCURED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_AUTHORITY_CHECK -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for TR_SE_ACC_INTERFACE_PREPARE 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_e_beki | TYPE TRPM_IT_VWBEKI, " | |||
| lv_i_bukrs | TYPE T001-BUKRS, " | |||
| lv_error_occured | TYPE T001, " | |||
| lv_e_bepi | TYPE TRPM_IT_VWBEPI, " | |||
| lv_i_post_transactions | TYPE TRPM_IT_VWBEPP, " | |||
| lv_error_authority_check | TYPE TRPM_IT_VWBEPP, " | |||
| lv_i_budat | TYPE BKPF-BUDAT, " SY-DATUM | |||
| lv_e_primanota | TYPE VWBEKI-RPNNR, " | |||
| lv_i_bldat | TYPE BKPF-BLDAT, " SY-DATUM | |||
| lv_e_number_fi_postings | TYPE I, " | |||
| lv_i_period | TYPE BKPF-MONAT, " 00 | |||
| lv_i_primanota | TYPE VWBEKI-RPNNR, " SPACE | |||
| lv_i_simulation | TYPE C, " SPACE | |||
| lv_i_tcode | TYPE TSTC-TCODE, " | |||
| lv_i_bus_trans_detail | TYPE TBS_SEC_BUSINESS_TRANS. " |
|   CALL FUNCTION 'TR_SE_ACC_INTERFACE_PREPARE' "TR-TM-SE: Posting Interface: Prepare for FI Interface Call |
| EXPORTING | ||
| I_BUKRS | = lv_i_bukrs | |
| I_POST_TRANSACTIONS | = lv_i_post_transactions | |
| I_BUDAT | = lv_i_budat | |
| I_BLDAT | = lv_i_bldat | |
| I_PERIOD | = lv_i_period | |
| I_PRIMANOTA | = lv_i_primanota | |
| I_SIMULATION | = lv_i_simulation | |
| I_TCODE | = lv_i_tcode | |
| I_BUS_TRANS_DETAIL | = lv_i_bus_trans_detail | |
| IMPORTING | ||
| E_BEKI | = lv_e_beki | |
| E_BEPI | = lv_e_bepi | |
| E_PRIMANOTA | = lv_e_primanota | |
| E_NUMBER_FI_POSTINGS | = lv_e_number_fi_postings | |
| EXCEPTIONS | ||
| ERROR_OCCURED = 1 | ||
| ERROR_AUTHORITY_CHECK = 2 | ||
| . " TR_SE_ACC_INTERFACE_PREPARE | ||
ABAP code using 7.40 inline data declarations to call FM TR_SE_ACC_INTERFACE_PREPARE
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 BUKRS FROM T001 INTO @DATA(ld_i_bukrs). | ||||
| "SELECT single BUDAT FROM BKPF INTO @DATA(ld_i_budat). | ||||
| DATA(ld_i_budat) | = SY-DATUM. | |||
| "SELECT single RPNNR FROM VWBEKI INTO @DATA(ld_e_primanota). | ||||
| "SELECT single BLDAT FROM BKPF INTO @DATA(ld_i_bldat). | ||||
| DATA(ld_i_bldat) | = SY-DATUM. | |||
| "SELECT single MONAT FROM BKPF INTO @DATA(ld_i_period). | ||||
| DATA(ld_i_period) | = 00. | |||
| "SELECT single RPNNR FROM VWBEKI INTO @DATA(ld_i_primanota). | ||||
| DATA(ld_i_primanota) | = ' '. | |||
| DATA(ld_i_simulation) | = ' '. | |||
| "SELECT single TCODE FROM TSTC INTO @DATA(ld_i_tcode). | ||||
Search for further information about these or an SAP related objects