SAP /ACCGO/CCAK_CRT_WITH_REF Function Module for Create Trading Contract With Reference To Another Trading Contract









/ACCGO/CCAK_CRT_WITH_REF is a standard /accgo/ccak crt with ref SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create Trading Contract With Reference To Another Trading Contract 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/ccak crt with ref FM, simply by entering the name /ACCGO/CCAK_CRT_WITH_REF into the relevant SAP transaction such as SE37 or SE38.

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



Function /ACCGO/CCAK_CRT_WITH_REF 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/CCAK_CRT_WITH_REF'"Create Trading Contract With Reference To Another Trading Contract
EXPORTING
IV_TKONN = "Reference Trading Contract No
* IT_MIRROR_SUB_ACCOUNT = "Mirror Subaccount Table Type
IV_TCTYP = "Trading Contract Type
* IV_STATUS = "Trading Contract: Application Status
* IV_COMMIT = "Commit Flag
* IT_COMITEMS = "Commodity item
* IT_VALUATION_POINT = "Valuation Point
* IT_ITEM_TOLERANCES = "Item Tolerance Table
* IT_ITEM_DPQS = "DPQS Header data
* IT_SUB_ACCOUNT = "Subaccount Table Type

IMPORTING
ET_MESSAGES = "Table type for structure BAPIRET1
.



IMPORTING Parameters details for /ACCGO/CCAK_CRT_WITH_REF

IV_TKONN - Reference Trading Contract No

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

IT_MIRROR_SUB_ACCOUNT - Mirror Subaccount Table Type

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

IV_TCTYP - Trading Contract Type

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

IV_STATUS - Trading Contract: Application Status

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

IV_COMMIT - Commit Flag

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

IT_COMITEMS - Commodity item

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

IT_VALUATION_POINT - Valuation Point

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

IT_ITEM_TOLERANCES - Item Tolerance Table

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

IT_ITEM_DPQS - DPQS Header data

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

IT_SUB_ACCOUNT - Subaccount Table Type

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

EXPORTING Parameters details for /ACCGO/CCAK_CRT_WITH_REF

ET_MESSAGES - Table type for structure BAPIRET1

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

Copy and paste ABAP code example for /ACCGO/CCAK_CRT_WITH_REF 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_iv_tkonn  TYPE TKONN, "   
lv_et_messages  TYPE BAPIRET2_TAB, "   
lv_it_mirror_sub_account  TYPE /ACCGO/TT_SUB_ACCOUNT, "   
lv_iv_tctyp  TYPE TCTYP, "   
lv_iv_status  TYPE BTBSTA, "   
lv_iv_commit  TYPE BOOLE_D, "   
lv_it_comitems  TYPE /ACCGO/TT_COMITEM, "   
lv_it_valuation_point  TYPE /ACCGO/TT_VAL_POINT, "   
lv_it_item_tolerances  TYPE /ACCGO/TT_ITEM_TOLERANCES_H, "   
lv_it_item_dpqs  TYPE /ACCGO/TT_DPQS_HEADER_DATA, "   
lv_it_sub_account  TYPE /ACCGO/TT_SUB_ACCOUNT. "   

  CALL FUNCTION '/ACCGO/CCAK_CRT_WITH_REF'  "Create Trading Contract With Reference To Another Trading Contract
    EXPORTING
         IV_TKONN = lv_iv_tkonn
         IT_MIRROR_SUB_ACCOUNT = lv_it_mirror_sub_account
         IV_TCTYP = lv_iv_tctyp
         IV_STATUS = lv_iv_status
         IV_COMMIT = lv_iv_commit
         IT_COMITEMS = lv_it_comitems
         IT_VALUATION_POINT = lv_it_valuation_point
         IT_ITEM_TOLERANCES = lv_it_item_tolerances
         IT_ITEM_DPQS = lv_it_item_dpqs
         IT_SUB_ACCOUNT = lv_it_sub_account
    IMPORTING
         ET_MESSAGES = lv_et_messages
. " /ACCGO/CCAK_CRT_WITH_REF




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

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!