Download Distributing Business Partner Master Data From SAP CRM PDF

TitleDistributing Business Partner Master Data From SAP CRM
TagsDatabases Sap Se Customer Relationship Management Ibm Db2 Ibm System I
File Size1.2 MB
Total Pages28
Document Text Contents
Page 14

Distributing Business Partner Master Data from SAP CRM to an external system using the CRM XIF Adapter 

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com

  © 2006 SAP AG 14

TABLES

relationships = lt_relationships_sold

return = lt_return.

* Finding the Bill-To Party

CLEAR ls_relationship.

READ TABLE lt_relationships_ship WITH KEY

partner1 = lv_ship_to_party

relationshipcategory = c_relcat_billto

INTO ls_relationship.

IF sy-subrc = 0.

* Bill-To Party Selected ************

lv_bill_to_party = ls_relationship-partner2.

ENDIF.

* Finding the Payer

CLEAR ls_relationship.

READ TABLE lt_relationships_ship WITH KEY

partner1 = lv_ship_to_party

relationshipcategory = c_relcat_payer

INTO ls_relationship.

* If the Payer is attached to the Ship-to Party

* ( **** SCENARIO 1: REGIONAL BILL & PAYMENT **** )

IF sy-subrc = 0.

* Payer Selected ************

lv_payer = ls_relationship-partner2.

ENDIF.

* At this point, all the relevant Business Partners have been determined

* Include all the relevant BP Numbers into the Centrix

* Interface Structure

CLEAR ls_centrix.

ls_centrix-zzsapcrm_pay_id = lv_payer.

ls_centrix-zzsapcrm_bill_id = lv_bill_to_party.

ls_centrix-zzsapcrm_soldto_id = lv_sold_to_party.

Page 27

Distributing Business Partner Master Data from SAP CRM to an external system using the CRM XIF Adapter 

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com

  © 2006 SAP AG 27

• Go to Transaction SMW01 and select all BDocs of type BUPA_MAIN. You will notice that the mBDoc
message has status; To be processed (Debug).

• Select the BDoc and choose the option Reprocess mBDoc message 

• You might get a confirmation dialog box. Choose ‘Yes’

• The program pauses in debug mode inside the method CHANGE_MAPPED_DATA_OUT of the
BADI implementation ZDB1_CRMXIF_BPMAP containing your code. From here you can debug the
enhancement code

Related Content

• For more details on CRM XIF Interface for Business Partners, see documentation of function
modules CRMXIF_PARTNER_COMPLEX and CRMXIF_PARTNER_REL_COMPLEX

• Refer to SAP Note 448742 for General Notes on CRM XIF Interfaces

Similer Documents