Functionality The address data of the person address for the specified object typeand key is found. The address number and person number in the current system are alsoreturned. Example * Read a person address: DATA: objtype LIKE bapi4002_1-objtype, obj_id LIKE bapi4002_1-objkey, obj_id_ext LIKE bapi4002_1-extension, context LIKE bapi4002_1-context, address_number LIKE adrc-addrnumber, person_number LIKE adrp-persnumber, bapiad2vl LIKE bapiad2vl OCCURS 0, bapiadtel LIKE bapiadtel OCCURS 0, bapiadfax LIKE bapiadfax OCCURS 0, ... bapicomrem LIKE bapicomrem OCCURS 0, return LIKE bapiret2 OCCURS 0. * Assign the following object type and key to the private address of a * customer contact person objtype = 'BUS1006001' obj_id = obj_id_ext = ' ' context = '0004' * call GetDetail module CALL FUNCTION 'BAPI_ADDRESSPERS_GETDETAIL' EXPORTING obj_type = objtype obj_id = obj_id obj_id_ext = obj_id_ext context = context IMPORTING address_number = address_number person_number = person_number TABLES bapiad2vl = bapiad2vl bapiadtel = bapiadtel ... bapicomrem = bapicomrem return = return. * The address data are in the tables BAPIAD2VL, ..., BAPICOMREM. * The table RETURN contains all processing errors and warnings. * The address number and the person number are in the fields * ADDRESS_NUMBER and PERSON_NUMBER respectively.Notes The communication data and comment sequence in the tables is the serialnumber of the data in the specified system. The address number of the person address for the object type and key isreturned in the export parameter ADDRESS_NUMBER, the person number inthe field PERSON_NUMBER. Processing warnings and errors are in the table RETURN. INCLUDE ADDRESS_TSADOBJ_AND_BAPIS OBJECT DOKU ID TX |