SAP Function Modules

CACS00_LOSAS_PARCONST_PFO SAP Function module







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

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


Pattern for FM CACS00_LOSAS_PARCONST_PFO - CACS00 LOSAS PARCONST PFO





CALL FUNCTION 'CACS00_LOSAS_PARCONST_PFO' "
  EXPORTING
    i_busitime =                " cacs_busitime_b
    i_techtime =                " cacs_techtime_b
    i_cacsappl =                " tcacs_los_object-appl
    i_obj_type =                " tcacs_los_meth-obj_type
    i_obj_method =              " tcacs_los_meth-obj_method
    i_obj_id =                  " tcacs_los_object-obj_id
    i_method =                  " cacspcmethod
    i_groupid =                 " cacspcgroupid
    is_case =                   " cacs00_s_casm
  TABLES
    it_allocation_grp =         " cacs_s_parconst_allocation
    it_objectdata_grp =         " cacs00_s_objm
    ct_participation_grp =      " cacs00_s_parm
    ct_activity_grp =           " cacs00_s_actm
    ct_investigation_grp =      " cacs00_s_invm
    ct_relation_grp =           " cacs00_s_relm
  EXCEPTIONS
    ERROR_OCCURRED = 1          "
    .  "  CACS00_LOSAS_PARCONST_PFO

ABAP code example for Function Module CACS00_LOSAS_PARCONST_PFO





The ABAP code below is a full code listing to execute function module CACS00_LOSAS_PARCONST_PFO 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_it_allocation_grp  TYPE STANDARD TABLE OF CACS_S_PARCONST_ALLOCATION,"TABLES PARAM
wa_it_allocation_grp  LIKE LINE OF it_it_allocation_grp ,
it_it_objectdata_grp  TYPE STANDARD TABLE OF CACS00_S_OBJM,"TABLES PARAM
wa_it_objectdata_grp  LIKE LINE OF it_it_objectdata_grp ,
it_ct_participation_grp  TYPE STANDARD TABLE OF CACS00_S_PARM,"TABLES PARAM
wa_ct_participation_grp  LIKE LINE OF it_ct_participation_grp ,
it_ct_activity_grp  TYPE STANDARD TABLE OF CACS00_S_ACTM,"TABLES PARAM
wa_ct_activity_grp  LIKE LINE OF it_ct_activity_grp ,
it_ct_investigation_grp  TYPE STANDARD TABLE OF CACS00_S_INVM,"TABLES PARAM
wa_ct_investigation_grp  LIKE LINE OF it_ct_investigation_grp ,
it_ct_relation_grp  TYPE STANDARD TABLE OF CACS00_S_RELM,"TABLES PARAM
wa_ct_relation_grp  LIKE LINE OF it_ct_relation_grp .

DATA(ld_i_busitime) = 'Check type of data required'.
DATA(ld_i_techtime) = 'Check type of data required'.

SELECT single APPL
FROM TCACS_LOS_OBJECT
INTO @DATA(ld_i_cacsappl).


SELECT single OBJ_TYPE
FROM TCACS_LOS_METH
INTO @DATA(ld_i_obj_type).


SELECT single OBJ_METHOD
FROM TCACS_LOS_METH
INTO @DATA(ld_i_obj_method).


SELECT single OBJ_ID
FROM TCACS_LOS_OBJECT
INTO @DATA(ld_i_obj_id).

DATA(ld_i_method) = 'Check type of data required'.
DATA(ld_i_groupid) = 'Check type of data required'.
DATA(ld_is_case) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_allocation_grp to it_it_allocation_grp.

"populate fields of struture and append to itab
append wa_it_objectdata_grp to it_it_objectdata_grp.

"populate fields of struture and append to itab
append wa_ct_participation_grp to it_ct_participation_grp.

"populate fields of struture and append to itab
append wa_ct_activity_grp to it_ct_activity_grp.

"populate fields of struture and append to itab
append wa_ct_investigation_grp to it_ct_investigation_grp.

"populate fields of struture and append to itab
append wa_ct_relation_grp to it_ct_relation_grp. . CALL FUNCTION 'CACS00_LOSAS_PARCONST_PFO' EXPORTING i_busitime = ld_i_busitime i_techtime = ld_i_techtime i_cacsappl = ld_i_cacsappl i_obj_type = ld_i_obj_type i_obj_method = ld_i_obj_method i_obj_id = ld_i_obj_id i_method = ld_i_method i_groupid = ld_i_groupid is_case = ld_is_case TABLES it_allocation_grp = it_it_allocation_grp it_objectdata_grp = it_it_objectdata_grp ct_participation_grp = it_ct_participation_grp ct_activity_grp = it_ct_activity_grp ct_investigation_grp = it_ct_investigation_grp ct_relation_grp = it_ct_relation_grp EXCEPTIONS ERROR_OCCURRED = 1 . " CACS00_LOSAS_PARCONST_PFO
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_i_busitime  TYPE CACS_BUSITIME_B ,
it_it_allocation_grp  TYPE STANDARD TABLE OF CACS_S_PARCONST_ALLOCATION ,
wa_it_allocation_grp  LIKE LINE OF it_it_allocation_grp,
ld_i_techtime  TYPE CACS_TECHTIME_B ,
it_it_objectdata_grp  TYPE STANDARD TABLE OF CACS00_S_OBJM ,
wa_it_objectdata_grp  LIKE LINE OF it_it_objectdata_grp,
ld_i_cacsappl  TYPE TCACS_LOS_OBJECT-APPL ,
it_ct_participation_grp  TYPE STANDARD TABLE OF CACS00_S_PARM ,
wa_ct_participation_grp  LIKE LINE OF it_ct_participation_grp,
ld_i_obj_type  TYPE TCACS_LOS_METH-OBJ_TYPE ,
it_ct_activity_grp  TYPE STANDARD TABLE OF CACS00_S_ACTM ,
wa_ct_activity_grp  LIKE LINE OF it_ct_activity_grp,
ld_i_obj_method  TYPE TCACS_LOS_METH-OBJ_METHOD ,
it_ct_investigation_grp  TYPE STANDARD TABLE OF CACS00_S_INVM ,
wa_ct_investigation_grp  LIKE LINE OF it_ct_investigation_grp,
ld_i_obj_id  TYPE TCACS_LOS_OBJECT-OBJ_ID ,
it_ct_relation_grp  TYPE STANDARD TABLE OF CACS00_S_RELM ,
wa_ct_relation_grp  LIKE LINE OF it_ct_relation_grp,
ld_i_method  TYPE CACSPCMETHOD ,
ld_i_groupid  TYPE CACSPCGROUPID ,
ld_is_case  TYPE CACS00_S_CASM .

ld_i_busitime = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_allocation_grp to it_it_allocation_grp.
ld_i_techtime = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_objectdata_grp to it_it_objectdata_grp.

SELECT single APPL
FROM TCACS_LOS_OBJECT
INTO ld_i_cacsappl.


"populate fields of struture and append to itab
append wa_ct_participation_grp to it_ct_participation_grp.

SELECT single OBJ_TYPE
FROM TCACS_LOS_METH
INTO ld_i_obj_type.


"populate fields of struture and append to itab
append wa_ct_activity_grp to it_ct_activity_grp.

SELECT single OBJ_METHOD
FROM TCACS_LOS_METH
INTO ld_i_obj_method.


"populate fields of struture and append to itab
append wa_ct_investigation_grp to it_ct_investigation_grp.

SELECT single OBJ_ID
FROM TCACS_LOS_OBJECT
INTO ld_i_obj_id.


"populate fields of struture and append to itab
append wa_ct_relation_grp to it_ct_relation_grp.
ld_i_method = 'Check type of data required'.
ld_i_groupid = 'Check type of data required'.
ld_is_case = '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 CACS00_LOSAS_PARCONST_PFO or its description.