SAP BAPI_BPCONSUMER_CREATE Function Module for
BAPI_BPCONSUMER_CREATE is a standard bapi bpconsumer create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 bpconsumer create FM, simply by entering the name BAPI_BPCONSUMER_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: CRM_BUPA_CONSUMER
Program Name: SAPLCRM_BUPA_CONSUMER
Main Program: SAPLCRM_BUPA_CONSUMER
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_BPCONSUMER_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 'BAPI_BPCONSUMER_CREATE'".
EXPORTING
* PARTNER_EXTERNAL_NO = "External Business Partner Number
* ACCEPT_ERROR_ADDR = "Accept Regional Structure Check Errors With Warnings
* PARTNER_GROUP = "Business Partner Grouping
PARTNER_CATEGORY = "Business Partner Category
PARTNER_CENTRAL_DATA = "SAP BP: BAPI Structure for Central Data
* CENTRAL_DATA_PERSON = "SAP BP: BAPI Structure for Personal Data
* CENTRAL_DATA_ORGANIZATION = "SAP BP: BAPI Structure for Organizational Data
* CENTRAL_DATA_GROUP = "SAP BP: BAPI Structure for Group Data
* PARTNER_ADDR = "SAP BP: BAPI Structure for Address Data
* DUPLICATE_MESSAGE_TYPE_ADDR = "Output: Severity of error (N/' '-normal, E/F/A-error)
IMPORTING
BUSINESSPARTNER = "Business Partner Number
TABLES
* PARTNER_TEL_ADDR = "BAPI Structure for Telephone Numbers (BAS)
* PARTNER_SSF_ADDR = "BAPI Structure for SSF Addresses (BAS)
* PARTNER_URI_ADDR = "BAPI Structure for URL Addresses (BAS)
* PARTNER_PAGER_ADDR = "BAPI Structure for Pager Numbers (BAS)
* PARTNER_NOTE_ADDR = "BAPI Structure for Address Comments
* PARTNER_NOTECOM_ADDR = "BAPI Structure for Comments on Communication Types
* PARTNER_TEL_NONADDRESS = "Telephone Numbers (Address-Independent)
* PARTNER_FAX_NONADDRESS = "Fax Numbers (Address-Independent)
* PARTNER_TELETEX_NONADDRESS = "Teletex Numbers (Address-Independent)
* PARTNER_TELEX_NONADDRESS = "Telex Numbers (Address-Independent)
* PARTNER_EMAIL_NONADDRESS = "E-Mail Addresses (Address-Independent)
* PARTNER_FAX_ADDR = "BAPI Structure for Fax Numbers (BAS)
* PARTNER_RML_NONADDRESS = "RML Addresses (Address-Independent)
* PARTNER_X400_NONADDRESS = "X.400 Addresses (Address-Independent)
* PARTNER_RFC_NONADDRESS = "RFC Addresses (Address-Independent)
* PARTNER_PRT_NONADDRESS = "PRT Addresses (Address-Independent)
* PARTNER_SSF_NONADDRESS = "SSF Addresses (Address-Independent)
* PARTNER_URI_NONADDRESS = "URI Addresses (Address-Independent)
* PARTNER_PAGER_NONADDRESS = "Pager Numbers (Address-Independent)
* PARTNER_NOTECOM_NONADDRESS = "Notes on Communication Types (Address-Independent)
* PARTNER_ADDRESSDUPLICATES = "Address Duplicates
* PARTNER_BANK_ATTR = "SAP BP: BAPI Structure for Bank Details Data
* PARTNER_TELETEX_ADDR = "BAPI Structure for Teletext Numbers (BAS)
* RETURN = "Return of Messages
* PARTNER_TELEX_ADDR = "BAPI Structure for Telex Numbers (BAS)
* PARTNER_EMAIL_ADDR = "BAPI Structure for E-Mail Addresses (BAS)
* PARTNER_RML_ADDR = "BAPI Structure for RML Addresses (BAS)
* PARTNER_X400_ADDR = "BAPI Structure for X.400 Addresses (BAS)
* PARTNER_RFC_ADDR = "BAPI Structure for RFC Addresses (BAS)
* PARTNER_PRT_ADDR = "BAPI Structure for PRT Addresses (BAS)
IMPORTING Parameters details for BAPI_BPCONSUMER_CREATE
PARTNER_EXTERNAL_NO - External Business Partner Number
Data type: BAPIBUS1006_HEAD-BPARTNEROptional: Yes
Call by Reference: No ( called with pass by value option)
ACCEPT_ERROR_ADDR - Accept Regional Structure Check Errors With Warnings
Data type: BAPI4001_1-ACCEPT_ERROptional: Yes
Call by Reference: No ( called with pass by value option)
PARTNER_GROUP - Business Partner Grouping
Data type: BAPIBUS1006_HEAD-PARTN_GRPOptional: Yes
Call by Reference: No ( called with pass by value option)
PARTNER_CATEGORY - Business Partner Category
Data type: BAPIBUS1006_HEAD-PARTN_CATOptional: No
Call by Reference: No ( called with pass by value option)
PARTNER_CENTRAL_DATA - SAP BP: BAPI Structure for Central Data
Data type: BAPIBUS1006_CENTRALOptional: No
Call by Reference: No ( called with pass by value option)
CENTRAL_DATA_PERSON - SAP BP: BAPI Structure for Personal Data
Data type: BAPIBUS1006_CENTRAL_PERSONOptional: Yes
Call by Reference: No ( called with pass by value option)
CENTRAL_DATA_ORGANIZATION - SAP BP: BAPI Structure for Organizational Data
Data type: BAPIBUS1006_CENTRAL_ORGANOptional: Yes
Call by Reference: No ( called with pass by value option)
CENTRAL_DATA_GROUP - SAP BP: BAPI Structure for Group Data
Data type: BAPIBUS1006_CENTRAL_GROUPOptional: Yes
Call by Reference: No ( called with pass by value option)
PARTNER_ADDR - SAP BP: BAPI Structure for Address Data
Data type: BAPIBUS1006_ADDRESSOptional: Yes
Call by Reference: No ( called with pass by value option)
DUPLICATE_MESSAGE_TYPE_ADDR - Output: Severity of error (N/SPACE-normal, E/F/A-error)
Data type: BAPIBUS1006_HEAD-CONTROLDUPLICATEMESSAGEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_BPCONSUMER_CREATE
BUSINESSPARTNER - Business Partner Number
Data type: BAPIBUS1006_HEAD-BPARTNEROptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_BPCONSUMER_CREATE
PARTNER_TEL_ADDR - BAPI Structure for Telephone Numbers (BAS)
Data type: BAPIADTELOptional: Yes
Call by Reference: No ( called with pass by value option)
PARTNER_SSF_ADDR - BAPI Structure for SSF Addresses (BAS)
Data type: BAPIADSSFOptional: Yes
Call by Reference: No ( called with pass by value option)
PARTNER_URI_ADDR - BAPI Structure for URL Addresses (BAS)
Data type: BAPIADURIOptional: Yes
Call by Reference: No ( called with pass by value option)
PARTNER_PAGER_ADDR - BAPI Structure for Pager Numbers (BAS)
Data type: BAPIADPAGOptional: Yes
Call by Reference: No ( called with pass by value option)
PARTNER_NOTE_ADDR - BAPI Structure for Address Comments
Data type: BAPIAD_REMOptional: Yes
Call by Reference: No ( called with pass by value option)
PARTNER_NOTECOM_ADDR - BAPI Structure for Comments on Communication Types
Data type: BAPICOMREMOptional: Yes
Call by Reference: No ( called with pass by value option)
PARTNER_TEL_NONADDRESS - Telephone Numbers (Address-Independent)
Data type: BAPIADTELOptional: Yes
Call by Reference: Yes
PARTNER_FAX_NONADDRESS - Fax Numbers (Address-Independent)
Data type: BAPIADFAXOptional: Yes
Call by Reference: Yes
PARTNER_TELETEX_NONADDRESS - Teletex Numbers (Address-Independent)
Data type: BAPIADTTXOptional: Yes
Call by Reference: Yes
PARTNER_TELEX_NONADDRESS - Telex Numbers (Address-Independent)
Data type: BAPIADTLXOptional: Yes
Call by Reference: Yes
PARTNER_EMAIL_NONADDRESS - E-Mail Addresses (Address-Independent)
Data type: BAPIADSMTPOptional: Yes
Call by Reference: No ( called with pass by value option)
PARTNER_FAX_ADDR - BAPI Structure for Fax Numbers (BAS)
Data type: BAPIADFAXOptional: Yes
Call by Reference: No ( called with pass by value option)
PARTNER_RML_NONADDRESS - RML Addresses (Address-Independent)
Data type: BAPIADRMLOptional: Yes
Call by Reference: No ( called with pass by value option)
PARTNER_X400_NONADDRESS - X.400 Addresses (Address-Independent)
Data type: BAPIADX400Optional: Yes
Call by Reference: Yes
PARTNER_RFC_NONADDRESS - RFC Addresses (Address-Independent)
Data type: BAPIADRFCOptional: Yes
Call by Reference: Yes
PARTNER_PRT_NONADDRESS - PRT Addresses (Address-Independent)
Data type: BAPIADPRTOptional: Yes
Call by Reference: Yes
PARTNER_SSF_NONADDRESS - SSF Addresses (Address-Independent)
Data type: BAPIADSSFOptional: Yes
Call by Reference: Yes
PARTNER_URI_NONADDRESS - URI Addresses (Address-Independent)
Data type: BAPIADURIOptional: Yes
Call by Reference: Yes
PARTNER_PAGER_NONADDRESS - Pager Numbers (Address-Independent)
Data type: BAPIADPAGOptional: Yes
Call by Reference: Yes
PARTNER_NOTECOM_NONADDRESS - Notes on Communication Types (Address-Independent)
Data type: BAPICOMREMOptional: Yes
Call by Reference: Yes
PARTNER_ADDRESSDUPLICATES - Address Duplicates
Data type: BAPIBUS1006_ADDRESS_DUPLICATESOptional: Yes
Call by Reference: Yes
PARTNER_BANK_ATTR - SAP BP: BAPI Structure for Bank Details Data
Data type: BAPIBUS1006_BANKDETAILOptional: Yes
Call by Reference: No ( called with pass by value option)
PARTNER_TELETEX_ADDR - BAPI Structure for Teletext Numbers (BAS)
Data type: BAPIADTTXOptional: Yes
Call by Reference: No ( called with pass by value option)
RETURN - Return of Messages
Data type: BAPIRET2Optional: Yes
Call by Reference: No ( called with pass by value option)
PARTNER_TELEX_ADDR - BAPI Structure for Telex Numbers (BAS)
Data type: BAPIADTLXOptional: Yes
Call by Reference: No ( called with pass by value option)
PARTNER_EMAIL_ADDR - BAPI Structure for E-Mail Addresses (BAS)
Data type: BAPIADSMTPOptional: Yes
Call by Reference: No ( called with pass by value option)
PARTNER_RML_ADDR - BAPI Structure for RML Addresses (BAS)
Data type: BAPIADRMLOptional: Yes
Call by Reference: No ( called with pass by value option)
PARTNER_X400_ADDR - BAPI Structure for X.400 Addresses (BAS)
Data type: BAPIADX400Optional: Yes
Call by Reference: No ( called with pass by value option)
PARTNER_RFC_ADDR - BAPI Structure for RFC Addresses (BAS)
Data type: BAPIADRFCOptional: Yes
Call by Reference: No ( called with pass by value option)
PARTNER_PRT_ADDR - BAPI Structure for PRT Addresses (BAS)
Data type: BAPIADPRTOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_BPCONSUMER_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_businesspartner | TYPE BAPIBUS1006_HEAD-BPARTNER, " | |||
| lt_partner_tel_addr | TYPE STANDARD TABLE OF BAPIADTEL, " | |||
| lv_partner_external_no | TYPE BAPIBUS1006_HEAD-BPARTNER, " | |||
| lt_partner_ssf_addr | TYPE STANDARD TABLE OF BAPIADSSF, " | |||
| lv_accept_error_addr | TYPE BAPI4001_1-ACCEPT_ERR, " | |||
| lt_partner_uri_addr | TYPE STANDARD TABLE OF BAPIADURI, " | |||
| lt_partner_pager_addr | TYPE STANDARD TABLE OF BAPIADPAG, " | |||
| lt_partner_note_addr | TYPE STANDARD TABLE OF BAPIAD_REM, " | |||
| lt_partner_notecom_addr | TYPE STANDARD TABLE OF BAPICOMREM, " | |||
| lt_partner_tel_nonaddress | TYPE STANDARD TABLE OF BAPIADTEL, " | |||
| lt_partner_fax_nonaddress | TYPE STANDARD TABLE OF BAPIADFAX, " | |||
| lt_partner_teletex_nonaddress | TYPE STANDARD TABLE OF BAPIADTTX, " | |||
| lt_partner_telex_nonaddress | TYPE STANDARD TABLE OF BAPIADTLX, " | |||
| lt_partner_email_nonaddress | TYPE STANDARD TABLE OF BAPIADSMTP, " | |||
| lv_partner_group | TYPE BAPIBUS1006_HEAD-PARTN_GRP, " | |||
| lt_partner_fax_addr | TYPE STANDARD TABLE OF BAPIADFAX, " | |||
| lt_partner_rml_nonaddress | TYPE STANDARD TABLE OF BAPIADRML, " | |||
| lt_partner_x400_nonaddress | TYPE STANDARD TABLE OF BAPIADX400, " | |||
| lt_partner_rfc_nonaddress | TYPE STANDARD TABLE OF BAPIADRFC, " | |||
| lt_partner_prt_nonaddress | TYPE STANDARD TABLE OF BAPIADPRT, " | |||
| lt_partner_ssf_nonaddress | TYPE STANDARD TABLE OF BAPIADSSF, " | |||
| lt_partner_uri_nonaddress | TYPE STANDARD TABLE OF BAPIADURI, " | |||
| lt_partner_pager_nonaddress | TYPE STANDARD TABLE OF BAPIADPAG, " | |||
| lt_partner_notecom_nonaddress | TYPE STANDARD TABLE OF BAPICOMREM, " | |||
| lt_partner_addressduplicates | TYPE STANDARD TABLE OF BAPIBUS1006_ADDRESS_DUPLICATES, " | |||
| lt_partner_bank_attr | TYPE STANDARD TABLE OF BAPIBUS1006_BANKDETAIL, " | |||
| lv_partner_category | TYPE BAPIBUS1006_HEAD-PARTN_CAT, " | |||
| lt_partner_teletex_addr | TYPE STANDARD TABLE OF BAPIADTTX, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lt_partner_telex_addr | TYPE STANDARD TABLE OF BAPIADTLX, " | |||
| lv_partner_central_data | TYPE BAPIBUS1006_CENTRAL, " | |||
| lt_partner_email_addr | TYPE STANDARD TABLE OF BAPIADSMTP, " | |||
| lv_central_data_person | TYPE BAPIBUS1006_CENTRAL_PERSON, " | |||
| lt_partner_rml_addr | TYPE STANDARD TABLE OF BAPIADRML, " | |||
| lv_central_data_organization | TYPE BAPIBUS1006_CENTRAL_ORGAN, " | |||
| lt_partner_x400_addr | TYPE STANDARD TABLE OF BAPIADX400, " | |||
| lv_central_data_group | TYPE BAPIBUS1006_CENTRAL_GROUP, " | |||
| lv_partner_addr | TYPE BAPIBUS1006_ADDRESS, " | |||
| lt_partner_rfc_addr | TYPE STANDARD TABLE OF BAPIADRFC, " | |||
| lt_partner_prt_addr | TYPE STANDARD TABLE OF BAPIADPRT, " | |||
| lv_duplicate_message_type_addr | TYPE BAPIBUS1006_HEAD-CONTROLDUPLICATEMESSAGE. " |
|   CALL FUNCTION 'BAPI_BPCONSUMER_CREATE' " |
| EXPORTING | ||
| PARTNER_EXTERNAL_NO | = lv_partner_external_no | |
| ACCEPT_ERROR_ADDR | = lv_accept_error_addr | |
| PARTNER_GROUP | = lv_partner_group | |
| PARTNER_CATEGORY | = lv_partner_category | |
| PARTNER_CENTRAL_DATA | = lv_partner_central_data | |
| CENTRAL_DATA_PERSON | = lv_central_data_person | |
| CENTRAL_DATA_ORGANIZATION | = lv_central_data_organization | |
| CENTRAL_DATA_GROUP | = lv_central_data_group | |
| PARTNER_ADDR | = lv_partner_addr | |
| DUPLICATE_MESSAGE_TYPE_ADDR | = lv_duplicate_message_type_addr | |
| IMPORTING | ||
| BUSINESSPARTNER | = lv_businesspartner | |
| TABLES | ||
| PARTNER_TEL_ADDR | = lt_partner_tel_addr | |
| PARTNER_SSF_ADDR | = lt_partner_ssf_addr | |
| PARTNER_URI_ADDR | = lt_partner_uri_addr | |
| PARTNER_PAGER_ADDR | = lt_partner_pager_addr | |
| PARTNER_NOTE_ADDR | = lt_partner_note_addr | |
| PARTNER_NOTECOM_ADDR | = lt_partner_notecom_addr | |
| PARTNER_TEL_NONADDRESS | = lt_partner_tel_nonaddress | |
| PARTNER_FAX_NONADDRESS | = lt_partner_fax_nonaddress | |
| PARTNER_TELETEX_NONADDRESS | = lt_partner_teletex_nonaddress | |
| PARTNER_TELEX_NONADDRESS | = lt_partner_telex_nonaddress | |
| PARTNER_EMAIL_NONADDRESS | = lt_partner_email_nonaddress | |
| PARTNER_FAX_ADDR | = lt_partner_fax_addr | |
| PARTNER_RML_NONADDRESS | = lt_partner_rml_nonaddress | |
| PARTNER_X400_NONADDRESS | = lt_partner_x400_nonaddress | |
| PARTNER_RFC_NONADDRESS | = lt_partner_rfc_nonaddress | |
| PARTNER_PRT_NONADDRESS | = lt_partner_prt_nonaddress | |
| PARTNER_SSF_NONADDRESS | = lt_partner_ssf_nonaddress | |
| PARTNER_URI_NONADDRESS | = lt_partner_uri_nonaddress | |
| PARTNER_PAGER_NONADDRESS | = lt_partner_pager_nonaddress | |
| PARTNER_NOTECOM_NONADDRESS | = lt_partner_notecom_nonaddress | |
| PARTNER_ADDRESSDUPLICATES | = lt_partner_addressduplicates | |
| PARTNER_BANK_ATTR | = lt_partner_bank_attr | |
| PARTNER_TELETEX_ADDR | = lt_partner_teletex_addr | |
| RETURN | = lt_return | |
| PARTNER_TELEX_ADDR | = lt_partner_telex_addr | |
| PARTNER_EMAIL_ADDR | = lt_partner_email_addr | |
| PARTNER_RML_ADDR | = lt_partner_rml_addr | |
| PARTNER_X400_ADDR | = lt_partner_x400_addr | |
| PARTNER_RFC_ADDR | = lt_partner_rfc_addr | |
| PARTNER_PRT_ADDR | = lt_partner_prt_addr | |
| . " BAPI_BPCONSUMER_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_BPCONSUMER_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 BPARTNER FROM BAPIBUS1006_HEAD INTO @DATA(ld_businesspartner). | ||||
| "SELECT single BPARTNER FROM BAPIBUS1006_HEAD INTO @DATA(ld_partner_external_no). | ||||
| "SELECT single ACCEPT_ERR FROM BAPI4001_1 INTO @DATA(ld_accept_error_addr). | ||||
| "SELECT single PARTN_GRP FROM BAPIBUS1006_HEAD INTO @DATA(ld_partner_group). | ||||
| "SELECT single PARTN_CAT FROM BAPIBUS1006_HEAD INTO @DATA(ld_partner_category). | ||||
| "SELECT single CONTROLDUPLICATEMESSAGE FROM BAPIBUS1006_HEAD INTO @DATA(ld_duplicate_message_type_addr). | ||||
Search for further information about these or an SAP related objects