SAP Function Modules

EXIT_SAPLAIST_002 SAP Function module - Transfer Data for User Subscreens







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

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


Pattern for FM EXIT_SAPLAIST_002 - EXIT SAPLAIST 002





CALL FUNCTION 'EXIT_SAPLAIST_002' "Transfer Data for User Subscreens
  EXPORTING
    i_anla =                    " anla          General Master Data
    i_anlv =                    " anlv          Insurance Data
    i_anlu =                    " anlu          User-Defined Fields
    i_mode =                    "               Create, Change, Display
    i_xsubno =                  "               Subnumber Processing?
*   i_transv = SPACE            " t082i-transv  Transfer variant for intercompany asset transfers
  TABLES
    t_anlz =                    " anlz          Time-Dependent Data
    t_anlb =                    " anlb          Depreciation Area Data
    .  "  EXIT_SAPLAIST_002

ABAP code example for Function Module EXIT_SAPLAIST_002





The ABAP code below is a full code listing to execute function module EXIT_SAPLAIST_002 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:
it_t_anlz  TYPE STANDARD TABLE OF ANLZ,"TABLES PARAM
wa_t_anlz  LIKE LINE OF it_t_anlz ,
it_t_anlb  TYPE STANDARD TABLE OF ANLB,"TABLES PARAM
wa_t_anlb  LIKE LINE OF it_t_anlb .

DATA(ld_i_anla) = 'Check type of data required'.
DATA(ld_i_anlv) = 'Check type of data required'.
DATA(ld_i_anlu) = 'Check type of data required'.
DATA(ld_i_mode) = 'some text here'.
DATA(ld_i_xsubno) = 'some text here'.

SELECT single TRANSV
FROM T082I
INTO @DATA(ld_i_transv).


"populate fields of struture and append to itab
append wa_t_anlz to it_t_anlz.

"populate fields of struture and append to itab
append wa_t_anlb to it_t_anlb. . CALL FUNCTION 'EXIT_SAPLAIST_002' EXPORTING i_anla = ld_i_anla i_anlv = ld_i_anlv i_anlu = ld_i_anlu i_mode = ld_i_mode i_xsubno = ld_i_xsubno * i_transv = ld_i_transv TABLES t_anlz = it_t_anlz t_anlb = it_t_anlb . " EXIT_SAPLAIST_002
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_i_anla  TYPE ANLA ,
it_t_anlz  TYPE STANDARD TABLE OF ANLZ ,
wa_t_anlz  LIKE LINE OF it_t_anlz,
ld_i_anlv  TYPE ANLV ,
it_t_anlb  TYPE STANDARD TABLE OF ANLB ,
wa_t_anlb  LIKE LINE OF it_t_anlb,
ld_i_anlu  TYPE ANLU ,
ld_i_mode  TYPE STRING ,
ld_i_xsubno  TYPE STRING ,
ld_i_transv  TYPE T082I-TRANSV .

ld_i_anla = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_anlz to it_t_anlz.
ld_i_anlv = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_anlb to it_t_anlb.
ld_i_anlu = 'Check type of data required'.
ld_i_mode = 'some text here'.
ld_i_xsubno = 'some text here'.

SELECT single TRANSV
FROM T082I
INTO ld_i_transv.

SAP Documentation for FM EXIT_SAPLAIST_002


This function module is called by asset master data maintenance at the start of the dialog. (When changing, it is called after reading of the ...See here for full SAP fm documentation

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