SAP /ILE/T_CUSTOMER_EXIT2 Function Module for Customer exit for annexation in SD in function /ATL/T_ANNEXING_CALCULATION
/ILE/T_CUSTOMER_EXIT2 is a standard /ile/t customer exit2 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Customer exit for annexation in SD in function /ATL/T_ANNEXING_CALCULATION 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 /ile/t customer exit2 FM, simply by entering the name /ILE/T_CUSTOMER_EXIT2 into the relevant SAP transaction such as SE37 or SE38.
Function Group: /ILE/TANC
Program Name: /ILE/SAPLTANC
Main Program: /ILE/SAPLTANC
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function /ILE/T_CUSTOMER_EXIT2 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 '/ILE/T_CUSTOMER_EXIT2'"Customer exit for annexation in SD in function /ATL/T_ANNEXING_CALCULATION.
EXPORTING
I_KOMK = "
I_KOMP = "
* SW_UPDATE = ' ' "Dummy
* I_ANNEX_COND = "Condition type
TABLES
I_ANNEXING_DATA = "Annex reference
* I_ANNEX_COMPONENT = "Annexing Component range structure
IMPORTING Parameters details for /ILE/T_CUSTOMER_EXIT2
I_KOMK -
Data type: KOMKOptional: No
Call by Reference: No ( called with pass by value option)
I_KOMP -
Data type: KOMPOptional: No
Call by Reference: No ( called with pass by value option)
SW_UPDATE - Dummy
Data type: /ILE/ANNEX_CHAR1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ANNEX_COND - Condition type
Data type: KOMV-KSCHLOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for /ILE/T_CUSTOMER_EXIT2
I_ANNEXING_DATA - Annex reference
Data type: /ILE/TV01FOptional: No
Call by Reference: Yes
I_ANNEX_COMPONENT - Annexing Component range structure
Data type: /ILE/ANNEX_TACOMP_RANGEOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for /ILE/T_CUSTOMER_EXIT2 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_i_komk | TYPE KOMK, " | |||
| lt_i_annexing_data | TYPE STANDARD TABLE OF /ILE/TV01F, " | |||
| lv_i_komp | TYPE KOMP, " | |||
| lt_i_annex_component | TYPE STANDARD TABLE OF /ILE/ANNEX_TACOMP_RANGE, " | |||
| lv_sw_update | TYPE /ILE/ANNEX_CHAR1, " SPACE | |||
| lv_i_annex_cond | TYPE KOMV-KSCHL. " |
|   CALL FUNCTION '/ILE/T_CUSTOMER_EXIT2' "Customer exit for annexation in SD in function /ATL/T_ANNEXING_CALCULATION |
| EXPORTING | ||
| I_KOMK | = lv_i_komk | |
| I_KOMP | = lv_i_komp | |
| SW_UPDATE | = lv_sw_update | |
| I_ANNEX_COND | = lv_i_annex_cond | |
| TABLES | ||
| I_ANNEXING_DATA | = lt_i_annexing_data | |
| I_ANNEX_COMPONENT | = lt_i_annex_component | |
| . " /ILE/T_CUSTOMER_EXIT2 | ||
ABAP code using 7.40 inline data declarations to call FM /ILE/T_CUSTOMER_EXIT2
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_sw_update) | = ' '. | |||
| "SELECT single KSCHL FROM KOMV INTO @DATA(ld_i_annex_cond). | ||||
Search for further information about these or an SAP related objects