cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding XIF Interface and Sale Transaction in CRM

Former Member
0 Kudos

Hi,

I have done the configuration in CRM system using XIF interface to communicate with other system.

We are in the process of implementing CRM, Product and Partner data has to upload in CRM. We are not using R3 for anything.

When i create a sales transaction using transaction code CRMD_ORDER,System allow me to save/create a business transaction even though i can see the error attached to it and at the same time I can see the BDOC number in SMW01.

But i dont see any relevant OUTBOUND IDOC against the BDOC, evenif i have configured it for external system and I was expecting Outbound IDOC with error status, please correct me if i am wrong.

I am using WE02 and WE05 to see my outbound idoc and i have not found anything here.

Am i missing some step in configuration which is required for converting BDOC to IDOC, Please suggest me.

Steps which i followed to configure the system are

1. Create a suitable RFC destination in the SAP IMG Define Target Systems for RFC Calls .

2. Create a logical system.

3. Create a receiver port (transactional RFC) in SAP IMG Define Port, indicating the RFC destination you created earlier.

4. Create a partner profile, for example, partner type LS with the partner number CRM_XML_BC, in the SAP IMG Maintain Partner Profile Manually.

5. Enter all outbound parameters for the logical system CRM_XML_BC in Create Outbound Parameters in the Outbound Parameters window .

6. Create a site (transaction SMOEAC). To do this, select Object Type Sites and Create Object. Assign your site a suitable name and select Site Type External Interface for IDocs. Assign the partner profile created previously as a Site Attribute.

7. Use object type Subscriptions to maintain a subscription for publication of the object with the predefined site.

8. Create an entry for the new site using XIF customizing transaction CRMXIF_C1 via F4 help (BDoc Type = <objname>, IF Type = 'CRMXIF_*_SAVE_M', Set relevant flag for complete Data and Return). The flag Flag for complete data is only relevant for the objects "order", "business partner", and "business partner relationship". It flags whether only delta changes or the object instance should be transferred completely. The object "business document" is always sent completely, regardless of flag status.

Thanks & Regards,

Manoj Tiwari

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I've done this myself and you seem to be getting it right. The only thing you didn't specify were your outbound parameters.

You have the option to group IDocs before sending them, instead of sending them immediatly. It's a pretty basic error but I don't know what kind of experience you have, so please don't feel insulted.

Former Member
0 Kudos

Do you have any errors?

Use transaction bd87 to look for the idocs (possibly with status '3').

Do you get an error in the bdoc? What messages are given in the bdoc receiver log?

If you cannot find the idocs, use transactions ST22 (short-dumps), smq1/smq2, sm21(system log) to look for any failures during the mapping/transfer.

Michael.

Former Member
0 Kudos

Hi Michael,

Let me explain you my problem.

1. I am able to save/create business transaction ( CRMD_ORDER ).

2. I am able to see BDOC using SMW01 with BDOC state F04.

3. I checked all possible transactions ( we02, we05, bd87 ) which can give me IDOC level details, I dont see any IDOC.

4. We are in a process of implementing CRM, So while creating Order transaction we save it with errors like

a. Pricing data for partner 81 could not be read.( Header Data)

b. No item category could be created.(Item)

Is there any possibility that becasue of incomplete business data XIF interface is not creating corresponding IDOC.

Thanks & Regards,

Manoj Tiwari

Former Member
0 Kudos

"Is there any possibility that becasue of incomplete business data XIF interface is not creating corresponding IDOC."

Yes, I know for a fact that the R/3 interface is not called if there are errors. I'm not sure about Idoc interface, but if the behaviour for all sites in SMOEAC is coherent, the interface will not be called.

Sorry I can't test this in my own system, cause the IDoc interface was shut down some time ago.

Message was edited by: João Sousa

Former Member
0 Kudos

Hi Joao,

Thanks alot for your quick reply.

Yes i have selected "post it immediately" instead of "collect Idoc". should i select "post it immediately"??

About the Outbound parameter i specified everything like message type (crmxif_order_save_m), port , RFC destination of type R3 since we have SRM system, basic type (crmxif_order_save_m01), package and post the idoc immediately.

Here in our distributed environment we are sending data from CRM to SRM, means our target system is SRM.

I have created the Site of site type "External interface for idocs" and give the partner Number of SRM system and created subscription too as part of XIF setup.

Please reply me if i am going wrong in my approach.

Thanks & Regards,

Manoj Tiwari

Former Member
0 Kudos

Hi Gurus,

please reply me.

Regards,

Manoj Tiwari

Former Member
0 Kudos

Manoj,

Try sending the order with report CRMXIF_ORDER_TEST. It uses functions CRMXIF_ORDER_MAPSEND & CRMXIF_ORDER_EXTRACT to extract the information and send it to the XIF site (be it an idoc or an XML). If necessary, you can debug by setting a break-point on the functions ans see if the extract is performed.

Are you using the idoc transactions in the CRM or in the SRM system?

Michael.

Former Member
0 Kudos

Yes, "post it immediately" is correct (for tests at least).

Your problem could be related to the error you're getting in CRM. As I said earlier, at least for the R/3 interface, the errors would be the reason for the absence of communication, that I'm sure of.

Edit:

I forgot to ask one thing. In SMW01, if you select the BDoc corresponding to order, and press the "errors" button. You should get two options. List errors and list receivers. In the list receivers, make sure your XIF site is there, and in the error list, check for line a like that says something like "No upload into ".

Message was edited by: João Sousa

Former Member
0 Kudos

Hi Michael and Sousa,

My problem is sorted out, I am getting the IDOC in CRM system and i have successfully posted to SRM system too.

Thanks for all help in solving out my problem.

Regards,

Manoj Tiwari