DELETE_ADDRESS_2 SAP Method Delete an address of technical Type 2









Below is documentation, parameters and attributes of ABAP Method DELETE_ADDRESS_2 within SAP class /BOFU/IF_ADDR_MODIFY. There is also a number of example ABAP code snipts to help you use the functionality of this method.

This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name /BOFU/IF_ADDR_MODIFY into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Instance

This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.

The following technical details of method DELETE_ADDRESS_2 can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method DELETE_ADDRESS_2

.

NameTypeData TypeDescriptionDefault Value
IS_ADDRESS_REFERENCEImportingTYPE
ADDR_REF
Transfer structure for the use of addresses
IS_PERSON_REFERENCEImportingTYPE
PERS_REF
Person Use Data Transfer Structure (Business Addr. Service)
IV_ADDRESS_HANDLEImportingTYPE
AD_HANDLE
Handle for Creating Addresses/Persons (Bus. Addr. Services)
IV_ADDRESS_NUMBERImportingTYPE
AD_ADDRNUM
Address number
IV_PERSON_HANDLEImportingTYPE
AD_HANDLE
Handle for Creating Addresses/Persons (Bus. Addr. Services)
IV_PERSON_NUMBERImportingTYPE
AD_PERSNUM
Person number
IV_RETAIN_PERSONImportingTYPE
XFELD
Checkbox
ET_ERRORExportingTYPE
ADDR_ERROR_TAB
ADDR_ERROR table type
EV_DELETION_RESULTExportingTYPE
/BOFU/AD_DELRETC
Return Code for Deletion of Addresses



Exceptions of Method DELETE_ADDRESS_2

This method does not have any exceptions

Example ABAP coding


DATA: lo_class TYPE REF TO /BOFU/IF_ADDR_MODIFY.
DATA: lv_ET_ERROR TYPE ADDR_ERROR_TAB,
lv_EV_DELETION_RESULT TYPE /BOFU/AD_DELRETC,
lv_IS_ADDRESS_REFERENCE TYPE ADDR_REF,
lv_IS_PERSON_REFERENCE TYPE PERS_REF,
lv_IV_ADDRESS_HANDLE TYPE AD_HANDLE,
lv_IV_ADDRESS_NUMBER TYPE AD_ADDRNUM,
lv_IV_PERSON_HANDLE TYPE AD_HANDLE,
lv_IV_PERSON_NUMBER TYPE AD_PERSNUM,
lv_IV_RETAIN_PERSON TYPE XFELD,
lv_other TYPE c.

CALL METHOD lo_class=>DELETE_ADDRESS_2(
EXPORTING
IS_ADDRESS_REFERENCE = lv_IS_ADDRESS_REFERENCE
IS_PERSON_REFERENCE = lv_IS_PERSON_REFERENCE
IV_ADDRESS_HANDLE = lv_IV_ADDRESS_HANDLE
IV_ADDRESS_NUMBER = lv_IV_ADDRESS_NUMBER
IV_PERSON_HANDLE = lv_IV_PERSON_HANDLE
IV_PERSON_NUMBER = lv_IV_PERSON_NUMBER
IV_RETAIN_PERSON = lv_IV_RETAIN_PERSON
IMPORTING
ET_ERROR = lv_ET_ERROR
EV_DELETION_RESULT = lv_EV_DELETION_RESULT ).

Links to Related Class(s)

/BOFU/IF...
Full list of available SAP object classes

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!