SAP TXX_VIEW_FILE_WRITE_INIT Function Module for









TXX_VIEW_FILE_WRITE_INIT is a standard txx view file 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 to perform a specific ABAP function and below is the pattern details, 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 txx view file write init FM, simply by entering the name TXX_VIEW_FILE_WRITE_INIT into the relevant SAP transaction such as SE37 or SE38.

Function Group: TXX22
Program Name: SAPLTXX22
Main Program: SAPLTXX22
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function TXX_VIEW_FILE_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 'TXX_VIEW_FILE_WRITE_INIT'"
EXPORTING
ID_TXVIEW = "
ID_VOLSET = "
ID_LFILE = "
* ID_EXTENSION = "
* ID_BINARY_MODE = ' ' "

CHANGING
CS_LOG_VW = "

EXCEPTIONS
FILENAME_INVALID = 1 FILE_OPEN_FAILED = 2 LOCK_SYSTEM_FAILURE = 3
.



IMPORTING Parameters details for TXX_VIEW_FILE_WRITE_INIT

ID_TXVIEW -

Data type: TXX_TXVIEW
Optional: No
Call by Reference: Yes

ID_VOLSET -

Data type: TXX_VOLSET
Optional: No
Call by Reference: Yes

ID_LFILE -

Data type: TXX_LFILE
Optional: No
Call by Reference: Yes

ID_EXTENSION -

Data type: CHAR2
Optional: Yes
Call by Reference: Yes

ID_BINARY_MODE -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: Yes

CHANGING Parameters details for TXX_VIEW_FILE_WRITE_INIT

CS_LOG_VW -

Data type: TXX_LOG_VW
Optional: No
Call by Reference: Yes

EXCEPTIONS details

FILENAME_INVALID -

Data type:
Optional: No
Call by Reference: Yes

FILE_OPEN_FAILED -

Data type:
Optional: No
Call by Reference: Yes

LOCK_SYSTEM_FAILURE -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for TXX_VIEW_FILE_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_cs_log_vw  TYPE TXX_LOG_VW, "   
lv_id_txview  TYPE TXX_TXVIEW, "   
lv_filename_invalid  TYPE TXX_TXVIEW, "   
lv_id_volset  TYPE TXX_VOLSET, "   
lv_file_open_failed  TYPE TXX_VOLSET, "   
lv_id_lfile  TYPE TXX_LFILE, "   
lv_lock_system_failure  TYPE TXX_LFILE, "   
lv_id_extension  TYPE CHAR2, "   
lv_id_binary_mode  TYPE C. "   SPACE

  CALL FUNCTION 'TXX_VIEW_FILE_WRITE_INIT'  "
    EXPORTING
         ID_TXVIEW = lv_id_txview
         ID_VOLSET = lv_id_volset
         ID_LFILE = lv_id_lfile
         ID_EXTENSION = lv_id_extension
         ID_BINARY_MODE = lv_id_binary_mode
    CHANGING
         CS_LOG_VW = lv_cs_log_vw
    EXCEPTIONS
        FILENAME_INVALID = 1
        FILE_OPEN_FAILED = 2
        LOCK_SYSTEM_FAILURE = 3
. " TXX_VIEW_FILE_WRITE_INIT




ABAP code using 7.40 inline data declarations to call FM TXX_VIEW_FILE_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.

 
 
 
 
 
 
 
 
DATA(ld_id_binary_mode) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!