SAP CACS00_CASE_READ Function Module for NOTRANSL: Provisionsfall von DB lesen (über interne ID)









CACS00_CASE_READ is a standard cacs00 case read 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: Provisionsfall von DB lesen (über interne ID) 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 FM, simply by entering the name CACS00_CASE_READ 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: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CACS00_CASE_READ 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'"NOTRANSL: Provisionsfall von DB lesen (über interne ID)
EXPORTING
I_IMPORT_YEAR = "
* IFLG_PENDING_ONLY = ' ' "Boolean Variables (X=true, space=false)
* IB_ACTION = "BDT activity
* IFLG_ARCHIVE = "
I_CASE_ID = "
* I_VERSION = ' ' "
* IFLG_VALID = 'X' "
* IFLG_INVALID = ' ' "
* IFLG_ACTIVE_ONLY = ' ' "
* 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)

TABLES
* I_STATUS = "
E_CASE = "Commission Case

EXCEPTIONS
NO_CASE_FOUND = 1
.



IMPORTING Parameters details for CACS00_CASE_READ

I_IMPORT_YEAR -

Data type: CACSIMPYEAR
Optional: No
Call by Reference: No ( called with pass by value option)

IFLG_PENDING_ONLY - Boolean Variables (X=true, space=false)

Data type: BOOLEAN_FLG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IB_ACTION - BDT activity

Data type: TBZ0M-ACTION
Optional: Yes
Call by Reference: No ( called with pass by value option)

IFLG_ARCHIVE -

Data type: BOOLEAN_FLG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CASE_ID -

Data type: CACSCASEID
Optional: No
Call by Reference: No ( called with pass by value option)

I_VERSION -

Data type: CACSCASEVERS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IFLG_VALID -

Data type: BOOLEAN_FLG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IFLG_INVALID -

Data type: BOOLEAN_FLG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IFLG_ACTIVE_ONLY -

Data type: BOOLEAN_FLG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IFLG_CONSISTENT_ONLY - Boolean Variables (X=true, space=false)

Data type: BOOLEAN_FLG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IFLG_FAILED_ONLY - Boolean Variables (X=true, space=false)

Data type: BOOLEAN_FLG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IFLG_COMPLETED_ONLY - Boolean Variables (X=true, space=false)

Data type: BOOLEAN_FLG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for CACS00_CASE_READ

I_STATUS -

Data type: CACS_S_STATUS
Optional: Yes
Call by Reference: No ( called with pass by value option)

E_CASE - Commission Case

Data type: CACS00_CAS
Optional: 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 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_i_status  TYPE STANDARD TABLE OF CACS_S_STATUS, "   
lv_i_import_year  TYPE CACSIMPYEAR, "   
lv_no_case_found  TYPE CACSIMPYEAR, "   
lv_iflg_pending_only  TYPE BOOLEAN_FLG, "   SPACE
lv_ib_action  TYPE TBZ0M-ACTION, "   
lv_iflg_archive  TYPE BOOLEAN_FLG, "   
lt_e_case  TYPE STANDARD TABLE OF CACS00_CAS, "   
lv_i_case_id  TYPE CACSCASEID, "   
lv_i_version  TYPE CACSCASEVERS, "   SPACE
lv_iflg_valid  TYPE BOOLEAN_FLG, "   'X'
lv_iflg_invalid  TYPE BOOLEAN_FLG, "   SPACE
lv_iflg_active_only  TYPE BOOLEAN_FLG, "   SPACE
lv_iflg_consistent_only  TYPE BOOLEAN_FLG, "   SPACE
lv_iflg_failed_only  TYPE BOOLEAN_FLG, "   SPACE
lv_iflg_completed_only  TYPE BOOLEAN_FLG. "   SPACE

  CALL FUNCTION 'CACS00_CASE_READ'  "NOTRANSL: Provisionsfall von DB lesen (über interne ID)
    EXPORTING
         I_IMPORT_YEAR = lv_i_import_year
         IFLG_PENDING_ONLY = lv_iflg_pending_only
         IB_ACTION = lv_ib_action
         IFLG_ARCHIVE = lv_iflg_archive
         I_CASE_ID = lv_i_case_id
         I_VERSION = lv_i_version
         IFLG_VALID = lv_iflg_valid
         IFLG_INVALID = lv_iflg_invalid
         IFLG_ACTIVE_ONLY = lv_iflg_active_only
         IFLG_CONSISTENT_ONLY = lv_iflg_consistent_only
         IFLG_FAILED_ONLY = lv_iflg_failed_only
         IFLG_COMPLETED_ONLY = lv_iflg_completed_only
    TABLES
         I_STATUS = lt_i_status
         E_CASE = lt_e_case
    EXCEPTIONS
        NO_CASE_FOUND = 1
. " CACS00_CASE_READ




ABAP code using 7.40 inline data declarations to call FM CACS00_CASE_READ

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_pending_only) = ' '.
 
"SELECT single ACTION FROM TBZ0M INTO @DATA(ld_ib_action).
 
 
 
 
DATA(ld_i_version) = ' '.
 
DATA(ld_iflg_valid) = 'X'.
 
DATA(ld_iflg_invalid) = ' '.
 
DATA(ld_iflg_active_only) = ' '.
 
DATA(ld_iflg_consistent_only) = ' '.
 
DATA(ld_iflg_failed_only) = ' '.
 
DATA(ld_iflg_completed_only) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!