SAP CATT_ANALYSEB2 Function Module for









CATT_ANALYSEB2 is a standard catt analyseb2 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 catt analyseb2 FM, simply by entering the name CATT_ANALYSEB2 into the relevant SAP transaction such as SE37 or SE38.

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



Function CATT_ANALYSEB2 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 'CATT_ANALYSEB2'"
EXPORTING
PERNUM = "
DATUM = "
* FIRSTCALL = 1 "
* INDEX = 1 "
* FILLED_ONLY = 'X' "
* PC_EXPORT = 'X' "

IMPORTING
CLTAB_NAME = "
CLTAB_LINES = "
CLTAB_BYTELEN = "
PCL2LEN = "
CLUSTLEN = "
CLTABANZ = "

EXCEPTIONS
NO_ENTRY = 1 NO_B2DATA = 2 DOWNLOAD_ERROR = 3
.



IMPORTING Parameters details for CATT_ANALYSEB2

PERNUM -

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

DATUM -

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

FIRSTCALL -

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

INDEX -

Data type: SY-INDEX
Default: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)

FILLED_ONLY -

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

PC_EXPORT -

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

EXPORTING Parameters details for CATT_ANALYSEB2

CLTAB_NAME -

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

CLTAB_LINES -

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

CLTAB_BYTELEN -

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

PCL2LEN -

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

CLUSTLEN -

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

CLTABANZ -

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

EXCEPTIONS details

NO_ENTRY -

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

NO_B2DATA -

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

DOWNLOAD_ERROR -

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

Copy and paste ABAP code example for CATT_ANALYSEB2 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_pernum  TYPE PC2B0-PERNR, "   
lv_no_entry  TYPE PC2B0, "   
lv_cltab_name  TYPE DNTAB-TABNAME, "   
lv_datum  TYPE SY-DATUM, "   
lv_no_b2data  TYPE SY, "   
lv_cltab_lines  TYPE SY-INDEX, "   
lv_firstcall  TYPE SY, "   1
lv_cltab_bytelen  TYPE PCL2-CLUSTR, "   
lv_download_error  TYPE PCL2, "   
lv_index  TYPE SY-INDEX, "   1
lv_pcl2len  TYPE PCL2-CLUSTR, "   
lv_clustlen  TYPE SY-INDEX, "   
lv_filled_only  TYPE C, "   'X'
lv_cltabanz  TYPE SY-INDEX, "   
lv_pc_export  TYPE C. "   'X'

  CALL FUNCTION 'CATT_ANALYSEB2'  "
    EXPORTING
         PERNUM = lv_pernum
         DATUM = lv_datum
         FIRSTCALL = lv_firstcall
         INDEX = lv_index
         FILLED_ONLY = lv_filled_only
         PC_EXPORT = lv_pc_export
    IMPORTING
         CLTAB_NAME = lv_cltab_name
         CLTAB_LINES = lv_cltab_lines
         CLTAB_BYTELEN = lv_cltab_bytelen
         PCL2LEN = lv_pcl2len
         CLUSTLEN = lv_clustlen
         CLTABANZ = lv_cltabanz
    EXCEPTIONS
        NO_ENTRY = 1
        NO_B2DATA = 2
        DOWNLOAD_ERROR = 3
. " CATT_ANALYSEB2




ABAP code using 7.40 inline data declarations to call FM CATT_ANALYSEB2

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 PERNR FROM PC2B0 INTO @DATA(ld_pernum).
 
 
"SELECT single TABNAME FROM DNTAB INTO @DATA(ld_cltab_name).
 
"SELECT single DATUM FROM SY INTO @DATA(ld_datum).
 
 
"SELECT single INDEX FROM SY INTO @DATA(ld_cltab_lines).
 
DATA(ld_firstcall) = 1.
 
"SELECT single CLUSTR FROM PCL2 INTO @DATA(ld_cltab_bytelen).
 
 
"SELECT single INDEX FROM SY INTO @DATA(ld_index).
DATA(ld_index) = 1.
 
"SELECT single CLUSTR FROM PCL2 INTO @DATA(ld_pcl2len).
 
"SELECT single INDEX FROM SY INTO @DATA(ld_clustlen).
 
DATA(ld_filled_only) = 'X'.
 
"SELECT single INDEX FROM SY INTO @DATA(ld_cltabanz).
 
DATA(ld_pc_export) = 'X'.
 


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!