SAP TEXT_INTERFACE_2 Function Module for









TEXT_INTERFACE_2 is a standard text interface 2 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 text interface 2 FM, simply by entering the name TEXT_INTERFACE_2 into the relevant SAP transaction such as SE37 or SE38.

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



Function TEXT_INTERFACE_2 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 'TEXT_INTERFACE_2'"
EXPORTING
* ADRTYP = ' ' "
* RANTYP = '1' "
* STICHTAG = SY-DATUM "
* SUBANWDG = ' ' "
* BRFNM = ' ' "
* BRIEFDATUM = SY-DATUM "
* BUKRS = '0001' "
* DIALOG = ' ' "
* DRUPARM = "
* FPROTOKOLL = ' ' "
* PARTNR = ' ' "
* P_USER_EXIT = ' ' "

IMPORTING
ERGEBNIS = "

EXCEPTIONS
ADRESS = 1 CANCELED = 2 ELEMENT = 3 FORM = 4 OPTIONS = 5
.



IMPORTING Parameters details for TEXT_INTERFACE_2

ADRTYP -

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

RANTYP -

Data type: TTXBF-RANTYP
Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)

STICHTAG -

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

SUBANWDG -

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

BRFNM -

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

BRIEFDATUM -

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

BUKRS -

Data type: T001-BUKRS
Default: '0001'
Optional: Yes
Call by Reference: No ( called with pass by value option)

DIALOG -

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

DRUPARM -

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

FPROTOKOLL -

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

PARTNR -

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

P_USER_EXIT -

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

EXPORTING Parameters details for TEXT_INTERFACE_2

ERGEBNIS -

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

EXCEPTIONS details

ADRESS -

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

CANCELED -

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

ELEMENT -

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

FORM -

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

OPTIONS -

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

Copy and paste ABAP code example for TEXT_INTERFACE_2 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_adress  TYPE STRING, "   
lv_adrtyp  TYPE BP030-ADR_REF_K, "   SPACE
lv_ergebnis  TYPE ITCPP, "   
lv_rantyp  TYPE TTXBF-RANTYP, "   '1'
lv_stichtag  TYPE SY-DATUM, "   SY-DATUM
lv_subanwdg  TYPE TTXBF-SUBANWDG, "   ' '
lv_brfnm  TYPE TTXBF-BRFNM, "   ' '
lv_canceled  TYPE TTXBF, "   
lv_element  TYPE TTXBF, "   
lv_briefdatum  TYPE SY-DATUM, "   SY-DATUM
lv_form  TYPE SY, "   
lv_bukrs  TYPE T001-BUKRS, "   '0001'
lv_dialog  TYPE T001, "   SPACE
lv_options  TYPE T001, "   
lv_druparm  TYPE ITCPO, "   
lv_fprotokoll  TYPE ITCPO, "   ' '
lv_partnr  TYPE BP000-PARTNR, "   SPACE
lv_p_user_exit  TYPE BP000. "   ' '

  CALL FUNCTION 'TEXT_INTERFACE_2'  "
    EXPORTING
         ADRTYP = lv_adrtyp
         RANTYP = lv_rantyp
         STICHTAG = lv_stichtag
         SUBANWDG = lv_subanwdg
         BRFNM = lv_brfnm
         BRIEFDATUM = lv_briefdatum
         BUKRS = lv_bukrs
         DIALOG = lv_dialog
         DRUPARM = lv_druparm
         FPROTOKOLL = lv_fprotokoll
         PARTNR = lv_partnr
         P_USER_EXIT = lv_p_user_exit
    IMPORTING
         ERGEBNIS = lv_ergebnis
    EXCEPTIONS
        ADRESS = 1
        CANCELED = 2
        ELEMENT = 3
        FORM = 4
        OPTIONS = 5
. " TEXT_INTERFACE_2




ABAP code using 7.40 inline data declarations to call FM TEXT_INTERFACE_2

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 ADR_REF_K FROM BP030 INTO @DATA(ld_adrtyp).
DATA(ld_adrtyp) = ' '.
 
 
"SELECT single RANTYP FROM TTXBF INTO @DATA(ld_rantyp).
DATA(ld_rantyp) = '1'.
 
"SELECT single DATUM FROM SY INTO @DATA(ld_stichtag).
DATA(ld_stichtag) = SY-DATUM.
 
"SELECT single SUBANWDG FROM TTXBF INTO @DATA(ld_subanwdg).
DATA(ld_subanwdg) = ' '.
 
"SELECT single BRFNM FROM TTXBF INTO @DATA(ld_brfnm).
DATA(ld_brfnm) = ' '.
 
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_briefdatum).
DATA(ld_briefdatum) = SY-DATUM.
 
 
"SELECT single BUKRS FROM T001 INTO @DATA(ld_bukrs).
DATA(ld_bukrs) = '0001'.
 
DATA(ld_dialog) = ' '.
 
 
 
DATA(ld_fprotokoll) = ' '.
 
"SELECT single PARTNR FROM BP000 INTO @DATA(ld_partnr).
DATA(ld_partnr) = ' '.
 
DATA(ld_p_user_exit) = ' '.
 


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!