SAP BAPI_BUPA_CREATE_FROM_DATA Function Module for SAP BP, BAPI: Create Business Partner









BAPI_BUPA_CREATE_FROM_DATA is a standard bapi bupa create from data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for SAP BP, BAPI: Create Business Partner 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 bupa create from data FM, simply by entering the name BAPI_BUPA_CREATE_FROM_DATA into the relevant SAP transaction such as SE37 or SE38.

Function Group: BUBA_3
Program Name: SAPLBUBA_3
Main Program: SAPLBUBA_3
Appliation area:
Release date: 13-Nov-2001
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_BUPA_CREATE_FROM_DATA 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_BUPA_CREATE_FROM_DATA'"SAP BP, BAPI: Create Business Partner
EXPORTING
* BUSINESSPARTNEREXTERN = "Business Partner Number
* ACCEPT_ERROR = ' ' "Accept Regional Structure Check Errors with Warnings
PARTNERCATEGORY = "Business Partner Category
* PARTNERGROUP = "Business Partner Grouping
CENTRALDATA = "Central Data
* CENTRALDATAPERSON = "Central Data, Person
* CENTRALDATAORGANIZATION = "Central Data, Organization
* CENTRALDATAGROUP = "Central Data, Group
* ADDRESSDATA = "Address
* DUPLICATE_MESSAGE_TYPE = "Message Type Control

IMPORTING
BUSINESSPARTNER = "Business Partner Number

TABLES
* TELEFONDATA = "Telephone Numbers
* SSFADDRESSDATA = "SSF Addresses
* URIADDRESSDATA = "URI Addresses
* PAGADDRESSDATA = "Pager Numbers
* ADDRESSNOTES = "Address Notes
* COMMUNICATIONNOTES = "Notes on Communication
* COMMUNICATIONUSAGE = "Communication Usages (BAS)
* TELEFONDATANONADDRESS = "Telephone Numbers (Address-Independent)
* FAXDATANONADDRESS = "Fax Numbers (Address-Independent)
* TELETEXDATANONADDRESS = "Teletex Numbers (Address-Independent)
* TELEXDATANONADDRESS = "Telex Numbers (Address-Independent)
* FAXDATA = "Fax Numbers
* E_MAILDATANONADDRESS = "E-Mail Addresses (Address-Independent)
* RMLADDRESSDATANONADDRESS = "RML Addresses (Address-Independent)
* X400ADDRESSDATANONADDRESS = "X.400 Addresses (Address-Independent)
* RFCADDRESSDATANONADDRESS = "RFC Addresses (Address-Independent)
* PRTADDRESSDATANONADDRESS = "PRT Addresses (Address-Independent)
* SSFADDRESSDATANONADDRESS = "SSF Addresses (Address-Independent)
* URIADDRESSDATANONADDRESS = "URI Addresses (Address-Independent)
* PAGADDRESSDATANONADDRESS = "Pager Numbers (Address-Independent)
* COMMUNICATIONNOTESNONADDRESS = "Notes on Communication Types (Address-Independent)
* COMMUNICATIONUSAGENONADDRESS = "Communication Usages (Address-Independent, BAS)
* TELETEXDATA = "Teletex Numbers
* RETURN = "Messages
* ADDRESSDUPLICATES = "Address Duplicates
* TELEXDATA = "Telex Numbers
* E_MAILDATA = "Internet Addresses
* RMLADDRESSDATA = "RemoteMail Addresses
* X400ADDRESSDATA = "X400 Addresses
* RFCADDRESSDATA = "RFC Addresses
* PRTADDRESSDATA = "Printer Addresses
.



IMPORTING Parameters details for BAPI_BUPA_CREATE_FROM_DATA

BUSINESSPARTNEREXTERN - Business Partner Number

Data type: BAPIBUS1006_HEAD-BPARTNER
Optional: Yes
Call by Reference: No ( called with pass by value option)

ACCEPT_ERROR - Accept Regional Structure Check Errors with Warnings

Data type: BAPI4001_1-ACCEPT_ERR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

PARTNERCATEGORY - Business Partner Category

Data type: BAPIBUS1006_HEAD-PARTN_CAT
Optional: No
Call by Reference: No ( called with pass by value option)

PARTNERGROUP - Business Partner Grouping

Data type: BAPIBUS1006_HEAD-PARTN_GRP
Optional: Yes
Call by Reference: No ( called with pass by value option)

CENTRALDATA - Central Data

Data type: BAPIBUS1006_CENTRAL
Optional: No
Call by Reference: No ( called with pass by value option)

CENTRALDATAPERSON - Central Data, Person

Data type: BAPIBUS1006_CENTRAL_PERSON
Optional: Yes
Call by Reference: No ( called with pass by value option)

CENTRALDATAORGANIZATION - Central Data, Organization

Data type: BAPIBUS1006_CENTRAL_ORGAN
Optional: Yes
Call by Reference: No ( called with pass by value option)

CENTRALDATAGROUP - Central Data, Group

Data type: BAPIBUS1006_CENTRAL_GROUP
Optional: Yes
Call by Reference: No ( called with pass by value option)

ADDRESSDATA - Address

Data type: BAPIBUS1006_ADDRESS
Optional: Yes
Call by Reference: No ( called with pass by value option)

DUPLICATE_MESSAGE_TYPE - Message Type Control

Data type: BAPIBUS1006_HEAD-CONTROLDUPLICATEMESSAGE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for BAPI_BUPA_CREATE_FROM_DATA

BUSINESSPARTNER - Business Partner Number

Data type: BAPIBUS1006_HEAD-BPARTNER
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for BAPI_BUPA_CREATE_FROM_DATA

TELEFONDATA - Telephone Numbers

Data type: BAPIADTEL
Optional: Yes
Call by Reference: Yes

SSFADDRESSDATA - SSF Addresses

Data type: BAPIADSSF
Optional: Yes
Call by Reference: No ( called with pass by value option)

URIADDRESSDATA - URI Addresses

Data type: BAPIADURI
Optional: Yes
Call by Reference: No ( called with pass by value option)

PAGADDRESSDATA - Pager Numbers

Data type: BAPIADPAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

ADDRESSNOTES - Address Notes

Data type: BAPIAD_REM
Optional: Yes
Call by Reference: No ( called with pass by value option)

COMMUNICATIONNOTES - Notes on Communication

Data type: BAPICOMREM
Optional: Yes
Call by Reference: No ( called with pass by value option)

COMMUNICATIONUSAGE - Communication Usages (BAS)

Data type: BAPIADUSE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TELEFONDATANONADDRESS - Telephone Numbers (Address-Independent)

Data type: BAPIADTEL
Optional: Yes
Call by Reference: No ( called with pass by value option)

FAXDATANONADDRESS - Fax Numbers (Address-Independent)

Data type: BAPIADFAX
Optional: Yes
Call by Reference: No ( called with pass by value option)

TELETEXDATANONADDRESS - Teletex Numbers (Address-Independent)

Data type: BAPIADTTX
Optional: Yes
Call by Reference: No ( called with pass by value option)

TELEXDATANONADDRESS - Telex Numbers (Address-Independent)

Data type: BAPIADTLX
Optional: Yes
Call by Reference: No ( called with pass by value option)

FAXDATA - Fax Numbers

Data type: BAPIADFAX
Optional: Yes
Call by Reference: No ( called with pass by value option)

E_MAILDATANONADDRESS - E-Mail Addresses (Address-Independent)

Data type: BAPIADSMTP
Optional: Yes
Call by Reference: No ( called with pass by value option)

RMLADDRESSDATANONADDRESS - RML Addresses (Address-Independent)

Data type: BAPIADRML
Optional: Yes
Call by Reference: No ( called with pass by value option)

X400ADDRESSDATANONADDRESS - X.400 Addresses (Address-Independent)

Data type: BAPIADX400
Optional: Yes
Call by Reference: No ( called with pass by value option)

RFCADDRESSDATANONADDRESS - RFC Addresses (Address-Independent)

Data type: BAPIADRFC
Optional: Yes
Call by Reference: No ( called with pass by value option)

PRTADDRESSDATANONADDRESS - PRT Addresses (Address-Independent)

Data type: BAPIADPRT
Optional: Yes
Call by Reference: No ( called with pass by value option)

SSFADDRESSDATANONADDRESS - SSF Addresses (Address-Independent)

Data type: BAPIADSSF
Optional: Yes
Call by Reference: No ( called with pass by value option)

URIADDRESSDATANONADDRESS - URI Addresses (Address-Independent)

Data type: BAPIADURI
Optional: Yes
Call by Reference: No ( called with pass by value option)

PAGADDRESSDATANONADDRESS - Pager Numbers (Address-Independent)

Data type: BAPIADPAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

COMMUNICATIONNOTESNONADDRESS - Notes on Communication Types (Address-Independent)

Data type: BAPICOMREM
Optional: Yes
Call by Reference: No ( called with pass by value option)

COMMUNICATIONUSAGENONADDRESS - Communication Usages (Address-Independent, BAS)

Data type: BAPIADUSE
Optional: Yes
Call by Reference: Yes

TELETEXDATA - Teletex Numbers

Data type: BAPIADTTX
Optional: Yes
Call by Reference: No ( called with pass by value option)

RETURN - Messages

Data type: BAPIRET2
Optional: Yes
Call by Reference: No ( called with pass by value option)

ADDRESSDUPLICATES - Address Duplicates

Data type: BAPIBUS1006_ADDRESS_DUPLICATES
Optional: Yes
Call by Reference: Yes

TELEXDATA - Telex Numbers

Data type: BAPIADTLX
Optional: Yes
Call by Reference: No ( called with pass by value option)

E_MAILDATA - Internet Addresses

Data type: BAPIADSMTP
Optional: Yes
Call by Reference: No ( called with pass by value option)

RMLADDRESSDATA - RemoteMail Addresses

Data type: BAPIADRML
Optional: Yes
Call by Reference: No ( called with pass by value option)

X400ADDRESSDATA - X400 Addresses

Data type: BAPIADX400
Optional: Yes
Call by Reference: No ( called with pass by value option)

RFCADDRESSDATA - RFC Addresses

Data type: BAPIADRFC
Optional: Yes
Call by Reference: No ( called with pass by value option)

PRTADDRESSDATA - Printer Addresses

Data type: BAPIADPRT
Optional: Yes
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for BAPI_BUPA_CREATE_FROM_DATA 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:
lt_telefondata  TYPE STANDARD TABLE OF BAPIADTEL, "   
lv_businesspartner  TYPE BAPIBUS1006_HEAD-BPARTNER, "   
lv_businesspartnerextern  TYPE BAPIBUS1006_HEAD-BPARTNER, "   
lv_accept_error  TYPE BAPI4001_1-ACCEPT_ERR, "   SPACE
lt_ssfaddressdata  TYPE STANDARD TABLE OF BAPIADSSF, "   
lt_uriaddressdata  TYPE STANDARD TABLE OF BAPIADURI, "   
lt_pagaddressdata  TYPE STANDARD TABLE OF BAPIADPAG, "   
lt_addressnotes  TYPE STANDARD TABLE OF BAPIAD_REM, "   
lt_communicationnotes  TYPE STANDARD TABLE OF BAPICOMREM, "   
lt_communicationusage  TYPE STANDARD TABLE OF BAPIADUSE, "   
lt_telefondatanonaddress  TYPE STANDARD TABLE OF BAPIADTEL, "   
lt_faxdatanonaddress  TYPE STANDARD TABLE OF BAPIADFAX, "   
lt_teletexdatanonaddress  TYPE STANDARD TABLE OF BAPIADTTX, "   
lt_telexdatanonaddress  TYPE STANDARD TABLE OF BAPIADTLX, "   
lt_faxdata  TYPE STANDARD TABLE OF BAPIADFAX, "   
lv_partnercategory  TYPE BAPIBUS1006_HEAD-PARTN_CAT, "   
lt_e_maildatanonaddress  TYPE STANDARD TABLE OF BAPIADSMTP, "   
lt_rmladdressdatanonaddress  TYPE STANDARD TABLE OF BAPIADRML, "   
lt_x400addressdatanonaddress  TYPE STANDARD TABLE OF BAPIADX400, "   
lt_rfcaddressdatanonaddress  TYPE STANDARD TABLE OF BAPIADRFC, "   
lt_prtaddressdatanonaddress  TYPE STANDARD TABLE OF BAPIADPRT, "   
lt_ssfaddressdatanonaddress  TYPE STANDARD TABLE OF BAPIADSSF, "   
lt_uriaddressdatanonaddress  TYPE STANDARD TABLE OF BAPIADURI, "   
lt_pagaddressdatanonaddress  TYPE STANDARD TABLE OF BAPIADPAG, "   
lt_communicationnotesnonaddress  TYPE STANDARD TABLE OF BAPICOMREM, "   
lt_communicationusagenonaddress  TYPE STANDARD TABLE OF BAPIADUSE, "   
lt_teletexdata  TYPE STANDARD TABLE OF BAPIADTTX, "   
lv_partnergroup  TYPE BAPIBUS1006_HEAD-PARTN_GRP, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lt_addressduplicates  TYPE STANDARD TABLE OF BAPIBUS1006_ADDRESS_DUPLICATES, "   
lt_telexdata  TYPE STANDARD TABLE OF BAPIADTLX, "   
lv_centraldata  TYPE BAPIBUS1006_CENTRAL, "   
lt_e_maildata  TYPE STANDARD TABLE OF BAPIADSMTP, "   
lv_centraldataperson  TYPE BAPIBUS1006_CENTRAL_PERSON, "   
lt_rmladdressdata  TYPE STANDARD TABLE OF BAPIADRML, "   
lv_centraldataorganization  TYPE BAPIBUS1006_CENTRAL_ORGAN, "   
lt_x400addressdata  TYPE STANDARD TABLE OF BAPIADX400, "   
lv_centraldatagroup  TYPE BAPIBUS1006_CENTRAL_GROUP, "   
lv_addressdata  TYPE BAPIBUS1006_ADDRESS, "   
lt_rfcaddressdata  TYPE STANDARD TABLE OF BAPIADRFC, "   
lt_prtaddressdata  TYPE STANDARD TABLE OF BAPIADPRT, "   
lv_duplicate_message_type  TYPE BAPIBUS1006_HEAD-CONTROLDUPLICATEMESSAGE. "   

  CALL FUNCTION 'BAPI_BUPA_CREATE_FROM_DATA'  "SAP BP, BAPI: Create Business Partner
    EXPORTING
         BUSINESSPARTNEREXTERN = lv_businesspartnerextern
         ACCEPT_ERROR = lv_accept_error
         PARTNERCATEGORY = lv_partnercategory
         PARTNERGROUP = lv_partnergroup
         CENTRALDATA = lv_centraldata
         CENTRALDATAPERSON = lv_centraldataperson
         CENTRALDATAORGANIZATION = lv_centraldataorganization
         CENTRALDATAGROUP = lv_centraldatagroup
         ADDRESSDATA = lv_addressdata
         DUPLICATE_MESSAGE_TYPE = lv_duplicate_message_type
    IMPORTING
         BUSINESSPARTNER = lv_businesspartner
    TABLES
         TELEFONDATA = lt_telefondata
         SSFADDRESSDATA = lt_ssfaddressdata
         URIADDRESSDATA = lt_uriaddressdata
         PAGADDRESSDATA = lt_pagaddressdata
         ADDRESSNOTES = lt_addressnotes
         COMMUNICATIONNOTES = lt_communicationnotes
         COMMUNICATIONUSAGE = lt_communicationusage
         TELEFONDATANONADDRESS = lt_telefondatanonaddress
         FAXDATANONADDRESS = lt_faxdatanonaddress
         TELETEXDATANONADDRESS = lt_teletexdatanonaddress
         TELEXDATANONADDRESS = lt_telexdatanonaddress
         FAXDATA = lt_faxdata
         E_MAILDATANONADDRESS = lt_e_maildatanonaddress
         RMLADDRESSDATANONADDRESS = lt_rmladdressdatanonaddress
         X400ADDRESSDATANONADDRESS = lt_x400addressdatanonaddress
         RFCADDRESSDATANONADDRESS = lt_rfcaddressdatanonaddress
         PRTADDRESSDATANONADDRESS = lt_prtaddressdatanonaddress
         SSFADDRESSDATANONADDRESS = lt_ssfaddressdatanonaddress
         URIADDRESSDATANONADDRESS = lt_uriaddressdatanonaddress
         PAGADDRESSDATANONADDRESS = lt_pagaddressdatanonaddress
         COMMUNICATIONNOTESNONADDRESS = lt_communicationnotesnonaddress
         COMMUNICATIONUSAGENONADDRESS = lt_communicationusagenonaddress
         TELETEXDATA = lt_teletexdata
         RETURN = lt_return
         ADDRESSDUPLICATES = lt_addressduplicates
         TELEXDATA = lt_telexdata
         E_MAILDATA = lt_e_maildata
         RMLADDRESSDATA = lt_rmladdressdata
         X400ADDRESSDATA = lt_x400addressdata
         RFCADDRESSDATA = lt_rfcaddressdata
         PRTADDRESSDATA = lt_prtaddressdata
. " BAPI_BUPA_CREATE_FROM_DATA




ABAP code using 7.40 inline data declarations to call FM BAPI_BUPA_CREATE_FROM_DATA

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_businesspartnerextern).
 
"SELECT single ACCEPT_ERR FROM BAPI4001_1 INTO @DATA(ld_accept_error).
DATA(ld_accept_error) = ' '.
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single PARTN_CAT FROM BAPIBUS1006_HEAD INTO @DATA(ld_partnercategory).
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single PARTN_GRP FROM BAPIBUS1006_HEAD INTO @DATA(ld_partnergroup).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single CONTROLDUPLICATEMESSAGE FROM BAPIBUS1006_HEAD INTO @DATA(ld_duplicate_message_type).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!