Fonction SAP BAPI_BUPA_ADDRESS_GET_NUMBERS - SAP BP, BAPI: Read Address Numbers

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ADDRESSGUID BUT020-GUID C 32 X Address GUID
ADDR_NO BAPIBUS1006_HEAD-ADDR_NO C 10 X Address Number
BUSINESSPARTNER BAPIBUS1006_HEAD-BPARTNER C 10 Business Partner Number
EXTERNALADDRESSNUMBER BUT020-ADEXT C 20 X Address Number in External System
VALID_DATE BAPIBUS1006_VALIDITY-VALID_DATE D 8 X Validity Date

Paramètre Reférence Type Long. Description
ADDRESSGUIDOUT BUT020-GUID C 32 Address GUID
ADDR_NO_OUT BAPIBUS1006_HEAD-ADDR_NO C 10 Address Number
EXTERNALADDRESSNUMBEROUT BUT020-ADEXT C 20 Address Number in External System

Paramètre Reférence Long. Facultatif Description
RETURN BAPIRET2 548 X Messages

Functionality
This BAPI determines the address data that is missing in the case of forthe address data used for identifying a business partner address.
The following address data is affected:

  • ADDR_NO

  • ADDRESSGUID

  • EXTERNALADDRESSNUMBER (if applicable)

  • The following missing address data is determined
    ADDR_NO_OUT
    ADDRESSGUIDOUT
    EXTERNALADDRESSNUMBEROUT (if available in the system)
    The business partner is identified in the BUSINESSPARTNER parameter.
    Any errors that occur are logged and issued in the RETURN tableparameter.

    Time Dependency
    If only the business partner is stated, then the data for the standardaddress is returned. If no validity date is stated, then the currentdate is used and the relevant valid standard address returned.
    If a validity date is entered, the address data valid at this time isreturned. If this address is not valid at this time, an error message isreturned. If a move address is defined for this address, and it isvalid, then it is returned.
    If only the address GUID without a date is entered, the relevant data ofthis address is always returned.

    Example
    The address GUID is transferred to the BAPI in the ADDRESSGUID importparameter. The address number is returned in the ADDR_NO_OUT parameter.Should you require it, and provided it is available in the system, theexternal address number is returned in the EXTERNALADDRESSNUMBEROUTparameter.

    Description
    The address GUID uniquely identifies an address over all systems. It ismerely a technical object identifier, and is not intended for use inthe interface or in interaction between system users.

    Description
    Internal key for identifying an address in central address management.

    Description
    Address number from a legacy system or operational system.
    If the current address is known under a different number in an externalsystem, you can store this number here for information purposes.

    Description
    The address GUID uniquely identifies an address over all systems. It ismerely a technical object identifier, and is not intended for use inthe interface or in interaction between system users.

    Description
    Internal key for identifying an address in central address management.
    INCLUDE BAPI_BUSINESSPARTNER OBJECT DOKU ID TX

    Description
    Address number from a legacy system or operational system.
    If the current address is known under a different number in an externalsystem, you can store this number here for information purposes.

    Description
    If an address number or an address GUID along with the date aretransferred, then a check is carried out to determine whether theaddress is valid on this date. If a date is not entered, then only therelevant data is returned.
    If neither an address number nor an address GUID or a validity date isentered, then the standard address that is valid on the current date isreturned. If a date is entered, then the standard address that is validon this date is returned. If there is no valid standard address for thisdate, an error message is issued.

    Description
    This table contains the return messages from the method call.