Read Address Data using FM ADDR_GET instead of Querying ADRC Table
This ABAP tutorial includes ABAP codes which read address data from ADRC table using ADDR_GET ABAP function module.
In SAP Smartform documents ABAP developers frequently display document partner address data like Bill-to party address or Ship-to party address on their Smartform outputs. And generally it is not enough to use the build-in Address control to display required address structure on the Smart Form output.
What can ABAP developers do is to display data from interface address structures like IS_BIL_INVOICE-HD_ADR for Invoice or ZTVBDPA for Sales Order Confirmation Smartform outputs. Additionally SAP address table ADRC can be queried by using a OSQL SELECT statement with partner address key fields.
But the most convenient method for reading address from SAP table ADRC (address table in SAP) is using a function module.
One of the function modules to read address that ABAP developers can use is SAP function module ADDR_GET
Here is two methods of reading address information from ABAP address table ADRC.
The best practise is using function module ADDR_GET.