SAP SD_CAS_CROSSCHECK Function Module for Function module for cross-check determination sales activity area SD-CAS









SD_CAS_CROSSCHECK is a standard sd cas crosscheck SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Function module for cross-check determination sales activity area SD-CAS 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 sd cas crosscheck FM, simply by entering the name SD_CAS_CROSSCHECK into the relevant SAP transaction such as SE37 or SE38.

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



Function SD_CAS_CROSSCHECK 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 'SD_CAS_CROSSCHECK'"Function module for cross-check determination sales activity area SD-CAS
EXPORTING
* PG_DELETE_MARK = "Indicator whether sales activities that can be deleted should be marked

TABLES
* KTAAR_OPT = "Range for sales activity types
* VBKA_OUTP = "Output table of sales activities
* VBPA_OUTP = "Output table of partners
VKORG_OPT = "Range for sales organization
* VTWEG_OPT = "Range for distribution channel
* VKBUR_OPT = "
* VKGRP_OPT = "
* KTEXT_OPT = "
* ERNAM_OPT = "
* KTAST_OPT = "
* KTABG_OPT = "Range for sales activity start
* KTAEN_OPT = "Range for sales activity end
* KUNNR_OPT = "Range for customer numbers
* PARNR_OPT = "Range for partner numbers
* PARVW_OPT = "Range for partner functions
* PERNR_OPT = "Range for personnel numbers
* SPART_OPT = "Range for division
* VBELN_OPT = "Range for sales activity numbers

EXCEPTIONS
NO_DATA = 1 NO_INPUT = 2
.



IMPORTING Parameters details for SD_CAS_CROSSCHECK

PG_DELETE_MARK - Indicator whether sales activities that can be deleted should be marked

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

TABLES Parameters details for SD_CAS_CROSSCHECK

KTAAR_OPT - Range for sales activity types

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

VBKA_OUTP - Output table of sales activities

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

VBPA_OUTP - Output table of partners

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

VKORG_OPT - Range for sales organization

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

VTWEG_OPT - Range for distribution channel

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

VKBUR_OPT -

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

VKGRP_OPT -

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

KTEXT_OPT -

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

ERNAM_OPT -

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

KTAST_OPT -

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

KTABG_OPT - Range for sales activity start

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

KTAEN_OPT - Range for sales activity end

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

KUNNR_OPT - Range for customer numbers

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

PARNR_OPT - Range for partner numbers

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

PARVW_OPT - Range for partner functions

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

PERNR_OPT - Range for personnel numbers

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

SPART_OPT - Range for division

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

VBELN_OPT - Range for sales activity numbers

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

EXCEPTIONS details

NO_DATA - Error/Note: No sales activities found

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

NO_INPUT - Error: All input tables are empty

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

Copy and paste ABAP code example for SD_CAS_CROSSCHECK 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_no_data  TYPE STRING, "   
lt_ktaar_opt  TYPE STANDARD TABLE OF RSDSSELOPT, "   
lv_pg_delete_mark  TYPE VBKAVB-UPDKZ, "   
lt_vbka_outp  TYPE STANDARD TABLE OF VBKAVB, "   
lt_vbpa_outp  TYPE STANDARD TABLE OF VBPAVB, "   
lt_vkorg_opt  TYPE STANDARD TABLE OF RSDSSELOPT, "   
lt_vtweg_opt  TYPE STANDARD TABLE OF RSDSSELOPT, "   
lt_vkbur_opt  TYPE STANDARD TABLE OF RSDSSELOPT, "   
lt_vkgrp_opt  TYPE STANDARD TABLE OF RSDSSELOPT, "   
lt_ktext_opt  TYPE STANDARD TABLE OF RSDSSELOPT, "   
lt_ernam_opt  TYPE STANDARD TABLE OF RSDSSELOPT, "   
lt_ktast_opt  TYPE STANDARD TABLE OF RSDSSELOPT, "   
lv_no_input  TYPE RSDSSELOPT, "   
lt_ktabg_opt  TYPE STANDARD TABLE OF RSDSSELOPT, "   
lt_ktaen_opt  TYPE STANDARD TABLE OF RSDSSELOPT, "   
lt_kunnr_opt  TYPE STANDARD TABLE OF RSDSSELOPT, "   
lt_parnr_opt  TYPE STANDARD TABLE OF RSDSSELOPT, "   
lt_parvw_opt  TYPE STANDARD TABLE OF RSDSSELOPT, "   
lt_pernr_opt  TYPE STANDARD TABLE OF RSDSSELOPT, "   
lt_spart_opt  TYPE STANDARD TABLE OF RSDSSELOPT, "   
lt_vbeln_opt  TYPE STANDARD TABLE OF RSDSSELOPT. "   

  CALL FUNCTION 'SD_CAS_CROSSCHECK'  "Function module for cross-check determination sales activity area SD-CAS
    EXPORTING
         PG_DELETE_MARK = lv_pg_delete_mark
    TABLES
         KTAAR_OPT = lt_ktaar_opt
         VBKA_OUTP = lt_vbka_outp
         VBPA_OUTP = lt_vbpa_outp
         VKORG_OPT = lt_vkorg_opt
         VTWEG_OPT = lt_vtweg_opt
         VKBUR_OPT = lt_vkbur_opt
         VKGRP_OPT = lt_vkgrp_opt
         KTEXT_OPT = lt_ktext_opt
         ERNAM_OPT = lt_ernam_opt
         KTAST_OPT = lt_ktast_opt
         KTABG_OPT = lt_ktabg_opt
         KTAEN_OPT = lt_ktaen_opt
         KUNNR_OPT = lt_kunnr_opt
         PARNR_OPT = lt_parnr_opt
         PARVW_OPT = lt_parvw_opt
         PERNR_OPT = lt_pernr_opt
         SPART_OPT = lt_spart_opt
         VBELN_OPT = lt_vbeln_opt
    EXCEPTIONS
        NO_DATA = 1
        NO_INPUT = 2
. " SD_CAS_CROSSCHECK




ABAP code using 7.40 inline data declarations to call FM SD_CAS_CROSSCHECK

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 UPDKZ FROM VBKAVB INTO @DATA(ld_pg_delete_mark).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!