SAP /ACCGO/CAS_SIMULATE_FINAL_APPL Function Module for Contract Application : Check Final Application









/ACCGO/CAS_SIMULATE_FINAL_APPL is a standard /accgo/cas simulate final appl SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Contract Application : Check Final Application 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 /accgo/cas simulate final appl FM, simply by entering the name /ACCGO/CAS_SIMULATE_FINAL_APPL into the relevant SAP transaction such as SE37 or SE38.

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



Function /ACCGO/CAS_SIMULATE_FINAL_APPL 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 '/ACCGO/CAS_SIMULATE_FINAL_APPL'"Contract Application : Check Final Application
EXPORTING
IM_S_APPLDOC_ITEM_KEY = "Application document item primary keys
IM_S_COM_ITEMS_KEY = "key of data base table WB2_D_COMSUB
IM_O_LOGGER = "Class to Maintain Applicaton Logs
IM_V_LOGHANDLE = "Application Log: Log Handle

IMPORTING
EX_V_FINAL = "

EXCEPTIONS
CX_WB2_LOCK_ERROR = 1 CX_WB2_NO_SHD_ITEM = 2 CX_WB2_NO_AUTHORITY = 3 /ACCGO/CX_CAS_APPL_DPQS_EVAL = 4 /ACCGO/CX_NO_WEIGHT = 5 /ACCGO/CX_CAS_APPL_ERROR = 6
.



IMPORTING Parameters details for /ACCGO/CAS_SIMULATE_FINAL_APPL

IM_S_APPLDOC_ITEM_KEY - Application document item primary keys

Data type: /ACCGO/CAS_S_CAI_PK
Optional: No
Call by Reference: Yes

IM_S_COM_ITEMS_KEY - key of data base table WB2_D_COMSUB

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

IM_O_LOGGER - Class to Maintain Applicaton Logs

Data type: /ACCGO/CL_CMN_LOGGER
Optional: No
Call by Reference: Yes

IM_V_LOGHANDLE - Application Log: Log Handle

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

EXPORTING Parameters details for /ACCGO/CAS_SIMULATE_FINAL_APPL

EX_V_FINAL -

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

EXCEPTIONS details

CX_WB2_LOCK_ERROR - Lock error

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

CX_WB2_NO_SHD_ITEM - no shadow item found

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

CX_WB2_NO_AUTHORITY - No authority

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

/ACCGO/CX_CAS_APPL_DPQS_EVAL - CA Application Process Exception

Data type:
Optional: No
Call by Reference: Yes

/ACCGO/CX_NO_WEIGHT - Exception Class For BADI Interface

Data type:
Optional: No
Call by Reference: Yes

/ACCGO/CX_CAS_APPL_ERROR - Application Error Exception

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for /ACCGO/CAS_SIMULATE_FINAL_APPL 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_ex_v_final  TYPE ABAP_BOOL, "   
lv_cx_wb2_lock_error  TYPE ABAP_BOOL, "   
lv_im_s_appldoc_item_key  TYPE /ACCGO/CAS_S_CAI_PK, "   
lv_cx_wb2_no_shd_item  TYPE /ACCGO/CAS_S_CAI_PK, "   
lv_im_s_com_items_key  TYPE WB2_S_COM_KEY, "   
lv_im_o_logger  TYPE /ACCGO/CL_CMN_LOGGER, "   
lv_cx_wb2_no_authority  TYPE /ACCGO/CL_CMN_LOGGER, "   
lv_im_v_loghandle  TYPE BALLOGHNDL, "   
lv_/accgo/cx_cas_appl_dpqs_eval  TYPE BALLOGHNDL, "   
lv_/accgo/cx_no_weight  TYPE BALLOGHNDL, "   
lv_/accgo/cx_cas_appl_error  TYPE BALLOGHNDL. "   

  CALL FUNCTION '/ACCGO/CAS_SIMULATE_FINAL_APPL'  "Contract Application : Check Final Application
    EXPORTING
         IM_S_APPLDOC_ITEM_KEY = lv_im_s_appldoc_item_key
         IM_S_COM_ITEMS_KEY = lv_im_s_com_items_key
         IM_O_LOGGER = lv_im_o_logger
         IM_V_LOGHANDLE = lv_im_v_loghandle
    IMPORTING
         EX_V_FINAL = lv_ex_v_final
    EXCEPTIONS
        CX_WB2_LOCK_ERROR = 1
        CX_WB2_NO_SHD_ITEM = 2
        CX_WB2_NO_AUTHORITY = 3
        /ACCGO/CX_CAS_APPL_DPQS_EVAL = 4
        /ACCGO/CX_NO_WEIGHT = 5
        /ACCGO/CX_CAS_APPL_ERROR = 6
. " /ACCGO/CAS_SIMULATE_FINAL_APPL




ABAP code using 7.40 inline data declarations to call FM /ACCGO/CAS_SIMULATE_FINAL_APPL

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.

 
 
 
 
 
 
 
 
 
 
 


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!