SAP Function Modules

ISU_AR_INIT_MASSIVE_SELECTION SAP Function module - Global data initialization for legal report massive selection







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

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


Pattern for FM ISU_AR_INIT_MASSIVE_SELECTION - ISU AR INIT MASSIVE SELECTION





CALL FUNCTION 'ISU_AR_INIT_MASSIVE_SELECTION' "Global data initialization for legal report massive selection
  EXPORTING
    i_bukrs =                   " dfkkrep06-bukrs  Company code
    i_from_date =               " dfkkrep06-vmdat  Date and time, current (application server) date
    i_to_date =                 " dfkkrep06-vmdat  Date and time, current (application server) date
    i_limit =                   " sy-dbcnt      DB operations, number of table lines processed
    i_report_type =             " char2         Report type
*   i_process_way =             " j_1adrver-j_1aproc  Processing way
    i_sorting_type =            " char1         Sorting type
*   i_tearsalestax =            " tearsalestax  ARGENTINA: Legal report sales tax parameters
*   i_earsort =                 " tearsortdef-earsort  ARGENTINA: Legal report sorting for output and subtotals
  TABLES
*   t_ktosl =                   " ear_ktosl     ARGENTINA: Legal report KTOSL transfer structure
    t_xblnr_range =             " fkkr_xblnr    Range Structure for Reference Doc No. (FI-CA)
*   t_varidef =                 " tearvaridef   ARGENTINA: Legal report selection variant definition
*   t_gityp =                   " ear_gityp     ARGENTINA: Legal reporting interface structure for function
  EXCEPTIONS
    INVALID_PARAMETERS = 1      "
    .  "  ISU_AR_INIT_MASSIVE_SELECTION

ABAP code example for Function Module ISU_AR_INIT_MASSIVE_SELECTION





The ABAP code below is a full code listing to execute function module ISU_AR_INIT_MASSIVE_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_ktosl  TYPE STANDARD TABLE OF EAR_KTOSL,"TABLES PARAM
wa_t_ktosl  LIKE LINE OF it_t_ktosl ,
it_t_xblnr_range  TYPE STANDARD TABLE OF FKKR_XBLNR,"TABLES PARAM
wa_t_xblnr_range  LIKE LINE OF it_t_xblnr_range ,
it_t_varidef  TYPE STANDARD TABLE OF TEARVARIDEF,"TABLES PARAM
wa_t_varidef  LIKE LINE OF it_t_varidef ,
it_t_gityp  TYPE STANDARD TABLE OF EAR_GITYP,"TABLES PARAM
wa_t_gityp  LIKE LINE OF it_t_gityp .


SELECT single BUKRS
FROM DFKKREP06
INTO @DATA(ld_i_bukrs).


SELECT single VMDAT
FROM DFKKREP06
INTO @DATA(ld_i_from_date).


SELECT single VMDAT
FROM DFKKREP06
INTO @DATA(ld_i_to_date).

DATA(ld_i_limit) = '123 '.
DATA(ld_i_report_type) = '123 '.

SELECT single J_1APROC
FROM J_1ADRVER
INTO @DATA(ld_i_process_way).

DATA(ld_i_sorting_type) = '123 '.
DATA(ld_i_tearsalestax) = '123 '.

SELECT single EARSORT
FROM TEARSORTDEF
INTO @DATA(ld_i_earsort).


"populate fields of struture and append to itab
append wa_t_ktosl to it_t_ktosl.

"populate fields of struture and append to itab
append wa_t_xblnr_range to it_t_xblnr_range.

"populate fields of struture and append to itab
append wa_t_varidef to it_t_varidef.

"populate fields of struture and append to itab
append wa_t_gityp to it_t_gityp. . CALL FUNCTION 'ISU_AR_INIT_MASSIVE_SELECTION' EXPORTING i_bukrs = ld_i_bukrs i_from_date = ld_i_from_date i_to_date = ld_i_to_date i_limit = ld_i_limit i_report_type = ld_i_report_type * i_process_way = ld_i_process_way i_sorting_type = ld_i_sorting_type * i_tearsalestax = ld_i_tearsalestax * i_earsort = ld_i_earsort TABLES * t_ktosl = it_t_ktosl t_xblnr_range = it_t_xblnr_range * t_varidef = it_t_varidef * t_gityp = it_t_gityp EXCEPTIONS INVALID_PARAMETERS = 1 . " ISU_AR_INIT_MASSIVE_SELECTION
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here 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_bukrs  TYPE DFKKREP06-BUKRS ,
it_t_ktosl  TYPE STANDARD TABLE OF EAR_KTOSL ,
wa_t_ktosl  LIKE LINE OF it_t_ktosl,
ld_i_from_date  TYPE DFKKREP06-VMDAT ,
it_t_xblnr_range  TYPE STANDARD TABLE OF FKKR_XBLNR ,
wa_t_xblnr_range  LIKE LINE OF it_t_xblnr_range,
ld_i_to_date  TYPE DFKKREP06-VMDAT ,
it_t_varidef  TYPE STANDARD TABLE OF TEARVARIDEF ,
wa_t_varidef  LIKE LINE OF it_t_varidef,
ld_i_limit  TYPE SY-DBCNT ,
it_t_gityp  TYPE STANDARD TABLE OF EAR_GITYP ,
wa_t_gityp  LIKE LINE OF it_t_gityp,
ld_i_report_type  TYPE CHAR2 ,
ld_i_process_way  TYPE J_1ADRVER-J_1APROC ,
ld_i_sorting_type  TYPE CHAR1 ,
ld_i_tearsalestax  TYPE TEARSALESTAX ,
ld_i_earsort  TYPE TEARSORTDEF-EARSORT .


SELECT single BUKRS
FROM DFKKREP06
INTO ld_i_bukrs.


"populate fields of struture and append to itab
append wa_t_ktosl to it_t_ktosl.

SELECT single VMDAT
FROM DFKKREP06
INTO ld_i_from_date.


"populate fields of struture and append to itab
append wa_t_xblnr_range to it_t_xblnr_range.

SELECT single VMDAT
FROM DFKKREP06
INTO ld_i_to_date.


"populate fields of struture and append to itab
append wa_t_varidef to it_t_varidef.
ld_i_limit = '123 '.

"populate fields of struture and append to itab
append wa_t_gityp to it_t_gityp.
ld_i_report_type = '123 '.

SELECT single J_1APROC
FROM J_1ADRVER
INTO ld_i_process_way.

ld_i_sorting_type = '123 '.
ld_i_tearsalestax = '123 '.

SELECT single EARSORT
FROM TEARSORTDEF
INTO ld_i_earsort.

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