SAP /ACCGO/CAK_GET_SNAP_TST_RANGE Function Module for Get Snapshot Data for a Contract by Date Range









/ACCGO/CAK_GET_SNAP_TST_RANGE is a standard /accgo/cak get snap tst range SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get Snapshot Data for a Contract by Date Range 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/cak get snap tst range FM, simply by entering the name /ACCGO/CAK_GET_SNAP_TST_RANGE into the relevant SAP transaction such as SE37 or SE38.

Function Group: /ACCGO/CAK_SNP
Program Name: /ACCGO/SAPLCAK_SNP
Main Program: /ACCGO/SAPLCAK_SNP
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function /ACCGO/CAK_GET_SNAP_TST_RANGE 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/CAK_GET_SNAP_TST_RANGE'"Get Snapshot Data for a Contract by Date Range
EXPORTING
IV_CONTRACT_NUM = "Trading Contract: Item Number
* IV_CONTRACT_ITEM_NUM = "Trading Contract: Item Number
* IV_DATE_FROM = "Field of type DATS
* IV_TIME_FROM = "Time in CHAR Format
* IV_DATE_TO = "Field of type DATS
* IV_TIME_TO = "Time in CHAR Format
* IV_TIME_ZONE = "Time Zone
* IS_FILTER_PARAMETERS = "Input Parameters for Snapshots API

IMPORTING
ET_SNAPSHOT = "Snapshots: Strcuture to get fields changed in a Snapshot
EV_SUCCESS = "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
ET_MESSAGES = "Return Parameter
ET_TEXTS = "on Contract Item Tex
ES_CURR_CONTRACT_DATA = "Snapshots: Strcuture to get fields changed in a Snapshot

EXCEPTIONS
/ACCGO/CX_CAK_SNAPSHOTS_MGR = 1
.



IMPORTING Parameters details for /ACCGO/CAK_GET_SNAP_TST_RANGE

IV_CONTRACT_NUM - Trading Contract: Item Number

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

IV_CONTRACT_ITEM_NUM - Trading Contract: Item Number

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

IV_DATE_FROM - Field of type DATS

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

IV_TIME_FROM - Time in CHAR Format

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

IV_DATE_TO - Field of type DATS

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

IV_TIME_TO - Time in CHAR Format

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

IV_TIME_ZONE - Time Zone

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

IS_FILTER_PARAMETERS - Input Parameters for Snapshots API

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

EXPORTING Parameters details for /ACCGO/CAK_GET_SNAP_TST_RANGE

ET_SNAPSHOT - Snapshots: Strcuture to get fields changed in a Snapshot

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

EV_SUCCESS - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')

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

ET_MESSAGES - Return Parameter

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

ET_TEXTS - on Contract Item Tex

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

ES_CURR_CONTRACT_DATA - Snapshots: Strcuture to get fields changed in a Snapshot

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

EXCEPTIONS details

/ACCGO/CX_CAK_SNAPSHOTS_MGR -

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

Copy and paste ABAP code example for /ACCGO/CAK_GET_SNAP_TST_RANGE 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_et_snapshot  TYPE /ACCGO/CAK_TT_SNP_CHG_TRACK, "   
lv_iv_contract_num  TYPE TKONN, "   
lv_/accgo/cx_cak_snapshots_mgr  TYPE TKONN, "   
lv_ev_success  TYPE BOOLE_D, "   
lv_iv_contract_item_num  TYPE TPOSN, "   
lv_et_messages  TYPE BAPIRET1_TAB, "   
lv_iv_date_from  TYPE DATS, "   
lv_et_texts  TYPE /ACCGO/CAK_TT_TC_ITEM_TEXTS, "   
lv_iv_time_from  TYPE TIMS, "   
lv_iv_date_to  TYPE DATS, "   
lv_es_curr_contract_data  TYPE /ACCGO/CAK_S_CURR_TC_DATA, "   
lv_iv_time_to  TYPE TIMS, "   
lv_iv_time_zone  TYPE TZNZONE, "   
lv_is_filter_parameters  TYPE /ACCGO/CAK_S_SNAP_API_IP_PARA. "   

  CALL FUNCTION '/ACCGO/CAK_GET_SNAP_TST_RANGE'  "Get Snapshot Data for a Contract by Date Range
    EXPORTING
         IV_CONTRACT_NUM = lv_iv_contract_num
         IV_CONTRACT_ITEM_NUM = lv_iv_contract_item_num
         IV_DATE_FROM = lv_iv_date_from
         IV_TIME_FROM = lv_iv_time_from
         IV_DATE_TO = lv_iv_date_to
         IV_TIME_TO = lv_iv_time_to
         IV_TIME_ZONE = lv_iv_time_zone
         IS_FILTER_PARAMETERS = lv_is_filter_parameters
    IMPORTING
         ET_SNAPSHOT = lv_et_snapshot
         EV_SUCCESS = lv_ev_success
         ET_MESSAGES = lv_et_messages
         ET_TEXTS = lv_et_texts
         ES_CURR_CONTRACT_DATA = lv_es_curr_contract_data
    EXCEPTIONS
        /ACCGO/CX_CAK_SNAPSHOTS_MGR = 1
. " /ACCGO/CAK_GET_SNAP_TST_RANGE




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

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!