SAP Function Modules

CACS00_OBJHIST_CHECK SAP Function module







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

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


Pattern for FM CACS00_OBJHIST_CHECK - CACS00 OBJHIST CHECK





CALL FUNCTION 'CACS00_OBJHIST_CHECK' "
  EXPORTING
    i_case =                    " cacs00_s_casm
*   i_tri_meth_typ =            " cacstrimethtyp
* TABLES
*   c_objhist_chg =             " cacs00_objhist
*   c_objhist_new =             " cacs00_objhist
  CHANGING
    c_objectdata =              " cacs00_s_objm
    .  "  CACS00_OBJHIST_CHECK

ABAP code example for Function Module CACS00_OBJHIST_CHECK





The ABAP code below is a full code listing to execute function module CACS00_OBJHIST_CHECK 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_c_objhist_chg  TYPE STANDARD TABLE OF CACS00_OBJHIST,"TABLES PARAM
wa_c_objhist_chg  LIKE LINE OF it_c_objhist_chg ,
it_c_objhist_new  TYPE STANDARD TABLE OF CACS00_OBJHIST,"TABLES PARAM
wa_c_objhist_new  LIKE LINE OF it_c_objhist_new .

DATA(ld_c_objectdata) = 'Check type of data required'.
DATA(ld_i_case) = 'Check type of data required'.
DATA(ld_i_tri_meth_typ) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_c_objhist_chg to it_c_objhist_chg.

"populate fields of struture and append to itab
append wa_c_objhist_new to it_c_objhist_new. . CALL FUNCTION 'CACS00_OBJHIST_CHECK' EXPORTING i_case = ld_i_case * i_tri_meth_typ = ld_i_tri_meth_typ * TABLES * c_objhist_chg = it_c_objhist_chg * c_objhist_new = it_c_objhist_new CHANGING c_objectdata = ld_c_objectdata . " CACS00_OBJHIST_CHECK
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_c_objectdata  TYPE CACS00_S_OBJM ,
ld_i_case  TYPE CACS00_S_CASM ,
it_c_objhist_chg  TYPE STANDARD TABLE OF CACS00_OBJHIST ,
wa_c_objhist_chg  LIKE LINE OF it_c_objhist_chg,
ld_i_tri_meth_typ  TYPE CACSTRIMETHTYP ,
it_c_objhist_new  TYPE STANDARD TABLE OF CACS00_OBJHIST ,
wa_c_objhist_new  LIKE LINE OF it_c_objhist_new.

ld_c_objectdata = 'Check type of data required'.
ld_i_case = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_c_objhist_chg to it_c_objhist_chg.
ld_i_tri_meth_typ = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_c_objhist_new to it_c_objhist_new.

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