Fonction SAP BAPI_ISUPARTNER_CREATEFROMDATA - BAPI for Creating a Business Partner

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ACCEPT_ERROR REGEN-KENNZX C 1 'X' X Indicator: No Address Check
GROUP BAPIBPPARA-BU_GROUP C 4 X Grouping
PARTNER BAPIBPPARA-PARTNER C 10 X Number of Business Partner
PARTNERDATA BAPIISUBPD u 1580 Modifiable Data of Business Partner
PARTNERDATAX BAPIISUBPDX u 107 Indicator: Changed Data
REFCUSTOMER BAPIBPPARA-MUSTER_KUN C 10 X Reference Customer for Creatind SD Customer
TESTRUN BAPIBPPARA-TESTRUN C 1 X 'X' --> Not Saved to Database
TYPE BAPIBPPARA-BU_TYPE C 1 Business Partner Category

Paramètre Reférence Type Long. Description
NEW_PARTNER BAPIBPPARA-PARTNER C 10 Business Partner Number
RETURN BAPIRET2 u 548 Return in Case of Error

Paramètre Reférence Long. Facultatif Description
EXTENSIONIN BAPIPAREX 990 X Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
E_MAILDATANONADDRESS BAPIADSMTP 300 X BAPI Structure for E-Mail Addresses (Business Address Services)
RLTYPES BAPIISUBPR 6 X Role Types to be Created
TADDRESS BAPIISUBPA 1291 X Modifiable Address Data
TADDRESSX BAPIISUBPAX 66 X Indicator: Address Fields to be Changed
TADRUSE BAPIISUBPAU 37 X Address Usage for Business Partner in BAPIs
TADRUSEX BAPIISUBPAUX 6 X Address Usage for Business Partner in BAPIs
TBANKDATA BAPIISUBPB 213 X Modifiable Bank Data
TBANKDATAX BAPIISUBPBX 15 X Indicator: Address Fields to be Changed
TCCARDDATA BAPIISUBPC 144 X Modifiable Credit Card Data
TCCARDDATAX BAPIISUBPCX 12 X Indicator: Credit Card Data to be Changed
TELEFONDATANONADDRESS BAPIADTEL 142 X BAPI Structure for Telephone Numbers (Business Address Services)
TINDSECDATA BAPIISUBPIND 15 X Modifiable Industries
TINDSECDATAX BAPIISUBPINDX 4 X Indicator: Industry Fields to be Changed
TTAXDATA BAPIBUS1006TAX 24 X BAPI Structure Data Part VAT Identification Number

Functionality
The data transferred to the parameters PARTNERDATA, TADDRESS,TCCARDDATA and TBANKDATA are copied to the business partner.
If other data is to be created in addition to a new role, theparameters with the suffix X determine which data is copied.

Notes
In a logical unit (completed by a commit), only one business partnercan be processed, and it is not possible to process a contract accountin parallel with the business partner.

Notes

Description
If the parameter is set, then a message is output.

Value range
The most frequent error messages are:
Type ID Number Message
A E9 896 Incorrect parameter transferred
E E9 033 Reference customer X not found
E E7 073 Reference customer required for role type
E E7 075 Standard customer already created (for business
partner)
E E7 072 Reference customer does not comply with naming
convention
E E7 076 Reference customer does not correspond to role
type
E R1 201 Business partner does not exist
E R1 205 Business partner X does not exist in role Y
E B1 880 ISO code is not assigned to a country key
E B1 886 ISO code has not been assigned to a language
key
In addition, a number of error messages can appear when the data ischecked.

Description
The grouping contains a value from the table TB001. You use thegrouping to determine the number range (which is either internal orexternal).
If no value for a grouping is transferred, then the number range isderived by the system.

Description
If no number is transferred, then a number is assigned by the system,provided that the test run parameter is not set.
If a number is transferred, one of the following situations arises:

  • One or more roles are to be created for an existing business partner

  • The number is assigned externally.
  • Description
    The fields in this structure that correspond to the fields to betransferred from the parameter PARTNER_DATA must contain an X.
    This parameter is only relevant when a new role is created.

    Description
    When a business partner is created, an SD standard customer thatcorresponds to the role type and has the same number is created in thebackground.
    The customer entered in this field is used as a reference. All the datarelevant to SD is copied from the reference customer. Data that existsin the business partner in a similar form (for example, name andaddress) is copied from that business partner.

    Description
    No database changes are made, and no numbers are assigned.

    Value range
    1 - Natural person
    2 - Organization
    3 - Group

    Description
    Table extension BAPI_TE_EKUN is supported for table EKUN (e.g. includeCI_EKUN).

    Description
    Business partner addresses that are to be created or changed.
    If all that is to be created is a role, the addresses concerned arefound using three criteria:

    • Internal address number (ADDRNUMBER)

    • External address number (ADEXT)

    • Table entry n
    • Description
      For each entry in the table TADDRESS there must be a correspondingentry in this table (table entry n).
      The fields containing X are transferred from the tableT_ADDRESS.
      The field ADDR_DELETE can be used to delete the entry.
      This parameter is only relevant if all that is to be created is a newrole.

      Description
      Business partner bank data that is to be changed.
      The bank details are determined using the bank details ID (BKVID).

      Description
      For each entry in the table T_BANK_DATA there must be a correspondingentry in this table (table entry n).
      The fields containing X are transferred from the tableT_BANK_DATA.
      The field BANK_DELETE can be used to delete the entry.
      This parameter is only relevant if all that is to be created is a newrole.

      Description
      Business partner credit card data that needs to be changed
      The system determines the relevant credit card via the credit card ID(CCARD_ID).

      Description
      For each entry in the TCCARDDATA table, there must be a corresondingentry in this table (table entry n)
      Fields containing X are copied from TCCARDDATA.
      You can use the CCARD_ID_DELETE field to delete entries.