SAP BAPI_PROCRELATION_DELETEMULTI2 Function Module for Delete External Procurement Relationships
BAPI_PROCRELATION_DELETEMULTI2 is a standard bapi procrelation deletemulti2 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Delete External Procurement Relationships 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 bapi procrelation deletemulti2 FM, simply by entering the name BAPI_PROCRELATION_DELETEMULTI2 into the relevant SAP transaction such as SE37 or SE38.
Function Group: 10008
Program Name: SAPL10008
Main Program: SAPL10008
Appliation area:
Release date: 13-Jan-2006
Mode(Normal, Remote etc): Normal Function Module
Update:

Function BAPI_PROCRELATION_DELETEMULTI2 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 'BAPI_PROCRELATION_DELETEMULTI2'"Delete External Procurement Relationships.
EXPORTING
LOGICAL_SYSTEM = "Logical System from which Message Originates
* TESTRUN = "Switch to Simulation Session for Write BAPIs
* CONSIDER_INTERNAL = ' ' "X Field
* SYN_POST = ' ' "X Field
* CONSIDER_SOURCE_LIST = ' ' "Select an Option (Yes = 'X', No = ' ')
TABLES
PROC_RELATION_DEL = "BAPI Transfer Structure for Deletion/Deactivation of Procurement Relationship
* PROC_RELATION_DEL_FR = "BAPITPSRCDEL_INT
* PROC_RELATION_LOCS = "BAPI Tr.-Str. for Maintenance of TPSRC: Destination Location f. Loc-Indep.
* EXTENSIONIN = "Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
RETURN = "Return Parameters
IMPORTING Parameters details for BAPI_PROCRELATION_DELETEMULTI2
LOGICAL_SYSTEM - Logical System from which Message Originates
Data type: BAPISCMBGENFIELDS-LOGICAL_SYSTEMOptional: No
Call by Reference: No ( called with pass by value option)
TESTRUN - Switch to Simulation Session for Write BAPIs
Data type: BAPI10008PARAMS-TESTRUNOptional: Yes
Call by Reference: No ( called with pass by value option)
CONSIDER_INTERNAL - X Field
Data type: BAPISCMBGENFIELDS-XFELDDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
SYN_POST - X Field
Data type: BAPISCMBGENFIELDS-XFELDDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
CONSIDER_SOURCE_LIST - Select an Option (Yes = 'X', No = ' ')
Data type: BAPIYESNODefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_PROCRELATION_DELETEMULTI2
PROC_RELATION_DEL - BAPI Transfer Structure for Deletion/Deactivation of Procurement Relationship
Data type: BAPITPSRCDELOptional: No
Call by Reference: Yes
PROC_RELATION_DEL_FR - BAPITPSRCDEL_INT
Data type: BAPITPSRCDEL_FROptional: Yes
Call by Reference: Yes
PROC_RELATION_LOCS - BAPI Tr.-Str. for Maintenance of TPSRC: Destination Location f. Loc-Indep.
Data type: BAPITPSRC_LOCSOptional: Yes
Call by Reference: Yes
EXTENSIONIN - Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
Data type: BAPIPAREXOptional: Yes
Call by Reference: Yes
RETURN - Return Parameters
Data type: BAPIRET2Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for BAPI_PROCRELATION_DELETEMULTI2 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_logical_system | TYPE BAPISCMBGENFIELDS-LOGICAL_SYSTEM, " | |||
| lt_proc_relation_del | TYPE STANDARD TABLE OF BAPITPSRCDEL, " | |||
| lv_testrun | TYPE BAPI10008PARAMS-TESTRUN, " | |||
| lt_proc_relation_del_fr | TYPE STANDARD TABLE OF BAPITPSRCDEL_FR, " | |||
| lv_consider_internal | TYPE BAPISCMBGENFIELDS-XFELD, " ' ' | |||
| lt_proc_relation_locs | TYPE STANDARD TABLE OF BAPITPSRC_LOCS, " | |||
| lv_syn_post | TYPE BAPISCMBGENFIELDS-XFELD, " ' ' | |||
| lt_extensionin | TYPE STANDARD TABLE OF BAPIPAREX, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_consider_source_list | TYPE BAPIYESNO. " ' ' |
|   CALL FUNCTION 'BAPI_PROCRELATION_DELETEMULTI2' "Delete External Procurement Relationships |
| EXPORTING | ||
| LOGICAL_SYSTEM | = lv_logical_system | |
| TESTRUN | = lv_testrun | |
| CONSIDER_INTERNAL | = lv_consider_internal | |
| SYN_POST | = lv_syn_post | |
| CONSIDER_SOURCE_LIST | = lv_consider_source_list | |
| TABLES | ||
| PROC_RELATION_DEL | = lt_proc_relation_del | |
| PROC_RELATION_DEL_FR | = lt_proc_relation_del_fr | |
| PROC_RELATION_LOCS | = lt_proc_relation_locs | |
| EXTENSIONIN | = lt_extensionin | |
| RETURN | = lt_return | |
| . " BAPI_PROCRELATION_DELETEMULTI2 | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_PROCRELATION_DELETEMULTI2
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 LOGICAL_SYSTEM FROM BAPISCMBGENFIELDS INTO @DATA(ld_logical_system). | ||||
| "SELECT single TESTRUN FROM BAPI10008PARAMS INTO @DATA(ld_testrun). | ||||
| "SELECT single XFELD FROM BAPISCMBGENFIELDS INTO @DATA(ld_consider_internal). | ||||
| DATA(ld_consider_internal) | = ' '. | |||
| "SELECT single XFELD FROM BAPISCMBGENFIELDS INTO @DATA(ld_syn_post). | ||||
| DATA(ld_syn_post) | = ' '. | |||
| DATA(ld_consider_source_list) | = ' '. | |||
Search for further information about these or an SAP related objects