SAP BAPI_ISUPARTNER_CREATEFROMDATA Function Module for BAPI for Creating a Business Partner









BAPI_ISUPARTNER_CREATEFROMDATA is a standard bapi isupartner createfromdata SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for BAPI for Creating a 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 isupartner createfromdata FM, simply by entering the name BAPI_ISUPARTNER_CREATEFROMDATA into the relevant SAP transaction such as SE37 or SE38.

Function Group: EBPBAPIS
Program Name: SAPLEBPBAPIS
Main Program: SAPLEBPBAPIS
Appliation area: E
Release date: 22-Jul-2003
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_ISUPARTNER_CREATEFROMDATA 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_ISUPARTNER_CREATEFROMDATA'"BAPI for Creating a Business Partner
EXPORTING
* PARTNER = "Number of Business Partner
TYPE = "Business Partner Category
* GROUP = "Grouping
* REFCUSTOMER = "Reference Customer for Creatind SD Customer
PARTNERDATA = "Modifiable Data of Business Partner
PARTNERDATAX = "Indicator: Changed Data
* TESTRUN = "'X' --> Not Saved to Database
* ACCEPT_ERROR = 'X' "Indicator: No Address Check

IMPORTING
RETURN = "Return in Case of Error
NEW_PARTNER = "Business Partner Number

TABLES
* TADDRESS = "Modifiable Address Data
* TELEFONDATANONADDRESS = "BAPI Structure for Telephone Numbers (Business Address Services)
* E_MAILDATANONADDRESS = "BAPI Structure for E-Mail Addresses (Business Address Services)
* TADRUSE = "Address Usage for Business Partner in BAPIs
* TADRUSEX = "Address Usage for Business Partner in BAPIs
* TINDSECDATA = "Modifiable Industries
* TINDSECDATAX = "Indicator: Industry Fields to be Changed
* TADDRESSX = "Indicator: Address Fields to be Changed
* TBANKDATA = "Modifiable Bank Data
* TBANKDATAX = "Indicator: Address Fields to be Changed
* TCCARDDATA = "Modifiable Credit Card Data
* TCCARDDATAX = "Indicator: Credit Card Data to be Changed
* RLTYPES = "Role Types to be Created
* EXTENSIONIN = "Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
* TTAXDATA = "BAPI Structure Data Part VAT Identification Number
.



IMPORTING Parameters details for BAPI_ISUPARTNER_CREATEFROMDATA

PARTNER - Number of Business Partner

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

TYPE - Business Partner Category

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

GROUP - Grouping

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

REFCUSTOMER - Reference Customer for Creatind SD Customer

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

PARTNERDATA - Modifiable Data of Business Partner

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

PARTNERDATAX - Indicator: Changed Data

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

TESTRUN - 'X' --> Not Saved to Database

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

ACCEPT_ERROR - Indicator: No Address Check

Data type: REGEN-KENNZX
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for BAPI_ISUPARTNER_CREATEFROMDATA

RETURN - Return in Case of Error

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

NEW_PARTNER - Business Partner Number

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

TABLES Parameters details for BAPI_ISUPARTNER_CREATEFROMDATA

TADDRESS - Modifiable Address Data

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

TELEFONDATANONADDRESS - BAPI Structure for Telephone Numbers (Business Address Services)

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

E_MAILDATANONADDRESS - BAPI Structure for E-Mail Addresses (Business Address Services)

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

TADRUSE - Address Usage for Business Partner in BAPIs

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

TADRUSEX - Address Usage for Business Partner in BAPIs

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

TINDSECDATA - Modifiable Industries

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

TINDSECDATAX - Indicator: Industry Fields to be Changed

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

TADDRESSX - Indicator: Address Fields to be Changed

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

TBANKDATA - Modifiable Bank Data

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

TBANKDATAX - Indicator: Address Fields to be Changed

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

TCCARDDATA - Modifiable Credit Card Data

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

TCCARDDATAX - Indicator: Credit Card Data to be Changed

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

RLTYPES - Role Types to be Created

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

EXTENSIONIN - Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut

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

TTAXDATA - BAPI Structure Data Part VAT Identification Number

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

Copy and paste ABAP code example for BAPI_ISUPARTNER_CREATEFROMDATA 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_return  TYPE BAPIRET2, "   
lv_partner  TYPE BAPIBPPARA-PARTNER, "   
lt_taddress  TYPE STANDARD TABLE OF BAPIISUBPA, "   
lt_telefondatanonaddress  TYPE STANDARD TABLE OF BAPIADTEL, "   
lt_e_maildatanonaddress  TYPE STANDARD TABLE OF BAPIADSMTP, "   
lt_tadruse  TYPE STANDARD TABLE OF BAPIISUBPAU, "   
lt_tadrusex  TYPE STANDARD TABLE OF BAPIISUBPAUX, "   
lt_tindsecdata  TYPE STANDARD TABLE OF BAPIISUBPIND, "   
lt_tindsecdatax  TYPE STANDARD TABLE OF BAPIISUBPINDX, "   
lv_type  TYPE BAPIBPPARA-BU_TYPE, "   
lt_taddressx  TYPE STANDARD TABLE OF BAPIISUBPAX, "   
lv_new_partner  TYPE BAPIBPPARA-PARTNER, "   
lv_group  TYPE BAPIBPPARA-BU_GROUP, "   
lt_tbankdata  TYPE STANDARD TABLE OF BAPIISUBPB, "   
lt_tbankdatax  TYPE STANDARD TABLE OF BAPIISUBPBX, "   
lv_refcustomer  TYPE BAPIBPPARA-MUSTER_KUN, "   
lt_tccarddata  TYPE STANDARD TABLE OF BAPIISUBPC, "   
lv_partnerdata  TYPE BAPIISUBPD, "   
lt_tccarddatax  TYPE STANDARD TABLE OF BAPIISUBPCX, "   
lv_partnerdatax  TYPE BAPIISUBPDX, "   
lt_rltypes  TYPE STANDARD TABLE OF BAPIISUBPR, "   
lv_testrun  TYPE BAPIBPPARA-TESTRUN, "   
lt_extensionin  TYPE STANDARD TABLE OF BAPIPAREX, "   
lv_accept_error  TYPE REGEN-KENNZX, "   'X'
lt_ttaxdata  TYPE STANDARD TABLE OF BAPIBUS1006TAX. "   

  CALL FUNCTION 'BAPI_ISUPARTNER_CREATEFROMDATA'  "BAPI for Creating a Business Partner
    EXPORTING
         PARTNER = lv_partner
         TYPE = lv_type
         GROUP = lv_group
         REFCUSTOMER = lv_refcustomer
         PARTNERDATA = lv_partnerdata
         PARTNERDATAX = lv_partnerdatax
         TESTRUN = lv_testrun
         ACCEPT_ERROR = lv_accept_error
    IMPORTING
         RETURN = lv_return
         NEW_PARTNER = lv_new_partner
    TABLES
         TADDRESS = lt_taddress
         TELEFONDATANONADDRESS = lt_telefondatanonaddress
         E_MAILDATANONADDRESS = lt_e_maildatanonaddress
         TADRUSE = lt_tadruse
         TADRUSEX = lt_tadrusex
         TINDSECDATA = lt_tindsecdata
         TINDSECDATAX = lt_tindsecdatax
         TADDRESSX = lt_taddressx
         TBANKDATA = lt_tbankdata
         TBANKDATAX = lt_tbankdatax
         TCCARDDATA = lt_tccarddata
         TCCARDDATAX = lt_tccarddatax
         RLTYPES = lt_rltypes
         EXTENSIONIN = lt_extensionin
         TTAXDATA = lt_ttaxdata
. " BAPI_ISUPARTNER_CREATEFROMDATA




ABAP code using 7.40 inline data declarations to call FM BAPI_ISUPARTNER_CREATEFROMDATA

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 PARTNER FROM BAPIBPPARA INTO @DATA(ld_partner).
 
 
 
 
 
 
 
 
"SELECT single BU_TYPE FROM BAPIBPPARA INTO @DATA(ld_type).
 
 
"SELECT single PARTNER FROM BAPIBPPARA INTO @DATA(ld_new_partner).
 
"SELECT single BU_GROUP FROM BAPIBPPARA INTO @DATA(ld_group).
 
 
 
"SELECT single MUSTER_KUN FROM BAPIBPPARA INTO @DATA(ld_refcustomer).
 
 
 
 
 
 
"SELECT single TESTRUN FROM BAPIBPPARA INTO @DATA(ld_testrun).
 
 
"SELECT single KENNZX FROM REGEN INTO @DATA(ld_accept_error).
DATA(ld_accept_error) = 'X'.
 
 


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!