SAP Function Modules

ISB_FELX_RULES_GEN_COSTSHEET SAP Function module - IS-B: Felx rules generate - ABAP code generation for one costsheet







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

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


Pattern for FM ISB_FELX_RULES_GEN_COSTSHEET - ISB FELX RULES GEN COSTSHEET





CALL FUNCTION 'ISB_FELX_RULES_GEN_COSTSHEET' "IS-B: Felx rules generate - ABAP code generation for one costsheet
  EXPORTING
    s_kalsm =                   " jbtfc_kalsm   Kalkulationsschema.
    wrk_concern =               " jbtfc_concern
  TABLES
    itab_costsheet =            " jbtfc_itab_costsheet  Konditionsarten
    itab_access =               " jbtfc_itab_access  Zugriffolgen
    itab_condfield =            " jbtfc_itab_condfield  Konditionfelder
    itab_condtab =              " jbtfc_itab_condtab  Konditionstabellen
    itab_rep_table =            " jbtfc_itab_report  Generiertes Koding: Tables definition
    itab_rep_type_condtab =     " jbtfc_itab_report  Generiertes Koding: Typen definition
    itab_rep_type_condtyp =     " jbtfc_itab_report  Generiertes Koding: Typen definition
    itab_rep_data_condtyp =     " jbtfc_itab_report  Generiertes Koding: Data definition
    itab_rep_case =             " jbtfc_itab_report  Generiertes Koding: Case struktur
    itab_rep_form_costsheet =   " jbtfc_itab_report  Generiertes Koding: Form perform_costsheet
    itab_rep_form_read_rates =   " jbtfc_itab_report  Generiertes Koding: Form read_rates_xxx
    itab_rep_form_init_table =   " jbtfc_itab_report  Generiertes Koding: Form init_table_xxxx
    itab_rep_form_read_table =   " jbtfc_itab_report  Generiertes Koding: Form read_table
  EXCEPTIONS
    GENERATION_ERROR = 1        "               Generierung war Fehlerhaft.
    .  "  ISB_FELX_RULES_GEN_COSTSHEET

ABAP code example for Function Module ISB_FELX_RULES_GEN_COSTSHEET





The ABAP code below is a full code listing to execute function module ISB_FELX_RULES_GEN_COSTSHEET 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_itab_costsheet  TYPE STANDARD TABLE OF JBTFC_ITAB_COSTSHEET,"TABLES PARAM
wa_itab_costsheet  LIKE LINE OF it_itab_costsheet ,
it_itab_access  TYPE STANDARD TABLE OF JBTFC_ITAB_ACCESS,"TABLES PARAM
wa_itab_access  LIKE LINE OF it_itab_access ,
it_itab_condfield  TYPE STANDARD TABLE OF JBTFC_ITAB_CONDFIELD,"TABLES PARAM
wa_itab_condfield  LIKE LINE OF it_itab_condfield ,
it_itab_condtab  TYPE STANDARD TABLE OF JBTFC_ITAB_CONDTAB,"TABLES PARAM
wa_itab_condtab  LIKE LINE OF it_itab_condtab ,
it_itab_rep_table  TYPE STANDARD TABLE OF JBTFC_ITAB_REPORT,"TABLES PARAM
wa_itab_rep_table  LIKE LINE OF it_itab_rep_table ,
it_itab_rep_type_condtab  TYPE STANDARD TABLE OF JBTFC_ITAB_REPORT,"TABLES PARAM
wa_itab_rep_type_condtab  LIKE LINE OF it_itab_rep_type_condtab ,
it_itab_rep_type_condtyp  TYPE STANDARD TABLE OF JBTFC_ITAB_REPORT,"TABLES PARAM
wa_itab_rep_type_condtyp  LIKE LINE OF it_itab_rep_type_condtyp ,
it_itab_rep_data_condtyp  TYPE STANDARD TABLE OF JBTFC_ITAB_REPORT,"TABLES PARAM
wa_itab_rep_data_condtyp  LIKE LINE OF it_itab_rep_data_condtyp ,
it_itab_rep_case  TYPE STANDARD TABLE OF JBTFC_ITAB_REPORT,"TABLES PARAM
wa_itab_rep_case  LIKE LINE OF it_itab_rep_case ,
it_itab_rep_form_costsheet  TYPE STANDARD TABLE OF JBTFC_ITAB_REPORT,"TABLES PARAM
wa_itab_rep_form_costsheet  LIKE LINE OF it_itab_rep_form_costsheet ,
it_itab_rep_form_read_rates  TYPE STANDARD TABLE OF JBTFC_ITAB_REPORT,"TABLES PARAM
wa_itab_rep_form_read_rates  LIKE LINE OF it_itab_rep_form_read_rates ,
it_itab_rep_form_init_table  TYPE STANDARD TABLE OF JBTFC_ITAB_REPORT,"TABLES PARAM
wa_itab_rep_form_init_table  LIKE LINE OF it_itab_rep_form_init_table ,
it_itab_rep_form_read_table  TYPE STANDARD TABLE OF JBTFC_ITAB_REPORT,"TABLES PARAM
wa_itab_rep_form_read_table  LIKE LINE OF it_itab_rep_form_read_table .

DATA(ld_s_kalsm) = 'Check type of data required'.
DATA(ld_wrk_concern) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_itab_costsheet to it_itab_costsheet.

"populate fields of struture and append to itab
append wa_itab_access to it_itab_access.

"populate fields of struture and append to itab
append wa_itab_condfield to it_itab_condfield.

"populate fields of struture and append to itab
append wa_itab_condtab to it_itab_condtab.

"populate fields of struture and append to itab
append wa_itab_rep_table to it_itab_rep_table.

"populate fields of struture and append to itab
append wa_itab_rep_type_condtab to it_itab_rep_type_condtab.

"populate fields of struture and append to itab
append wa_itab_rep_type_condtyp to it_itab_rep_type_condtyp.

"populate fields of struture and append to itab
append wa_itab_rep_data_condtyp to it_itab_rep_data_condtyp.

"populate fields of struture and append to itab
append wa_itab_rep_case to it_itab_rep_case.

"populate fields of struture and append to itab
append wa_itab_rep_form_costsheet to it_itab_rep_form_costsheet.

"populate fields of struture and append to itab
append wa_itab_rep_form_read_rates to it_itab_rep_form_read_rates.

"populate fields of struture and append to itab
append wa_itab_rep_form_init_table to it_itab_rep_form_init_table.

"populate fields of struture and append to itab
append wa_itab_rep_form_read_table to it_itab_rep_form_read_table. . CALL FUNCTION 'ISB_FELX_RULES_GEN_COSTSHEET' EXPORTING s_kalsm = ld_s_kalsm wrk_concern = ld_wrk_concern TABLES itab_costsheet = it_itab_costsheet itab_access = it_itab_access itab_condfield = it_itab_condfield itab_condtab = it_itab_condtab itab_rep_table = it_itab_rep_table itab_rep_type_condtab = it_itab_rep_type_condtab itab_rep_type_condtyp = it_itab_rep_type_condtyp itab_rep_data_condtyp = it_itab_rep_data_condtyp itab_rep_case = it_itab_rep_case itab_rep_form_costsheet = it_itab_rep_form_costsheet itab_rep_form_read_rates = it_itab_rep_form_read_rates itab_rep_form_init_table = it_itab_rep_form_init_table itab_rep_form_read_table = it_itab_rep_form_read_table EXCEPTIONS GENERATION_ERROR = 1 . " ISB_FELX_RULES_GEN_COSTSHEET
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_s_kalsm  TYPE JBTFC_KALSM ,
it_itab_costsheet  TYPE STANDARD TABLE OF JBTFC_ITAB_COSTSHEET ,
wa_itab_costsheet  LIKE LINE OF it_itab_costsheet,
ld_wrk_concern  TYPE JBTFC_CONCERN ,
it_itab_access  TYPE STANDARD TABLE OF JBTFC_ITAB_ACCESS ,
wa_itab_access  LIKE LINE OF it_itab_access,
it_itab_condfield  TYPE STANDARD TABLE OF JBTFC_ITAB_CONDFIELD ,
wa_itab_condfield  LIKE LINE OF it_itab_condfield,
it_itab_condtab  TYPE STANDARD TABLE OF JBTFC_ITAB_CONDTAB ,
wa_itab_condtab  LIKE LINE OF it_itab_condtab,
it_itab_rep_table  TYPE STANDARD TABLE OF JBTFC_ITAB_REPORT ,
wa_itab_rep_table  LIKE LINE OF it_itab_rep_table,
it_itab_rep_type_condtab  TYPE STANDARD TABLE OF JBTFC_ITAB_REPORT ,
wa_itab_rep_type_condtab  LIKE LINE OF it_itab_rep_type_condtab,
it_itab_rep_type_condtyp  TYPE STANDARD TABLE OF JBTFC_ITAB_REPORT ,
wa_itab_rep_type_condtyp  LIKE LINE OF it_itab_rep_type_condtyp,
it_itab_rep_data_condtyp  TYPE STANDARD TABLE OF JBTFC_ITAB_REPORT ,
wa_itab_rep_data_condtyp  LIKE LINE OF it_itab_rep_data_condtyp,
it_itab_rep_case  TYPE STANDARD TABLE OF JBTFC_ITAB_REPORT ,
wa_itab_rep_case  LIKE LINE OF it_itab_rep_case,
it_itab_rep_form_costsheet  TYPE STANDARD TABLE OF JBTFC_ITAB_REPORT ,
wa_itab_rep_form_costsheet  LIKE LINE OF it_itab_rep_form_costsheet,
it_itab_rep_form_read_rates  TYPE STANDARD TABLE OF JBTFC_ITAB_REPORT ,
wa_itab_rep_form_read_rates  LIKE LINE OF it_itab_rep_form_read_rates,
it_itab_rep_form_init_table  TYPE STANDARD TABLE OF JBTFC_ITAB_REPORT ,
wa_itab_rep_form_init_table  LIKE LINE OF it_itab_rep_form_init_table,
it_itab_rep_form_read_table  TYPE STANDARD TABLE OF JBTFC_ITAB_REPORT ,
wa_itab_rep_form_read_table  LIKE LINE OF it_itab_rep_form_read_table.

ld_s_kalsm = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_itab_costsheet to it_itab_costsheet.
ld_wrk_concern = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_itab_access to it_itab_access.

"populate fields of struture and append to itab
append wa_itab_condfield to it_itab_condfield.

"populate fields of struture and append to itab
append wa_itab_condtab to it_itab_condtab.

"populate fields of struture and append to itab
append wa_itab_rep_table to it_itab_rep_table.

"populate fields of struture and append to itab
append wa_itab_rep_type_condtab to it_itab_rep_type_condtab.

"populate fields of struture and append to itab
append wa_itab_rep_type_condtyp to it_itab_rep_type_condtyp.

"populate fields of struture and append to itab
append wa_itab_rep_data_condtyp to it_itab_rep_data_condtyp.

"populate fields of struture and append to itab
append wa_itab_rep_case to it_itab_rep_case.

"populate fields of struture and append to itab
append wa_itab_rep_form_costsheet to it_itab_rep_form_costsheet.

"populate fields of struture and append to itab
append wa_itab_rep_form_read_rates to it_itab_rep_form_read_rates.

"populate fields of struture and append to itab
append wa_itab_rep_form_init_table to it_itab_rep_form_init_table.

"populate fields of struture and append to itab
append wa_itab_rep_form_read_table to it_itab_rep_form_read_table.

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