您的位置:首页 > 其它

RFC--How to replicate material master from R/3 to SRM

2007-12-22 11:05 190 查看
I am going to present a quick guide to replicate material master from backend system to SRM 5.0, including all the BASIS(BC) activities, I would like to highlight that the system has the latest patch level and support packages installed, so here we go:

Basis Setup

Create system users for remote connection (RFC_CONN). This user must have SAP_ALL authorisation.

Create RFC connections in SRM system.
Go to transaction SM59 on SRM side and click on 'create' button. Set RFC destination name to backend system CLNT (eg. R3DCLNT200), connection type to 3 (abap / R/3 connection) and fill target host to your backend system. On tab Logon/Security add RFC_CONN user created in previous step. Save your settings.

Create RFC connections in backend system.
Go to transaction SM59 on backend side and click on 'create' button. Set RFC destination name to SRM system CLNT (eg. SR1CLNT300), connection type to 3 (abap / R/3 connection) and fill target host to your backend system. On tab Logon/Security add RFC_CONN user created in previous step. Save your settings.

Create a logical system name in SRM.
Go to transaction SPRO -> SAP Implemantation Guide -> Supplier Relationship Management -> SRM Server -> Technical Basic Settings -> ALE Settings -> Distribution -> Basic Settings -> Logical Systems -> Define Logical System Add a new value:

Log.SystemName
R3DCLNT200R3DCLNT200
Save your settngs.

Create logical system name in backend.
Go to transaction SPRO -> SAP Customizing Implemantation Guide -> SAP Web Application Server -> Application Ling Enabling -> Sending and Receiving Systems -> Logical Systems -> Define Logical System Add a new value:

Log.SystemName
SR1CLNT300SR1CLNT300
Save your settngs.

First of all you must set a RFC connectivity between SRM and backend system:

Middleware parameters setup Go to transaction SM30 on backend system and choose table CRMCONSUM. Add the following values:

UserActiveDescriptionQ Prefix
CRMcheckedSRM connectionR3A
Next, choose CRMSUBTAB for subscription table for Up and Download Object and add the following values:

UserObjectNameU/DObj. ClassFunctionObj. TypeFunct. Name
CRMemptyDownloadMaterialemptyemptyCRS_MATERIAL_EXTRACT
CRMemptyDownloadMaterialemptyemptyCRS_CUSTOMIZING_EXTRACT
CRMemptyDownloadMaterialemptyemptyCRS_SERVICE_EXTRACT
Next, choose CRMRFCPAR for definitions of RFC Connections and add following values:

UserObjectNameDestinationLoad TypeINFOInQueue FlagSend XML
CRM*SR1CLNT300Initial DownloadSR1CLNT300XSend XML
CRM*SR1CLNT300RequestSR1CLNT300XSend XML
CRMMATERIALSR1CLNT300Delta DownloadSR1CLNT300XSend XML
All other fields leave empty.
Now, configure filtering for material master:
Choose CRMPAROLTP table for CRM OLTP Parameters and add the following values:

Parameter nameParam. Name 2Param. Name 3UserParam. ValueParam. Value 2
CRM_FILTERING_ACTIVEMATERIALemptyCRMXempty
Now we must edit the table for application indicator. Go to transaction SE16N on backend side and choose table TBE11. Search or add an application component BC-MID and edit activity settings (field AKTIV = X).
Save your settings.

Enterprise Buyer with/without CRM In this activity, you define whether you are running the Enterprise Buyer and CRM in the same system. This might accelerate the Master Data download performance. If you are using CRM in the client, then skip this activity.

In SRM system run transaction BBP_PRODUCT_SETTINGS, deselect 'Test mode' and choose Execute button.
The system generates a report containing all tables that have been deactivated.

Generate Repository Objects With this procedure, you generate the middleware function modules (BDoc Object Type) for the material master.

Go to transaction SMOGGEN and choose object PRODUCT_MAT and PRODUCT_SRV. Generate services for all Object Categories.



Number Range Object Maintenance On SRM system go to transaction SRNO and assign number ranges for all CRM Replication and Realigment Queues. Enter in object field RRSEQ* and hit F4 button. Choose the first object (RRSEQ_AC) and click on 'change' button. On next screen click button 'Number Ranges' and add the following range:

NoFrom numberTo NumberExt.
010000000000000000000199999999999999999999no
Repeat these steps for all of RRSEQ* objects.

Output format of Product ID Check Your output format for Product ID in backend and SRM system. This values must be the same for both systems.
Go to transaction COMCPRFORMAT in SRM and check product ID lenght and values for displaying leading zeroes.

Save your settings.

CRM Middleware Monitoring Cockpit On SRM side go to transaction SMWP. Open System Settings and double-click on 'Number of sites per site type' name. Administration Console shows up.
Click on 'Create Object' icon and fill Name and description. Choose R/3 for 'Type' parameter and click on Site Attributes. Enter and created RFC destination to backend system (R3DCLNT200).



Save your settings.

Start of download material

DNL_CUST_PROD0

DNL_CUST_PROD1

DNL_CUST_SRVMAS

MATERIAL

Go to transaction R3AS on SRM side and choose first object to download (DNL_CUST_BASIS3).



After this, source site and desitination site on data flow should fill with proper values. Click on 'Execute' button. After this, go to transaction R3AM1 for monitoring object.



If you have a green light, go to transaction R3AS again and repeat steps for objects:

After this, go to transaction COMM_HIERARCHY to see what kind of Categories are replicated from backend system.



Go to transaction COMMPR01 to see what kind of Products are replicated from backend system.



Filtering Material Master records If you want to filter material master or other objects, go to transaction R3AC1 on SRM side. You will see the following table:



Click on filter icon on object MATERIAL. On filter settings tab choose Source Site Name and click edit button.

Object filter settings table corresponds fields and tables/structures from backend system. If you want to download only one material enter the following values:



Deleting Material Master from SRM

COM_HIERARCHY_DELETE_SINGLE - Deletes All Hierarchy and Category Data

COM_HIERARCHY_DELETE_ALL - Deletes All Hierarchy and Category Data

COM_PRODUCT_DELETE_SINGLE - Deletion of a product from the database

COM_PRODUCT_DELETE_ALL - Deletion of All Product Master Data

If you want to delete hierarchy of product, run Report:

If You want to delete all or selected product, run Report:

source url:https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/5728
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: