SAP CACS_BUFFERLOG_OVERVIEW Function Module for Comm: Read Expired Messages from LogFile









CACS_BUFFERLOG_OVERVIEW is a standard cacs bufferlog overview SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Comm: Read Expired Messages from LogFile 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 cacs bufferlog overview FM, simply by entering the name CACS_BUFFERLOG_OVERVIEW into the relevant SAP transaction such as SE37 or SE38.

Function Group: CACS_BUFFERLOG
Program Name: SAPLCACS_BUFFERLOG
Main Program: SAPLCACS_BUFFERLOG
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CACS_BUFFERLOG_OVERVIEW 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 'CACS_BUFFERLOG_OVERVIEW'"Comm: Read Expired Messages from LogFile
EXPORTING
I_APPLICATION = "Commission Application
* I_FILTER = 'XAEWIS' "Message filters
I_MLIN = "Maximum Number of Selected Entries

TABLES
I_SEL_BUFFER_OBJTYPE = "Object Type in a Pending Commission Case (e.g. 01 For Commission Case)
* I_SEL_CREATE_YEAR = "Year of Commission Case Message
* I_SEL_BUFFER_ID = "Commission Case ID in I_IMPORT_YEAR
* I_SEL_TIMESTAMP = "Time Range
I_SEL_VERSION = "
C_BUFFER_STAT = "Message Summarization from Buffer Log
* C_BUFFERLOG = "Messages from Buffer Log

EXCEPTIONS
NO_BUFFER_ENTRY = 1 UNKNOWN_MESSAGETYPE_IN_LOG = 2
.



IMPORTING Parameters details for CACS_BUFFERLOG_OVERVIEW

I_APPLICATION - Commission Application

Data type: CACS_BUFFLOG-APPL
Optional: No
Call by Reference: No ( called with pass by value option)

I_FILTER - Message filters

Data type: CACSMSGFILTER
Default: 'XAEWIS'
Optional: No
Call by Reference: No ( called with pass by value option)

I_MLIN - Maximum Number of Selected Entries

Data type: TBMAXSEL
Optional: No
Call by Reference: Yes

TABLES Parameters details for CACS_BUFFERLOG_OVERVIEW

I_SEL_BUFFER_OBJTYPE - Object Type in a Pending Commission Case (e.g. 01 For Commission Case)

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

I_SEL_CREATE_YEAR - Year of Commission Case Message

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

I_SEL_BUFFER_ID - Commission Case ID in I_IMPORT_YEAR

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

I_SEL_TIMESTAMP - Time Range

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

I_SEL_VERSION -

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

C_BUFFER_STAT - Message Summarization from Buffer Log

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

C_BUFFERLOG - Messages from Buffer Log

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

EXCEPTIONS details

NO_BUFFER_ENTRY - No Suspense Entries Found

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

UNKNOWN_MESSAGETYPE_IN_LOG - Unknown Message Type in Commission Log

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

Copy and paste ABAP code example for CACS_BUFFERLOG_OVERVIEW 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:
lv_i_application  TYPE CACS_BUFFLOG-APPL, "   
lv_no_buffer_entry  TYPE CACS_BUFFLOG, "   
lt_i_sel_buffer_objtype  TYPE STANDARD TABLE OF CACSBUFOBJTYPE_RG, "   
lv_i_filter  TYPE CACSMSGFILTER, "   'XAEWIS'
lt_i_sel_create_year  TYPE STANDARD TABLE OF CACSIMPYEAR_RG, "   
lv_unknown_messagetype_in_log  TYPE CACSIMPYEAR_RG, "   
lv_i_mlin  TYPE TBMAXSEL, "   
lt_i_sel_buffer_id  TYPE STANDARD TABLE OF CACSBUFID_RG, "   
lt_i_sel_timestamp  TYPE STANDARD TABLE OF CACSTIMESTAMP_RG, "   
lt_i_sel_version  TYPE STANDARD TABLE OF CACSVERSION_RG, "   
lt_c_buffer_stat  TYPE STANDARD TABLE OF CACS_S_BUFFER_STAT, "   
lt_c_bufferlog  TYPE STANDARD TABLE OF CACS_BUFFLOG. "   

  CALL FUNCTION 'CACS_BUFFERLOG_OVERVIEW'  "Comm: Read Expired Messages from LogFile
    EXPORTING
         I_APPLICATION = lv_i_application
         I_FILTER = lv_i_filter
         I_MLIN = lv_i_mlin
    TABLES
         I_SEL_BUFFER_OBJTYPE = lt_i_sel_buffer_objtype
         I_SEL_CREATE_YEAR = lt_i_sel_create_year
         I_SEL_BUFFER_ID = lt_i_sel_buffer_id
         I_SEL_TIMESTAMP = lt_i_sel_timestamp
         I_SEL_VERSION = lt_i_sel_version
         C_BUFFER_STAT = lt_c_buffer_stat
         C_BUFFERLOG = lt_c_bufferlog
    EXCEPTIONS
        NO_BUFFER_ENTRY = 1
        UNKNOWN_MESSAGETYPE_IN_LOG = 2
. " CACS_BUFFERLOG_OVERVIEW




ABAP code using 7.40 inline data declarations to call FM CACS_BUFFERLOG_OVERVIEW

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.

"SELECT single APPL FROM CACS_BUFFLOG INTO @DATA(ld_i_application).
 
 
 
DATA(ld_i_filter) = 'XAEWIS'.
 
 
 
 
 
 
 
 
 


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!