SAP ATP_COMMIT_TQA_AATP Function Module for Commit TQA for AATP









ATP_COMMIT_TQA_AATP is a standard atp commit tqa aatp SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Commit TQA for AATP 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 atp commit tqa aatp FM, simply by entering the name ATP_COMMIT_TQA_AATP into the relevant SAP transaction such as SE37 or SE38.

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



Function ATP_COMMIT_TQA_AATP 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 'ATP_COMMIT_TQA_AATP'"Commit TQA for AATP
EXPORTING
IV_CID = "Check ID
* IV_PAL_ACTIVE = ABAP_TRUE "Product allocation active
* IV_PAC_ACTIVE = ABAP_TRUE "Product availability active
* IV_SUPPLY_PROTECTION_ACTIVE = ABAP_TRUE "Supply Protection Active
* IX_BASIC_METHOD_DATA_CTN = "Basic Method Data Container
* IX_DOC_NUMBER_NOTIFIER = "Document Number Notifier
* IT_ITEM_KEY = "
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLATPC_001 Processing Requirements Table Before Calling Actual Check
EXIT_SAPLATPC_002 Processing Results of Actual Check

IMPORTING Parameters details for ATP_COMMIT_TQA_AATP

IV_CID - Check ID

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

IV_PAL_ACTIVE - Product allocation active

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

IV_PAC_ACTIVE - Product availability active

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

IV_SUPPLY_PROTECTION_ACTIVE - Supply Protection Active

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

IX_BASIC_METHOD_DATA_CTN - Basic Method Data Container

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

IX_DOC_NUMBER_NOTIFIER - Document Number Notifier

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

IT_ITEM_KEY -

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

Copy and paste ABAP code example for ATP_COMMIT_TQA_AATP 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_cid  TYPE ATP_CID, "   
lv_iv_pal_active  TYPE BOOLE_D, "   ABAP_TRUE
lv_iv_pac_active  TYPE BOOLE_D, "   ABAP_TRUE
lv_iv_supply_protection_active  TYPE BOOLE_D, "   ABAP_TRUE
lv_ix_basic_method_data_ctn  TYPE XSTRING, "   
lv_ix_doc_number_notifier  TYPE XSTRING, "   
lv_it_item_key  TYPE TBL_ATP_ITEM_KEY_WO_SUBITEM. "   

  CALL FUNCTION 'ATP_COMMIT_TQA_AATP'  "Commit TQA for AATP
    EXPORTING
         IV_CID = lv_iv_cid
         IV_PAL_ACTIVE = lv_iv_pal_active
         IV_PAC_ACTIVE = lv_iv_pac_active
         IV_SUPPLY_PROTECTION_ACTIVE = lv_iv_supply_protection_active
         IX_BASIC_METHOD_DATA_CTN = lv_ix_basic_method_data_ctn
         IX_DOC_NUMBER_NOTIFIER = lv_ix_doc_number_notifier
         IT_ITEM_KEY = lv_it_item_key
. " ATP_COMMIT_TQA_AATP




ABAP code using 7.40 inline data declarations to call FM ATP_COMMIT_TQA_AATP

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.

 
DATA(ld_iv_pal_active) = ABAP_TRUE.
 
DATA(ld_iv_pac_active) = ABAP_TRUE.
 
DATA(ld_iv_supply_protection_active) = ABAP_TRUE.
 
 
 
 


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!