CONVERT_ADDRESS SAP Method Convert an address from one type to another









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

This is a private Method so can only be executed from within the class itself. I.e. You could access it from another method of the class.

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/CL_ADDR_COMPLETE 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 CONVERT_ADDRESS can also be found below:

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


Parameters of Method CONVERT_ADDRESS

.

NameTypeData TypeDescriptionDefault Value
IS_SOURCE_ADDRESSImportingTYPE
/BOFU/ADDRS_ADDRESS_COMPLETE
Structure for the complete data of an address
IV_SOURCE_ADDRESS_TYPEImportingTYPE
/BOFU/ADDR_ADDRESS_TYPE
Type of the address
IV_TARGET_ADDRESS_TYPEImportingTYPE
/BOFU/ADDR_ADDRESS_TYPE
Type of the address
ES_TARGET_ADDRESSExportingTYPE
/BOFU/ADDRS_ADDRESS_COMPLETE
Structure for the complete data of an address



Exceptions of Method CONVERT_ADDRESS

This method does not have any exceptions

Example ABAP coding

This is a private Method so the below code can only be executed from within the class itself. I.e. from another method of the class.

DATA: lo_class TYPE REF TO /BOFU/CL_ADDR_COMPLETE.
DATA: lv_ES_TARGET_ADDRESS TYPE /BOFU/ADDRS_ADDRESS_COMPLETE,
lv_IS_SOURCE_ADDRESS TYPE /BOFU/ADDRS_ADDRESS_COMPLETE,
lv_IV_SOURCE_ADDRESS_TYPE TYPE /BOFU/ADDR_ADDRESS_TYPE,
lv_IV_TARGET_ADDRESS_TYPE TYPE /BOFU/ADDR_ADDRESS_TYPE,
lv_other TYPE c.

CALL METHOD lo_class=>CONVERT_ADDRESS(
EXPORTING
IS_SOURCE_ADDRESS = lv_IS_SOURCE_ADDRESS
IV_SOURCE_ADDRESS_TYPE = lv_IV_SOURCE_ADDRESS_TYPE
IV_TARGET_ADDRESS_TYPE = lv_IV_TARGET_ADDRESS_TYPE
IMPORTING
ES_TARGET_ADDRESS = lv_ES_TARGET_ADDRESS ).

Links to Related Class(s)

/BOFU/CL...
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!