SAP HR_BE_BOW_CREATE_TEMSE Function Module for Generate a Temse file for BOW (BELCOTAX/FINPROF)
HR_BE_BOW_CREATE_TEMSE is a standard hr be bow create temse SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Generate a Temse file for BOW (BELCOTAX/FINPROF) 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 hr be bow create temse FM, simply by entering the name HR_BE_BOW_CREATE_TEMSE into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRPAYBE_BOWA_STATUS_ADM
Program Name: SAPLHRPAYBE_BOWA_STATUS_ADM
Main Program: SAPLHRPAYBE_BOWA_STATUS_ADM
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HR_BE_BOW_CREATE_TEMSE 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 'HR_BE_BOW_CREATE_TEMSE'"Generate a Temse file for BOW (BELCOTAX/FINPROF).
EXPORTING
IM_TAB_TEMSE = "
* IV_B2AGROUP = 'SI' "Not More Closely Defined Area, Possibly Used for Patchlevels
* IM_TEMSE_VIEWER = 'RPUTMS9S' "Character field, 8 characters long
* IM_REPFORM = "callback routine
* IM_REPNAME = "callback report
* IT_ORG_DATA = "
* IS_SENDER = "
* IV_SENDID = "Company ID
* IT_EMPLOYER = "
* IV_TAX_YEAR = "Income year
* IV_APPL = "Subapplication
* IM_APPL = 'BOWA' "Teilapplikation
* IM_MESSAGE = 'X' "boolsche Variable (X=true, -=false, space=unknown)
* IM_TEST = "Test Modus
* IM_ACB2A = "Activate B2A for DMFA
* IM_TXB2A = "B2A Text
* IV_DOCTYPE = "HR-B2A: Dokumenttyp
* IV_B2AID = "B2A Identifikator
* IM_FILTER = "
IMPORTING
EX_TEMSE = "
EX_RETURNCODE = "Rückgabewert, Rückgabewert nach ABAP-Anweisungen
CHANGING
* CH_PB2AMGR = "HR-B2A: Struktur für V_PB2AMGR
* CH_TEMSE_ATR = "
* CH_TAB_ERROR = "
IMPORTING Parameters details for HR_BE_BOW_CREATE_TEMSE
IM_TAB_TEMSE -
Data type: TABLEOptional: No
Call by Reference: Yes
IV_B2AGROUP - Not More Closely Defined Area, Possibly Used for Patchlevels
Data type: CHAR4Default: 'SI'
Optional: Yes
Call by Reference: Yes
IM_TEMSE_VIEWER - Character field, 8 characters long
Data type: CHAR8Default: 'RPUTMS9S'
Optional: Yes
Call by Reference: Yes
IM_REPFORM - callback routine
Data type: CHAR30Optional: Yes
Call by Reference: Yes
IM_REPNAME - callback report
Data type: SY-REPIDOptional: Yes
Call by Reference: Yes
IT_ORG_DATA -
Data type: PBEBW_TAB_EE_ORGOptional: Yes
Call by Reference: Yes
IS_SENDER -
Data type: PBEBW_SENDEROptional: Yes
Call by Reference: Yes
IV_SENDID - Company ID
Data type: P12_COMIDOptional: Yes
Call by Reference: Yes
IT_EMPLOYER -
Data type: PBEBW_TAB_EMPLOYEROptional: Yes
Call by Reference: Yes
IV_TAX_YEAR - Income year
Data type: PC12_BTDYROptional: Yes
Call by Reference: Yes
IV_APPL - Subapplication
Data type: P_APPLOptional: Yes
Call by Reference: Yes
IM_APPL - Teilapplikation
Data type: T5F99F0-APPLDefault: 'BOWA'
Optional: Yes
Call by Reference: Yes
IM_MESSAGE - boolsche Variable (X=true, -=false, space=unknown)
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: Yes
IM_TEST - Test Modus
Data type: COptional: Yes
Call by Reference: Yes
IM_ACB2A - Activate B2A for DMFA
Data type: P12_ACB2AOptional: Yes
Call by Reference: Yes
IM_TXB2A - B2A Text
Data type: P12_TXB2AOptional: Yes
Call by Reference: Yes
IV_DOCTYPE - HR-B2A: Dokumenttyp
Data type: V_PB2AMGR-DOCTYOptional: Yes
Call by Reference: Yes
IV_B2AID - B2A Identifikator
Data type: V_PB2AMGR-B2AIDOptional: Yes
Call by Reference: Yes
IM_FILTER -
Data type: ANYOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for HR_BE_BOW_CREATE_TEMSE
EX_TEMSE -
Data type: CL_HR99S00_TEMSEOptional: No
Call by Reference: Yes
EX_RETURNCODE - Rückgabewert, Rückgabewert nach ABAP-Anweisungen
Data type: SY-SUBRCOptional: No
Call by Reference: Yes
CHANGING Parameters details for HR_BE_BOW_CREATE_TEMSE
CH_PB2AMGR - HR-B2A: Struktur für V_PB2AMGR
Data type: HRB2A_S_V_PB2AMGROptional: Yes
Call by Reference: Yes
CH_TEMSE_ATR -
Data type: ANYOptional: Yes
Call by Reference: Yes
CH_TAB_ERROR -
Data type: P99SF_TAB_ERROROptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for HR_BE_BOW_CREATE_TEMSE 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_ex_temse | TYPE CL_HR99S00_TEMSE, " | |||
| lv_ch_pb2amgr | TYPE HRB2A_S_V_PB2AMGR, " | |||
| lv_im_tab_temse | TYPE TABLE, " | |||
| lv_iv_b2agroup | TYPE CHAR4, " 'SI' | |||
| lv_im_temse_viewer | TYPE CHAR8, " 'RPUTMS9S' | |||
| lv_im_repform | TYPE CHAR30, " | |||
| lv_im_repname | TYPE SY-REPID, " | |||
| lv_it_org_data | TYPE PBEBW_TAB_EE_ORG, " | |||
| lv_is_sender | TYPE PBEBW_SENDER, " | |||
| lv_iv_sendid | TYPE P12_COMID, " | |||
| lv_it_employer | TYPE PBEBW_TAB_EMPLOYER, " | |||
| lv_iv_tax_year | TYPE PC12_BTDYR, " | |||
| lv_iv_appl | TYPE P_APPL, " | |||
| lv_im_appl | TYPE T5F99F0-APPL, " 'BOWA' | |||
| lv_ch_temse_atr | TYPE ANY, " | |||
| lv_ex_returncode | TYPE SY-SUBRC, " | |||
| lv_im_message | TYPE C, " 'X' | |||
| lv_ch_tab_error | TYPE P99SF_TAB_ERROR, " | |||
| lv_im_test | TYPE C, " | |||
| lv_im_acb2a | TYPE P12_ACB2A, " | |||
| lv_im_txb2a | TYPE P12_TXB2A, " | |||
| lv_iv_doctype | TYPE V_PB2AMGR-DOCTY, " | |||
| lv_iv_b2aid | TYPE V_PB2AMGR-B2AID, " | |||
| lv_im_filter | TYPE ANY. " |
|   CALL FUNCTION 'HR_BE_BOW_CREATE_TEMSE' "Generate a Temse file for BOW (BELCOTAX/FINPROF) |
| EXPORTING | ||
| IM_TAB_TEMSE | = lv_im_tab_temse | |
| IV_B2AGROUP | = lv_iv_b2agroup | |
| IM_TEMSE_VIEWER | = lv_im_temse_viewer | |
| IM_REPFORM | = lv_im_repform | |
| IM_REPNAME | = lv_im_repname | |
| IT_ORG_DATA | = lv_it_org_data | |
| IS_SENDER | = lv_is_sender | |
| IV_SENDID | = lv_iv_sendid | |
| IT_EMPLOYER | = lv_it_employer | |
| IV_TAX_YEAR | = lv_iv_tax_year | |
| IV_APPL | = lv_iv_appl | |
| IM_APPL | = lv_im_appl | |
| IM_MESSAGE | = lv_im_message | |
| IM_TEST | = lv_im_test | |
| IM_ACB2A | = lv_im_acb2a | |
| IM_TXB2A | = lv_im_txb2a | |
| IV_DOCTYPE | = lv_iv_doctype | |
| IV_B2AID | = lv_iv_b2aid | |
| IM_FILTER | = lv_im_filter | |
| IMPORTING | ||
| EX_TEMSE | = lv_ex_temse | |
| EX_RETURNCODE | = lv_ex_returncode | |
| CHANGING | ||
| CH_PB2AMGR | = lv_ch_pb2amgr | |
| CH_TEMSE_ATR | = lv_ch_temse_atr | |
| CH_TAB_ERROR | = lv_ch_tab_error | |
| . " HR_BE_BOW_CREATE_TEMSE | ||
ABAP code using 7.40 inline data declarations to call FM HR_BE_BOW_CREATE_TEMSE
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_iv_b2agroup) | = 'SI'. | |||
| DATA(ld_im_temse_viewer) | = 'RPUTMS9S'. | |||
| "SELECT single REPID FROM SY INTO @DATA(ld_im_repname). | ||||
| "SELECT single APPL FROM T5F99F0 INTO @DATA(ld_im_appl). | ||||
| DATA(ld_im_appl) | = 'BOWA'. | |||
| "SELECT single SUBRC FROM SY INTO @DATA(ld_ex_returncode). | ||||
| DATA(ld_im_message) | = 'X'. | |||
| "SELECT single DOCTY FROM V_PB2AMGR INTO @DATA(ld_iv_doctype). | ||||
| "SELECT single B2AID FROM V_PB2AMGR INTO @DATA(ld_iv_b2aid). | ||||
Search for further information about these or an SAP related objects