SAP Function Modules

CACSSD_LOSA_PRICING_REM SAP Function module - Logical Service Tool to use the pricing engine for remuneration data







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

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


Pattern for FM CACSSD_LOSA_PRICING_REM - CACSSD LOSA PRICING REM





CALL FUNCTION 'CACSSD_LOSA_PRICING_REM' "Logical Service Tool to use the pricing engine for remuneration data
  EXPORTING
    i_cacsappl =                " cacsappl
    i_obj_type =                " tcacs_los_object-obj_type  Calculating Object Type
    i_obj_id =                  " tcacs_los_object-obj_id  Calculating Object Identification
    i_obj_method =              " tcacs_los_connec-obj_method  Processing Method for Objects in a Generation Class
    i_tech_time =               " cacs_techtime_b
    i_busi_time =               " cacs_busitime_b
  TABLES
    t_docrem =                  " cacs00_s_docrem  Commission Document, Remuneration and Liability(Meta Object)
    t_dochdm =                  " cacs00_s_dochdm  Commission Document Header (Meta Object)
    .  "  CACSSD_LOSA_PRICING_REM

ABAP code example for Function Module CACSSD_LOSA_PRICING_REM





The ABAP code below is a full code listing to execute function module CACSSD_LOSA_PRICING_REM 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_t_docrem  TYPE STANDARD TABLE OF CACS00_S_DOCREM,"TABLES PARAM
wa_t_docrem  LIKE LINE OF it_t_docrem ,
it_t_dochdm  TYPE STANDARD TABLE OF CACS00_S_DOCHDM,"TABLES PARAM
wa_t_dochdm  LIKE LINE OF it_t_dochdm .

DATA(ld_i_cacsappl) = 'Check type of data required'.

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).

DATA(ld_i_tech_time) = 'Check type of data required'.
DATA(ld_i_busi_time) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_docrem to it_t_docrem.

"populate fields of struture and append to itab
append wa_t_dochdm to it_t_dochdm. . CALL FUNCTION 'CACSSD_LOSA_PRICING_REM' EXPORTING i_cacsappl = ld_i_cacsappl i_obj_type = ld_i_obj_type i_obj_id = ld_i_obj_id i_obj_method = ld_i_obj_method i_tech_time = ld_i_tech_time i_busi_time = ld_i_busi_time TABLES t_docrem = it_t_docrem t_dochdm = it_t_dochdm . " CACSSD_LOSA_PRICING_REM
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_i_cacsappl  TYPE CACSAPPL ,
it_t_docrem  TYPE STANDARD TABLE OF CACS00_S_DOCREM ,
wa_t_docrem  LIKE LINE OF it_t_docrem,
ld_i_obj_type  TYPE TCACS_LOS_OBJECT-OBJ_TYPE ,
it_t_dochdm  TYPE STANDARD TABLE OF CACS00_S_DOCHDM ,
wa_t_dochdm  LIKE LINE OF it_t_dochdm,
ld_i_obj_id  TYPE TCACS_LOS_OBJECT-OBJ_ID ,
ld_i_obj_method  TYPE TCACS_LOS_CONNEC-OBJ_METHOD ,
ld_i_tech_time  TYPE CACS_TECHTIME_B ,
ld_i_busi_time  TYPE CACS_BUSITIME_B .

ld_i_cacsappl = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_docrem to it_t_docrem.

SELECT single OBJ_TYPE
FROM TCACS_LOS_OBJECT
INTO ld_i_obj_type.


"populate fields of struture and append to itab
append wa_t_dochdm to it_t_dochdm.

SELECT single OBJ_ID
FROM TCACS_LOS_OBJECT
INTO ld_i_obj_id.


SELECT single OBJ_METHOD
FROM TCACS_LOS_CONNEC
INTO ld_i_obj_method.

ld_i_tech_time = 'Check type of data required'.
ld_i_busi_time = '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 CACSSD_LOSA_PRICING_REM or its description.