SAP TXS_EXTRACT_WRITE_INIT Function Module for Initialize Extract
TXS_EXTRACT_WRITE_INIT is a standard txs extract write init SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Initialize Extract 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 txs extract write init FM, simply by entering the name TXS_EXTRACT_WRITE_INIT into the relevant SAP transaction such as SE37 or SE38.
Function Group: TXILM_SRV
Program Name: SAPLTXILM_SRV
Main Program: SAPLTXILM_SRV
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function TXS_EXTRACT_WRITE_INIT 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 'TXS_EXTRACT_WRITE_INIT'"Initialize Extract.
EXPORTING
I_BUKRS = "Company Code
I_GJAHR = "Fiscal year
I_MON_LOW = "Fiscal period
I_MON_HIGH = "Fiscal period
I_RESTART = "Checkbox
I_TEXT = "Description
IMPORTING
O_UID = "UUID in character form
EXCEPTIONS
CX_XADK_DAS_SERVER = 1 CX_XADK_SYSTEM = 2 CX_XADK_METHODS = 3 GET_CUSTOMIZING = 4
IMPORTING Parameters details for TXS_EXTRACT_WRITE_INIT
I_BUKRS - Company Code
Data type: BUKRSOptional: No
Call by Reference: Yes
I_GJAHR - Fiscal year
Data type: GJAHROptional: No
Call by Reference: Yes
I_MON_LOW - Fiscal period
Data type: MONATOptional: No
Call by Reference: Yes
I_MON_HIGH - Fiscal period
Data type: MONATOptional: No
Call by Reference: Yes
I_RESTART - Checkbox
Data type: XFELDOptional: No
Call by Reference: Yes
I_TEXT - Description
Data type: TXX_TXTOptional: No
Call by Reference: Yes
EXPORTING Parameters details for TXS_EXTRACT_WRITE_INIT
O_UID - UUID in character form
Data type: SYSUUID_COptional: No
Call by Reference: Yes
EXCEPTIONS details
CX_XADK_DAS_SERVER -
Data type:Optional: No
Call by Reference: Yes
CX_XADK_SYSTEM -
Data type:Optional: No
Call by Reference: Yes
CX_XADK_METHODS -
Data type:Optional: No
Call by Reference: Yes
GET_CUSTOMIZING -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for TXS_EXTRACT_WRITE_INIT 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_o_uid | TYPE SYSUUID_C, " | |||
| lv_i_bukrs | TYPE BUKRS, " | |||
| lv_cx_xadk_das_server | TYPE BUKRS, " | |||
| lv_i_gjahr | TYPE GJAHR, " | |||
| lv_cx_xadk_system | TYPE GJAHR, " | |||
| lv_i_mon_low | TYPE MONAT, " | |||
| lv_cx_xadk_methods | TYPE MONAT, " | |||
| lv_i_mon_high | TYPE MONAT, " | |||
| lv_get_customizing | TYPE MONAT, " | |||
| lv_i_restart | TYPE XFELD, " | |||
| lv_i_text | TYPE TXX_TXT. " |
|   CALL FUNCTION 'TXS_EXTRACT_WRITE_INIT' "Initialize Extract |
| EXPORTING | ||
| I_BUKRS | = lv_i_bukrs | |
| I_GJAHR | = lv_i_gjahr | |
| I_MON_LOW | = lv_i_mon_low | |
| I_MON_HIGH | = lv_i_mon_high | |
| I_RESTART | = lv_i_restart | |
| I_TEXT | = lv_i_text | |
| IMPORTING | ||
| O_UID | = lv_o_uid | |
| EXCEPTIONS | ||
| CX_XADK_DAS_SERVER = 1 | ||
| CX_XADK_SYSTEM = 2 | ||
| CX_XADK_METHODS = 3 | ||
| GET_CUSTOMIZING = 4 | ||
| . " TXS_EXTRACT_WRITE_INIT | ||
ABAP code using 7.40 inline data declarations to call FM TXS_EXTRACT_WRITE_INIT
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.Search for further information about these or an SAP related objects