Fonction SAP BAPI_BUPA_FS_ADDRESS_REMOVE - Delete Address and Time-Dep. Usages -> Obsolete: See Documentation

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ADDRESSGUID BAPI_STR_BUPA_FS_ADR_GUID-ADDRESS_GUID C 32 X GUID of a Business Partner Address
ADDRESSUSAGEADJUST BAPI_STR_BUPA_FS_ADRUSE_ADJ-ADDRESSUSAGEADJUST C 1 X Adjust Time Slices for Time-Dependent Address Usage
BUSINESSPARTNER BAPI_BUS_PARTNER_FS-PARTNER_ID C 10 Business Partner Number

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

Recommendation
From Release 640 upwards the time-dependent address usages solutionprovided by Financial Services will be replaced by the time-dependentaddress usages for the SAP Business Partner. We therefore recommend thatyou no longer use this method.
To delete addresses and time-dependent address usages, use the methodRemoveAddress (delete address) for the Business ObjectBusinessPartnerFS.

Functionality
You can use this method to delete an address including thetime-dependent address usages for an existing business partner.

Notes
You can delete only one address during each method call. The systemautomatically deletes the address usages in which this address is used.You can delete the standard address for thebusiness partner only if it is the only or the last address for thebusiness partner.
A preprocessing run takes place before the data is deleted:

  • A check is performed to determine whether the business partner is
  • available for processing.
    • A simple exclusive lock is activated.

    • This prevents other users from changing the business partner that iscurrently being processed until either the method TransactionCommit
      or TransactionRollback for the Business ObjectBapiService is executed. The authorized user can access the samebusiness partner repeatedly.
      Address data and address usages are not deleted from the database untilthe method TransactionCommit for the Business ObjectBapiService has been called.
      If the address to be deleted is assigned to standard address usages inthe future, then you must ensure that the indicator is set in theparameter time slices for time-dependent address usages(ADDRESSUSAGEADJUST) so that there are no gaps in time for theassignment of standard address usages.

      Authorizations
      You can make settings for business partner authorization objects to bechecked in Customizing for the SAP Business Partner underBusiness Partner-> Basic Settings-> Authorization Management.

      Buffering
      This method works with buffering. Change and read methods for thisbusiness object category can be repeatedly used for this instance. Aftercalling the save method, read and write methods can access the bufferedinstances and supply current attributes in the same Logical Unit of Work(LUW).

      Interdependencies
      If you do not enter an address GUID in this method, then the systemassumes that it is to delete the standard address for the businesspartner.

      Return messages
      Messages are returned in the RETURN parameter. You can find the returnvalues and their meaning in the parameter documentation.

      Description
      This parameter is a required (mandatory) parameter.
      In this parameter you transfer an address GUID.
      The address GUID identifies an address that is unique across allsystems. It is a technical object identifier that is not shown on theinterface and that is not to be used in interactions between systemusers.

      Description
      You can find information on the meaning of the parameter in thecorresponding documentation for the data element: Adjust Time Slices forTime-Dependent Address Usage.

      Value range
      'X' for deleting the standard address usage or the address assigned tothe standard address usage, automatically adapts the validity timeperiods for addresses belonging to a particular standard address usage.This ensures that there are no time gaps in the assignment of addressesto the standard address usage. The system does not terminate theapplication or generate an error message.
      ' ' When deleting the standard address usage or the address assigned tothe standard address usage, the system terminates the application andgenerates an error message, if data to be deleted lies in the future, oris the current data for the business partner (the valid data in thesystem at the time).

      Default
      ' ' When deleting the standard address usage or the address assigned tothe standard address usage, the system terminates the application andgenerates an error message, if data to be deleted lies in the future, oris the current data for the business partner (the valid data in thesystem at the time).

      Description
      This parameter is a required (mandatory) parameter.
      You can find information about the meaning of the parameter in thecorresponding documentation for the data element:Business Partner Number.

      Value range
      The value range for the parameter corresponds to the value range fordomain of the data element.

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

617172BP_BAP: New BAPIs for addresses with time-depent. usages