SAP C13Z_TEXT_WRITE Function Module for NOTRANSL: EHS: Anlegen/Überschreiben einer Datei auf dem Applikationsserve
C13Z_TEXT_WRITE is a standard c13z text write SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: EHS: Anlegen/Überschreiben einer Datei auf dem Applikationsserve 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 c13z text write FM, simply by entering the name C13Z_TEXT_WRITE into the relevant SAP transaction such as SE37 or SE38.
Function Group: C13Z
Program Name: SAPLC13Z
Main Program: SAPLC13Z
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function C13Z_TEXT_WRITE 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 'C13Z_TEXT_WRITE'"NOTRANSL: EHS: Anlegen/Überschreiben einer Datei auf dem Applikationsserve.
EXPORTING
I_FILE = "
* I_FILE_OVERWRITE = ESP1_TRUE "
* I_LANGU = SY-LANGU "SAP System, Current Language
TABLES
I_TEXTDATA_TAB = "
* E_ERROR_TAB = "Error Message Table
EXCEPTIONS
NO_PERMISSION = 1 OPEN_FAILED = 2 AP_FILE_EXISTS = 3
IMPORTING Parameters details for C13Z_TEXT_WRITE
I_FILE -
Data type: RCGIEDIAL-IEFILEOptional: No
Call by Reference: No ( called with pass by value option)
I_FILE_OVERWRITE -
Data type: ESP1_BOOLEANDefault: ESP1_TRUE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LANGU - SAP System, Current Language
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for C13Z_TEXT_WRITE
I_TEXTDATA_TAB -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
E_ERROR_TAB - Error Message Table
Data type: ESPAP_EXTERROR_TAB_TYPEOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_PERMISSION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OPEN_FAILED - Error when opening file
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
AP_FILE_EXISTS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for C13Z_TEXT_WRITE 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_file | TYPE RCGIEDIAL-IEFILE, " | |||
lv_no_permission | TYPE RCGIEDIAL, " | |||
lt_i_textdata_tab | TYPE STANDARD TABLE OF RCGIEDIAL, " | |||
lt_e_error_tab | TYPE STANDARD TABLE OF ESPAP_EXTERROR_TAB_TYPE, " | |||
lv_open_failed | TYPE ESPAP_EXTERROR_TAB_TYPE, " | |||
lv_i_file_overwrite | TYPE ESP1_BOOLEAN, " ESP1_TRUE | |||
lv_i_langu | TYPE SY-LANGU, " SY-LANGU | |||
lv_ap_file_exists | TYPE SY. " |
  CALL FUNCTION 'C13Z_TEXT_WRITE' "NOTRANSL: EHS: Anlegen/Überschreiben einer Datei auf dem Applikationsserve |
EXPORTING | ||
I_FILE | = lv_i_file | |
I_FILE_OVERWRITE | = lv_i_file_overwrite | |
I_LANGU | = lv_i_langu | |
TABLES | ||
I_TEXTDATA_TAB | = lt_i_textdata_tab | |
E_ERROR_TAB | = lt_e_error_tab | |
EXCEPTIONS | ||
NO_PERMISSION = 1 | ||
OPEN_FAILED = 2 | ||
AP_FILE_EXISTS = 3 | ||
. " C13Z_TEXT_WRITE |
ABAP code using 7.40 inline data declarations to call FM C13Z_TEXT_WRITE
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 IEFILE FROM RCGIEDIAL INTO @DATA(ld_i_file). | ||||
DATA(ld_i_file_overwrite) | = ESP1_TRUE. | |||
"SELECT single LANGU FROM SY INTO @DATA(ld_i_langu). | ||||
DATA(ld_i_langu) | = SY-LANGU. | |||
Search for further information about these or an SAP related objects