SAP REPORT_TEXT_LOAD Function Module for Load Text Module from Transport Format









REPORT_TEXT_LOAD is a standard report text load SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Load Text Module from Transport Format 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 report text load FM, simply by entering the name REPORT_TEXT_LOAD into the relevant SAP transaction such as SE37 or SE38.

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



Function REPORT_TEXT_LOAD 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 'REPORT_TEXT_LOAD'"Load Text Module from Transport Format
EXPORTING
IMP_RTXTH = "
* EXPORT_RELEASE = SY-SAPRL "
* DELETE_ALL_TEXT_LINES = ' ' "
* LANGU = '*' "Language vector or '*'

TABLES
IMP_RTXTF = "
IMP_RTXTT = "
IMP_RTXTL = "

EXCEPTIONS
NOT_IMPORTED = 1 IMPORT_INCOMPLETE = 2 INTERNAL_ERROR = 3
.



IMPORTING Parameters details for REPORT_TEXT_LOAD

IMP_RTXTH -

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

EXPORT_RELEASE -

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

DELETE_ALL_TEXT_LINES -

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

LANGU - Language vector or '*'

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

TABLES Parameters details for REPORT_TEXT_LOAD

IMP_RTXTF -

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

IMP_RTXTT -

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

IMP_RTXTL -

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

EXCEPTIONS details

NOT_IMPORTED - Error when saving the text module

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

IMPORT_INCOMPLETE -

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

INTERNAL_ERROR -

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

Copy and paste ABAP code example for REPORT_TEXT_LOAD 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:
lt_imp_rtxtf  TYPE STANDARD TABLE OF STRING, "   
lv_imp_rtxth  TYPE STRING, "   
lv_not_imported  TYPE STRING, "   
lt_imp_rtxtt  TYPE STANDARD TABLE OF STRING, "   
lv_export_release  TYPE SY-SAPRL, "   SY-SAPRL
lv_import_incomplete  TYPE SY, "   
lt_imp_rtxtl  TYPE STANDARD TABLE OF SY, "   
lv_internal_error  TYPE SY, "   
lv_delete_all_text_lines  TYPE FLAG, "   SPACE
lv_langu  TYPE FLAG. "   '*'

  CALL FUNCTION 'REPORT_TEXT_LOAD'  "Load Text Module from Transport Format
    EXPORTING
         IMP_RTXTH = lv_imp_rtxth
         EXPORT_RELEASE = lv_export_release
         DELETE_ALL_TEXT_LINES = lv_delete_all_text_lines
         LANGU = lv_langu
    TABLES
         IMP_RTXTF = lt_imp_rtxtf
         IMP_RTXTT = lt_imp_rtxtt
         IMP_RTXTL = lt_imp_rtxtl
    EXCEPTIONS
        NOT_IMPORTED = 1
        IMPORT_INCOMPLETE = 2
        INTERNAL_ERROR = 3
. " REPORT_TEXT_LOAD




ABAP code using 7.40 inline data declarations to call FM REPORT_TEXT_LOAD

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 SAPRL FROM SY INTO @DATA(ld_export_release).
DATA(ld_export_release) = SY-SAPRL.
 
 
 
 
DATA(ld_delete_all_text_lines) = ' '.
 
DATA(ld_langu) = '*'.
 


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!