SAP EXIT_SAPLACC2_031 Function Module for IDoc ACLPAY: User Exit for Vendor Item in Accounting Document (Outgoing)









EXIT_SAPLACC2_031 is a standard exit saplacc2 031 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IDoc ACLPAY: User Exit for Vendor Item in Accounting Document (Outgoing) 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 saplacc2 031 FM, simply by entering the name EXIT_SAPLACC2_031 into the relevant SAP transaction such as SE37 or SE38.

Function Group: XACC
Program Name: SAPLXACC
Main Program: SAPLXACC
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function EXIT_SAPLACC2_031 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_SAPLACC2_031'"IDoc ACLPAY: User Exit for Vendor Item in Accounting Document (Outgoing)
EXPORTING
MESSAGE_TYPE = "
CUST_EXTENSION_TYPE = "
SAP_SEGMENT_NAME = "
DOCUMENT_HEADER = "
DOCUMENT_ITEM = "

IMPORTING
CUST_SEGMENT_NAME = "
CUST_SEGMENT_DATA = "

EXCEPTIONS
ERROR_OCCURED = 1
.



Related IDocs

Below is a list of IDoc processing function modules and the associated IDocs this Function user exits is relevant for.
IDOC_INPUT_ACCONF - SAP IDoc ACCONF01

Related Function Modules

Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.
IDOC_OUTPUT_ACLPAY_CHECK
IDOC_OUTPUT_ACLPAY_POST
IDOC_OUTPUT_ACLPAY_PROJECT
IDOC_OUTPUT_ACPJMM_CHECK
IDOC_OUTPUT_ACPJMM_POST
IDOC_OUTPUT_ACPJMM_PROJECT
IDOC_OUTPUT_AC_CHECK
IDOC_OUTPUT_AC_POST
IDOC_OUTPUT_AC_PROJECT

IMPORTING Parameters details for EXIT_SAPLACC2_031

MESSAGE_TYPE -

Data type: EDIDC-MESTYP
Optional: No
Call by Reference: No ( called with pass by value option)

CUST_EXTENSION_TYPE -

Data type: EDIDC-CIMTYP
Optional: No
Call by Reference: No ( called with pass by value option)

SAP_SEGMENT_NAME -

Data type: EDIDD-SEGNAM
Optional: No
Call by Reference: No ( called with pass by value option)

DOCUMENT_HEADER -

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

DOCUMENT_ITEM -

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

EXPORTING Parameters details for EXIT_SAPLACC2_031

CUST_SEGMENT_NAME -

Data type: EDIDD-SEGNAM
Optional: No
Call by Reference: No ( called with pass by value option)

CUST_SEGMENT_DATA -

Data type: EDIDD-SDATA
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

ERROR_OCCURED -

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

Copy and paste ABAP code example for EXIT_SAPLACC2_031 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_message_type  TYPE EDIDC-MESTYP, "   
lv_error_occured  TYPE EDIDC, "   
lv_cust_segment_name  TYPE EDIDD-SEGNAM, "   
lv_cust_segment_data  TYPE EDIDD-SDATA, "   
lv_cust_extension_type  TYPE EDIDC-CIMTYP, "   
lv_sap_segment_name  TYPE EDIDD-SEGNAM, "   
lv_document_header  TYPE E1ACH3, "   
lv_document_item  TYPE E1ACK3. "   

  CALL FUNCTION 'EXIT_SAPLACC2_031'  "IDoc ACLPAY: User Exit for Vendor Item in Accounting Document (Outgoing)
    EXPORTING
         MESSAGE_TYPE = lv_message_type
         CUST_EXTENSION_TYPE = lv_cust_extension_type
         SAP_SEGMENT_NAME = lv_sap_segment_name
         DOCUMENT_HEADER = lv_document_header
         DOCUMENT_ITEM = lv_document_item
    IMPORTING
         CUST_SEGMENT_NAME = lv_cust_segment_name
         CUST_SEGMENT_DATA = lv_cust_segment_data
    EXCEPTIONS
        ERROR_OCCURED = 1
. " EXIT_SAPLACC2_031




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLACC2_031

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 MESTYP FROM EDIDC INTO @DATA(ld_message_type).
 
 
"SELECT single SEGNAM FROM EDIDD INTO @DATA(ld_cust_segment_name).
 
"SELECT single SDATA FROM EDIDD INTO @DATA(ld_cust_segment_data).
 
"SELECT single CIMTYP FROM EDIDC INTO @DATA(ld_cust_extension_type).
 
"SELECT single SEGNAM FROM EDIDD INTO @DATA(ld_sap_segment_name).
 
 
 

See full list of SAP IDocs

See full list of SAP Function Modules



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!