SAP EXIT_SAPLIEDI_003 Function Module for FI-EDI: Invoice Receipt - Fill the Screen Field 'Assignment'









EXIT_SAPLIEDI_003 is a standard exit sapliedi 003 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for FI-EDI: Invoice Receipt - Fill the Screen Field 'Assignment' 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 sapliedi 003 FM, simply by entering the name EXIT_SAPLIEDI_003 into the relevant SAP transaction such as SE37 or SE38.

Function Group: XF06
Program Name: SAPLXF06
Main Program:
Appliation area: F
Release date: 23-Jun-1994
Mode(Normal, Remote etc): Normal Function Module
Update:



Function EXIT_SAPLIEDI_003 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_SAPLIEDI_003'"FI-EDI: Invoice Receipt - Fill the Screen Field 'Assignment'
EXPORTING
COMPANY_CODE = "Invoice Company Code
VENDOR = "Vendor Number of Invoicing Party

IMPORTING
ALLOC_NUMBER = "Assignment number
MSGID = "Message ID for Own Error Messages
MSGNO = "Message number
MSGV1 = "Message variable 1
MSGV2 = "Message variable 2
MSGV3 = "Message variable 3
MSGV4 = "Message variable 4

TABLES
EDI_FIELDS = "Data Transferred by EDI

EXCEPTIONS
NOT_FOUND = 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_INVOIC_FI - SAP IDoc INVOIC01
IDOC_INPUT_INVOIC_FI - SAP IDoc INVOIC01
IDOC_INPUT_INVOIC_FI - SAP IDoc INVOIC02
IDOC_INPUT_INVOIC_FI - SAP IDoc INVOIC02
IDOC_INPUT_INVOIC_MM - SAP IDoc INVOIC01

Related Function Modules

Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.
FI_EDI_INVOIC_INV_ID01
FI_WF_INVOIC_INV_ID01
IDOC_INPUT_UPDATE_FI
IDOC_INVOIC_UNLOCK
MM_EDI_INVOIC_INV_ID01
MM_WF_INVOIC_INV_ID01
PROCESS_IDOC_INVOIC_FI

IMPORTING Parameters details for EXIT_SAPLIEDI_003

COMPANY_CODE - Invoice Company Code

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

VENDOR - Vendor Number of Invoicing Party

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

EXPORTING Parameters details for EXIT_SAPLIEDI_003

ALLOC_NUMBER - Assignment number

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

MSGID - Message ID for Own Error Messages

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

MSGNO - Message number

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

MSGV1 - Message variable 1

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

MSGV2 - Message variable 2

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

MSGV3 - Message variable 3

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

MSGV4 - Message variable 4

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

TABLES Parameters details for EXIT_SAPLIEDI_003

EDI_FIELDS - Data Transferred by EDI

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

EXCEPTIONS details

NOT_FOUND - Assignment Number Could not Be determined

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

Copy and paste ABAP code example for EXIT_SAPLIEDI_003 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_not_found  TYPE STRING, "   
lt_edi_fields  TYPE STANDARD TABLE OF DFIELDS, "   
lv_alloc_number  TYPE BSEG-ZUONR, "   
lv_company_code  TYPE BSEG-BUKRS, "   
lv_msgid  TYPE SY-MSGID, "   
lv_vendor  TYPE BSEG-LIFNR, "   
lv_msgno  TYPE SY-MSGNO, "   
lv_msgv1  TYPE SY-MSGV1, "   
lv_msgv2  TYPE SY-MSGV2, "   
lv_msgv3  TYPE SY-MSGV3, "   
lv_msgv4  TYPE SY-MSGV4. "   

  CALL FUNCTION 'EXIT_SAPLIEDI_003'  "FI-EDI: Invoice Receipt - Fill the Screen Field 'Assignment'
    EXPORTING
         COMPANY_CODE = lv_company_code
         VENDOR = lv_vendor
    IMPORTING
         ALLOC_NUMBER = lv_alloc_number
         MSGID = lv_msgid
         MSGNO = lv_msgno
         MSGV1 = lv_msgv1
         MSGV2 = lv_msgv2
         MSGV3 = lv_msgv3
         MSGV4 = lv_msgv4
    TABLES
         EDI_FIELDS = lt_edi_fields
    EXCEPTIONS
        NOT_FOUND = 1
. " EXIT_SAPLIEDI_003




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLIEDI_003

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 ZUONR FROM BSEG INTO @DATA(ld_alloc_number).
 
"SELECT single BUKRS FROM BSEG INTO @DATA(ld_company_code).
 
"SELECT single MSGID FROM SY INTO @DATA(ld_msgid).
 
"SELECT single LIFNR FROM BSEG INTO @DATA(ld_vendor).
 
"SELECT single MSGNO FROM SY INTO @DATA(ld_msgno).
 
"SELECT single MSGV1 FROM SY INTO @DATA(ld_msgv1).
 
"SELECT single MSGV2 FROM SY INTO @DATA(ld_msgv2).
 
"SELECT single MSGV3 FROM SY INTO @DATA(ld_msgv3).
 
"SELECT single MSGV4 FROM SY INTO @DATA(ld_msgv4).
 

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!