SAP Function Modules

ISH_NL_FILL_NLEITAB SAP Function module







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

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


Pattern for FM ISH_NL_FILL_NLEITAB - ISH NL FILL NLEITAB





CALL FUNCTION 'ISH_NL_FILL_NLEITAB' "
  EXPORTING
    entlassen =                 " nlei-abrkz
  IMPORTING
    fkomk =                     " rnfk1
    i_fall_end =                " sy-binpt
    i_fall_zwi =                " sy-binpt
    i_rnab0 =                   " rnab0
    rc =                        " sy-subrc
  TABLES
    i_del_lei =                 " nlei
    i_ranfoe =                  "
    i_rerboe =                  "
    i_rleist =                  "
    leitab =                    " nlei
    .  "  ISH_NL_FILL_NLEITAB

ABAP code example for Function Module ISH_NL_FILL_NLEITAB





The ABAP code below is a full code listing to execute function module ISH_NL_FILL_NLEITAB 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_fkomk  TYPE RNFK1 ,
ld_i_fall_end  TYPE SY-BINPT ,
ld_i_fall_zwi  TYPE SY-BINPT ,
ld_i_rnab0  TYPE RNAB0 ,
ld_rc  TYPE SY-SUBRC ,
it_i_del_lei  TYPE STANDARD TABLE OF NLEI,"TABLES PARAM
wa_i_del_lei  LIKE LINE OF it_i_del_lei ,
it_i_ranfoe  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_i_ranfoe  LIKE LINE OF it_i_ranfoe ,
it_i_rerboe  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_i_rerboe  LIKE LINE OF it_i_rerboe ,
it_i_rleist  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_i_rleist  LIKE LINE OF it_i_rleist ,
it_leitab  TYPE STANDARD TABLE OF NLEI,"TABLES PARAM
wa_leitab  LIKE LINE OF it_leitab .


SELECT single ABRKZ
FROM NLEI
INTO @DATA(ld_entlassen).


"populate fields of struture and append to itab
append wa_i_del_lei to it_i_del_lei.

"populate fields of struture and append to itab
append wa_i_ranfoe to it_i_ranfoe.

"populate fields of struture and append to itab
append wa_i_rerboe to it_i_rerboe.

"populate fields of struture and append to itab
append wa_i_rleist to it_i_rleist.

"populate fields of struture and append to itab
append wa_leitab to it_leitab. . CALL FUNCTION 'ISH_NL_FILL_NLEITAB' EXPORTING entlassen = ld_entlassen IMPORTING fkomk = ld_fkomk i_fall_end = ld_i_fall_end i_fall_zwi = ld_i_fall_zwi i_rnab0 = ld_i_rnab0 rc = ld_rc TABLES i_del_lei = it_i_del_lei i_ranfoe = it_i_ranfoe i_rerboe = it_i_rerboe i_rleist = it_i_rleist leitab = it_leitab . " ISH_NL_FILL_NLEITAB
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_fkomk  TYPE RNFK1 ,
ld_entlassen  TYPE NLEI-ABRKZ ,
it_i_del_lei  TYPE STANDARD TABLE OF NLEI ,
wa_i_del_lei  LIKE LINE OF it_i_del_lei,
ld_i_fall_end  TYPE SY-BINPT ,
it_i_ranfoe  TYPE STANDARD TABLE OF STRING ,
wa_i_ranfoe  LIKE LINE OF it_i_ranfoe,
ld_i_fall_zwi  TYPE SY-BINPT ,
it_i_rerboe  TYPE STANDARD TABLE OF STRING ,
wa_i_rerboe  LIKE LINE OF it_i_rerboe,
ld_i_rnab0  TYPE RNAB0 ,
it_i_rleist  TYPE STANDARD TABLE OF STRING ,
wa_i_rleist  LIKE LINE OF it_i_rleist,
ld_rc  TYPE SY-SUBRC ,
it_leitab  TYPE STANDARD TABLE OF NLEI ,
wa_leitab  LIKE LINE OF it_leitab.


SELECT single ABRKZ
FROM NLEI
INTO ld_entlassen.


"populate fields of struture and append to itab
append wa_i_del_lei to it_i_del_lei.

"populate fields of struture and append to itab
append wa_i_ranfoe to it_i_ranfoe.

"populate fields of struture and append to itab
append wa_i_rerboe to it_i_rerboe.

"populate fields of struture and append to itab
append wa_i_rleist to it_i_rleist.

"populate fields of struture and append to itab
append wa_leitab to it_leitab.

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