SAP Function Modules

LXE_TS_API_WRITE_OBJECT_TTX3 SAP Function module - Write TTXs of an object







LXE_TS_API_WRITE_OBJECT_TTX3 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 LXE_TS_API_WRITE_OBJECT_TTX3 into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: LXE_TS_API_AREA_GEN3
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM LXE_TS_API_WRITE_OBJECT_TTX3 - LXE TS API WRITE OBJECT TTX3





CALL FUNCTION 'LXE_TS_API_WRITE_OBJECT_TTX3' "Write TTXs of an object
  EXPORTING
    transarea =                 " lxecustmnr    Translation Area
    objname3 =                  " lxestring     Name of Translation Object
    s_lang =                    " lxeisolang    ISO Language ID
    t_lang =                    " lxeisolang    ISO Language ID
    ynat_ttx =                  " lxe_tt_ynat_ttx  TTXs for YNAT texts
    ztext_ttx =                 " lxe_tt_ztext_ttx  TTXs for textual Z-texts
    zbin_ttx =                  " lxe_tt_zbin_ttx  TTXs for binary Z-texts
  IMPORTING
    textkeys_ttx_written =      " lxe_tt_textkey_ext  Table holding textkeys
  EXCEPTIONS
    UNAUTHORIZED = 1            "               Unauthorized
    LOCKED = 2                  "               Operation is currently locked
    UNKNOWN_TRANS_AREA = 3      "               Unknown translation area
    UNSUPPORTED_TRANS_AREA_TYPE = 4  "          Unsupported translation area type
    UNKNOWN_LANGUAGE = 5        "               Unknown language
    OBJECT_NOT_FOUND = 6        "               Object not found
    HASH_ERROR = 7              "               Hash error
    UNKNOWN_ERROR = 8           "               Unknown error
    .  "  LXE_TS_API_WRITE_OBJECT_TTX3

ABAP code example for Function Module LXE_TS_API_WRITE_OBJECT_TTX3





The ABAP code below is a full code listing to execute function module LXE_TS_API_WRITE_OBJECT_TTX3 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:
ld_textkeys_ttx_written  TYPE LXE_TT_TEXTKEY_EXT .

DATA(ld_transarea) = 'Check type of data required'.
DATA(ld_objname3) = 'Check type of data required'.
DATA(ld_s_lang) = 'Check type of data required'.
DATA(ld_t_lang) = 'Check type of data required'.
DATA(ld_ynat_ttx) = 'Check type of data required'.
DATA(ld_ztext_ttx) = 'Check type of data required'.
DATA(ld_zbin_ttx) = 'Check type of data required'. . CALL FUNCTION 'LXE_TS_API_WRITE_OBJECT_TTX3' EXPORTING transarea = ld_transarea objname3 = ld_objname3 s_lang = ld_s_lang t_lang = ld_t_lang ynat_ttx = ld_ynat_ttx ztext_ttx = ld_ztext_ttx zbin_ttx = ld_zbin_ttx IMPORTING textkeys_ttx_written = ld_textkeys_ttx_written EXCEPTIONS UNAUTHORIZED = 1 LOCKED = 2 UNKNOWN_TRANS_AREA = 3 UNSUPPORTED_TRANS_AREA_TYPE = 4 UNKNOWN_LANGUAGE = 5 OBJECT_NOT_FOUND = 6 HASH_ERROR = 7 UNKNOWN_ERROR = 8 . " LXE_TS_API_WRITE_OBJECT_TTX3
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 8. "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_textkeys_ttx_written  TYPE LXE_TT_TEXTKEY_EXT ,
ld_transarea  TYPE LXECUSTMNR ,
ld_objname3  TYPE LXESTRING ,
ld_s_lang  TYPE LXEISOLANG ,
ld_t_lang  TYPE LXEISOLANG ,
ld_ynat_ttx  TYPE LXE_TT_YNAT_TTX ,
ld_ztext_ttx  TYPE LXE_TT_ZTEXT_TTX ,
ld_zbin_ttx  TYPE LXE_TT_ZBIN_TTX .

ld_transarea = 'Check type of data required'.
ld_objname3 = 'Check type of data required'.
ld_s_lang = 'Check type of data required'.
ld_t_lang = 'Check type of data required'.
ld_ynat_ttx = 'Check type of data required'.
ld_ztext_ttx = 'Check type of data required'.
ld_zbin_ttx = 'Check type of data required'.

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 LXE_TS_API_WRITE_OBJECT_TTX3 or its description.