SAP Function Modules

CACS25_GET_DOCS_BY_BUSOBJ SAP Function module







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

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


Pattern for FM CACS25_GET_DOCS_BY_BUSOBJ - CACS25 GET DOCS BY BUSOBJ





CALL FUNCTION 'CACS25_GET_DOCS_BY_BUSOBJ' "
  EXPORTING
*   iv_post_year =              " cacspstyear   Assignment Year of Commission Case/Document
*   iv_doc_id =                 " cacsdocid     Document Identification
    it_busobj_type =            " cacs_t_range_busobj_type  Business Object Category
    it_busobj_id =              " cacs_t_range_busobj_id  Business Object ID
*   it_busobj_vers =            " cacs_t_range_busobj_vers  Business Object Version
*   it_busobj_versdate =        " cacs_t_range_busobj_versdate  Start Date of Business Object Version
*   it_ctrtbu_id =              " cacs_t_range_ctrtbu_id  Number of Commission Contract
*   it_remuneration =           " cacs_t_range_remuneration  Remuneration Type
  EXCEPTIONS
    NO_DOCS_FOUND = 1           "
    NO_AUTHORITY = 2            "
    .  "  CACS25_GET_DOCS_BY_BUSOBJ

ABAP code example for Function Module CACS25_GET_DOCS_BY_BUSOBJ





The ABAP code below is a full code listing to execute function module CACS25_GET_DOCS_BY_BUSOBJ 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(ld_iv_post_year) = 'Check type of data required'.
DATA(ld_iv_doc_id) = 'Check type of data required'.
DATA(ld_it_busobj_type) = 'Check type of data required'.
DATA(ld_it_busobj_id) = 'Check type of data required'.
DATA(ld_it_busobj_vers) = 'Check type of data required'.
DATA(ld_it_busobj_versdate) = 'Check type of data required'.
DATA(ld_it_ctrtbu_id) = 'Check type of data required'.
DATA(ld_it_remuneration) = 'Check type of data required'. . CALL FUNCTION 'CACS25_GET_DOCS_BY_BUSOBJ' EXPORTING * iv_post_year = ld_iv_post_year * iv_doc_id = ld_iv_doc_id it_busobj_type = ld_it_busobj_type it_busobj_id = ld_it_busobj_id * it_busobj_vers = ld_it_busobj_vers * it_busobj_versdate = ld_it_busobj_versdate * it_ctrtbu_id = ld_it_ctrtbu_id * it_remuneration = ld_it_remuneration EXCEPTIONS NO_DOCS_FOUND = 1 NO_AUTHORITY = 2 . " CACS25_GET_DOCS_BY_BUSOBJ
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "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_iv_post_year  TYPE CACSPSTYEAR ,
ld_iv_doc_id  TYPE CACSDOCID ,
ld_it_busobj_type  TYPE CACS_T_RANGE_BUSOBJ_TYPE ,
ld_it_busobj_id  TYPE CACS_T_RANGE_BUSOBJ_ID ,
ld_it_busobj_vers  TYPE CACS_T_RANGE_BUSOBJ_VERS ,
ld_it_busobj_versdate  TYPE CACS_T_RANGE_BUSOBJ_VERSDATE ,
ld_it_ctrtbu_id  TYPE CACS_T_RANGE_CTRTBU_ID ,
ld_it_remuneration  TYPE CACS_T_RANGE_REMUNERATION .

ld_iv_post_year = 'Check type of data required'.
ld_iv_doc_id = 'Check type of data required'.
ld_it_busobj_type = 'Check type of data required'.
ld_it_busobj_id = 'Check type of data required'.
ld_it_busobj_vers = 'Check type of data required'.
ld_it_busobj_versdate = 'Check type of data required'.
ld_it_ctrtbu_id = 'Check type of data required'.
ld_it_remuneration = '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 CACS25_GET_DOCS_BY_BUSOBJ or its description.