cancel
Showing results for 
Search instead for 
Did you mean: 

What are the steps to send sales order custom field from CRM to ECC

Former Member
0 Kudos
314

Hi Xperts,

We have created a custom field in sales order [ VBAK] and successfully replicate its value from ECC to CRM. But while doing the enhancement to replicate the field value from CRM to ECC [ When the SO is created in CRM ] we are not able to do so.

We used a FM in CRM0_300, but while replicating the SO from CRM to R/3 it is not getting called.

Please help us by providing the steps to do the full enhancement to replicate the custom field of SO from CRM to ECC.

Thanks in Advance.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Anjaneyulu,

We are faced with a similar situation as you.

Here is our scenario with the steps that we performed so far:

1. We have added a few custom fields in CRM 7.0 (Ehp1) using AET.

The BDoc BUS_TRANS_MSG has been automatically extended with these custom fields.

2. On ECC side also, same custom fields have been added to VBAK and VBAP, using APPEND STRUCTURE. Fields were added to ADDITIONAL DATA TAB B in VA01 / VA02 transactions.

3. Extended BAPI structures BAPISDITM and BAPISDITMX in both CRM and R/3 Side.

4. As mentioned in the note 1053817, we have implemented BADI CRM_DATAEXCHG_BADI -> Method CRM_DATAEXCH_AFTER_BAPI_FILL in CRM (mapped fields from BDOC to BAPI structures)

5. In the above note, for R/3 BAPI to R/3 API they have given to implement user exit USEREXIT_MOVE_FIELD_TO_VBAP which we found in MV45AFZZ. But in this we are unable to find BAPI Structure to map.

Our issue is, when a sales order is created in CRM, it is getting replicated on ECC. But, only standard fields are getting replicated. The custom fields that we have added are remaining empty on ECC side.

In CRM --> txn SMW01, we can see that the BDOC is populated with custom fields also.

Could you let us know if your issue is solved completely. Are you able to see the value of custom field, in ECC? Did you use AET to add fields in CRM.

Could you please give us the steps that you have done.

robert_kunstelj
Active Contributor
0 Kudos

Follow the note mentioned by Vanessa. For code sample take at standard implementation CRM_BTX_EEW_DATAEXCH of badi CRM_DATAEXCHG_BADI.

vanessa_donegan
Active Participant
0 Kudos

Hi There,

The note 1053817 gives exact details on how to do this in both directions - CRM to ECC and vice versa.

The mapping of the data in BAdI CRM_DATAEXCHG_BADI -> Method CRM_DATAEXCH_AFTER_BAPI_FILL is important.

Kind regards,

Vanessa

Former Member
0 Kudos

Hi All,

Thanks a lot for the reply. We have implemented the BAdi in the CRM side following the note and found the data is coming to the outbound queue.

But we are unable to understand how we can check whether the data is there in the inbound queue. Which queue needs to be unregistyer in the ECC side to check the data?

We are also find out the way how to implem,ent user exit USEREXIT_MOVE_FIELD_TO_VBAK. How the data should be read in ECC side and map to the field.

Please explain. Again thanks in advance.

robert_kunstelj
Active Contributor
0 Kudos

Bdoc BUS_TRANS_MSG is used to transfer transaction data from crm to erp. But I don't think you will see Z data in that bdoc. I never tried. You can check it. Other option is to debug badi you implemented, to check if data are filled corectly in the structure.

vanessa_donegan
Active Participant
0 Kudos

Hi again,

To see that the data is being passed to ERP you need to debug the outbound R3AUORDER_ queue - This directly calls the ERP function BAPI_SALESDOCU_PROXY_UPLOAD so you can check the BAPI structures here to see if the data is passed. Note 656823 will also help with debug. Note 901512 might help with USEREXIT_MOVE_FIELD_TO_VBAK - I am not sure what structure will hold the data - maybe vbakkom, you can check in debug - then you just need to map it to the relevant field in VBAK.

Hope it helps a bit.

Kind regards,

Vanessa.