SAP Function Modules

CACS00_CASE_ENRICH_SUBOBJECTS SAP Function module







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

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


Pattern for FM CACS00_CASE_ENRICH_SUBOBJECTS - CACS00 CASE ENRICH SUBOBJECTS





CALL FUNCTION 'CACS00_CASE_ENRICH_SUBOBJECTS' "
  EXPORTING
    is_meta_cas =               " cacs00_s_casm  Commission Case (Meta Object)
  TABLES
    ct_meta_obj =               " cacs00_s_objm  Commission Object Data (Meta Object)
    it_meta_par =               " cacs00_s_parm  Commission Case Participation (Meta Object)
    it_meta_inv =               " cacs00_s_invm  Commission Case Participant (Meta Object)
    it_meta_rel =               " cacs00_s_relm  Participant Relations (Meta Object)
    it_meta_act =               " cacs00_s_actm  Commission Activities (Meta Object)
    it_meta_lin =               " cacs00_s_linm  Alternative Commission (Meta Object)
    it_meta_bdl =               " cacs00_s_bdlm  Rebundling Order for Triggering Subobjects (Meta)
    .  "  CACS00_CASE_ENRICH_SUBOBJECTS

ABAP code example for Function Module CACS00_CASE_ENRICH_SUBOBJECTS





The ABAP code below is a full code listing to execute function module CACS00_CASE_ENRICH_SUBOBJECTS 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_ct_meta_obj  TYPE STANDARD TABLE OF CACS00_S_OBJM,"TABLES PARAM
wa_ct_meta_obj  LIKE LINE OF it_ct_meta_obj ,
it_it_meta_par  TYPE STANDARD TABLE OF CACS00_S_PARM,"TABLES PARAM
wa_it_meta_par  LIKE LINE OF it_it_meta_par ,
it_it_meta_inv  TYPE STANDARD TABLE OF CACS00_S_INVM,"TABLES PARAM
wa_it_meta_inv  LIKE LINE OF it_it_meta_inv ,
it_it_meta_rel  TYPE STANDARD TABLE OF CACS00_S_RELM,"TABLES PARAM
wa_it_meta_rel  LIKE LINE OF it_it_meta_rel ,
it_it_meta_act  TYPE STANDARD TABLE OF CACS00_S_ACTM,"TABLES PARAM
wa_it_meta_act  LIKE LINE OF it_it_meta_act ,
it_it_meta_lin  TYPE STANDARD TABLE OF CACS00_S_LINM,"TABLES PARAM
wa_it_meta_lin  LIKE LINE OF it_it_meta_lin ,
it_it_meta_bdl  TYPE STANDARD TABLE OF CACS00_S_BDLM,"TABLES PARAM
wa_it_meta_bdl  LIKE LINE OF it_it_meta_bdl .

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

"populate fields of struture and append to itab
append wa_ct_meta_obj to it_ct_meta_obj.

"populate fields of struture and append to itab
append wa_it_meta_par to it_it_meta_par.

"populate fields of struture and append to itab
append wa_it_meta_inv to it_it_meta_inv.

"populate fields of struture and append to itab
append wa_it_meta_rel to it_it_meta_rel.

"populate fields of struture and append to itab
append wa_it_meta_act to it_it_meta_act.

"populate fields of struture and append to itab
append wa_it_meta_lin to it_it_meta_lin.

"populate fields of struture and append to itab
append wa_it_meta_bdl to it_it_meta_bdl. . CALL FUNCTION 'CACS00_CASE_ENRICH_SUBOBJECTS' EXPORTING is_meta_cas = ld_is_meta_cas TABLES ct_meta_obj = it_ct_meta_obj it_meta_par = it_it_meta_par it_meta_inv = it_it_meta_inv it_meta_rel = it_it_meta_rel it_meta_act = it_it_meta_act it_meta_lin = it_it_meta_lin it_meta_bdl = it_it_meta_bdl . " CACS00_CASE_ENRICH_SUBOBJECTS
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_is_meta_cas  TYPE CACS00_S_CASM ,
it_ct_meta_obj  TYPE STANDARD TABLE OF CACS00_S_OBJM ,
wa_ct_meta_obj  LIKE LINE OF it_ct_meta_obj,
it_it_meta_par  TYPE STANDARD TABLE OF CACS00_S_PARM ,
wa_it_meta_par  LIKE LINE OF it_it_meta_par,
it_it_meta_inv  TYPE STANDARD TABLE OF CACS00_S_INVM ,
wa_it_meta_inv  LIKE LINE OF it_it_meta_inv,
it_it_meta_rel  TYPE STANDARD TABLE OF CACS00_S_RELM ,
wa_it_meta_rel  LIKE LINE OF it_it_meta_rel,
it_it_meta_act  TYPE STANDARD TABLE OF CACS00_S_ACTM ,
wa_it_meta_act  LIKE LINE OF it_it_meta_act,
it_it_meta_lin  TYPE STANDARD TABLE OF CACS00_S_LINM ,
wa_it_meta_lin  LIKE LINE OF it_it_meta_lin,
it_it_meta_bdl  TYPE STANDARD TABLE OF CACS00_S_BDLM ,
wa_it_meta_bdl  LIKE LINE OF it_it_meta_bdl.

ld_is_meta_cas = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ct_meta_obj to it_ct_meta_obj.

"populate fields of struture and append to itab
append wa_it_meta_par to it_it_meta_par.

"populate fields of struture and append to itab
append wa_it_meta_inv to it_it_meta_inv.

"populate fields of struture and append to itab
append wa_it_meta_rel to it_it_meta_rel.

"populate fields of struture and append to itab
append wa_it_meta_act to it_it_meta_act.

"populate fields of struture and append to itab
append wa_it_meta_lin to it_it_meta_lin.

"populate fields of struture and append to itab
append wa_it_meta_bdl to it_it_meta_bdl.

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_ENRICH_SUBOBJECTS or its description.