SAP Function Modules

SOTR_TRALA_STRING_STATISTICS SAP Function module







SOTR_TRALA_STRING_STATISTICS is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name SOTR_TRALA_STRING_STATISTICS into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: SOTR_API_STRING_TRALA
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM SOTR_TRALA_STRING_STATISTICS - SOTR TRALA STRING STATISTICS





CALL FUNCTION 'SOTR_TRALA_STRING_STATISTICS' "
  EXPORTING
*   source_langu =              " sy-langu      SAP R/3 System, Current Language
    target_langu =              " sy-langu      SAP R/3 System, Current Language
*   packages =                  " sotr_packs    Packages in the OTR
*   trala_types =               " sotr_traty    OTR Translation Class
  TABLES
*   src_system =                " sel_system    Range Table for System IDs
*   change_date =               " sel_tstut
*   import_date =               " sel_dates     Selection According to Time Stamp
    statistics =                " lwrkstat      Translation statistics
  EXCEPTIONS
    NO_ENTRY_FOUND = 1          "
    .  "  SOTR_TRALA_STRING_STATISTICS

ABAP code example for Function Module SOTR_TRALA_STRING_STATISTICS





The ABAP code below is a full code listing to execute function module SOTR_TRALA_STRING_STATISTICS including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_src_system  TYPE STANDARD TABLE OF SEL_SYSTEM,"TABLES PARAM
wa_src_system  LIKE LINE OF it_src_system ,
it_change_date  TYPE STANDARD TABLE OF SEL_TSTUT,"TABLES PARAM
wa_change_date  LIKE LINE OF it_change_date ,
it_import_date  TYPE STANDARD TABLE OF SEL_DATES,"TABLES PARAM
wa_import_date  LIKE LINE OF it_import_date ,
it_statistics  TYPE STANDARD TABLE OF LWRKSTAT,"TABLES PARAM
wa_statistics  LIKE LINE OF it_statistics .

DATA(ld_source_langu) = 'Check type of data required'.
DATA(ld_target_langu) = 'Check type of data required'.
DATA(ld_packages) = 'Check type of data required'.
DATA(ld_trala_types) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_src_system to it_src_system.

"populate fields of struture and append to itab
append wa_change_date to it_change_date.

"populate fields of struture and append to itab
append wa_import_date to it_import_date.

"populate fields of struture and append to itab
append wa_statistics to it_statistics. . CALL FUNCTION 'SOTR_TRALA_STRING_STATISTICS' EXPORTING * source_langu = ld_source_langu target_langu = ld_target_langu * packages = ld_packages * trala_types = ld_trala_types TABLES * src_system = it_src_system * change_date = it_change_date * import_date = it_import_date statistics = it_statistics EXCEPTIONS NO_ENTRY_FOUND = 1 . " SOTR_TRALA_STRING_STATISTICS
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_source_langu  TYPE SY-LANGU ,
it_src_system  TYPE STANDARD TABLE OF SEL_SYSTEM ,
wa_src_system  LIKE LINE OF it_src_system,
ld_target_langu  TYPE SY-LANGU ,
it_change_date  TYPE STANDARD TABLE OF SEL_TSTUT ,
wa_change_date  LIKE LINE OF it_change_date,
ld_packages  TYPE SOTR_PACKS ,
it_import_date  TYPE STANDARD TABLE OF SEL_DATES ,
wa_import_date  LIKE LINE OF it_import_date,
ld_trala_types  TYPE SOTR_TRATY ,
it_statistics  TYPE STANDARD TABLE OF LWRKSTAT ,
wa_statistics  LIKE LINE OF it_statistics.

ld_source_langu = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_src_system to it_src_system.
ld_target_langu = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_change_date to it_change_date.
ld_packages = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_import_date to it_import_date.
ld_trala_types = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_statistics to it_statistics.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name SOTR_TRALA_STRING_STATISTICS or its description.