SAP Function Modules

CACS_CREATE_NRRANGES SAP Function module







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

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


Pattern for FM CACS_CREATE_NRRANGES - CACS CREATE NRRANGES





CALL FUNCTION 'CACS_CREATE_NRRANGES' "
  EXPORTING
    i_appl =                    " cacsappl
    i_year = 2006               " cacsimpyear
    i_nr_pss = 2                " i
    i_nr_buc = 2                " i
    i_nr_cas = 1                " i
    i_nr_ctr = 2                " i
    i_nr_doc = 1                " i
    i_nr_map = 1                " i
    i_nr_obj = 1                " i
    i_nr_pay = 2                " i
    i_nr_seg = 1                " i
    i_nr_ses = 1                " i
    i_nr_stm = 2                " i
    i_nr_var = 1                " i
    i_nr_oap = 1                " i
    i_nr_oaw = 1                " i
    i_nr_rcp = 3                " i
    i_nr_fhd = 1                " i
    i_nr_fit = 1                " i
    i_test_flag =               " boolean
  IMPORTING
    et_messages =               " cacs_message_ttype
  EXCEPTIONS
    ERROR = 1                   "
    .  "  CACS_CREATE_NRRANGES

ABAP code example for Function Module CACS_CREATE_NRRANGES





The ABAP code below is a full code listing to execute function module CACS_CREATE_NRRANGES 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_messages  TYPE CACS_MESSAGE_TTYPE .

DATA(ld_i_appl) = 'Check type of data required'.
DATA(ld_i_year) = 'Check type of data required'.
DATA(ld_i_nr_pss) = 'Check type of data required'.
DATA(ld_i_nr_buc) = 'Check type of data required'.
DATA(ld_i_nr_cas) = 'Check type of data required'.
DATA(ld_i_nr_ctr) = 'Check type of data required'.
DATA(ld_i_nr_doc) = 'Check type of data required'.
DATA(ld_i_nr_map) = 'Check type of data required'.
DATA(ld_i_nr_obj) = 'Check type of data required'.
DATA(ld_i_nr_pay) = 'Check type of data required'.
DATA(ld_i_nr_seg) = 'Check type of data required'.
DATA(ld_i_nr_ses) = 'Check type of data required'.
DATA(ld_i_nr_stm) = 'Check type of data required'.
DATA(ld_i_nr_var) = 'Check type of data required'.
DATA(ld_i_nr_oap) = 'Check type of data required'.
DATA(ld_i_nr_oaw) = 'Check type of data required'.
DATA(ld_i_nr_rcp) = 'Check type of data required'.
DATA(ld_i_nr_fhd) = 'Check type of data required'.
DATA(ld_i_nr_fit) = 'Check type of data required'.
DATA(ld_i_test_flag) = 'Check type of data required'. . CALL FUNCTION 'CACS_CREATE_NRRANGES' EXPORTING i_appl = ld_i_appl i_year = ld_i_year i_nr_pss = ld_i_nr_pss i_nr_buc = ld_i_nr_buc i_nr_cas = ld_i_nr_cas i_nr_ctr = ld_i_nr_ctr i_nr_doc = ld_i_nr_doc i_nr_map = ld_i_nr_map i_nr_obj = ld_i_nr_obj i_nr_pay = ld_i_nr_pay i_nr_seg = ld_i_nr_seg i_nr_ses = ld_i_nr_ses i_nr_stm = ld_i_nr_stm i_nr_var = ld_i_nr_var i_nr_oap = ld_i_nr_oap i_nr_oaw = ld_i_nr_oaw i_nr_rcp = ld_i_nr_rcp i_nr_fhd = ld_i_nr_fhd i_nr_fit = ld_i_nr_fit i_test_flag = ld_i_test_flag IMPORTING et_messages = ld_et_messages EXCEPTIONS ERROR = 1 . " CACS_CREATE_NRRANGES
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_et_messages  TYPE CACS_MESSAGE_TTYPE ,
ld_i_appl  TYPE CACSAPPL ,
ld_i_year  TYPE CACSIMPYEAR ,
ld_i_nr_pss  TYPE I ,
ld_i_nr_buc  TYPE I ,
ld_i_nr_cas  TYPE I ,
ld_i_nr_ctr  TYPE I ,
ld_i_nr_doc  TYPE I ,
ld_i_nr_map  TYPE I ,
ld_i_nr_obj  TYPE I ,
ld_i_nr_pay  TYPE I ,
ld_i_nr_seg  TYPE I ,
ld_i_nr_ses  TYPE I ,
ld_i_nr_stm  TYPE I ,
ld_i_nr_var  TYPE I ,
ld_i_nr_oap  TYPE I ,
ld_i_nr_oaw  TYPE I ,
ld_i_nr_rcp  TYPE I ,
ld_i_nr_fhd  TYPE I ,
ld_i_nr_fit  TYPE I ,
ld_i_test_flag  TYPE BOOLEAN .

ld_i_appl = 'Check type of data required'.
ld_i_year = 'Check type of data required'.
ld_i_nr_pss = 'Check type of data required'.
ld_i_nr_buc = 'Check type of data required'.
ld_i_nr_cas = 'Check type of data required'.
ld_i_nr_ctr = 'Check type of data required'.
ld_i_nr_doc = 'Check type of data required'.
ld_i_nr_map = 'Check type of data required'.
ld_i_nr_obj = 'Check type of data required'.
ld_i_nr_pay = 'Check type of data required'.
ld_i_nr_seg = 'Check type of data required'.
ld_i_nr_ses = 'Check type of data required'.
ld_i_nr_stm = 'Check type of data required'.
ld_i_nr_var = 'Check type of data required'.
ld_i_nr_oap = 'Check type of data required'.
ld_i_nr_oaw = 'Check type of data required'.
ld_i_nr_rcp = 'Check type of data required'.
ld_i_nr_fhd = 'Check type of data required'.
ld_i_nr_fit = 'Check type of data required'.
ld_i_test_flag = '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 CACS_CREATE_NRRANGES or its description.