SAP TMW_NET_PREPROCESS Function Module for Preprocess interface for .NET server generation
TMW_NET_PREPROCESS is a standard tmw net preprocess SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Preprocess interface for .NET server generation 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 tmw net preprocess FM, simply by entering the name TMW_NET_PREPROCESS into the relevant SAP transaction such as SE37 or SE38.
Function Group: LXE_TMW_PREPROCESS
Program Name: SAPLLXE_TMW_PREPROCESS
Main Program: SAPLLXE_TMW_PREPROCESS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function TMW_NET_PREPROCESS 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 'TMW_NET_PREPROCESS'"Preprocess interface for .NET server generation.
EXPORTING
OBJINFO = "Translation Memory Middleware Input
TMSINFO = "Translation Memory System Information
SOURCE = "
TTX = "
MIN_MATCH_VALUE = "Translation Midleware Counter
UNAME = "Translation Middleware Parameter (Previously CHAR255)
IMPORTING
W_PSTATS = "Translation Memory Middleware Pretranslation Statistics
S_PSTATS = "Translation Memory Middleware Pretranslation Statistics
XSTATS = "Translation Memory Middleware Xtranslate Statistics
W_ASTATS = "Translation Memory Middleware Analysis Statistics
S_ASTATS = "Translation Memory Middleware Analysis Statistics
RESULT_TTX = "
TARGET = "
EXCEPTIONS
BAD_PARAMETER = 1 PROCESS_DOCUMENT_ERROR = 2 TMW_ERROR = 3 TRADOS_ERROR = 4
IMPORTING Parameters details for TMW_NET_PREPROCESS
OBJINFO - Translation Memory Middleware Input
Data type: TMW_OBJINFOOptional: No
Call by Reference: No ( called with pass by value option)
TMSINFO - Translation Memory System Information
Data type: TMW_TMINFOOptional: No
Call by Reference: No ( called with pass by value option)
SOURCE -
Data type: XSTRINGOptional: No
Call by Reference: No ( called with pass by value option)
TTX -
Data type: XSTRINGOptional: No
Call by Reference: No ( called with pass by value option)
MIN_MATCH_VALUE - Translation Midleware Counter
Data type: TMWCOUNTEROptional: No
Call by Reference: No ( called with pass by value option)
UNAME - Translation Middleware Parameter (Previously CHAR255)
Data type: TMWPARAMOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for TMW_NET_PREPROCESS
W_PSTATS - Translation Memory Middleware Pretranslation Statistics
Data type: TMW_PSTATSOptional: No
Call by Reference: No ( called with pass by value option)
S_PSTATS - Translation Memory Middleware Pretranslation Statistics
Data type: TMW_PSTATSOptional: No
Call by Reference: No ( called with pass by value option)
XSTATS - Translation Memory Middleware Xtranslate Statistics
Data type: TMW_XSTATSOptional: No
Call by Reference: No ( called with pass by value option)
W_ASTATS - Translation Memory Middleware Analysis Statistics
Data type: TMW_ASTATSOptional: No
Call by Reference: No ( called with pass by value option)
S_ASTATS - Translation Memory Middleware Analysis Statistics
Data type: TMW_ASTATSOptional: No
Call by Reference: No ( called with pass by value option)
RESULT_TTX -
Data type: XSTRINGOptional: No
Call by Reference: No ( called with pass by value option)
TARGET -
Data type: XSTRINGOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
BAD_PARAMETER -
Data type:Optional: No
Call by Reference: Yes
PROCESS_DOCUMENT_ERROR -
Data type:Optional: No
Call by Reference: Yes
TMW_ERROR -
Data type:Optional: No
Call by Reference: Yes
TRADOS_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for TMW_NET_PREPROCESS 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_objinfo | TYPE TMW_OBJINFO, " | |||
| lv_w_pstats | TYPE TMW_PSTATS, " | |||
| lv_bad_parameter | TYPE TMW_PSTATS, " | |||
| lv_tmsinfo | TYPE TMW_TMINFO, " | |||
| lv_s_pstats | TYPE TMW_PSTATS, " | |||
| lv_process_document_error | TYPE TMW_PSTATS, " | |||
| lv_source | TYPE XSTRING, " | |||
| lv_xstats | TYPE TMW_XSTATS, " | |||
| lv_tmw_error | TYPE TMW_XSTATS, " | |||
| lv_ttx | TYPE XSTRING, " | |||
| lv_w_astats | TYPE TMW_ASTATS, " | |||
| lv_trados_error | TYPE TMW_ASTATS, " | |||
| lv_s_astats | TYPE TMW_ASTATS, " | |||
| lv_min_match_value | TYPE TMWCOUNTER, " | |||
| lv_uname | TYPE TMWPARAM, " | |||
| lv_result_ttx | TYPE XSTRING, " | |||
| lv_target | TYPE XSTRING. " |
|   CALL FUNCTION 'TMW_NET_PREPROCESS' "Preprocess interface for .NET server generation |
| EXPORTING | ||
| OBJINFO | = lv_objinfo | |
| TMSINFO | = lv_tmsinfo | |
| SOURCE | = lv_source | |
| TTX | = lv_ttx | |
| MIN_MATCH_VALUE | = lv_min_match_value | |
| UNAME | = lv_uname | |
| IMPORTING | ||
| W_PSTATS | = lv_w_pstats | |
| S_PSTATS | = lv_s_pstats | |
| XSTATS | = lv_xstats | |
| W_ASTATS | = lv_w_astats | |
| S_ASTATS | = lv_s_astats | |
| RESULT_TTX | = lv_result_ttx | |
| TARGET | = lv_target | |
| EXCEPTIONS | ||
| BAD_PARAMETER = 1 | ||
| PROCESS_DOCUMENT_ERROR = 2 | ||
| TMW_ERROR = 3 | ||
| TRADOS_ERROR = 4 | ||
| . " TMW_NET_PREPROCESS | ||
ABAP code using 7.40 inline data declarations to call FM TMW_NET_PREPROCESS
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