BDOC's to update the custom fields in R/3 from the CRM sales order

10-11  Source: Network gathering  Views:3 

Advertisement
Dear All,
I need a small help.
My requirement is as follows.
When ever a sales order is created in CRM, an outbound delivery will be automatically created in the R/3 system.
There are some fields in the CRM sales order which are not there in the R/3 system.So I have to create these fields in the LIKP and LIPS tables in R/3 which is not a problem.
But I have to copy these fields from CRM to the LIKP and LIPS tables in R/3 when ever a sales order is created and saved in CRM. (This should happen automatically)
So could anyone tell me whether there are any BDOC’s available to update the sales order info in the LIKP and LIPS tables and also any BADI which can be trigger for this purpose.
Thanks in advance.
Regards
Shafath
Hi,
Thanks a lot. You have given a good solution.
But a small correction.
Sales Order is not transferred from CRM to R/3. The system is creating (automatically) a delivery in the r/3 system for the sales order created in CRM (Here we will not have the sales order in R/3), so we don’t have an entry in VBAK and VBAP tables.
When we create a sales order in CRM and save , the delivery in R/3 is created and the sales order is not transferred to R/3.
So while saving the sales order itself in CRM, I need to trigger a badi to update the LIKP and LIPS tables by calling a RFC (which needs to be developed in R/3).
So I need a badi which triggers when the sales order is saved and which tells whether the sales order is saved without errors or not (because delivery in R/3 is created for only those orders which are created and saved without errors in CRM)  and returns the sales order number.
It will be helpful if you can send some info on this.
Any how thanks a lot for your quick response.
Regards
Shafath
Related articles