SAP SD_VBPA_CHECK Function Module for NOTRANSL: Prüfung, ob VBPA-Partner initial sind
SD_VBPA_CHECK is a standard sd vbpa check 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: Prüfung, ob VBPA-Partner initial sind 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 sd vbpa check FM, simply by entering the name SD_VBPA_CHECK into the relevant SAP transaction such as SE37 or SE38.
Function Group: V02P
Program Name: SAPLV02P
Main Program: SAPLV02P
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SD_VBPA_CHECK 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 'SD_VBPA_CHECK'"NOTRANSL: Prüfung, ob VBPA-Partner initial sind.
EXPORTING
* I_VBPA = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_VBPAVB = "
* I_PARVW = "
* I_PARTNER = "
IMPORTING
PARTNER_INITIAL = "DE-EN-LANG-SWITCH-NO-TRANSLATION
EXCEPTIONS
PARTNER_FUNCTION_NOT_VALID = 1 PARVW_DIFFERENT = 2 KUNNR_DIFFERENT = 3 LIFNR_DIFFERENT = 4 PERNR_DIFFERENT = 5 PARNR_DIFFERENT = 6
IMPORTING Parameters details for SD_VBPA_CHECK
I_VBPA - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: VBPAOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VBPAVB -
Data type: VBPAVBOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PARVW -
Data type: VBPA-PARVWOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PARTNER -
Data type: VBPA-KUNNROptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SD_VBPA_CHECK
PARTNER_INITIAL - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: RF02D-SELKZOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
PARTNER_FUNCTION_NOT_VALID - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PARVW_DIFFERENT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
KUNNR_DIFFERENT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LIFNR_DIFFERENT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PERNR_DIFFERENT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PARNR_DIFFERENT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SD_VBPA_CHECK 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_i_vbpa | TYPE VBPA, " | |||
| lv_partner_initial | TYPE RF02D-SELKZ, " | |||
| lv_partner_function_not_valid | TYPE RF02D, " | |||
| lv_i_vbpavb | TYPE VBPAVB, " | |||
| lv_parvw_different | TYPE VBPAVB, " | |||
| lv_i_parvw | TYPE VBPA-PARVW, " | |||
| lv_kunnr_different | TYPE VBPA, " | |||
| lv_i_partner | TYPE VBPA-KUNNR, " | |||
| lv_lifnr_different | TYPE VBPA, " | |||
| lv_pernr_different | TYPE VBPA, " | |||
| lv_parnr_different | TYPE VBPA. " |
|   CALL FUNCTION 'SD_VBPA_CHECK' "NOTRANSL: Prüfung, ob VBPA-Partner initial sind |
| EXPORTING | ||
| I_VBPA | = lv_i_vbpa | |
| I_VBPAVB | = lv_i_vbpavb | |
| I_PARVW | = lv_i_parvw | |
| I_PARTNER | = lv_i_partner | |
| IMPORTING | ||
| PARTNER_INITIAL | = lv_partner_initial | |
| EXCEPTIONS | ||
| PARTNER_FUNCTION_NOT_VALID = 1 | ||
| PARVW_DIFFERENT = 2 | ||
| KUNNR_DIFFERENT = 3 | ||
| LIFNR_DIFFERENT = 4 | ||
| PERNR_DIFFERENT = 5 | ||
| PARNR_DIFFERENT = 6 | ||
| . " SD_VBPA_CHECK | ||
ABAP code using 7.40 inline data declarations to call FM SD_VBPA_CHECK
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 SELKZ FROM RF02D INTO @DATA(ld_partner_initial). | ||||
| "SELECT single PARVW FROM VBPA INTO @DATA(ld_i_parvw). | ||||
| "SELECT single KUNNR FROM VBPA INTO @DATA(ld_i_partner). | ||||
Search for further information about these or an SAP related objects