SAP Function Modules

CLOSE_ILOA SAP Function module







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

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


Pattern for FM CLOSE_ILOA - CLOSE ILOA





CALL FUNCTION 'CLOSE_ILOA' "
  EXPORTING
*   i_aktyp = 'A'               " t365-aktyp    Activity type A,H,V
*   i_bezdt = SYST-DATLO        " riwo1-bezdt
*   i_bezur = SYST-TIMLO        " riwo1-brzur
    i_objnr =                   " riwo1-objnr
*   i_measurement = ' '         " rc27x-flg_sel
*   i_list = ' '                " rc27x-flg_sel
*   i_aufnr =                   " afih-aufnr
*   i_clnot =                   " riwo1-clnot
*   i_no_popup = ' '            " rc27x-flg_sel  Selection Indicator
  IMPORTING
    e_aeknz =                   " riwo1-aeknz   =A Abber./ = "J" finished
    e_bezdt =                   " riwo1-bezdt   Reference date
    e_bezur =                   " riwo1-brzur   Reference time of day
    e_clnot =                   " riwo1-clnot
    .  "  CLOSE_ILOA

ABAP code example for Function Module CLOSE_ILOA





The ABAP code below is a full code listing to execute function module CLOSE_ILOA 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_e_aeknz  TYPE RIWO1-AEKNZ ,
ld_e_bezdt  TYPE RIWO1-BEZDT ,
ld_e_bezur  TYPE RIWO1-BRZUR ,
ld_e_clnot  TYPE RIWO1-CLNOT .


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


DATA(ld_i_bezdt) = 20210129

DATA(ld_i_bezur) = Check type of data required

DATA(ld_i_objnr) = some text here

DATA(ld_i_measurement) = some text here

DATA(ld_i_list) = some text here

SELECT single AUFNR
FROM AFIH
INTO @DATA(ld_i_aufnr).


DATA(ld_i_clnot) = some text here

DATA(ld_i_no_popup) = some text here . CALL FUNCTION 'CLOSE_ILOA' EXPORTING * i_aktyp = ld_i_aktyp * i_bezdt = ld_i_bezdt * i_bezur = ld_i_bezur i_objnr = ld_i_objnr * i_measurement = ld_i_measurement * i_list = ld_i_list * i_aufnr = ld_i_aufnr * i_clnot = ld_i_clnot * i_no_popup = ld_i_no_popup IMPORTING e_aeknz = ld_e_aeknz e_bezdt = ld_e_bezdt e_bezur = ld_e_bezur e_clnot = ld_e_clnot . " CLOSE_ILOA
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_e_aeknz  TYPE RIWO1-AEKNZ ,
ld_i_aktyp  TYPE T365-AKTYP ,
ld_e_bezdt  TYPE RIWO1-BEZDT ,
ld_i_bezdt  TYPE RIWO1-BEZDT ,
ld_e_bezur  TYPE RIWO1-BRZUR ,
ld_i_bezur  TYPE RIWO1-BRZUR ,
ld_e_clnot  TYPE RIWO1-CLNOT ,
ld_i_objnr  TYPE RIWO1-OBJNR ,
ld_i_measurement  TYPE RC27X-FLG_SEL ,
ld_i_list  TYPE RC27X-FLG_SEL ,
ld_i_aufnr  TYPE AFIH-AUFNR ,
ld_i_clnot  TYPE RIWO1-CLNOT ,
ld_i_no_popup  TYPE RC27X-FLG_SEL .


SELECT single AKTYP
FROM T365
INTO ld_i_aktyp.


ld_i_bezdt = 20210129

ld_i_bezur = Check type of data required

ld_i_objnr = some text here

ld_i_measurement = some text here

ld_i_list = some text here

SELECT single AUFNR
FROM AFIH
INTO ld_i_aufnr.


ld_i_clnot = some text here

ld_i_no_popup = some text here

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