Fonction SAP BAPI_CONTACTCRM_CHANGE - Proxy BAPI - Change Contact Person in SFA Context

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_BUSADRCHANGE BAPICUSPAX u 54
I_BUSIADR BAPICUSCPA u 983
I_CONTACT BAPICUSCPG u 1028
I_CONTCHANGE BAPICUSPGX u 59
I_DESTIN CRM_PARA-RFCSERVER C 32
I_KEYWORD_IN CRM_PARA-KEYWORD_IN C 20
I_ORIGIN CRM_PARA-ORIGIN C 1 X Origin of upload object
I_PRIVADR BAPICUSCPA u 983
I_PRVADRCHANGE BAPICUSPAX u 54
I_SFA_REL CRM_PARA-SERVER_REL C 4
I_TRANS_MODE BAPIFLAG-BAPIFLAG C 1
I_UPLOAD_ID BAPICRMDH2-REF_ID C 32

Paramètre Reférence Type Long. Description
E_STATUS CRM_PARA-UPLOADSTAT C 1

Paramètre Reférence Long. Facultatif Description
TI_ADR_INFO BAPIEXTC 1000
TI_EXTENSION BAPIPAREX 990
TI_FAXDATA BAPICUSFAX 151
TI_MAILDAT BAPICSMAIL 308
TI_ROLES BAPICUSPAR 93
TI_SFA_KEYS BAPICRMSFK 292
TI_TELDATA BAPICUSTEL 150
TI_TLXDATA BAPICUSTLX 80
TI_TTXDATA BAPICUSTTX 80

Functionality
The system transfers structures for general data, address data forprivate and business addresses, the partner roles of the contactperson, and communications links. BAPIs for creating a business,private, or company address are called within the module. The centraladdress management function must be activated for this purpose.
The system subsequently generates the data and roles for the contactperson using Batch Input technology. If both steps have been processedsuccessfully, the system creates object references that establish thelinks between contact persons on the SFA and OLTP sides. Should anerror occur, the function module issues a description of the error. Thevalue for the parameter E_STATUS is then set to 'E' for 'Error'. If thesteps are completed successfully, or if object references aresuccessfully created with warnings, the system displays the statuses'S' or 'W'.
The key fields of the relevant SFA tables are located in the parameterTI_SFA_KEY. The relationship between parent and sub-tables is alsospecified here.
The parameter TI_ADR_INFO contains information that allows you toassign SFA keys from the address tables to business or privateaddresses. The system enters the following default values in the tableparameters if business and private addresses are available:

  • Field 1: SFA key of address,

  • Field 2: Constant 'ADRCDFLT',

  • Field 3: 'D' for business address, 'P' for private address.

  • The parameters for the communications links each have a field in theirstructure that specifies the link category with regard to the business,private or company address. In the case of telephone numbers, thesystem sets the field 'MAILTYPE' to '1' if the telephone number belongsto the business address, to '2' if the number is valid within thecustomer company, and to '3' if the number belongs to a privateaddress.

    Example
    The example confines itself to the possible parameter values:

    • I_UPLOAD_ID: Unique GUID from the SFA server with which the message can
    • be identified
      • I_DESTIN: RFC destination of the SFA server

      • I_SFA_REL: Release of the SFA server

      • I_KEYWORD_IN: Transfer parameters for customer exits

      • I_CONTACT: General data for contact person

      • I_CONTX: Changed fields in I_CONTACT

      • I_BUSIADR: Address data for business address

      • I_BUSADRX: Changed fields in I_BUSIADR

      • I_PRIVADR: Address data for private address

      • I_PRVADRX: Changed fields in I_PRIVADR

      • Table parameters: (Contact person and address-specific data):
        TI_ADR_INFO, TI_TELDATA, TI_FAXDATA, TI_TTXDATA, TI_TLXDATA, TI_MAILDAT
        • TI_EXTENSION: Customer exit data

        • TI_SFA_KEYS: Link to the keys in the SFA system
        • Note
          The system calls the proxy BAPI from the SFA server (using the RFC)during an upload. Usage of this BAPI outside the SFA context is alsoplanned.