SAP TXW_GLOBAL_SETTINGS_E1 Function Module for Init global settings









TXW_GLOBAL_SETTINGS_E1 is a standard txw global settings e1 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Init global settings 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 txw global settings e1 FM, simply by entering the name TXW_GLOBAL_SETTINGS_E1 into the relevant SAP transaction such as SE37 or SE38.

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



Function TXW_GLOBAL_SETTINGS_E1 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 'TXW_GLOBAL_SETTINGS_E1'"Init global settings
EXPORTING
MAX_INDX_RECORDS = "Maximal Number of Records stored in INDX
FISCAL_YEAR = "Fiscal Year from Selection
STORE_MASTER_DATA = "Store master data
READ_SKB1 = "Read G/L account per company
INCLUDE_ARCHIVE = "Flag: include archived data (reload tables)
MAX_DOCS = "Maximum number of documents
TPARMS = "Selection flags for transaction data sources
COUNTRY_CODE = "Country Key
* RLDNR = "Ledger in General Ledger Accounting

TABLES
S_BUKRS = "Companies
S_MONAT = "Periods
S_AFABE = "Depreciation areas for AM document selection
S_VALAR = "Valuation areas for CFM
S_INCL = "Segment archive list of master data
.



IMPORTING Parameters details for TXW_GLOBAL_SETTINGS_E1

MAX_INDX_RECORDS - Maximal Number of Records stored in INDX

Data type: TXW_COMMON-MAXREC
Optional: No
Call by Reference: No ( called with pass by value option)

FISCAL_YEAR - Fiscal Year from Selection

Data type: TXW_FI_HD-GJAHR
Optional: No
Call by Reference: No ( called with pass by value option)

STORE_MASTER_DATA - Store master data

Data type: TXW_COMMON-FLAG
Optional: No
Call by Reference: No ( called with pass by value option)

READ_SKB1 - Read G/L account per company

Data type: TXW_COMMON-FLAG
Optional: No
Call by Reference: No ( called with pass by value option)

INCLUDE_ARCHIVE - Flag: include archived data (reload tables)

Data type: TXW_TPARMS-P_TARCH
Optional: No
Call by Reference: No ( called with pass by value option)

MAX_DOCS - Maximum number of documents

Data type: TXW_COMMON-MAX_DOCS
Optional: No
Call by Reference: No ( called with pass by value option)

TPARMS - Selection flags for transaction data sources

Data type: TXW_TPARMS
Optional: No
Call by Reference: No ( called with pass by value option)

COUNTRY_CODE - Country Key

Data type: T001-LAND1
Optional: No
Call by Reference: No ( called with pass by value option)

RLDNR - Ledger in General Ledger Accounting

Data type: FAGLFLEXT-RLDNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for TXW_GLOBAL_SETTINGS_E1

S_BUKRS - Companies

Data type:
Optional: No
Call by Reference: Yes

S_MONAT - Periods

Data type:
Optional: No
Call by Reference: Yes

S_AFABE - Depreciation areas for AM document selection

Data type:
Optional: No
Call by Reference: Yes

S_VALAR - Valuation areas for CFM

Data type:
Optional: No
Call by Reference: Yes

S_INCL - Segment archive list of master data

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for TXW_GLOBAL_SETTINGS_E1 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:
lt_s_bukrs  TYPE STANDARD TABLE OF STRING, "   
lv_max_indx_records  TYPE TXW_COMMON-MAXREC, "   
lt_s_monat  TYPE STANDARD TABLE OF TXW_COMMON, "   
lv_fiscal_year  TYPE TXW_FI_HD-GJAHR, "   
lt_s_afabe  TYPE STANDARD TABLE OF TXW_FI_HD, "   
lv_store_master_data  TYPE TXW_COMMON-FLAG, "   
lt_s_valar  TYPE STANDARD TABLE OF TXW_COMMON, "   
lv_read_skb1  TYPE TXW_COMMON-FLAG, "   
lt_s_incl  TYPE STANDARD TABLE OF TXW_COMMON, "   
lv_include_archive  TYPE TXW_TPARMS-P_TARCH, "   
lv_max_docs  TYPE TXW_COMMON-MAX_DOCS, "   
lv_tparms  TYPE TXW_TPARMS, "   
lv_country_code  TYPE T001-LAND1, "   
lv_rldnr  TYPE FAGLFLEXT-RLDNR. "   

  CALL FUNCTION 'TXW_GLOBAL_SETTINGS_E1'  "Init global settings
    EXPORTING
         MAX_INDX_RECORDS = lv_max_indx_records
         FISCAL_YEAR = lv_fiscal_year
         STORE_MASTER_DATA = lv_store_master_data
         READ_SKB1 = lv_read_skb1
         INCLUDE_ARCHIVE = lv_include_archive
         MAX_DOCS = lv_max_docs
         TPARMS = lv_tparms
         COUNTRY_CODE = lv_country_code
         RLDNR = lv_rldnr
    TABLES
         S_BUKRS = lt_s_bukrs
         S_MONAT = lt_s_monat
         S_AFABE = lt_s_afabe
         S_VALAR = lt_s_valar
         S_INCL = lt_s_incl
. " TXW_GLOBAL_SETTINGS_E1




ABAP code using 7.40 inline data declarations to call FM TXW_GLOBAL_SETTINGS_E1

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 MAXREC FROM TXW_COMMON INTO @DATA(ld_max_indx_records).
 
 
"SELECT single GJAHR FROM TXW_FI_HD INTO @DATA(ld_fiscal_year).
 
 
"SELECT single FLAG FROM TXW_COMMON INTO @DATA(ld_store_master_data).
 
 
"SELECT single FLAG FROM TXW_COMMON INTO @DATA(ld_read_skb1).
 
 
"SELECT single P_TARCH FROM TXW_TPARMS INTO @DATA(ld_include_archive).
 
"SELECT single MAX_DOCS FROM TXW_COMMON INTO @DATA(ld_max_docs).
 
 
"SELECT single LAND1 FROM T001 INTO @DATA(ld_country_code).
 
"SELECT single RLDNR FROM FAGLFLEXT INTO @DATA(ld_rldnr).
 


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!