Ansicht
Dokumentation

BAPI_CONTACTCRM_CHANGE - Proxy BAPI - Change Contact Person in SFA Context

BAPI_CONTACTCRM_CHANGE - Proxy BAPI - Change Contact Person in SFA Context

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

The system transfers structures for general data, address data for private and business addresses, the partner roles of the contact person, and communications links. BAPIs for creating a business, private, or company address are called within the module. The central address management function must be activated for this purpose.

The system subsequently generates the data and roles for the contact person using Batch Input technology. If both steps have been processed successfully, the system creates object references that establish the links between contact persons on the SFA and OLTP sides. Should an error occur, the function module issues a description of the error. The value for the parameter E_STATUS is then set to 'E' for 'Error'. If the steps are completed successfully, or if object references are successfully created with warnings, the system displays the statuses 'S' or 'W'.

The key fields of the relevant SFA tables are located in the parameter TI_SFA_KEY. The relationship between parent and sub-tables is also specified here.

The parameter TI_ADR_INFO contains information that allows you to assign SFA keys from the address tables to business or private addresses. The system enters the following default values in the table parameters 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 their structure that specifies the link category with regard to the business, private or company address. In the case of telephone numbers, the system sets the field 'MAILTYPE' to '1' if the telephone number belongs to the business address, to '2' if the number is valid within the customer company, and to '3' if the number belongs to a private address.

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 also planned.





Parameters

E_STATUS
I_BUSADRCHANGE
I_BUSIADR
I_CONTACT
I_CONTCHANGE
I_DESTIN
I_KEYWORD_IN
I_ORIGIN
I_PRIVADR
I_PRVADRCHANGE
I_SFA_REL
I_TRANS_MODE
I_UPLOAD_ID
TI_ADR_INFO
TI_EXTENSION
TI_FAXDATA
TI_MAILDAT
TI_ROLES
TI_SFA_KEYS
TI_TELDATA
TI_TLXDATA
TI_TTXDATA

Exceptions

Function Group

CRM4

Addresses (Business Address Services)   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 3929 Date: 20240523 Time: 101704     sap01-206 ( 75 ms )