SAP SHP_CHECK_PARTNER_COMBINATION Function Module for NOTRANSL: Partner vom Vorgängerbeleg kopieren
SHP_CHECK_PARTNER_COMBINATION is a standard shp check partner combination SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Partner vom Vorgängerbeleg kopieren 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 shp check partner combination FM, simply by entering the name SHP_CHECK_PARTNER_COMBINATION into the relevant SAP transaction such as SE37 or SE38.
Function Group: V50A
Program Name: SAPLV50A
Main Program: SAPLV50A
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SHP_CHECK_PARTNER_COMBINATION 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 'SHP_CHECK_PARTNER_COMBINATION'"NOTRANSL: Partner vom Vorgängerbeleg kopieren.
EXPORTING
* IT_PARTNER = "Partner Table for GN_DELIVERY_CREATE
* IF_LIFNR = "Account Number of Supplier
* IF_SPDNR = "Fwd. Agent
* IF_ADRDA_WE = 'D' "
* IF_ADRNR_WE = "Address Number of the Ship-To Party
* IF_ADRNR_LI = "
* IF_ABLAD = ' ' "Unloading Point
* IS_TVLK = "Delivery: Types
* IF_ANALYSIS_REQUEST = ' ' "
* IF_DELIVER_SALES_ORDER = ' ' "Indicator: Function 'Deliver sales order' is active
* IS_V50AGL = "Global Delivery Control Indicators
* IF_TEMP_VBELN = ' ' "Temporary Document No.
* IF_RFBEL = ' ' "
* IF_RFPOS = '000000' "
* IF_VKORG = ' ' "Sales Organization
* IF_VTWEG = ' ' "Distribution Channel
* IF_SPART = ' ' "Division
* IF_KUNWE = "Goods Recipient
* IF_KUNAG = "Sold-To Party
IMPORTING
ET_ANALYSE = "
EF_PARTNERS_IDENTICAL = "
TABLES
IT_VBPA_EXIST = "
* IT_CVBPA = "
EXCEPTIONS
ERROR_IN_INTERFACE = 1 ADDRESS_COPYING_ERROR = 2
IMPORTING Parameters details for SHP_CHECK_PARTNER_COMBINATION
IT_PARTNER - Partner Table for GN_DELIVERY_CREATE
Data type: PARTNER_GN_TOptional: Yes
Call by Reference: Yes
IF_LIFNR - Account Number of Supplier
Data type: KOMDLGN-LIFNROptional: Yes
Call by Reference: No ( called with pass by value option)
IF_SPDNR - Fwd. Agent
Data type: KOMDLGN-SPDNROptional: Yes
Call by Reference: No ( called with pass by value option)
IF_ADRDA_WE -
Data type: KOMDLGN-ADRDA_WEDefault: 'D'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IF_ADRNR_WE - Address Number of the Ship-To Party
Data type: KOMDLGN-ADRNR_WEOptional: Yes
Call by Reference: No ( called with pass by value option)
IF_ADRNR_LI -
Data type: KOMDLGN-ADRNR_LIOptional: Yes
Call by Reference: No ( called with pass by value option)
IF_ABLAD - Unloading Point
Data type: LIKP-ABLADDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IS_TVLK - Delivery: Types
Data type: TVLKOptional: Yes
Call by Reference: Yes
IF_ANALYSIS_REQUEST -
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IF_DELIVER_SALES_ORDER - Indicator: Function 'Deliver sales order' is active
Data type: V50AGL_DELIVER_SALES_ORDERDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IS_V50AGL - Global Delivery Control Indicators
Data type: V50AGLOptional: Yes
Call by Reference: Yes
IF_TEMP_VBELN - Temporary Document No.
Data type: LIKP-VBELNDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IF_RFBEL -
Data type: KOMDLGN-RFBELDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IF_RFPOS -
Data type: KOMDLGN-RFPOSDefault: '000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IF_VKORG - Sales Organization
Data type: LIKP-VKORGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IF_VTWEG - Distribution Channel
Data type: LIPS-VTWEGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IF_SPART - Division
Data type: LIPS-SPARTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IF_KUNWE - Goods Recipient
Data type: KOMDLGN-KUNWEOptional: Yes
Call by Reference: No ( called with pass by value option)
IF_KUNAG - Sold-To Party
Data type: KOMDLGN-KUNAGOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SHP_CHECK_PARTNER_COMBINATION
ET_ANALYSE -
Data type: VLIKP_T_ANALYSEOptional: No
Call by Reference: Yes
EF_PARTNERS_IDENTICAL -
Data type: XFELDOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SHP_CHECK_PARTNER_COMBINATION
IT_VBPA_EXIST -
Data type: VBPAVBOptional: No
Call by Reference: Yes
IT_CVBPA -
Data type: VBPAVBOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR_IN_INTERFACE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ADDRESS_COPYING_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SHP_CHECK_PARTNER_COMBINATION 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_et_analyse | TYPE VLIKP_T_ANALYSE, " | |||
| lv_it_partner | TYPE PARTNER_GN_T, " | |||
| lt_it_vbpa_exist | TYPE STANDARD TABLE OF VBPAVB, " | |||
| lv_error_in_interface | TYPE VBPAVB, " | |||
| lv_if_lifnr | TYPE KOMDLGN-LIFNR, " | |||
| lv_if_spdnr | TYPE KOMDLGN-SPDNR, " | |||
| lv_if_adrda_we | TYPE KOMDLGN-ADRDA_WE, " 'D' | |||
| lv_if_adrnr_we | TYPE KOMDLGN-ADRNR_WE, " | |||
| lv_if_adrnr_li | TYPE KOMDLGN-ADRNR_LI, " | |||
| lv_if_ablad | TYPE LIKP-ABLAD, " SPACE | |||
| lv_is_tvlk | TYPE TVLK, " | |||
| lv_if_analysis_request | TYPE XFELD, " SPACE | |||
| lv_if_deliver_sales_order | TYPE V50AGL_DELIVER_SALES_ORDER, " SPACE | |||
| lv_is_v50agl | TYPE V50AGL, " | |||
| lt_it_cvbpa | TYPE STANDARD TABLE OF VBPAVB, " | |||
| lv_if_temp_vbeln | TYPE LIKP-VBELN, " SPACE | |||
| lv_address_copying_error | TYPE LIKP, " | |||
| lv_ef_partners_identical | TYPE XFELD, " | |||
| lv_if_rfbel | TYPE KOMDLGN-RFBEL, " SPACE | |||
| lv_if_rfpos | TYPE KOMDLGN-RFPOS, " '000000' | |||
| lv_if_vkorg | TYPE LIKP-VKORG, " SPACE | |||
| lv_if_vtweg | TYPE LIPS-VTWEG, " SPACE | |||
| lv_if_spart | TYPE LIPS-SPART, " SPACE | |||
| lv_if_kunwe | TYPE KOMDLGN-KUNWE, " | |||
| lv_if_kunag | TYPE KOMDLGN-KUNAG. " |
|   CALL FUNCTION 'SHP_CHECK_PARTNER_COMBINATION' "NOTRANSL: Partner vom Vorgängerbeleg kopieren |
| EXPORTING | ||
| IT_PARTNER | = lv_it_partner | |
| IF_LIFNR | = lv_if_lifnr | |
| IF_SPDNR | = lv_if_spdnr | |
| IF_ADRDA_WE | = lv_if_adrda_we | |
| IF_ADRNR_WE | = lv_if_adrnr_we | |
| IF_ADRNR_LI | = lv_if_adrnr_li | |
| IF_ABLAD | = lv_if_ablad | |
| IS_TVLK | = lv_is_tvlk | |
| IF_ANALYSIS_REQUEST | = lv_if_analysis_request | |
| IF_DELIVER_SALES_ORDER | = lv_if_deliver_sales_order | |
| IS_V50AGL | = lv_is_v50agl | |
| IF_TEMP_VBELN | = lv_if_temp_vbeln | |
| IF_RFBEL | = lv_if_rfbel | |
| IF_RFPOS | = lv_if_rfpos | |
| IF_VKORG | = lv_if_vkorg | |
| IF_VTWEG | = lv_if_vtweg | |
| IF_SPART | = lv_if_spart | |
| IF_KUNWE | = lv_if_kunwe | |
| IF_KUNAG | = lv_if_kunag | |
| IMPORTING | ||
| ET_ANALYSE | = lv_et_analyse | |
| EF_PARTNERS_IDENTICAL | = lv_ef_partners_identical | |
| TABLES | ||
| IT_VBPA_EXIST | = lt_it_vbpa_exist | |
| IT_CVBPA | = lt_it_cvbpa | |
| EXCEPTIONS | ||
| ERROR_IN_INTERFACE = 1 | ||
| ADDRESS_COPYING_ERROR = 2 | ||
| . " SHP_CHECK_PARTNER_COMBINATION | ||
ABAP code using 7.40 inline data declarations to call FM SHP_CHECK_PARTNER_COMBINATION
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 LIFNR FROM KOMDLGN INTO @DATA(ld_if_lifnr). | ||||
| "SELECT single SPDNR FROM KOMDLGN INTO @DATA(ld_if_spdnr). | ||||
| "SELECT single ADRDA_WE FROM KOMDLGN INTO @DATA(ld_if_adrda_we). | ||||
| DATA(ld_if_adrda_we) | = 'D'. | |||
| "SELECT single ADRNR_WE FROM KOMDLGN INTO @DATA(ld_if_adrnr_we). | ||||
| "SELECT single ADRNR_LI FROM KOMDLGN INTO @DATA(ld_if_adrnr_li). | ||||
| "SELECT single ABLAD FROM LIKP INTO @DATA(ld_if_ablad). | ||||
| DATA(ld_if_ablad) | = ' '. | |||
| DATA(ld_if_analysis_request) | = ' '. | |||
| DATA(ld_if_deliver_sales_order) | = ' '. | |||
| "SELECT single VBELN FROM LIKP INTO @DATA(ld_if_temp_vbeln). | ||||
| DATA(ld_if_temp_vbeln) | = ' '. | |||
| "SELECT single RFBEL FROM KOMDLGN INTO @DATA(ld_if_rfbel). | ||||
| DATA(ld_if_rfbel) | = ' '. | |||
| "SELECT single RFPOS FROM KOMDLGN INTO @DATA(ld_if_rfpos). | ||||
| DATA(ld_if_rfpos) | = '000000'. | |||
| "SELECT single VKORG FROM LIKP INTO @DATA(ld_if_vkorg). | ||||
| DATA(ld_if_vkorg) | = ' '. | |||
| "SELECT single VTWEG FROM LIPS INTO @DATA(ld_if_vtweg). | ||||
| DATA(ld_if_vtweg) | = ' '. | |||
| "SELECT single SPART FROM LIPS INTO @DATA(ld_if_spart). | ||||
| DATA(ld_if_spart) | = ' '. | |||
| "SELECT single KUNWE FROM KOMDLGN INTO @DATA(ld_if_kunwe). | ||||
| "SELECT single KUNAG FROM KOMDLGN INTO @DATA(ld_if_kunag). | ||||
Search for further information about these or an SAP related objects