SAP EDI_PARTNER_COPY_COMPLETE Function Module for EDI PP: Copy complete partner profile









EDI_PARTNER_COPY_COMPLETE is a standard edi partner copy complete SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for EDI PP: Copy complete partner profile 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 edi partner copy complete FM, simply by entering the name EDI_PARTNER_COPY_COMPLETE into the relevant SAP transaction such as SE37 or SE38.

Function Group: EDI6
Program Name: SAPLEDI6
Main Program: SAPLEDI6
Appliation area: S
Release date: 11-Dec-1995
Mode(Normal, Remote etc): Normal Function Module
Update:



Function EDI_PARTNER_COPY_COMPLETE 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 'EDI_PARTNER_COPY_COMPLETE'"EDI PP: Copy complete partner profile
EXPORTING
SOURCE_EDKP1 = "Key (EDPP1) for Partner Profile to be Read
DEST_EDKP1 = "Key (EDPP1) for Partner Profile to be Created
* ACTIVE_FIELD = ' ' "' ': Copy MATLVL, <>' ': Set MATLVL
* NO_PTYPE_CHECK = ' ' "'X': No Partner Type Check
* NO_EXCEPTIONS = ' ' "'X': Do not trigger exceptions if error occurs

IMPORTING
PE_ERROR = "

EXCEPTIONS
DB_ERROR = 1 ENTRY_NOT_EXIST = 2 ENTRY_ALREADY_EXIST = 3 PARAMETER_ERROR = 4
.




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_SAPLEDI6_001 CA-EDI, Partner IDoc: Exit after Segment E1EDPP1
EXIT_SAPLEDI6_002 CA-EDI, Partner IDoc: Exit After Segment E1ADRM0
EXIT_SAPLEDI6_003 CA-EDI, Partner IDoc: Final Exit Before Sending
EXIT_SAPLEDI6_004 CA-EDI, Partner IDoc: Exit after Segment E1ADRP0
EXIT_SAPLEDI6_005 CA-EDI, Partner IDoc: Exit after Segment E1ADRE0
EXIT_SAPLEDI6_007 CA-EDI, Partner IDoc: Exit after Segment E1EDP13
EXIT_SAPLEDI6_008 CA-EDI, Partner IDoc: Exit after Segment E1EDP21

IMPORTING Parameters details for EDI_PARTNER_COPY_COMPLETE

SOURCE_EDKP1 - Key (EDPP1) for Partner Profile to be Read

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

DEST_EDKP1 - Key (EDPP1) for Partner Profile to be Created

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

ACTIVE_FIELD - SPACE: Copy MATLVL, <>SPACE: Set MATLVL

Data type: EDPP1-MATLVL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

NO_PTYPE_CHECK - 'X': No Partner Type Check

Data type: EDI_HELP-ERROR_FLAG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

NO_EXCEPTIONS - 'X': Do not trigger exceptions if error occurs

Data type: EDI_HELP-ERROR_FLAG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for EDI_PARTNER_COPY_COMPLETE

PE_ERROR -

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

EXCEPTIONS details

DB_ERROR - Database Error

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

ENTRY_NOT_EXIST - Entry to Be Copied Does not Exist

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

ENTRY_ALREADY_EXIST - Entry to Be Created Already Exists

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

PARAMETER_ERROR - Error in Parameter Check for Partner API

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

Copy and paste ABAP code example for EDI_PARTNER_COPY_COMPLETE 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_db_error  TYPE STRING, "   
lv_pe_error  TYPE EDI_HELP-ERROR_FLAG, "   
lv_source_edkp1  TYPE EDKP1, "   
lv_dest_edkp1  TYPE EDKP1, "   
lv_entry_not_exist  TYPE EDKP1, "   
lv_active_field  TYPE EDPP1-MATLVL, "   ' '
lv_entry_already_exist  TYPE EDPP1, "   
lv_no_ptype_check  TYPE EDI_HELP-ERROR_FLAG, "   ' '
lv_parameter_error  TYPE EDI_HELP, "   
lv_no_exceptions  TYPE EDI_HELP-ERROR_FLAG. "   ' '

  CALL FUNCTION 'EDI_PARTNER_COPY_COMPLETE'  "EDI PP: Copy complete partner profile
    EXPORTING
         SOURCE_EDKP1 = lv_source_edkp1
         DEST_EDKP1 = lv_dest_edkp1
         ACTIVE_FIELD = lv_active_field
         NO_PTYPE_CHECK = lv_no_ptype_check
         NO_EXCEPTIONS = lv_no_exceptions
    IMPORTING
         PE_ERROR = lv_pe_error
    EXCEPTIONS
        DB_ERROR = 1
        ENTRY_NOT_EXIST = 2
        ENTRY_ALREADY_EXIST = 3
        PARAMETER_ERROR = 4
. " EDI_PARTNER_COPY_COMPLETE




ABAP code using 7.40 inline data declarations to call FM EDI_PARTNER_COPY_COMPLETE

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 ERROR_FLAG FROM EDI_HELP INTO @DATA(ld_pe_error).
 
 
 
 
"SELECT single MATLVL FROM EDPP1 INTO @DATA(ld_active_field).
DATA(ld_active_field) = ' '.
 
 
"SELECT single ERROR_FLAG FROM EDI_HELP INTO @DATA(ld_no_ptype_check).
DATA(ld_no_ptype_check) = ' '.
 
 
"SELECT single ERROR_FLAG FROM EDI_HELP INTO @DATA(ld_no_exceptions).
DATA(ld_no_exceptions) = ' '.
 


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!