SAP CACSBR_LOSA_BR_VAL Function Module for Business Rule: LOS for Valaution









CACSBR_LOSA_BR_VAL is a standard cacsbr losa br val SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Business Rule: LOS for Valaution processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for cacsbr losa br val FM, simply by entering the name CACSBR_LOSA_BR_VAL into the relevant SAP transaction such as SE37 or SE38.

Function Group: CACSBR_BUSS_RULE_LOS
Program Name: SAPLCACSBR_BUSS_RULE_LOS
Main Program: SAPLCACSBR_BUSS_RULE_LOS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CACSBR_LOSA_BR_VAL pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'CACSBR_LOSA_BR_VAL'"Business Rule: LOS for Valaution
EXPORTING
I_CACSAPPL = "Commission Application (ICM)
I_OBJ_TYPE = "Object Type Class (OTC) for Logical Service
I_OBJ_ID = "Calculating Object Identification
I_OBJ_METHOD = "Assigned Method for Object Type Class for Logical Service
I_TECH_TIME = "Technically Valid From
I_BUSI_TIME = "Effective from

TABLES
T_DOCVAM = "Commission Document, Valuation (Meta Object)
T_DOCHDM = "Commission Document Header (Meta Object)
.



IMPORTING Parameters details for CACSBR_LOSA_BR_VAL

I_CACSAPPL - Commission Application (ICM)

Data type: CACSAPPL
Optional: No
Call by Reference: Yes

I_OBJ_TYPE - Object Type Class (OTC) for Logical Service

Data type: TCACS_LOS_OBJECT-OBJ_TYPE
Optional: No
Call by Reference: Yes

I_OBJ_ID - Calculating Object Identification

Data type: TCACS_LOS_OBJECT-OBJ_ID
Optional: No
Call by Reference: Yes

I_OBJ_METHOD - Assigned Method for Object Type Class for Logical Service

Data type: TCACS_LOS_CONNEC-OBJ_METHOD
Optional: No
Call by Reference: Yes

I_TECH_TIME - Technically Valid From

Data type: CACS_TECHTIME_B
Optional: No
Call by Reference: Yes

I_BUSI_TIME - Effective from

Data type: CACS_BUSITIME_B
Optional: No
Call by Reference: Yes

TABLES Parameters details for CACSBR_LOSA_BR_VAL

T_DOCVAM - Commission Document, Valuation (Meta Object)

Data type: CACS00_S_DOCVAM
Optional: No
Call by Reference: Yes

T_DOCHDM - Commission Document Header (Meta Object)

Data type: CACS00_S_DOCHDM
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CACSBR_LOSA_BR_VAL Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lt_t_docvam  TYPE STANDARD TABLE OF CACS00_S_DOCVAM, "   
lv_i_cacsappl  TYPE CACSAPPL, "   
lt_t_dochdm  TYPE STANDARD TABLE OF CACS00_S_DOCHDM, "   
lv_i_obj_type  TYPE TCACS_LOS_OBJECT-OBJ_TYPE, "   
lv_i_obj_id  TYPE TCACS_LOS_OBJECT-OBJ_ID, "   
lv_i_obj_method  TYPE TCACS_LOS_CONNEC-OBJ_METHOD, "   
lv_i_tech_time  TYPE CACS_TECHTIME_B, "   
lv_i_busi_time  TYPE CACS_BUSITIME_B. "   

  CALL FUNCTION 'CACSBR_LOSA_BR_VAL'  "Business Rule: LOS for Valaution
    EXPORTING
         I_CACSAPPL = lv_i_cacsappl
         I_OBJ_TYPE = lv_i_obj_type
         I_OBJ_ID = lv_i_obj_id
         I_OBJ_METHOD = lv_i_obj_method
         I_TECH_TIME = lv_i_tech_time
         I_BUSI_TIME = lv_i_busi_time
    TABLES
         T_DOCVAM = lt_t_docvam
         T_DOCHDM = lt_t_dochdm
. " CACSBR_LOSA_BR_VAL




ABAP code using 7.40 inline data declarations to call FM CACSBR_LOSA_BR_VAL

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
"SELECT single OBJ_TYPE FROM TCACS_LOS_OBJECT INTO @DATA(ld_i_obj_type).
 
"SELECT single OBJ_ID FROM TCACS_LOS_OBJECT INTO @DATA(ld_i_obj_id).
 
"SELECT single OBJ_METHOD FROM TCACS_LOS_CONNEC INTO @DATA(ld_i_obj_method).
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!