Functionality The organization address is determined from the specified object typeand key, and overwritten by the specified current address andcommunication data. This module is usually called by the ALE functionmodule IDOC_INPUT_ADRMAS. Example * Replicate an organization address: copy the current status in the * AB1 system to AB2 An ALE IDOC is created and distributed in AB1 by the moduleALE_ADDRESSORG_SAVEREPLICA after the function moduleMASTERIDOC_CREATE_REQ_ADRMAS has been called. When the IDOC arrives in AB2, it is read by the moduleIDOC_INPUT_ADRMAS, and its data are passed to the moduleBAPI_ADDRESSORG_SAVEREPLICA. The object type OBJ_TYPE, the object keyOBJ_ID, the object key extension OBJ_ID_EXT, and the context CONTEXTare the same as in the source system. For example, values are assigned as follows in the (main) customeraddress: Object type: 'KNA1' Object key: (extension empty): ' ' context: '0001' The module call is as follows: DATA: bapiad1vl like bapiad1vl occurs 0, bapiadtel like bapiadtel occurs0, ... bapicomrem like bapicomrem occurs 0, return like bapiret2, addrnumber like adrc-addrnumber. CALL FUNCTION 'BAPI_ADDRESSORG_SAVEREPLICA' EXPORTING OBJ_TYPE_C = 'KNA1' OBJ_ID = '4712' OBJ_ID_EXT = ' ' CONTEXT = '0001' IMPORTING RETURN = return ADDRESS_NUMBER = addrnumber tables bapiad1vl = bapiad1vl BAPIADTEL = bapiadtel BAPIADFAX = bapiadfax BAPIADTTX = bapiadttx BAPIADTLX = bapiadtlx BAPIADSMTP = bapiadsmtp BAPIADRML = bapiadrml BAPIADX400 = bapiadx400 BAPIADRFC = bapiadrfc BAPIADPRT = bapiadprt BAPIADSSF = bapiadssf BAPIADURI = bapiaduri BAPIADPAG = bapiadpag BAPICOMREM = bapicomrem. IF NOT RETURN IS INITIAL. ... ENDIF. The data for address number ADDRNUMBER has now been updated in AB2.Note Error messages are in the return structure RETURN. The valid organization address number for the target system is returnedin the ADDRESS_NUMBER parameter. INCLUDE ADDRESS_TSADOBJ_AND_BAPIS OBJECT DOKU ID TX INCLUDE ADDR_RETURN_CONSNUMBERS OBJECT DOKU ID TX |