SAP Function Modules

TEXT_ANLA_CALL SAP Function module







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

Associated Function Group: RAAB
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM TEXT_ANLA_CALL - TEXT ANLA CALL





CALL FUNCTION 'TEXT_ANLA_CALL' "
  EXPORTING
    f_fldnm =                   " anla-xltxid   Field name of the long text flag
    f_flg =                     " anla-xltxid   Flag F. table ANLA/ANLV changed
    f_flg_ltx =                 " anla-xltxid   Flag long text changed/created
    f_thead =                   " thead         Header of the long text
    i_aktyp =                   " t020-aktyp    Action type display,change,create
    i_ltxbz =                   "               Description of the LANGTEXT type f
*   i_schab = SPACE             " ankaz-am_tdnam01
  IMPORTING
    f_fldnm =                   " anla-xltxid   Field name of the long text flag
    f_flg =                     " anla-xltxid   Flag F. table ANLA/ANLV changed
    f_flg_ltx =                 " anla-xltxid   Flag long text changed/created
    f_thead =                   " thead         Header of the long text
  TABLES
    t_linetab =                 "               Table with the long text
    .  "  TEXT_ANLA_CALL

ABAP code example for Function Module TEXT_ANLA_CALL





The ABAP code below is a full code listing to execute function module TEXT_ANLA_CALL 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_f_fldnm  TYPE ANLA-XLTXID ,
ld_f_flg  TYPE ANLA-XLTXID ,
ld_f_flg_ltx  TYPE ANLA-XLTXID ,
ld_f_thead  TYPE THEAD ,
it_t_linetab  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_t_linetab  LIKE LINE OF it_t_linetab .


SELECT single XLTXID
FROM ANLA
INTO @DATA(ld_f_fldnm).


SELECT single XLTXID
FROM ANLA
INTO @DATA(ld_f_flg).


SELECT single XLTXID
FROM ANLA
INTO @DATA(ld_f_flg_ltx).

DATA(ld_f_thead) = 'Check type of data required'.

SELECT single AKTYP
FROM T020
INTO @DATA(ld_i_aktyp).

DATA(ld_i_ltxbz) = 'some text here'.

SELECT single AM_TDNAM01
FROM ANKAZ
INTO @DATA(ld_i_schab).


"populate fields of struture and append to itab
append wa_t_linetab to it_t_linetab. . CALL FUNCTION 'TEXT_ANLA_CALL' EXPORTING f_fldnm = ld_f_fldnm f_flg = ld_f_flg f_flg_ltx = ld_f_flg_ltx f_thead = ld_f_thead i_aktyp = ld_i_aktyp i_ltxbz = ld_i_ltxbz * i_schab = ld_i_schab IMPORTING f_fldnm = ld_f_fldnm f_flg = ld_f_flg f_flg_ltx = ld_f_flg_ltx f_thead = ld_f_thead TABLES t_linetab = it_t_linetab . " TEXT_ANLA_CALL
IF SY-SUBRC EQ 0. "All OK 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_f_fldnm  TYPE ANLA-XLTXID ,
ld_f_fldnm  TYPE ANLA-XLTXID ,
it_t_linetab  TYPE STANDARD TABLE OF STRING ,
wa_t_linetab  LIKE LINE OF it_t_linetab,
ld_f_flg  TYPE ANLA-XLTXID ,
ld_f_flg  TYPE ANLA-XLTXID ,
ld_f_flg_ltx  TYPE ANLA-XLTXID ,
ld_f_flg_ltx  TYPE ANLA-XLTXID ,
ld_f_thead  TYPE THEAD ,
ld_f_thead  TYPE THEAD ,
ld_i_aktyp  TYPE T020-AKTYP ,
ld_i_ltxbz  TYPE STRING ,
ld_i_schab  TYPE ANKAZ-AM_TDNAM01 .


SELECT single XLTXID
FROM ANLA
INTO ld_f_fldnm.


"populate fields of struture and append to itab
append wa_t_linetab to it_t_linetab.

SELECT single XLTXID
FROM ANLA
INTO ld_f_flg.


SELECT single XLTXID
FROM ANLA
INTO ld_f_flg_ltx.

ld_f_thead = 'Check type of data required'.

SELECT single AKTYP
FROM T020
INTO ld_i_aktyp.

ld_i_ltxbz = 'some text here'.

SELECT single AM_TDNAM01
FROM ANKAZ
INTO ld_i_schab.

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