SAP Function Modules

FAGL_RWIN_SPLIT SAP Function module







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

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


Pattern for FM FAGL_RWIN_SPLIT - FAGL RWIN SPLIT





CALL FUNCTION 'FAGL_RWIN_SPLIT' "
* EXPORTING
*   i_subsequent = SPACE        " flag
*   ib_euro = ABAP_FALSE        " abap_bool
  TABLES
    t_acchd =                   " acchd         Accounting Interface: Header Information
    t_accit =                   " accit         Accounting Interface: Item Information
    t_acccr =                   " acccr         Accounting Interface: Currency Information
*   t_ausz_clr =                " ausz_clr      Assign Clearing Item to Cleared Items
*   t_ausz_clr_asgmt =          " ausz_clr_asgmt  Assgt of Clrg Items - Cleared Items with Acct Assignment
*   t_accit_ext =               " accit_extension  ACC Document: Additional Item Information
*   t_accit_spl =               " accit         Accounting Interface: Item Information
*   t_accit_ext_spl =           " accit_extension  ACC Document: Additional Item Information
*   t_acccr_spl =               " acccr         Accounting Interface: Currency Information
*   t_splinfo =                 " fagl_s_ale_splinfo  Splittling Information of Open Items
*   t_splinfo_val =             " fagl_splinfo_val  Splitting Information of Open Item Values
*   t_accit_ref =               " accit_reference
    .  "  FAGL_RWIN_SPLIT

ABAP code example for Function Module FAGL_RWIN_SPLIT





The ABAP code below is a full code listing to execute function module FAGL_RWIN_SPLIT 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_acchd  TYPE STANDARD TABLE OF ACCHD,"TABLES PARAM
wa_t_acchd  LIKE LINE OF it_t_acchd ,
it_t_accit  TYPE STANDARD TABLE OF ACCIT,"TABLES PARAM
wa_t_accit  LIKE LINE OF it_t_accit ,
it_t_acccr  TYPE STANDARD TABLE OF ACCCR,"TABLES PARAM
wa_t_acccr  LIKE LINE OF it_t_acccr ,
it_t_ausz_clr  TYPE STANDARD TABLE OF AUSZ_CLR,"TABLES PARAM
wa_t_ausz_clr  LIKE LINE OF it_t_ausz_clr ,
it_t_ausz_clr_asgmt  TYPE STANDARD TABLE OF AUSZ_CLR_ASGMT,"TABLES PARAM
wa_t_ausz_clr_asgmt  LIKE LINE OF it_t_ausz_clr_asgmt ,
it_t_accit_ext  TYPE STANDARD TABLE OF ACCIT_EXTENSION,"TABLES PARAM
wa_t_accit_ext  LIKE LINE OF it_t_accit_ext ,
it_t_accit_spl  TYPE STANDARD TABLE OF ACCIT,"TABLES PARAM
wa_t_accit_spl  LIKE LINE OF it_t_accit_spl ,
it_t_accit_ext_spl  TYPE STANDARD TABLE OF ACCIT_EXTENSION,"TABLES PARAM
wa_t_accit_ext_spl  LIKE LINE OF it_t_accit_ext_spl ,
it_t_acccr_spl  TYPE STANDARD TABLE OF ACCCR,"TABLES PARAM
wa_t_acccr_spl  LIKE LINE OF it_t_acccr_spl ,
it_t_splinfo  TYPE STANDARD TABLE OF FAGL_S_ALE_SPLINFO,"TABLES PARAM
wa_t_splinfo  LIKE LINE OF it_t_splinfo ,
it_t_splinfo_val  TYPE STANDARD TABLE OF FAGL_SPLINFO_VAL,"TABLES PARAM
wa_t_splinfo_val  LIKE LINE OF it_t_splinfo_val ,
it_t_accit_ref  TYPE STANDARD TABLE OF ACCIT_REFERENCE,"TABLES PARAM
wa_t_accit_ref  LIKE LINE OF it_t_accit_ref .

DATA(ld_i_subsequent) = 'Check type of data required'.
DATA(ld_ib_euro) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_acchd to it_t_acchd.

"populate fields of struture and append to itab
append wa_t_accit to it_t_accit.

"populate fields of struture and append to itab
append wa_t_acccr to it_t_acccr.

"populate fields of struture and append to itab
append wa_t_ausz_clr to it_t_ausz_clr.

"populate fields of struture and append to itab
append wa_t_ausz_clr_asgmt to it_t_ausz_clr_asgmt.

"populate fields of struture and append to itab
append wa_t_accit_ext to it_t_accit_ext.

"populate fields of struture and append to itab
append wa_t_accit_spl to it_t_accit_spl.

"populate fields of struture and append to itab
append wa_t_accit_ext_spl to it_t_accit_ext_spl.

"populate fields of struture and append to itab
append wa_t_acccr_spl to it_t_acccr_spl.

"populate fields of struture and append to itab
append wa_t_splinfo to it_t_splinfo.

"populate fields of struture and append to itab
append wa_t_splinfo_val to it_t_splinfo_val.

"populate fields of struture and append to itab
append wa_t_accit_ref to it_t_accit_ref. . CALL FUNCTION 'FAGL_RWIN_SPLIT' * EXPORTING * i_subsequent = ld_i_subsequent * ib_euro = ld_ib_euro TABLES t_acchd = it_t_acchd t_accit = it_t_accit t_acccr = it_t_acccr * t_ausz_clr = it_t_ausz_clr * t_ausz_clr_asgmt = it_t_ausz_clr_asgmt * t_accit_ext = it_t_accit_ext * t_accit_spl = it_t_accit_spl * t_accit_ext_spl = it_t_accit_ext_spl * t_acccr_spl = it_t_acccr_spl * t_splinfo = it_t_splinfo * t_splinfo_val = it_t_splinfo_val * t_accit_ref = it_t_accit_ref . " FAGL_RWIN_SPLIT
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_subsequent  TYPE FLAG ,
it_t_acchd  TYPE STANDARD TABLE OF ACCHD ,
wa_t_acchd  LIKE LINE OF it_t_acchd,
ld_ib_euro  TYPE ABAP_BOOL ,
it_t_accit  TYPE STANDARD TABLE OF ACCIT ,
wa_t_accit  LIKE LINE OF it_t_accit,
it_t_acccr  TYPE STANDARD TABLE OF ACCCR ,
wa_t_acccr  LIKE LINE OF it_t_acccr,
it_t_ausz_clr  TYPE STANDARD TABLE OF AUSZ_CLR ,
wa_t_ausz_clr  LIKE LINE OF it_t_ausz_clr,
it_t_ausz_clr_asgmt  TYPE STANDARD TABLE OF AUSZ_CLR_ASGMT ,
wa_t_ausz_clr_asgmt  LIKE LINE OF it_t_ausz_clr_asgmt,
it_t_accit_ext  TYPE STANDARD TABLE OF ACCIT_EXTENSION ,
wa_t_accit_ext  LIKE LINE OF it_t_accit_ext,
it_t_accit_spl  TYPE STANDARD TABLE OF ACCIT ,
wa_t_accit_spl  LIKE LINE OF it_t_accit_spl,
it_t_accit_ext_spl  TYPE STANDARD TABLE OF ACCIT_EXTENSION ,
wa_t_accit_ext_spl  LIKE LINE OF it_t_accit_ext_spl,
it_t_acccr_spl  TYPE STANDARD TABLE OF ACCCR ,
wa_t_acccr_spl  LIKE LINE OF it_t_acccr_spl,
it_t_splinfo  TYPE STANDARD TABLE OF FAGL_S_ALE_SPLINFO ,
wa_t_splinfo  LIKE LINE OF it_t_splinfo,
it_t_splinfo_val  TYPE STANDARD TABLE OF FAGL_SPLINFO_VAL ,
wa_t_splinfo_val  LIKE LINE OF it_t_splinfo_val,
it_t_accit_ref  TYPE STANDARD TABLE OF ACCIT_REFERENCE ,
wa_t_accit_ref  LIKE LINE OF it_t_accit_ref.

ld_i_subsequent = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_acchd to it_t_acchd.
ld_ib_euro = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_accit to it_t_accit.

"populate fields of struture and append to itab
append wa_t_acccr to it_t_acccr.

"populate fields of struture and append to itab
append wa_t_ausz_clr to it_t_ausz_clr.

"populate fields of struture and append to itab
append wa_t_ausz_clr_asgmt to it_t_ausz_clr_asgmt.

"populate fields of struture and append to itab
append wa_t_accit_ext to it_t_accit_ext.

"populate fields of struture and append to itab
append wa_t_accit_spl to it_t_accit_spl.

"populate fields of struture and append to itab
append wa_t_accit_ext_spl to it_t_accit_ext_spl.

"populate fields of struture and append to itab
append wa_t_acccr_spl to it_t_acccr_spl.

"populate fields of struture and append to itab
append wa_t_splinfo to it_t_splinfo.

"populate fields of struture and append to itab
append wa_t_splinfo_val to it_t_splinfo_val.

"populate fields of struture and append to itab
append wa_t_accit_ref to it_t_accit_ref.

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