Fonction SAP BAPI_CUSTOMERCRM_CHANGE - Proxy BAPI for Customer Upload in SFA Context: Customer Data Changes

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_ADDRESS BAPICUSADR u 983 BAPI Structure: Customer Address
I_ADRCHANGE BAPICUSADX u 54 BAPI Change Structure: Correction Structure BAPICUSADR
I_BANKCHANGE BAPIFLAG-BAPIFLAG C 1 X Single-Character Flag
I_CUSTCHANGE BAPICUSCHX u 110 X BAPI Structure Master - General Data
I_CUSTOMER BAPICUSGEN u 727 BAPI Structure: Customer, General Data
I_DESTIN CRM_PARA-RFCSERVER C 32 RFC Destination Server System
I_KEYWORD_IN CRM_PARA-KEYWORD_IN C 20 Keyword for customer enhancements
I_ORIGIN CRM_PARA-ORIGIN C 1 X Origin of Upload Object
I_SALESCHANGE BAPICUSSLX u 63 X BAPI Structure Customer Master Data: Sales Data
I_SALESORG BAPICUSSLS u 232 BAPI Structure: Customer/Sales Data
I_SFA_REL CRM_PARA-SERVER_REL C 4 SFA Release in server system
I_TAXDATA BAPICUSTAX u 20 BAPI Structure: Customer Control Data
I_TRANS_MODE BAPIFLAG-BAPIFLAG C 1 Single-Character Flag
I_UPLOAD_ID BAPICRMDH2-REF_ID C 32 Unique Reference Number

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

Paramètre Reférence Long. Facultatif Description
TI_BANK BAPICUSBK 136 X BAPI Structure: Customer Bank Data
TI_BANKCHANGE BAPICUSBKX 53 X BAPI Structure Customer Mastser - Bank Details
TI_EXTENSION BAPIPAREX 990 Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
TI_LOADING_POINTS BAPICUSLDP 218 X BAPI Structure: Customer, Unloading Point
TI_ROLECHANGE BAPICUSPTX 63 X BAPI Structure Customer Master - Partner Roles
TI_ROLES BAPICUSPAR 93 BAPI Structure: Customer, Partner Roles
TI_SFA_KEYS BAPICRMSFK 292 Input Table Structure for SFA Key in Proxy Function Module
TI_STDFAX BAPICUSFAX 151 BAPI Structure: Fax Numbers (Business Address Services)
TI_STDMAIL BAPICSMAIL 308 BAPI Structure: E-Mail Addresses (Business Address Services)
TI_STDTEL BAPICUSTEL 150 BAPI Structure: Telephone (Business Address Services)
TI_STDTLX BAPICUSTLX 80 BAPI Structure: Telex Numbers (Business Address Services)
TI_STDTTX BAPICUSTTX 80 BAPI Structure: Teletex Numbers (Business Address Services)

Functionality
The system transfers structures for general data, address data,communications links, control data, sales data, and partner roles. Inaddition, the table parameter ADRCHANGE specifies which address datafields have changed. The system calls the BAPI ADDRESSORG_CHANGE withinthe module first. The central address management function must beactivated for this purpose.
You can change the customer master data using the IDOC interface. Ifboth steps are successfully processed, the return parameter E_STATUS isset to 'S'. If an error occurs, the parameter is set to 'E'. Thefunction module then issues a description of the error.
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 (for example, if the customer is the parent object forthe address).

Example
The example confines itself to the possible parameter values:
I_UPLOAD_ID: Unique GUID from the SFA server with which the message canbe 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_CUSTOMER : General customer data
I_ADDRESS : General address data
I_ADRCHANGE: Each field of the parameter I_ADDRESS has a correspondingfield in the structure I_ADRCHANGE.
If the value of a field in an address is to be changed, it will beflagged accordingly in this structure. Note that this structure alsomanages changes in the communications links.
I_SALESORG : Sales organization data
I_TAXDATA : Control data
Table parameters:
TI_STDTEL : Telephone data
TI_STDFAX : Fax data
TI_STDTTX : Teletex data
TI_STDTLX : Telex data
TI_STDMAIL : Mail data (SMTP)
TI_ROLES : Customer partner roles
TI_EXTENSION: Customer exit data
TI_SFA_KEYS: Links to keys in the SFA system

Note
The FU should only be used in an SFA context if triggered by an RFCcall from the SFA server. It is not planned to allow it to be used inthe same way as released BAPI modules.