SAP EDI_AGREE_SIMPLE_CREATE Function Module for CA-EDI: Fast entry of EDI partner profiles
EDI_AGREE_SIMPLE_CREATE is a standard edi agree simple create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for CA-EDI: Fast entry of EDI partner profiles 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 agree simple create FM, simply by entering the name EDI_AGREE_SIMPLE_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: EDIP
Program Name: SAPLEDIP
Main Program:
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EDI_AGREE_SIMPLE_CREATE 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_AGREE_SIMPLE_CREATE'"CA-EDI: Fast entry of EDI partner profiles.
EXPORTING
PI_MODE = "
PI_PARNUM = "Partner Number
PI_PARTYP = "Partner Type
EXCEPTIONS
PARAMETER_ERROR = 1 NO_TEMPLATES = 2 NO_ADDITIONAL_MESSAGES = 3
IMPORTING Parameters details for EDI_AGREE_SIMPLE_CREATE
PI_MODE -
Data type: RSE_EDIP-DIRECTOptional: No
Call by Reference: No ( called with pass by value option)
PI_PARNUM - Partner Number
Data type: EDPP1-PARNUMOptional: No
Call by Reference: No ( called with pass by value option)
PI_PARTYP - Partner Type
Data type: EDPP1-PARTYPOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
PARAMETER_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_TEMPLATES -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_ADDITIONAL_MESSAGES -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EDI_AGREE_SIMPLE_CREATE 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_pi_mode | TYPE RSE_EDIP-DIRECT, " | |||
| lv_parameter_error | TYPE RSE_EDIP, " | |||
| lv_pi_parnum | TYPE EDPP1-PARNUM, " | |||
| lv_no_templates | TYPE EDPP1, " | |||
| lv_pi_partyp | TYPE EDPP1-PARTYP, " | |||
| lv_no_additional_messages | TYPE EDPP1. " |
|   CALL FUNCTION 'EDI_AGREE_SIMPLE_CREATE' "CA-EDI: Fast entry of EDI partner profiles |
| EXPORTING | ||
| PI_MODE | = lv_pi_mode | |
| PI_PARNUM | = lv_pi_parnum | |
| PI_PARTYP | = lv_pi_partyp | |
| EXCEPTIONS | ||
| PARAMETER_ERROR = 1 | ||
| NO_TEMPLATES = 2 | ||
| NO_ADDITIONAL_MESSAGES = 3 | ||
| . " EDI_AGREE_SIMPLE_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM EDI_AGREE_SIMPLE_CREATE
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 DIRECT FROM RSE_EDIP INTO @DATA(ld_pi_mode). | ||||
| "SELECT single PARNUM FROM EDPP1 INTO @DATA(ld_pi_parnum). | ||||
| "SELECT single PARTYP FROM EDPP1 INTO @DATA(ld_pi_partyp). | ||||
Search for further information about these or an SAP related objects