Functionality The function module gets all addresses for an address number or addresshandle, including all their communication types and notes about theaddress or communication type. INCLUDE ADDR_COMM_TYPE OBJECT DOKU ID TX The data is returned in the complex structure ADDR1_COMPLETE whichcomprises the subtables
- ADDR1_TAB (address transfer structure)
- ADTEL_TAB, ADFAX_TAB, ... (communication type table)
- ADRCT_TAB (communication type notes)
- ADRT_TAB (address notes)
Example Read all data for an address number * Declare transfer structure data: addr1_complete type szadr_addr1_complete. * Declare address number variable data: addrnumber like addr1_sel-addrnumber. * Specify parameters addrnumber = ... * Read data call function 'ADDR_GET_COMPLETE' exporting addrnumber = addrnumber importing addr1_complete = addr1_complete exceptions parameter_error = 1 address_not_exist = 2 internal_error = 3. case sy-subrc. ... endcase. * You can access and process the data read by LOOPing over the tables * in ADDR1_COMPLETE. * The subtable ADDR1_TAB has the type structure SZADR_ADDR1_LINE, * so you must access the fields with ADDR1_COMPLETE-DATA-.Notes The module calls the function modules ADDR_COMM_GET, ADDR_GET andADDR_REMARKS_GET to access the database tables. Exceptions
- PARAMETER_ERROR
Raised if both address number and address handle or neither of them ispassed.
- ADDRESS_NOT_EXIST
Returned if no data is found for the specified address number oraddress handle.
- INTERNAL_ERROR
Severe internal program error or data inconsistency. Is always an Amessage.
|