SAP Function Modules

CACS00_CASE_READ_BY_OBJ SAP Function module







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

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


Pattern for FM CACS00_CASE_READ_BY_OBJ - CACS00 CASE READ BY OBJ





CALL FUNCTION 'CACS00_CASE_READ_BY_OBJ' "
  EXPORTING
    it_triobj_r =               " cacs_t_range_cacstriobj  Subobject ID Selection Option
    it_triobjid_r =             " cacs_t_range_cacstriobjid  Document ID Selection Option
    it_triobjidext_r =          " cacs_tt_triobjidext_range
    it_import_year_r =          " cacs_tt_impyear_range
    iflg_valid = 'X'            " boolean_flg   Boolean Variables (X=true, space=false)
    iflg_invalid = SPACE        " boolean_flg   Boolean Variables (X=true, space=false)
    iflg_active_only = SPACE    " boolean_flg   Boolean Variables (X=true, space=false)
    iflg_consistent_only = SPACE  " boolean_flg  Boolean Variables (X=true, space=false)
    iflg_failed_only = SPACE    " boolean_flg   Boolean Variables (X=true, space=false)
    iflg_completed_only = SPACE  " boolean_flg  Boolean Variables (X=true, space=false)
    iflg_pending_only = SPACE   " boolean_flg   Boolean Variables (X=true, space=false)
  TABLES
    et_case =                   " cacs00_cas    Commission Case (Meta Object)
    et_participation =          " cacs00_par    Commission Case Participation (Meta Object)
    et_investigation =          " cacs00_inv    Commission Case Participant (Meta Object)
    et_relations =              " cacs00_rel    Participant Relations (Meta Object)
    et_activity =               " cacs00_act    Commission Activities (Meta Object)
    et_objectdata =             " cacs00_obj    Commission Object Data (Meta Object)
    et_lines =                  " cacs00_lin    Alternative Commission (Meta Object)
    et_bundle =                 " cacs00_bdl    Rebundling Order for Triggering Subobjects (Meta)
  EXCEPTIONS
    NO_CASE_FOUND = 1           "
    .  "  CACS00_CASE_READ_BY_OBJ

ABAP code example for Function Module CACS00_CASE_READ_BY_OBJ





The ABAP code below is a full code listing to execute function module CACS00_CASE_READ_BY_OBJ 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_et_case  TYPE STANDARD TABLE OF CACS00_CAS,"TABLES PARAM
wa_et_case  LIKE LINE OF it_et_case ,
it_et_participation  TYPE STANDARD TABLE OF CACS00_PAR,"TABLES PARAM
wa_et_participation  LIKE LINE OF it_et_participation ,
it_et_investigation  TYPE STANDARD TABLE OF CACS00_INV,"TABLES PARAM
wa_et_investigation  LIKE LINE OF it_et_investigation ,
it_et_relations  TYPE STANDARD TABLE OF CACS00_REL,"TABLES PARAM
wa_et_relations  LIKE LINE OF it_et_relations ,
it_et_activity  TYPE STANDARD TABLE OF CACS00_ACT,"TABLES PARAM
wa_et_activity  LIKE LINE OF it_et_activity ,
it_et_objectdata  TYPE STANDARD TABLE OF CACS00_OBJ,"TABLES PARAM
wa_et_objectdata  LIKE LINE OF it_et_objectdata ,
it_et_lines  TYPE STANDARD TABLE OF CACS00_LIN,"TABLES PARAM
wa_et_lines  LIKE LINE OF it_et_lines ,
it_et_bundle  TYPE STANDARD TABLE OF CACS00_BDL,"TABLES PARAM
wa_et_bundle  LIKE LINE OF it_et_bundle .

DATA(ld_it_triobj_r) = 'Check type of data required'.
DATA(ld_it_triobjid_r) = 'Check type of data required'.
DATA(ld_it_triobjidext_r) = 'Check type of data required'.
DATA(ld_it_import_year_r) = 'Check type of data required'.
DATA(ld_iflg_valid) = 'Check type of data required'.
DATA(ld_iflg_invalid) = 'Check type of data required'.
DATA(ld_iflg_active_only) = 'Check type of data required'.
DATA(ld_iflg_consistent_only) = 'Check type of data required'.
DATA(ld_iflg_failed_only) = 'Check type of data required'.
DATA(ld_iflg_completed_only) = 'Check type of data required'.
DATA(ld_iflg_pending_only) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_case to it_et_case.

"populate fields of struture and append to itab
append wa_et_participation to it_et_participation.

"populate fields of struture and append to itab
append wa_et_investigation to it_et_investigation.

"populate fields of struture and append to itab
append wa_et_relations to it_et_relations.

"populate fields of struture and append to itab
append wa_et_activity to it_et_activity.

"populate fields of struture and append to itab
append wa_et_objectdata to it_et_objectdata.

"populate fields of struture and append to itab
append wa_et_lines to it_et_lines.

"populate fields of struture and append to itab
append wa_et_bundle to it_et_bundle. . CALL FUNCTION 'CACS00_CASE_READ_BY_OBJ' EXPORTING it_triobj_r = ld_it_triobj_r it_triobjid_r = ld_it_triobjid_r it_triobjidext_r = ld_it_triobjidext_r it_import_year_r = ld_it_import_year_r iflg_valid = ld_iflg_valid iflg_invalid = ld_iflg_invalid iflg_active_only = ld_iflg_active_only iflg_consistent_only = ld_iflg_consistent_only iflg_failed_only = ld_iflg_failed_only iflg_completed_only = ld_iflg_completed_only iflg_pending_only = ld_iflg_pending_only TABLES et_case = it_et_case et_participation = it_et_participation et_investigation = it_et_investigation et_relations = it_et_relations et_activity = it_et_activity et_objectdata = it_et_objectdata et_lines = it_et_lines et_bundle = it_et_bundle EXCEPTIONS NO_CASE_FOUND = 1 . " CACS00_CASE_READ_BY_OBJ
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_it_triobj_r  TYPE CACS_T_RANGE_CACSTRIOBJ ,
it_et_case  TYPE STANDARD TABLE OF CACS00_CAS ,
wa_et_case  LIKE LINE OF it_et_case,
ld_it_triobjid_r  TYPE CACS_T_RANGE_CACSTRIOBJID ,
it_et_participation  TYPE STANDARD TABLE OF CACS00_PAR ,
wa_et_participation  LIKE LINE OF it_et_participation,
ld_it_triobjidext_r  TYPE CACS_TT_TRIOBJIDEXT_RANGE ,
it_et_investigation  TYPE STANDARD TABLE OF CACS00_INV ,
wa_et_investigation  LIKE LINE OF it_et_investigation,
ld_it_import_year_r  TYPE CACS_TT_IMPYEAR_RANGE ,
it_et_relations  TYPE STANDARD TABLE OF CACS00_REL ,
wa_et_relations  LIKE LINE OF it_et_relations,
ld_iflg_valid  TYPE BOOLEAN_FLG ,
it_et_activity  TYPE STANDARD TABLE OF CACS00_ACT ,
wa_et_activity  LIKE LINE OF it_et_activity,
ld_iflg_invalid  TYPE BOOLEAN_FLG ,
it_et_objectdata  TYPE STANDARD TABLE OF CACS00_OBJ ,
wa_et_objectdata  LIKE LINE OF it_et_objectdata,
ld_iflg_active_only  TYPE BOOLEAN_FLG ,
it_et_lines  TYPE STANDARD TABLE OF CACS00_LIN ,
wa_et_lines  LIKE LINE OF it_et_lines,
ld_iflg_consistent_only  TYPE BOOLEAN_FLG ,
it_et_bundle  TYPE STANDARD TABLE OF CACS00_BDL ,
wa_et_bundle  LIKE LINE OF it_et_bundle,
ld_iflg_failed_only  TYPE BOOLEAN_FLG ,
ld_iflg_completed_only  TYPE BOOLEAN_FLG ,
ld_iflg_pending_only  TYPE BOOLEAN_FLG .

ld_it_triobj_r = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_case to it_et_case.
ld_it_triobjid_r = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_participation to it_et_participation.
ld_it_triobjidext_r = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_investigation to it_et_investigation.
ld_it_import_year_r = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_relations to it_et_relations.
ld_iflg_valid = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_activity to it_et_activity.
ld_iflg_invalid = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_objectdata to it_et_objectdata.
ld_iflg_active_only = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_lines to it_et_lines.
ld_iflg_consistent_only = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_bundle to it_et_bundle.
ld_iflg_failed_only = 'Check type of data required'.
ld_iflg_completed_only = 'Check type of data required'.
ld_iflg_pending_only = '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_CASE_READ_BY_OBJ or its description.