Fonction SAP BAPI_CUSTOMERCRM_DELETE - Proxy BAPI to Delete Customers in SFA Context

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_CUSTOMER BAPICUSGEN u 727
I_DESTIN CRM_PARA-RFCSERVER C 32
I_KEYWORD_IN CRM_PARA-KEYWORD_IN C 20
I_SALESORG BAPICUSSLS u 232
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_SFA_KEYS BAPICRMSFK 292

FU BAPI_CUSTOMERCRM_DELETE

Short text
The proxy BAPI implements the upload of deletion flags for customerswho have been flagged as deleted in the SFA system.

Functionality
The system transfers structures for general data, address data, andsales data.
Customer master data is flagged for deletion using the IDOC interface.If the process is completed succesfully, the return parameter E_STATUSis set to 'S'. If an error occurs, this 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 ofthe address).

Example
The example confines itself to the possible parameter values:
I_UPLOAD_ID: Unique ID 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 : Customer data; the customer number is usually sufficient
I_SALESORG : Sales organization
Table parameters:
TI_SFA_KEYS: Link to the 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.