SAP /ACCGO/CAK_UPD_SNAPSHOT_DATA Function Module for Save Snapshot Data in the DB









/ACCGO/CAK_UPD_SNAPSHOT_DATA is a standard /accgo/cak upd snapshot data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Save Snapshot Data in the DB 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 upd snapshot data FM, simply by entering the name /ACCGO/CAK_UPD_SNAPSHOT_DATA into the relevant SAP transaction such as SE37 or SE38.

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



Function /ACCGO/CAK_UPD_SNAPSHOT_DATA 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_UPD_SNAPSHOT_DATA'"Save Snapshot Data in the DB
EXPORTING
* IT_SNAP_HEADER1_DB_INS = "Contract Header
* IT_SNAP_PRC_DB_INS = "Document Snapshot: Contract Price Fixation
* IT_SNAP_HEADER1_DB_UPD = "Contract Header
* IT_SNAP_ITEM1_DB_UPD = "Contract Item
* IT_SNAP_CANC_DB_INS = "Contract Cancellation Data
* IT_SNAP_CANP_DB_INS = "Contract Cancellation Price Data
* IT_SNAP_DPQS_OC_DB_INS = "Snapshots DPQS Characteristics Data
* IT_SNAP_DPQS_OR_DB_INS = "Snapshots DPQS Ranges Data
* IT_SNAP_FEE_DB_INS = "Snapshot Fee Details
* IT_SNAP_PRICING_METHOD_INS = "Snapshot for Pricing Method table type
* IT_SNAP_CREDIT_SALES = "Table Type For Credit Sale Information
* IT_SNAP_HEADER2_DB_INS = "Contract Business Data
* IT_SNAP_ITEM1_DB_INS = "Contract Item
* IT_SNAP_ITEM2_DB_INS = "ACM Contract Item (WBHI Additional Data)
* IT_SNAP_TOLH_DB_INS = "Document Snapshot: Contract Tolerance Header
* IT_SNAP_DPQS_DB_INS = "Document Snapshot: Contract DPQS Override Header
* IT_SNAP_COM_DB_INS = "Document Snapshot: Commodity Item Fields
* IT_SNAP_TOLI_DB_INS = "Document Snapshot: Contract Tolerance Item
* IT_SNAP_OPTN_DB_INS = "Document Snapshot: Contract Optionality Data
.



IMPORTING Parameters details for /ACCGO/CAK_UPD_SNAPSHOT_DATA

IT_SNAP_HEADER1_DB_INS - Contract Header

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

IT_SNAP_PRC_DB_INS - Document Snapshot: Contract Price Fixation

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

IT_SNAP_HEADER1_DB_UPD - Contract Header

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

IT_SNAP_ITEM1_DB_UPD - Contract Item

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

IT_SNAP_CANC_DB_INS - Contract Cancellation Data

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

IT_SNAP_CANP_DB_INS - Contract Cancellation Price Data

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

IT_SNAP_DPQS_OC_DB_INS - Snapshots DPQS Characteristics Data

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

IT_SNAP_DPQS_OR_DB_INS - Snapshots DPQS Ranges Data

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

IT_SNAP_FEE_DB_INS - Snapshot Fee Details

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

IT_SNAP_PRICING_METHOD_INS - Snapshot for Pricing Method table type

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

IT_SNAP_CREDIT_SALES - Table Type For Credit Sale Information

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

IT_SNAP_HEADER2_DB_INS - Contract Business Data

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

IT_SNAP_ITEM1_DB_INS - Contract Item

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

IT_SNAP_ITEM2_DB_INS - ACM Contract Item (WBHI Additional Data)

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

IT_SNAP_TOLH_DB_INS - Document Snapshot: Contract Tolerance Header

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

IT_SNAP_DPQS_DB_INS - Document Snapshot: Contract DPQS Override Header

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

IT_SNAP_COM_DB_INS - Document Snapshot: Commodity Item Fields

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

IT_SNAP_TOLI_DB_INS - Document Snapshot: Contract Tolerance Item

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

IT_SNAP_OPTN_DB_INS - Document Snapshot: Contract Optionality Data

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

Copy and paste ABAP code example for /ACCGO/CAK_UPD_SNAPSHOT_DATA 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_it_snap_header1_db_ins  TYPE /ACCGO/CAK_TT_SNPHD1, "   
lv_it_snap_prc_db_ins  TYPE /ACCGO/CAK_TT_SNPPRC, "   
lv_it_snap_header1_db_upd  TYPE /ACCGO/CAK_TT_SNPHD1, "   
lv_it_snap_item1_db_upd  TYPE /ACCGO/CAK_TT_SNPIT1, "   
lv_it_snap_canc_db_ins  TYPE /ACCGO/CAK_TT_SNPCANC, "   
lv_it_snap_canp_db_ins  TYPE /ACCGO/CAK_TT_SNPCANP, "   
lv_it_snap_dpqs_oc_db_ins  TYPE /ACCGO/CAK_TT_SNPDPQSOC, "   
lv_it_snap_dpqs_or_db_ins  TYPE /ACCGO/CAK_TT_SNPDPQSOR, "   
lv_it_snap_fee_db_ins  TYPE /ACCGO/CAK_TT_SNP_FEE, "   
lv_it_snap_pricing_method_ins  TYPE /ACCGO/CAK_TT_SNP_PM, "   
lv_it_snap_credit_sales  TYPE /ACCGO/TT_CAK_CS_SNPCS, "   
lv_it_snap_header2_db_ins  TYPE /ACCGO/CAK_TT_SNPHD2, "   
lv_it_snap_item1_db_ins  TYPE /ACCGO/CAK_TT_SNPIT1, "   
lv_it_snap_item2_db_ins  TYPE /ACCGO/CAK_TT_SNPIT2, "   
lv_it_snap_tolh_db_ins  TYPE /ACCGO/CAK_TT_SNPTOLH, "   
lv_it_snap_dpqs_db_ins  TYPE /ACCGO/CAK_TT_SNPDPQS, "   
lv_it_snap_com_db_ins  TYPE /ACCGO/CAK_TT_SNPCOM, "   
lv_it_snap_toli_db_ins  TYPE /ACCGO/CAK_TT_SNPTOLI, "   
lv_it_snap_optn_db_ins  TYPE /ACCGO/CAK_TT_SNPOPTN. "   

  CALL FUNCTION '/ACCGO/CAK_UPD_SNAPSHOT_DATA'  "Save Snapshot Data in the DB
    EXPORTING
         IT_SNAP_HEADER1_DB_INS = lv_it_snap_header1_db_ins
         IT_SNAP_PRC_DB_INS = lv_it_snap_prc_db_ins
         IT_SNAP_HEADER1_DB_UPD = lv_it_snap_header1_db_upd
         IT_SNAP_ITEM1_DB_UPD = lv_it_snap_item1_db_upd
         IT_SNAP_CANC_DB_INS = lv_it_snap_canc_db_ins
         IT_SNAP_CANP_DB_INS = lv_it_snap_canp_db_ins
         IT_SNAP_DPQS_OC_DB_INS = lv_it_snap_dpqs_oc_db_ins
         IT_SNAP_DPQS_OR_DB_INS = lv_it_snap_dpqs_or_db_ins
         IT_SNAP_FEE_DB_INS = lv_it_snap_fee_db_ins
         IT_SNAP_PRICING_METHOD_INS = lv_it_snap_pricing_method_ins
         IT_SNAP_CREDIT_SALES = lv_it_snap_credit_sales
         IT_SNAP_HEADER2_DB_INS = lv_it_snap_header2_db_ins
         IT_SNAP_ITEM1_DB_INS = lv_it_snap_item1_db_ins
         IT_SNAP_ITEM2_DB_INS = lv_it_snap_item2_db_ins
         IT_SNAP_TOLH_DB_INS = lv_it_snap_tolh_db_ins
         IT_SNAP_DPQS_DB_INS = lv_it_snap_dpqs_db_ins
         IT_SNAP_COM_DB_INS = lv_it_snap_com_db_ins
         IT_SNAP_TOLI_DB_INS = lv_it_snap_toli_db_ins
         IT_SNAP_OPTN_DB_INS = lv_it_snap_optn_db_ins
. " /ACCGO/CAK_UPD_SNAPSHOT_DATA




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

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!