SAP BAPI_BUPA_FS_CREATE_FROM_DATA2 Function Module for Create Business Partner
BAPI_BUPA_FS_CREATE_FROM_DATA2 is a standard bapi bupa fs create from data2 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for 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 fs create from data2 FM, simply by entering the name BAPI_BUPA_FS_CREATE_FROM_DATA2 into the relevant SAP transaction such as SE37 or SE38.
Function Group: FS_BAPI
Program Name: SAPLFS_BAPI
Main Program: SAPLFS_BAPI
Appliation area:
Release date: 20-Mar-2006
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_BUPA_FS_CREATE_FROM_DATA2 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_FS_CREATE_FROM_DATA2'"Create Business Partner.
EXPORTING
* BUSINESSPARTNEREXTERN = "Business Partner Number
* ACCEPT_ERROR = ' ' "Accept Regional Structure Check Errors with Warnings
* TESTRUN = "Activate Simulation Mode
* CHANGEDOCU = "Generate Change Documents; obsolete
PARTNERCATEGORY = "Business Partner Category
* PARTNERGROUP = "Business Partner Grouping
CENTRALDATA = "General Data
* CENTRALDATAPERSON = "General Data for Person
* CENTRALDATAORGANIZATION = "General Organization Data
* CENTRALDATAGROUP = "General Group Data
* ADDRESSDATA = "Address Data
* DUPLICATE_MESSAGE_TYPE = "Accept Duplicate Check Errors with Warnings
IMPORTING
BUSINESSPARTNER = "Business Partner Number
TABLES
* TELEFONDATA = "Telephone Numbers
* SSFADDRESSDATA = "SSF Addresses
* URIADDRESSDATA = "URI Addresses
* PAGADDRESSDATA = "Pager Numbers
* ADDRESSNOTES = "Notes on Address
* COMMUNICATIONNOTES = "Notes on Communication
* TELEFONDATANONADDRESS = "Address-Independent Telephone Numbers
* FAXDATANONADDRESS = "Address-Independent Fax Numbers
* TELETEXDATANONADDRESS = "Address-Independent Teletex Numbers
* TELEXDATANONADDRESS = "Address-Independent Telex Numbers
* E_MAILDATANONADDRESS = "Address-Independent E-Mail Addresses
* FAXDATA = "Fax Numbers
* RMLADDRESSDATANONADDRESS = "Address-Independent RML Addresses
* X400ADDRESSDATANONADDRESS = "Address-Independent X.400 Addresses
* RFCADDRESSDATANONADDRESS = "Address-Independent RFC Addresses
* PRTADDRESSDATANONADDRESS = "Address-Independent PRT Addresses
* SSFADDRESSDATANONADDRESS = "Address-Independent SSF Addresses
* URIADDRESSDATANONADDRESS = "Address Independent URI Addresses
* PAGADDRESSDATANONADDRESS = "Address-Independent Pager Numbers
* COMMUNICATIONNOTESNONADDRESS = "Notes on Address-Independent Communication Types
* RETURN = "Returns
* ADDRESSDUPLICATES = "Address Duplicates
* TELETEXDATA = "Teletex Numbers
* ROLES = "Business Partner Role
* TELEXDATA = "Telex Numbers
* E_MAILDATA = "E-Mail Addresses
* RMLADDRESSDATA = "RML Addresses
* X400ADDRESSDATA = "X400 Addresses
* RFCADDRESSDATA = "RFC Addresses
* PRTADDRESSDATA = "PRT Addresses
IMPORTING Parameters details for BAPI_BUPA_FS_CREATE_FROM_DATA2
BUSINESSPARTNEREXTERN - Business Partner Number
Data type: BAPIBUS1006_HEAD-BPARTNEROptional: 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_ERRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TESTRUN - Activate Simulation Mode
Data type: BAPI_FSBP_CENTRAL-TESTRUNOptional: Yes
Call by Reference: No ( called with pass by value option)
CHANGEDOCU - Generate Change Documents; obsolete
Data type: BAPI_STR_BUPA_FS_CHANGE_DOCU-CHANGE_DOCUOptional: Yes
Call by Reference: No ( called with pass by value option)
PARTNERCATEGORY - Business Partner Category
Data type: BAPIBUS1006_HEAD-PARTN_CATOptional: No
Call by Reference: No ( called with pass by value option)
PARTNERGROUP - Business Partner Grouping
Data type: BAPIBUS1006_HEAD-PARTN_GRPOptional: Yes
Call by Reference: No ( called with pass by value option)
CENTRALDATA - General Data
Data type: BAPIBUS1006_CENTRALOptional: No
Call by Reference: No ( called with pass by value option)
CENTRALDATAPERSON - General Data for Person
Data type: BAPIBUS1006_CENTRAL_PERSONOptional: Yes
Call by Reference: No ( called with pass by value option)
CENTRALDATAORGANIZATION - General Organization Data
Data type: BAPIBUS1006_CENTRAL_ORGANOptional: Yes
Call by Reference: No ( called with pass by value option)
CENTRALDATAGROUP - General Group Data
Data type: BAPIBUS1006_CENTRAL_GROUPOptional: Yes
Call by Reference: No ( called with pass by value option)
ADDRESSDATA - Address Data
Data type: BAPIBUS1006_ADDRESSOptional: Yes
Call by Reference: No ( called with pass by value option)
DUPLICATE_MESSAGE_TYPE - Accept Duplicate Check Errors with Warnings
Data type: BAPIBUS1006_HEAD-CONTROLDUPLICATEMESSAGEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_BUPA_FS_CREATE_FROM_DATA2
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_BUPA_FS_CREATE_FROM_DATA2
TELEFONDATA - Telephone Numbers
Data type: BAPIADTELOptional: Yes
Call by Reference: No ( called with pass by value option)
SSFADDRESSDATA - SSF Addresses
Data type: BAPIADSSFOptional: Yes
Call by Reference: No ( called with pass by value option)
URIADDRESSDATA - URI Addresses
Data type: BAPIADURIOptional: Yes
Call by Reference: No ( called with pass by value option)
PAGADDRESSDATA - Pager Numbers
Data type: BAPIADPAGOptional: Yes
Call by Reference: No ( called with pass by value option)
ADDRESSNOTES - Notes on Address
Data type: BAPIAD_REMOptional: Yes
Call by Reference: No ( called with pass by value option)
COMMUNICATIONNOTES - Notes on Communication
Data type: BAPICOMREMOptional: Yes
Call by Reference: No ( called with pass by value option)
TELEFONDATANONADDRESS - Address-Independent Telephone Numbers
Data type: BAPINOADTELOptional: Yes
Call by Reference: No ( called with pass by value option)
FAXDATANONADDRESS - Address-Independent Fax Numbers
Data type: BAPINOADFAXOptional: Yes
Call by Reference: No ( called with pass by value option)
TELETEXDATANONADDRESS - Address-Independent Teletex Numbers
Data type: BAPINOADTTXOptional: Yes
Call by Reference: No ( called with pass by value option)
TELEXDATANONADDRESS - Address-Independent Telex Numbers
Data type: BAPINOADTLXOptional: Yes
Call by Reference: No ( called with pass by value option)
E_MAILDATANONADDRESS - Address-Independent E-Mail Addresses
Data type: BAPINOADSMTPOptional: Yes
Call by Reference: No ( called with pass by value option)
FAXDATA - Fax Numbers
Data type: BAPIADFAXOptional: Yes
Call by Reference: No ( called with pass by value option)
RMLADDRESSDATANONADDRESS - Address-Independent RML Addresses
Data type: BAPINOADRMLOptional: Yes
Call by Reference: No ( called with pass by value option)
X400ADDRESSDATANONADDRESS - Address-Independent X.400 Addresses
Data type: BAPINOADX400Optional: Yes
Call by Reference: No ( called with pass by value option)
RFCADDRESSDATANONADDRESS - Address-Independent RFC Addresses
Data type: BAPINOADRFCOptional: Yes
Call by Reference: No ( called with pass by value option)
PRTADDRESSDATANONADDRESS - Address-Independent PRT Addresses
Data type: BAPINOADPRTOptional: Yes
Call by Reference: No ( called with pass by value option)
SSFADDRESSDATANONADDRESS - Address-Independent SSF Addresses
Data type: BAPINOADSSFOptional: Yes
Call by Reference: No ( called with pass by value option)
URIADDRESSDATANONADDRESS - Address Independent URI Addresses
Data type: BAPINOADURIOptional: Yes
Call by Reference: No ( called with pass by value option)
PAGADDRESSDATANONADDRESS - Address-Independent Pager Numbers
Data type: BAPINOADPAGOptional: Yes
Call by Reference: No ( called with pass by value option)
COMMUNICATIONNOTESNONADDRESS - Notes on Address-Independent Communication Types
Data type: BAPINOADCOMREMOptional: Yes
Call by Reference: No ( called with pass by value option)
RETURN - Returns
Data type: BAPIRET2Optional: Yes
Call by Reference: No ( called with pass by value option)
ADDRESSDUPLICATES - Address Duplicates
Data type: BAPIBUS1006_ADDRESS_DUPLICATESOptional: Yes
Call by Reference: No ( called with pass by value option)
TELETEXDATA - Teletex Numbers
Data type: BAPIADTTXOptional: Yes
Call by Reference: No ( called with pass by value option)
ROLES - Business Partner Role
Data type: BAPIBUSISB990_BPROLESOptional: Yes
Call by Reference: Yes
TELEXDATA - Telex Numbers
Data type: BAPIADTLXOptional: Yes
Call by Reference: No ( called with pass by value option)
E_MAILDATA - E-Mail Addresses
Data type: BAPIADSMTPOptional: Yes
Call by Reference: No ( called with pass by value option)
RMLADDRESSDATA - RML Addresses
Data type: BAPIADRMLOptional: Yes
Call by Reference: No ( called with pass by value option)
X400ADDRESSDATA - X400 Addresses
Data type: BAPIADX400Optional: Yes
Call by Reference: No ( called with pass by value option)
RFCADDRESSDATA - RFC Addresses
Data type: BAPIADRFCOptional: Yes
Call by Reference: No ( called with pass by value option)
PRTADDRESSDATA - PRT Addresses
Data type: BAPIADPRTOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_BUPA_FS_CREATE_FROM_DATA2 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, " | |||
| lv_testrun | TYPE BAPI_FSBP_CENTRAL-TESTRUN, " | |||
| lt_uriaddressdata | TYPE STANDARD TABLE OF BAPIADURI, " | |||
| lv_changedocu | TYPE BAPI_STR_BUPA_FS_CHANGE_DOCU-CHANGE_DOCU, " | |||
| lt_pagaddressdata | TYPE STANDARD TABLE OF BAPIADPAG, " | |||
| lt_addressnotes | TYPE STANDARD TABLE OF BAPIAD_REM, " | |||
| lt_communicationnotes | TYPE STANDARD TABLE OF BAPICOMREM, " | |||
| lt_telefondatanonaddress | TYPE STANDARD TABLE OF BAPINOADTEL, " | |||
| lt_faxdatanonaddress | TYPE STANDARD TABLE OF BAPINOADFAX, " | |||
| lt_teletexdatanonaddress | TYPE STANDARD TABLE OF BAPINOADTTX, " | |||
| lt_telexdatanonaddress | TYPE STANDARD TABLE OF BAPINOADTLX, " | |||
| lt_e_maildatanonaddress | TYPE STANDARD TABLE OF BAPINOADSMTP, " | |||
| lt_faxdata | TYPE STANDARD TABLE OF BAPIADFAX, " | |||
| lv_partnercategory | TYPE BAPIBUS1006_HEAD-PARTN_CAT, " | |||
| lt_rmladdressdatanonaddress | TYPE STANDARD TABLE OF BAPINOADRML, " | |||
| lt_x400addressdatanonaddress | TYPE STANDARD TABLE OF BAPINOADX400, " | |||
| lt_rfcaddressdatanonaddress | TYPE STANDARD TABLE OF BAPINOADRFC, " | |||
| lt_prtaddressdatanonaddress | TYPE STANDARD TABLE OF BAPINOADPRT, " | |||
| lt_ssfaddressdatanonaddress | TYPE STANDARD TABLE OF BAPINOADSSF, " | |||
| lt_uriaddressdatanonaddress | TYPE STANDARD TABLE OF BAPINOADURI, " | |||
| lt_pagaddressdatanonaddress | TYPE STANDARD TABLE OF BAPINOADPAG, " | |||
| lt_communicationnotesnonaddress | TYPE STANDARD TABLE OF BAPINOADCOMREM, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lt_addressduplicates | TYPE STANDARD TABLE OF BAPIBUS1006_ADDRESS_DUPLICATES, " | |||
| lt_teletexdata | TYPE STANDARD TABLE OF BAPIADTTX, " | |||
| lv_partnergroup | TYPE BAPIBUS1006_HEAD-PARTN_GRP, " | |||
| lt_roles | TYPE STANDARD TABLE OF BAPIBUSISB990_BPROLES, " | |||
| 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_FS_CREATE_FROM_DATA2' "Create Business Partner |
| EXPORTING | ||
| BUSINESSPARTNEREXTERN | = lv_businesspartnerextern | |
| ACCEPT_ERROR | = lv_accept_error | |
| TESTRUN | = lv_testrun | |
| CHANGEDOCU | = lv_changedocu | |
| 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 | |
| TELEFONDATANONADDRESS | = lt_telefondatanonaddress | |
| FAXDATANONADDRESS | = lt_faxdatanonaddress | |
| TELETEXDATANONADDRESS | = lt_teletexdatanonaddress | |
| TELEXDATANONADDRESS | = lt_telexdatanonaddress | |
| E_MAILDATANONADDRESS | = lt_e_maildatanonaddress | |
| FAXDATA | = lt_faxdata | |
| RMLADDRESSDATANONADDRESS | = lt_rmladdressdatanonaddress | |
| X400ADDRESSDATANONADDRESS | = lt_x400addressdatanonaddress | |
| RFCADDRESSDATANONADDRESS | = lt_rfcaddressdatanonaddress | |
| PRTADDRESSDATANONADDRESS | = lt_prtaddressdatanonaddress | |
| SSFADDRESSDATANONADDRESS | = lt_ssfaddressdatanonaddress | |
| URIADDRESSDATANONADDRESS | = lt_uriaddressdatanonaddress | |
| PAGADDRESSDATANONADDRESS | = lt_pagaddressdatanonaddress | |
| COMMUNICATIONNOTESNONADDRESS | = lt_communicationnotesnonaddress | |
| RETURN | = lt_return | |
| ADDRESSDUPLICATES | = lt_addressduplicates | |
| TELETEXDATA | = lt_teletexdata | |
| ROLES | = lt_roles | |
| TELEXDATA | = lt_telexdata | |
| E_MAILDATA | = lt_e_maildata | |
| RMLADDRESSDATA | = lt_rmladdressdata | |
| X400ADDRESSDATA | = lt_x400addressdata | |
| RFCADDRESSDATA | = lt_rfcaddressdata | |
| PRTADDRESSDATA | = lt_prtaddressdata | |
| . " BAPI_BUPA_FS_CREATE_FROM_DATA2 | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_BUPA_FS_CREATE_FROM_DATA2
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 TESTRUN FROM BAPI_FSBP_CENTRAL INTO @DATA(ld_testrun). | ||||
| "SELECT single CHANGE_DOCU FROM BAPI_STR_BUPA_FS_CHANGE_DOCU INTO @DATA(ld_changedocu). | ||||
| "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