SAP Function Modules

CACS_BR_LOSOD_GET SAP Function module - Formula editor: Read LOS tool parameters







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

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


Pattern for FM CACS_BR_LOSOD_GET - CACS BR LOSOD GET





CALL FUNCTION 'CACS_BR_LOSOD_GET' "Formula editor: Read LOS tool parameters
  EXPORTING
    i_appl =                    " cacsappl      Commission Application (ICM)
    i_busitime =                " cacsbusitime  Effective Validity (Time Stamp YYYY.MM.DD hh:mm:ss)
    i_techtime =                " cacstechtime  Technical Validity (Time Stamp: YYYY.MM.DD hh:mm:ss)
    i_value_typ =               " cacs_los_objid  Calculating Object Identification
    i_method =                  " cacs_los_meth  Assigned Method for Object Type Class for Logical Service
    i_los_otc =                 " cacs_los_otc  Object Type Class (OTC) for Logical Service
  IMPORTING
    e_losod =                   " cacs_s_otc02_br  Tool level param of log. service tool : Busines Rule Editor
  EXCEPTIONS
    LOS_TOOL_NOT_FOUND = 1      "               LOS Tool not found
    LOS_PARAMETERS_NOT_FOUND = 2  "             Tool level parameters were not found
    .  "  CACS_BR_LOSOD_GET

ABAP code example for Function Module CACS_BR_LOSOD_GET





The ABAP code below is a full code listing to execute function module CACS_BR_LOSOD_GET 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_e_losod  TYPE CACS_S_OTC02_BR .

DATA(ld_i_appl) = 'Check type of data required'.
DATA(ld_i_busitime) = 'Check type of data required'.
DATA(ld_i_techtime) = 'Check type of data required'.
DATA(ld_i_value_typ) = 'Check type of data required'.
DATA(ld_i_method) = 'Check type of data required'.
DATA(ld_i_los_otc) = 'Check type of data required'. . CALL FUNCTION 'CACS_BR_LOSOD_GET' EXPORTING i_appl = ld_i_appl i_busitime = ld_i_busitime i_techtime = ld_i_techtime i_value_typ = ld_i_value_typ i_method = ld_i_method i_los_otc = ld_i_los_otc IMPORTING e_losod = ld_e_losod EXCEPTIONS LOS_TOOL_NOT_FOUND = 1 LOS_PARAMETERS_NOT_FOUND = 2 . " CACS_BR_LOSOD_GET
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "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_e_losod  TYPE CACS_S_OTC02_BR ,
ld_i_appl  TYPE CACSAPPL ,
ld_i_busitime  TYPE CACSBUSITIME ,
ld_i_techtime  TYPE CACSTECHTIME ,
ld_i_value_typ  TYPE CACS_LOS_OBJID ,
ld_i_method  TYPE CACS_LOS_METH ,
ld_i_los_otc  TYPE CACS_LOS_OTC .

ld_i_appl = 'Check type of data required'.
ld_i_busitime = 'Check type of data required'.
ld_i_techtime = 'Check type of data required'.
ld_i_value_typ = 'Check type of data required'.
ld_i_method = 'Check type of data required'.
ld_i_los_otc = '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_BR_LOSOD_GET or its description.