SAP /ACCGO/CCAK_CRT_WITH_DATA Function Module for Creates a New Trading contract









/ACCGO/CCAK_CRT_WITH_DATA is a standard /accgo/ccak crt with 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 Creates a New 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 data FM, simply by entering the name /ACCGO/CCAK_CRT_WITH_DATA 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_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/CCAK_CRT_WITH_DATA'"Creates a New Trading contract
EXPORTING
IV_TCTYP = "Trading Contract: Trading Contract Type
* IT_ITEM_DPQS = "DPQS Header data
* IT_SUB_ACCOUNT = "Subaccount Table Type
* IT_MIRROR_SUB_ACCOUNT = "Mirror Subaccount Table Type
* IV_STATUS = "Trading Contract: Application Status
IS_ORG_DATA = "Organisational Data Trading Contract
* IV_COMMIT = "Commit Flag
* IV_COUNTER_PARTY = "Counter Party
* IT_ITEM_DATA = "Line Item Data
* IT_COMITEMS = "Commodity Items Data
* IT_VALUATION_POINT = "Valuation Point
* IT_ITEM_TOLERANCES = "Item Tolerance Table

IMPORTING
ET_MESSAGES = "Error Messages
.



IMPORTING Parameters details for /ACCGO/CCAK_CRT_WITH_DATA

IV_TCTYP - Trading Contract: Trading Contract Type

Data type: TCTYP
Optional: No
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)

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_STATUS - Trading Contract: Application Status

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

IS_ORG_DATA - Organisational Data Trading Contract

Data type: /ACCGO/S_ORG_DATA
Optional: No
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)

IV_COUNTER_PARTY - Counter Party

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

IT_ITEM_DATA - Line Item Data

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

IT_COMITEMS - Commodity Items Data

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)

EXPORTING Parameters details for /ACCGO/CCAK_CRT_WITH_DATA

ET_MESSAGES - Error Messages

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_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_iv_tctyp  TYPE TCTYP, "   
lv_et_messages  TYPE BAPIRET2_TAB, "   
lv_it_item_dpqs  TYPE /ACCGO/TT_DPQS_HEADER_DATA, "   
lv_it_sub_account  TYPE /ACCGO/TT_SUB_ACCOUNT, "   
lv_it_mirror_sub_account  TYPE /ACCGO/TT_SUB_ACCOUNT, "   
lv_iv_status  TYPE BTBSTA, "   
lv_is_org_data  TYPE /ACCGO/S_ORG_DATA, "   
lv_iv_commit  TYPE BOOLE_D, "   
lv_iv_counter_party  TYPE ELIFN, "   
lv_it_item_data  TYPE /ACCGO/TT_LINEITEM_DATA, "   
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. "   

  CALL FUNCTION '/ACCGO/CCAK_CRT_WITH_DATA'  "Creates a New Trading contract
    EXPORTING
         IV_TCTYP = lv_iv_tctyp
         IT_ITEM_DPQS = lv_it_item_dpqs
         IT_SUB_ACCOUNT = lv_it_sub_account
         IT_MIRROR_SUB_ACCOUNT = lv_it_mirror_sub_account
         IV_STATUS = lv_iv_status
         IS_ORG_DATA = lv_is_org_data
         IV_COMMIT = lv_iv_commit
         IV_COUNTER_PARTY = lv_iv_counter_party
         IT_ITEM_DATA = lv_it_item_data
         IT_COMITEMS = lv_it_comitems
         IT_VALUATION_POINT = lv_it_valuation_point
         IT_ITEM_TOLERANCES = lv_it_item_tolerances
    IMPORTING
         ET_MESSAGES = lv_et_messages
. " /ACCGO/CCAK_CRT_WITH_DATA




ABAP code using 7.40 inline data declarations to call FM /ACCGO/CCAK_CRT_WITH_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!