SAP LANGTEXT_ONLY Function Module for Maintenance of long texts
LANGTEXT_ONLY is a standard langtext only SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Maintenance of long texts 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 langtext only FM, simply by entering the name LANGTEXT_ONLY into the relevant SAP transaction such as SE37 or SE38.
Function Group: ITX1
Program Name: SAPLITX1
Main Program: SAPLITX1
Appliation area: I
Release date: 10-Jun-1999
Mode(Normal, Remote etc): Normal Function Module
Update:

Function LANGTEXT_ONLY 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 'LANGTEXT_ONLY'"Maintenance of long texts.
EXPORTING
OBJECT = "Affected object (type)
* CHECK_LTX_EXIST = "
* IV_SUPPRESS_END_' ' = 'X' "No ' ' at end in full line
* IP_OBJ_ARCH = ' ' "Object Archived
OBJECT_NR = "Object number
SPRAS = "Language of the text to be maintained
TXTID = "ID of the text to be maintained
X_XAKTYP = "Activity Category
* COUNT_INLINE = "
* SAVE_MODE = "
* TEXT_HISTORY = "
* TEXT_PROPERTY = "
IMPORTING
IND_INV = "Indicator showing whether a text change was carried out
INV_EXIST = "Indicator showing whether a long text (still) exists
IND_UPD_GENERAL = "
RESULT = "
TABLES
* T_INLINES = "
IMPORTING Parameters details for LANGTEXT_ONLY
OBJECT - Affected object (type)
Data type: TTXOB-TDOBJECTOptional: No
Call by Reference: No ( called with pass by value option)
CHECK_LTX_EXIST -
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
IV_SUPPRESS_END_SPACE - No SPACE at end in full line
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IP_OBJ_ARCH - Object Archived
Data type: IINDDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
OBJECT_NR - Object number
Data type: RM63T-OBJNROptional: No
Call by Reference: No ( called with pass by value option)
SPRAS - Language of the text to be maintained
Data type: EQKT-SPRASOptional: No
Call by Reference: No ( called with pass by value option)
TXTID - ID of the text to be maintained
Data type: TTXID-TDIDOptional: No
Call by Reference: No ( called with pass by value option)
X_XAKTYP - Activity Category
Data type: T370-AKTYPOptional: No
Call by Reference: No ( called with pass by value option)
COUNT_INLINE -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
SAVE_MODE -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
TEXT_HISTORY -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
TEXT_PROPERTY -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for LANGTEXT_ONLY
IND_INV - Indicator showing whether a text change was carried out
Data type: EQKT-KZLTXOptional: No
Call by Reference: No ( called with pass by value option)
INV_EXIST - Indicator showing whether a long text (still) exists
Data type: EQKT-KZLTXOptional: No
Call by Reference: No ( called with pass by value option)
IND_UPD_GENERAL -
Data type: RM63E-INDUOptional: No
Call by Reference: No ( called with pass by value option)
RESULT -
Data type: ITCEROptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for LANGTEXT_ONLY
T_INLINES -
Data type: TLINEOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for LANGTEXT_ONLY 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_object | TYPE TTXOB-TDOBJECT, " | |||
| lv_ind_inv | TYPE EQKT-KZLTX, " | |||
| lt_t_inlines | TYPE STANDARD TABLE OF TLINE, " | |||
| lv_check_ltx_exist | TYPE C, " | |||
| lv_iv_suppress_end_space | TYPE C, " 'X' | |||
| lv_ip_obj_arch | TYPE IIND, " ' ' | |||
| lv_inv_exist | TYPE EQKT-KZLTX, " | |||
| lv_object_nr | TYPE RM63T-OBJNR, " | |||
| lv_spras | TYPE EQKT-SPRAS, " | |||
| lv_ind_upd_general | TYPE RM63E-INDU, " | |||
| lv_txtid | TYPE TTXID-TDID, " | |||
| lv_result | TYPE ITCER, " | |||
| lv_x_xaktyp | TYPE T370-AKTYP, " | |||
| lv_count_inline | TYPE T370, " | |||
| lv_save_mode | TYPE T370, " | |||
| lv_text_history | TYPE T370, " | |||
| lv_text_property | TYPE T370. " |
|   CALL FUNCTION 'LANGTEXT_ONLY' "Maintenance of long texts |
| EXPORTING | ||
| OBJECT | = lv_object | |
| CHECK_LTX_EXIST | = lv_check_ltx_exist | |
| IV_SUPPRESS_END_SPACE | = lv_iv_suppress_end_space | |
| IP_OBJ_ARCH | = lv_ip_obj_arch | |
| OBJECT_NR | = lv_object_nr | |
| SPRAS | = lv_spras | |
| TXTID | = lv_txtid | |
| X_XAKTYP | = lv_x_xaktyp | |
| COUNT_INLINE | = lv_count_inline | |
| SAVE_MODE | = lv_save_mode | |
| TEXT_HISTORY | = lv_text_history | |
| TEXT_PROPERTY | = lv_text_property | |
| IMPORTING | ||
| IND_INV | = lv_ind_inv | |
| INV_EXIST | = lv_inv_exist | |
| IND_UPD_GENERAL | = lv_ind_upd_general | |
| RESULT | = lv_result | |
| TABLES | ||
| T_INLINES | = lt_t_inlines | |
| . " LANGTEXT_ONLY | ||
ABAP code using 7.40 inline data declarations to call FM LANGTEXT_ONLY
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 TDOBJECT FROM TTXOB INTO @DATA(ld_object). | ||||
| "SELECT single KZLTX FROM EQKT INTO @DATA(ld_ind_inv). | ||||
| DATA(ld_iv_suppress_end_space) | = 'X'. | |||
| DATA(ld_ip_obj_arch) | = ' '. | |||
| "SELECT single KZLTX FROM EQKT INTO @DATA(ld_inv_exist). | ||||
| "SELECT single OBJNR FROM RM63T INTO @DATA(ld_object_nr). | ||||
| "SELECT single SPRAS FROM EQKT INTO @DATA(ld_spras). | ||||
| "SELECT single INDU FROM RM63E INTO @DATA(ld_ind_upd_general). | ||||
| "SELECT single TDID FROM TTXID INTO @DATA(ld_txtid). | ||||
| "SELECT single AKTYP FROM T370 INTO @DATA(ld_x_xaktyp). | ||||
Search for further information about these or an SAP related objects