SAP Function Modules

LOAN_ITEMS_SELECTION SAP Function module - Select Planning Records in the DARWIN Subledger







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

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


Pattern for FM LOAN_ITEMS_SELECTION - LOAN ITEMS SELECTION





CALL FUNCTION 'LOAN_ITEMS_SELECTION' "Select Planning Records in the DARWIN Subledger
  EXPORTING
    i_febep =                   " febep
    i_febko =                   " febko
    i_kunnr =                   " kna1-kunnr
  TABLES
    t_ranl =                    " vdarl
    t_ranlg =                   " vdarl
    t_vdbepp =                  " vdbepp
    .  "  LOAN_ITEMS_SELECTION

ABAP code example for Function Module LOAN_ITEMS_SELECTION





The ABAP code below is a full code listing to execute function module LOAN_ITEMS_SELECTION 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_ranl  TYPE STANDARD TABLE OF VDARL,"TABLES PARAM
wa_t_ranl  LIKE LINE OF it_t_ranl ,
it_t_ranlg  TYPE STANDARD TABLE OF VDARL,"TABLES PARAM
wa_t_ranlg  LIKE LINE OF it_t_ranlg ,
it_t_vdbepp  TYPE STANDARD TABLE OF VDBEPP,"TABLES PARAM
wa_t_vdbepp  LIKE LINE OF it_t_vdbepp .

DATA(ld_i_febep) = 'Check type of data required'.
DATA(ld_i_febko) = 'Check type of data required'.

SELECT single KUNNR
FROM KNA1
INTO @DATA(ld_i_kunnr).


"populate fields of struture and append to itab
append wa_t_ranl to it_t_ranl.

"populate fields of struture and append to itab
append wa_t_ranlg to it_t_ranlg.

"populate fields of struture and append to itab
append wa_t_vdbepp to it_t_vdbepp. . CALL FUNCTION 'LOAN_ITEMS_SELECTION' EXPORTING i_febep = ld_i_febep i_febko = ld_i_febko i_kunnr = ld_i_kunnr TABLES t_ranl = it_t_ranl t_ranlg = it_t_ranlg t_vdbepp = it_t_vdbepp . " LOAN_ITEMS_SELECTION
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_febep  TYPE FEBEP ,
it_t_ranl  TYPE STANDARD TABLE OF VDARL ,
wa_t_ranl  LIKE LINE OF it_t_ranl,
ld_i_febko  TYPE FEBKO ,
it_t_ranlg  TYPE STANDARD TABLE OF VDARL ,
wa_t_ranlg  LIKE LINE OF it_t_ranlg,
ld_i_kunnr  TYPE KNA1-KUNNR ,
it_t_vdbepp  TYPE STANDARD TABLE OF VDBEPP ,
wa_t_vdbepp  LIKE LINE OF it_t_vdbepp.

ld_i_febep = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_ranl to it_t_ranl.
ld_i_febko = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_ranlg to it_t_ranlg.

SELECT single KUNNR
FROM KNA1
INTO ld_i_kunnr.


"populate fields of struture and append to itab
append wa_t_vdbepp to it_t_vdbepp.

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