SAP CACS00_CASE_READ_BY_INV Function Module for NOTRANSL: Get case list and details filtered on participation details
CACS00_CASE_READ_BY_INV is a standard cacs00 case read by inv SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Get case list and details filtered on participation details 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 cacs00 case read by inv FM, simply by entering the name CACS00_CASE_READ_BY_INV into the relevant SAP transaction such as SE37 or SE38.
Function Group: CACS00_CASE_GET
Program Name: SAPLCACS00_CASE_GET
Main Program: SAPLCACS00_CASE_GET
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CACS00_CASE_READ_BY_INV 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 'CACS00_CASE_READ_BY_INV'"NOTRANSL: Get case list and details filtered on participation details.
EXPORTING
IT_ORG_R = "
* IFLG_CONSISTENT_ONLY = ' ' "Boolean Variables (X=true, space=false)
* IFLG_FAILED_ONLY = ' ' "Boolean Variables (X=true, space=false)
* IFLG_COMPLETED_ONLY = ' ' "Boolean Variables (X=true, space=false)
* IFLG_PENDING_ONLY = ' ' "Boolean Variables (X=true, space=false)
IT_IMPORT_YEAR_R = "
IT_CTRTBU_ID_R = "Table Type of Range for CACS_CTRTBU_ID
IT_BUSOBJ_ID_R = "Business Object ID Selection Option
IT_BUSOBJ_TYP_R = "
IT_ROLE_R = "Due Date
* IFLG_VALID = 'X' "Boolean Variables (X=true, space=false)
* IFLG_INVALID = ' ' "Boolean Variables (X=true, space=false)
* IFLG_ACTIVE_ONLY = ' ' "Boolean Variables (X=true, space=false)
TABLES
ET_CASE = "Commission Case (Meta Object)
ET_PARTICIPATION = "Commission Case Participation (Meta Object)
ET_INVESTIGATION = "Commission Case Participant (Meta Object)
ET_RELATIONS = "Participant Relations (Meta Object)
ET_ACTIVITY = "Commission Activities (Meta Object)
ET_OBJECTDATA = "Commission Object Data (Meta Object)
ET_LINES = "Alternative Commission (Meta Object)
ET_BUNDLE = "Rebundling Order for Triggering Subobjects (Meta)
EXCEPTIONS
NO_CASE_FOUND = 1
IMPORTING Parameters details for CACS00_CASE_READ_BY_INV
IT_ORG_R -
Data type: CACS_TT_OBJID_O_RANGEOptional: No
Call by Reference: Yes
IFLG_CONSISTENT_ONLY - Boolean Variables (X=true, space=false)
Data type: BOOLEAN_FLGDefault: SPACE
Optional: No
Call by Reference: Yes
IFLG_FAILED_ONLY - Boolean Variables (X=true, space=false)
Data type: BOOLEAN_FLGDefault: SPACE
Optional: No
Call by Reference: Yes
IFLG_COMPLETED_ONLY - Boolean Variables (X=true, space=false)
Data type: BOOLEAN_FLGDefault: SPACE
Optional: No
Call by Reference: Yes
IFLG_PENDING_ONLY - Boolean Variables (X=true, space=false)
Data type: BOOLEAN_FLGDefault: SPACE
Optional: No
Call by Reference: Yes
IT_IMPORT_YEAR_R -
Data type: CACS_TT_IMPYEAR_RANGEOptional: No
Call by Reference: Yes
IT_CTRTBU_ID_R - Table Type of Range for CACS_CTRTBU_ID
Data type: CACS_TT_CTRTBU_ID_RGOptional: No
Call by Reference: Yes
IT_BUSOBJ_ID_R - Business Object ID Selection Option
Data type: CACS_T_RANGE_BUSOBJ_IDOptional: No
Call by Reference: Yes
IT_BUSOBJ_TYP_R -
Data type: CACS_TT_BUSOBJTYP_RANGEOptional: No
Call by Reference: Yes
IT_ROLE_R - Due Date
Data type: CACS_T_RANGE_DUE_ROLEOptional: No
Call by Reference: Yes
IFLG_VALID - Boolean Variables (X=true, space=false)
Data type: BOOLEAN_FLGDefault: 'X'
Optional: No
Call by Reference: Yes
IFLG_INVALID - Boolean Variables (X=true, space=false)
Data type: BOOLEAN_FLGDefault: SPACE
Optional: No
Call by Reference: Yes
IFLG_ACTIVE_ONLY - Boolean Variables (X=true, space=false)
Data type: BOOLEAN_FLGDefault: SPACE
Optional: No
Call by Reference: Yes
TABLES Parameters details for CACS00_CASE_READ_BY_INV
ET_CASE - Commission Case (Meta Object)
Data type: CACS00_CASOptional: No
Call by Reference: No ( called with pass by value option)
ET_PARTICIPATION - Commission Case Participation (Meta Object)
Data type: CACS00_PAROptional: No
Call by Reference: No ( called with pass by value option)
ET_INVESTIGATION - Commission Case Participant (Meta Object)
Data type: CACS00_INVOptional: No
Call by Reference: No ( called with pass by value option)
ET_RELATIONS - Participant Relations (Meta Object)
Data type: CACS00_RELOptional: No
Call by Reference: No ( called with pass by value option)
ET_ACTIVITY - Commission Activities (Meta Object)
Data type: CACS00_ACTOptional: No
Call by Reference: No ( called with pass by value option)
ET_OBJECTDATA - Commission Object Data (Meta Object)
Data type: CACS00_OBJOptional: No
Call by Reference: No ( called with pass by value option)
ET_LINES - Alternative Commission (Meta Object)
Data type: CACS00_LINOptional: No
Call by Reference: No ( called with pass by value option)
ET_BUNDLE - Rebundling Order for Triggering Subobjects (Meta)
Data type: CACS00_BDLOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_CASE_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CACS00_CASE_READ_BY_INV 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_et_case | TYPE STANDARD TABLE OF CACS00_CAS, " | |||
| lv_it_org_r | TYPE CACS_TT_OBJID_O_RANGE, " | |||
| lv_no_case_found | TYPE CACS_TT_OBJID_O_RANGE, " | |||
| lv_iflg_consistent_only | TYPE BOOLEAN_FLG, " SPACE | |||
| lv_iflg_failed_only | TYPE BOOLEAN_FLG, " SPACE | |||
| lv_iflg_completed_only | TYPE BOOLEAN_FLG, " SPACE | |||
| lv_iflg_pending_only | TYPE BOOLEAN_FLG, " SPACE | |||
| lt_et_participation | TYPE STANDARD TABLE OF CACS00_PAR, " | |||
| lv_it_import_year_r | TYPE CACS_TT_IMPYEAR_RANGE, " | |||
| lv_it_ctrtbu_id_r | TYPE CACS_TT_CTRTBU_ID_RG, " | |||
| lt_et_investigation | TYPE STANDARD TABLE OF CACS00_INV, " | |||
| lt_et_relations | TYPE STANDARD TABLE OF CACS00_REL, " | |||
| lv_it_busobj_id_r | TYPE CACS_T_RANGE_BUSOBJ_ID, " | |||
| lt_et_activity | TYPE STANDARD TABLE OF CACS00_ACT, " | |||
| lv_it_busobj_typ_r | TYPE CACS_TT_BUSOBJTYP_RANGE, " | |||
| lv_it_role_r | TYPE CACS_T_RANGE_DUE_ROLE, " | |||
| lt_et_objectdata | TYPE STANDARD TABLE OF CACS00_OBJ, " | |||
| lt_et_lines | TYPE STANDARD TABLE OF CACS00_LIN, " | |||
| lv_iflg_valid | TYPE BOOLEAN_FLG, " 'X' | |||
| lt_et_bundle | TYPE STANDARD TABLE OF CACS00_BDL, " | |||
| lv_iflg_invalid | TYPE BOOLEAN_FLG, " SPACE | |||
| lv_iflg_active_only | TYPE BOOLEAN_FLG. " SPACE |
|   CALL FUNCTION 'CACS00_CASE_READ_BY_INV' "NOTRANSL: Get case list and details filtered on participation details |
| EXPORTING | ||
| IT_ORG_R | = lv_it_org_r | |
| IFLG_CONSISTENT_ONLY | = lv_iflg_consistent_only | |
| IFLG_FAILED_ONLY | = lv_iflg_failed_only | |
| IFLG_COMPLETED_ONLY | = lv_iflg_completed_only | |
| IFLG_PENDING_ONLY | = lv_iflg_pending_only | |
| IT_IMPORT_YEAR_R | = lv_it_import_year_r | |
| IT_CTRTBU_ID_R | = lv_it_ctrtbu_id_r | |
| IT_BUSOBJ_ID_R | = lv_it_busobj_id_r | |
| IT_BUSOBJ_TYP_R | = lv_it_busobj_typ_r | |
| IT_ROLE_R | = lv_it_role_r | |
| IFLG_VALID | = lv_iflg_valid | |
| IFLG_INVALID | = lv_iflg_invalid | |
| IFLG_ACTIVE_ONLY | = lv_iflg_active_only | |
| TABLES | ||
| ET_CASE | = lt_et_case | |
| ET_PARTICIPATION | = lt_et_participation | |
| ET_INVESTIGATION | = lt_et_investigation | |
| ET_RELATIONS | = lt_et_relations | |
| ET_ACTIVITY | = lt_et_activity | |
| ET_OBJECTDATA | = lt_et_objectdata | |
| ET_LINES | = lt_et_lines | |
| ET_BUNDLE | = lt_et_bundle | |
| EXCEPTIONS | ||
| NO_CASE_FOUND = 1 | ||
| . " CACS00_CASE_READ_BY_INV | ||
ABAP code using 7.40 inline data declarations to call FM CACS00_CASE_READ_BY_INV
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.| DATA(ld_iflg_consistent_only) | = ' '. | |||
| DATA(ld_iflg_failed_only) | = ' '. | |||
| DATA(ld_iflg_completed_only) | = ' '. | |||
| DATA(ld_iflg_pending_only) | = ' '. | |||
| DATA(ld_iflg_valid) | = 'X'. | |||
| DATA(ld_iflg_invalid) | = ' '. | |||
| DATA(ld_iflg_active_only) | = ' '. | |||
Search for further information about these or an SAP related objects