SAP QSS_TEXT_TABLES_PROCESSING Function Module for Transfer an Internal Table to the Long Text









QSS_TEXT_TABLES_PROCESSING is a standard qss text tables processing SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Transfer an Internal Table to the Long Text 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 qss text tables processing FM, simply by entering the name QSS_TEXT_TABLES_PROCESSING into the relevant SAP transaction such as SE37 or SE38.

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



Function QSS_TEXT_TABLES_PROCESSING 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 'QSS_TEXT_TABLES_PROCESSING'"Transfer an Internal Table to the Long Text
EXPORTING
* I_OBJECT = 'QSS' "Object
* I_SCHLUESSEL = 'TEST' "Key of the object
* I_SPRSL = 'D' "Language indicator of the text
* I_TEXTID = 'QM' "Text ID of the text
* I_KURZTEXT = "
* I_INLINE_ZAEHL = '0' "

TABLES
T_LINES = "internal table with the long text to be saved

EXCEPTIONS
NAMENEW = 1 NO_NAME = 2 NO_OBJECT = 3 NO_SPRACHE = 4 NO_TEXT = 5 NO_TEXTID = 6 UNKNOWN = 7
.



IMPORTING Parameters details for QSS_TEXT_TABLES_PROCESSING

I_OBJECT - Object

Data type: THEAD-TDOBJECT
Default: 'QSS'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SCHLUESSEL - Key of the object

Data type: THEAD-TDNAME
Default: 'TEST'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SPRSL - Language indicator of the text

Data type: SY-LANGU
Default: 'D'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TEXTID - Text ID of the text

Data type: TTXID-TDID
Default: 'QM'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_KURZTEXT -

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

I_INLINE_ZAEHL -

Data type:
Default: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for QSS_TEXT_TABLES_PROCESSING

T_LINES - internal table with the long text to be saved

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

EXCEPTIONS details

NAMENEW - New text exists

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

NO_NAME - Key is not allowed

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

NO_OBJECT - Object is not provided

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

NO_SPRACHE - Language is not supported

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

NO_TEXT - Text does not exist

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

NO_TEXTID - Text ID is not supported

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

UNKNOWN - Printing error

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

Copy and paste ABAP code example for QSS_TEXT_TABLES_PROCESSING 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_namenew  TYPE STRING, "   
lt_t_lines  TYPE STANDARD TABLE OF TLINE, "   
lv_i_object  TYPE THEAD-TDOBJECT, "   'QSS'
lv_no_name  TYPE THEAD, "   
lv_i_schluessel  TYPE THEAD-TDNAME, "   'TEST'
lv_i_sprsl  TYPE SY-LANGU, "   'D'
lv_no_object  TYPE SY, "   
lv_i_textid  TYPE TTXID-TDID, "   'QM'
lv_no_sprache  TYPE TTXID, "   
lv_no_text  TYPE TTXID, "   
lv_i_kurztext  TYPE TLINE-TDLINE, "   
lv_no_textid  TYPE TLINE, "   
lv_i_inline_zaehl  TYPE TLINE, "   '0'
lv_unknown  TYPE TLINE. "   

  CALL FUNCTION 'QSS_TEXT_TABLES_PROCESSING'  "Transfer an Internal Table to the Long Text
    EXPORTING
         I_OBJECT = lv_i_object
         I_SCHLUESSEL = lv_i_schluessel
         I_SPRSL = lv_i_sprsl
         I_TEXTID = lv_i_textid
         I_KURZTEXT = lv_i_kurztext
         I_INLINE_ZAEHL = lv_i_inline_zaehl
    TABLES
         T_LINES = lt_t_lines
    EXCEPTIONS
        NAMENEW = 1
        NO_NAME = 2
        NO_OBJECT = 3
        NO_SPRACHE = 4
        NO_TEXT = 5
        NO_TEXTID = 6
        UNKNOWN = 7
. " QSS_TEXT_TABLES_PROCESSING




ABAP code using 7.40 inline data declarations to call FM QSS_TEXT_TABLES_PROCESSING

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 THEAD INTO @DATA(ld_i_object).
DATA(ld_i_object) = 'QSS'.
 
 
"SELECT single TDNAME FROM THEAD INTO @DATA(ld_i_schluessel).
DATA(ld_i_schluessel) = 'TEST'.
 
"SELECT single LANGU FROM SY INTO @DATA(ld_i_sprsl).
DATA(ld_i_sprsl) = 'D'.
 
 
"SELECT single TDID FROM TTXID INTO @DATA(ld_i_textid).
DATA(ld_i_textid) = 'QM'.
 
 
 
"SELECT single TDLINE FROM TLINE INTO @DATA(ld_i_kurztext).
 
 
DATA(ld_i_inline_zaehl) = '0'.
 
 


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!