SAP EXIT_SAPLCOI1_027 Function Module for Customer Enhancement: Create Settlement Rule
EXIT_SAPLCOI1_027 is a standard exit saplcoi1 027 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 Enhancement: Create Settlement Rule 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 exit saplcoi1 027 FM, simply by entering the name EXIT_SAPLCOI1_027 into the relevant SAP transaction such as SE37 or SE38.
Function Group: XWOC
Program Name: SAPLXWOC
Main Program: SAPLXWOC
Appliation area: I
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function EXIT_SAPLCOI1_027 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 'EXIT_SAPLCOI1_027'"Customer Enhancement: Create Settlement Rule.
EXPORTING
CAUFVD_IMP = "Order Header
CHANGING
* APROF = "Settlement profile
TABLES
* PMDFU_TAB = "
* RIWOL_TAB = "
* COMP_TAB = "
* OPR_TAB = "
EXCEPTIONS
DO_NOT_BUILD_SETTLEMENTRULE = 1
Related Function Modules
Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.CO_I1_ABRV_ARCH_FREI NOTRANSL: PM/SM Auftrag prüfen ob Auftrag freigegeben bzw. abgeschlossen w
CO_I1_ABRV_MAINTAIN Maintain Settlement Rule
CO_I1_DEFAULTRULE_CREATE NOTRANSL: Defaultregel bilden (Abrechnungsvorschrift)
CO_I1_MAINTENANCE_ITEM_SETTLE NOTRANSL: Wartungsplanposition --> Defaultregel bilden
CO_I1_ORDER_SETTLE NOTRANSL: IH-Auftragskopf kontieren
CO_I1_PMSM_ORDER_GET_WA NOTRANSL: ermittelt Informationen über PM/CS Auftrag aus Speicher
CO_I1_SETTLEMENTRULE_VERIFY NOTRANSL: Prüfen und ggf. ändern der COPA Objektnummer
CO_I1_SR_HEADER_CREATE NOTRANSL: Erzeugen Kopf der Abrechnungsvorschrift (COBRA)
IMPORTING Parameters details for EXIT_SAPLCOI1_027
CAUFVD_IMP - Order Header
Data type: CAUFVDOptional: No
Call by Reference: Yes
CHANGING Parameters details for EXIT_SAPLCOI1_027
APROF - Settlement profile
Data type: TKB1A-APROFOptional: Yes
Call by Reference: Yes
TABLES Parameters details for EXIT_SAPLCOI1_027
PMDFU_TAB -
Data type: PMDFUOptional: Yes
Call by Reference: No ( called with pass by value option)
RIWOL_TAB -
Data type: RIWOLOptional: Yes
Call by Reference: No ( called with pass by value option)
COMP_TAB -
Data type: RESBDGETOptional: Yes
Call by Reference: No ( called with pass by value option)
OPR_TAB -
Data type: AFVGDGETOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
DO_NOT_BUILD_SETTLEMENTRULE - Cancel 'Do Not Execute' Function
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EXIT_SAPLCOI1_027 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_aprof | TYPE TKB1A-APROF, " | |||
lt_pmdfu_tab | TYPE STANDARD TABLE OF PMDFU, " | |||
lv_caufvd_imp | TYPE CAUFVD, " | |||
lv_do_not_build_settlementrule | TYPE CAUFVD, " | |||
lt_riwol_tab | TYPE STANDARD TABLE OF RIWOL, " | |||
lt_comp_tab | TYPE STANDARD TABLE OF RESBDGET, " | |||
lt_opr_tab | TYPE STANDARD TABLE OF AFVGDGET. " |
  CALL FUNCTION 'EXIT_SAPLCOI1_027' "Customer Enhancement: Create Settlement Rule |
EXPORTING | ||
CAUFVD_IMP | = lv_caufvd_imp | |
CHANGING | ||
APROF | = lv_aprof | |
TABLES | ||
PMDFU_TAB | = lt_pmdfu_tab | |
RIWOL_TAB | = lt_riwol_tab | |
COMP_TAB | = lt_comp_tab | |
OPR_TAB | = lt_opr_tab | |
EXCEPTIONS | ||
DO_NOT_BUILD_SETTLEMENTRULE = 1 | ||
. " EXIT_SAPLCOI1_027 |
ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLCOI1_027
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."SELECT single APROF FROM TKB1A INTO @DATA(ld_aprof). | ||||
Search for further information about these or an SAP related objects