SAP Function Modules

FILA_ITEM_SPLIT_TERM SAP Function module







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

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


Pattern for FM FILA_ITEM_SPLIT_TERM - FILA ITEM SPLIT TERM





CALL FUNCTION 'FILA_ITEM_SPLIT_TERM' "
  EXPORTING
    is_contract_header =        " filagf_contract_header  Contract Header
    it_contract_items =         " filagf_cont_item_tab  Contract Items
*   it_conditions =             " filagf_condition_tab  Contract Conditions
*   it_billing =                " filagf_cont_bill_tab  Payment Plan
    it_contract_class =         " filagf_cont_class_tab  Contract Classification
*   it_contract_prods =         " filagf_cont_prod_tab  Product Information
  IMPORTING
    et_contract_items_term =    " filagf_cont_item_tab
    et_conditions_term =        " filagf_condition_tab
    et_billing_term =           " filagf_cont_bill_tab
    et_contract_class_term =    " filagf_cont_class_tab
    et_contract_prods_term =    " filagf_cont_prod_tab  Product Information
    et_contract_items =         " filagf_cont_item_tab
    et_conditions =             " filagf_condition_tab
    et_billing =                " filagf_cont_bill_tab  Payment Plan
    et_contract_class =         " filagf_cont_class_tab  Contract Classification
    et_contract_prods =         " filagf_cont_prod_tab  Product Information
    et_laelnk =                 " fila_tb_lae_crm_link  Link between LAE and CRM Contract Items
    et_laehead =                " fila_tb_lae_crm_header  LAE: CRM Contract Header
    et_laeitem =                " fila_tb_lae_crm_items  LAE: Contract Items
  CHANGING
    ct_return =                 " bapiret2_t    Return Table
    .  "  FILA_ITEM_SPLIT_TERM

ABAP code example for Function Module FILA_ITEM_SPLIT_TERM





The ABAP code below is a full code listing to execute function module FILA_ITEM_SPLIT_TERM 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_et_contract_items_term  TYPE FILAGF_CONT_ITEM_TAB ,
ld_et_conditions_term  TYPE FILAGF_CONDITION_TAB ,
ld_et_billing_term  TYPE FILAGF_CONT_BILL_TAB ,
ld_et_contract_class_term  TYPE FILAGF_CONT_CLASS_TAB ,
ld_et_contract_prods_term  TYPE FILAGF_CONT_PROD_TAB ,
ld_et_contract_items  TYPE FILAGF_CONT_ITEM_TAB ,
ld_et_conditions  TYPE FILAGF_CONDITION_TAB ,
ld_et_billing  TYPE FILAGF_CONT_BILL_TAB ,
ld_et_contract_class  TYPE FILAGF_CONT_CLASS_TAB ,
ld_et_contract_prods  TYPE FILAGF_CONT_PROD_TAB ,
ld_et_laelnk  TYPE FILA_TB_LAE_CRM_LINK ,
ld_et_laehead  TYPE FILA_TB_LAE_CRM_HEADER ,
ld_et_laeitem  TYPE FILA_TB_LAE_CRM_ITEMS .

DATA(ld_ct_return) = 'Check type of data required'.
DATA(ld_is_contract_header) = 'Check type of data required'.
DATA(ld_it_contract_items) = 'Check type of data required'.
DATA(ld_it_conditions) = 'Check type of data required'.
DATA(ld_it_billing) = 'Check type of data required'.
DATA(ld_it_contract_class) = 'Check type of data required'.
DATA(ld_it_contract_prods) = 'Check type of data required'. . CALL FUNCTION 'FILA_ITEM_SPLIT_TERM' EXPORTING is_contract_header = ld_is_contract_header it_contract_items = ld_it_contract_items * it_conditions = ld_it_conditions * it_billing = ld_it_billing it_contract_class = ld_it_contract_class * it_contract_prods = ld_it_contract_prods IMPORTING et_contract_items_term = ld_et_contract_items_term et_conditions_term = ld_et_conditions_term et_billing_term = ld_et_billing_term et_contract_class_term = ld_et_contract_class_term et_contract_prods_term = ld_et_contract_prods_term et_contract_items = ld_et_contract_items et_conditions = ld_et_conditions et_billing = ld_et_billing et_contract_class = ld_et_contract_class et_contract_prods = ld_et_contract_prods et_laelnk = ld_et_laelnk et_laehead = ld_et_laehead et_laeitem = ld_et_laeitem CHANGING ct_return = ld_ct_return . " FILA_ITEM_SPLIT_TERM
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_ct_return  TYPE BAPIRET2_T ,
ld_et_contract_items_term  TYPE FILAGF_CONT_ITEM_TAB ,
ld_is_contract_header  TYPE FILAGF_CONTRACT_HEADER ,
ld_et_conditions_term  TYPE FILAGF_CONDITION_TAB ,
ld_it_contract_items  TYPE FILAGF_CONT_ITEM_TAB ,
ld_et_billing_term  TYPE FILAGF_CONT_BILL_TAB ,
ld_it_conditions  TYPE FILAGF_CONDITION_TAB ,
ld_et_contract_class_term  TYPE FILAGF_CONT_CLASS_TAB ,
ld_it_billing  TYPE FILAGF_CONT_BILL_TAB ,
ld_et_contract_prods_term  TYPE FILAGF_CONT_PROD_TAB ,
ld_it_contract_class  TYPE FILAGF_CONT_CLASS_TAB ,
ld_et_contract_items  TYPE FILAGF_CONT_ITEM_TAB ,
ld_it_contract_prods  TYPE FILAGF_CONT_PROD_TAB ,
ld_et_conditions  TYPE FILAGF_CONDITION_TAB ,
ld_et_billing  TYPE FILAGF_CONT_BILL_TAB ,
ld_et_contract_class  TYPE FILAGF_CONT_CLASS_TAB ,
ld_et_contract_prods  TYPE FILAGF_CONT_PROD_TAB ,
ld_et_laelnk  TYPE FILA_TB_LAE_CRM_LINK ,
ld_et_laehead  TYPE FILA_TB_LAE_CRM_HEADER ,
ld_et_laeitem  TYPE FILA_TB_LAE_CRM_ITEMS .

ld_ct_return = 'Check type of data required'.
ld_is_contract_header = 'Check type of data required'.
ld_it_contract_items = 'Check type of data required'.
ld_it_conditions = 'Check type of data required'.
ld_it_billing = 'Check type of data required'.
ld_it_contract_class = 'Check type of data required'.
ld_it_contract_prods = 'Check type of data required'.

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