SAP Function Modules

EXIT_SAPLAIC2_001 SAP Function module - IM Summarization: Processing Summarization Data after Selection







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

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


Pattern for FM EXIT_SAPLAIC2_001 - EXIT SAPLAIC2 001





CALL FUNCTION 'EXIT_SAPLAIC2_001' "IM Summarization: Processing Summarization Data after Selection
  EXPORTING
    select_internal =           " raicext1-internal  Ind: Data for Own Client Selected
    select_summarized_data =    " raicext1-from_sumdb  Ind: Read Summarized Values
    compression_version =       " imch-compr_vrsn  Summarization Version
    capinvprogram =             " imch-inv_prog  Name of Investment Program
    approvalyear =              " imch-appr_year  Approval Fiscal Year
*   from_position = SPACE       " imchie-prog_pos  Point of Entry Position of Invest. Program
    select_plan_values =        " raicext1-plan_val  Ind: Plan Values Selected
    plan_version =              " bapi1057ca-version  Plan Version, If Only One Should Be Selected
*   select_plan_from_program = SPACE  " bapi1057ca-plan_prog  Ind: Plan Values from Program Selected
*   select_plan_from_requests = SPACE  " bapi1057ca-plan_req  Ind: Plan Values from Approp. Request Selected
*   select_plan_from_measures = SPACE  " bapi1057ca-plan_measr  Ind: Plan Values from Measures Selected
    select_budget_values =      " raicext1-budget_val  Ind: Select Budget Values
*   select_budget_from_program = SPACE  " bapi1057ca-budg_prog  Ind: Budget Values from Program Selected
*   select_budget_from_measures = SPACE  " bapi1057ca-budg_measr  Ind: Budget Values from Measures Selected
    select_assigned_values =    " bapi1057ca-assgnd_val  Ind: Select Assigned Values
    select_userdefined_values =   " bapi1057ca-usrdef_val  Ind: Select User-Defined Values
    select_annual_values =      " bapi1057ca-annual_val  Ind: Select Annual Values
    select_overall_values =     " bapi1057ca-ovrall_val  Ind: Select Overall Values
    from_fiscal_year =          " bapi1057ca-from_fy  From-Fiscal-Year for Values
    to_fiscal_year =            " bapi1057ca-to_fy  To-Fiscal-Year for Values
    partner_role =              " bapi1057c0-partn_role  Partner Functions of Approp. Requests
  TABLES
    data =                      " bapi1057cd    Values
    .  "  EXIT_SAPLAIC2_001

ABAP code example for Function Module EXIT_SAPLAIC2_001





The ABAP code below is a full code listing to execute function module EXIT_SAPLAIC2_001 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_data  TYPE STANDARD TABLE OF BAPI1057CD,"TABLES PARAM
wa_data  LIKE LINE OF it_data .


DATA(ld_select_internal) = some text here

DATA(ld_select_summarized_data) = some text here

SELECT single COMPR_VRSN
FROM IMCH
INTO @DATA(ld_compression_version).


SELECT single INV_PROG
FROM IMCH
INTO @DATA(ld_capinvprogram).


SELECT single APPR_YEAR
FROM IMCH
INTO @DATA(ld_approvalyear).


SELECT single PROG_POS
FROM IMCHIE
INTO @DATA(ld_from_position).


DATA(ld_select_plan_values) = some text here

DATA(ld_plan_version) = some text here

DATA(ld_select_plan_from_program) = some text here

DATA(ld_select_plan_from_requests) = some text here

DATA(ld_select_plan_from_measures) = some text here

DATA(ld_select_budget_values) = some text here

DATA(ld_select_budget_from_program) = some text here

DATA(ld_select_budget_from_measures) = some text here

DATA(ld_select_assigned_values) = some text here

DATA(ld_select_userdefined_values) = some text here

DATA(ld_select_annual_values) = some text here

DATA(ld_select_overall_values) = some text here

DATA(ld_from_fiscal_year) = Check type of data required

DATA(ld_to_fiscal_year) = Check type of data required

DATA(ld_partner_role) = some text here

"populate fields of struture and append to itab
append wa_data to it_data. . CALL FUNCTION 'EXIT_SAPLAIC2_001' EXPORTING select_internal = ld_select_internal select_summarized_data = ld_select_summarized_data compression_version = ld_compression_version capinvprogram = ld_capinvprogram approvalyear = ld_approvalyear * from_position = ld_from_position select_plan_values = ld_select_plan_values plan_version = ld_plan_version * select_plan_from_program = ld_select_plan_from_program * select_plan_from_requests = ld_select_plan_from_requests * select_plan_from_measures = ld_select_plan_from_measures select_budget_values = ld_select_budget_values * select_budget_from_program = ld_select_budget_from_program * select_budget_from_measures = ld_select_budget_from_measures select_assigned_values = ld_select_assigned_values select_userdefined_values = ld_select_userdefined_values select_annual_values = ld_select_annual_values select_overall_values = ld_select_overall_values from_fiscal_year = ld_from_fiscal_year to_fiscal_year = ld_to_fiscal_year partner_role = ld_partner_role TABLES data = it_data . " EXIT_SAPLAIC2_001
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_select_internal  TYPE RAICEXT1-INTERNAL ,
it_data  TYPE STANDARD TABLE OF BAPI1057CD ,
wa_data  LIKE LINE OF it_data,
ld_select_summarized_data  TYPE RAICEXT1-FROM_SUMDB ,
ld_compression_version  TYPE IMCH-COMPR_VRSN ,
ld_capinvprogram  TYPE IMCH-INV_PROG ,
ld_approvalyear  TYPE IMCH-APPR_YEAR ,
ld_from_position  TYPE IMCHIE-PROG_POS ,
ld_select_plan_values  TYPE RAICEXT1-PLAN_VAL ,
ld_plan_version  TYPE BAPI1057CA-VERSION ,
ld_select_plan_from_program  TYPE BAPI1057CA-PLAN_PROG ,
ld_select_plan_from_requests  TYPE BAPI1057CA-PLAN_REQ ,
ld_select_plan_from_measures  TYPE BAPI1057CA-PLAN_MEASR ,
ld_select_budget_values  TYPE RAICEXT1-BUDGET_VAL ,
ld_select_budget_from_program  TYPE BAPI1057CA-BUDG_PROG ,
ld_select_budget_from_measures  TYPE BAPI1057CA-BUDG_MEASR ,
ld_select_assigned_values  TYPE BAPI1057CA-ASSGND_VAL ,
ld_select_userdefined_values  TYPE BAPI1057CA-USRDEF_VAL ,
ld_select_annual_values  TYPE BAPI1057CA-ANNUAL_VAL ,
ld_select_overall_values  TYPE BAPI1057CA-OVRALL_VAL ,
ld_from_fiscal_year  TYPE BAPI1057CA-FROM_FY ,
ld_to_fiscal_year  TYPE BAPI1057CA-TO_FY ,
ld_partner_role  TYPE BAPI1057C0-PARTN_ROLE .


ld_select_internal = some text here

"populate fields of struture and append to itab
append wa_data to it_data.

ld_select_summarized_data = some text here

SELECT single COMPR_VRSN
FROM IMCH
INTO ld_compression_version.


SELECT single INV_PROG
FROM IMCH
INTO ld_capinvprogram.


SELECT single APPR_YEAR
FROM IMCH
INTO ld_approvalyear.


SELECT single PROG_POS
FROM IMCHIE
INTO ld_from_position.


ld_select_plan_values = some text here

ld_plan_version = some text here

ld_select_plan_from_program = some text here

ld_select_plan_from_requests = some text here

ld_select_plan_from_measures = some text here

ld_select_budget_values = some text here

ld_select_budget_from_program = some text here

ld_select_budget_from_measures = some text here

ld_select_assigned_values = some text here

ld_select_userdefined_values = some text here

ld_select_annual_values = some text here

ld_select_overall_values = some text here

ld_from_fiscal_year = Check type of data required

ld_to_fiscal_year = Check type of data required

ld_partner_role = 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 EXIT_SAPLAIC2_001 or its description.