Quantcast
Channel: SCN: Message List - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 7775

Re: Steps to Send sales Order Custom field from CRM to ECC

$
0
0

Hi Shaik,

 

I got the same requirement and the custom field is not replicating to ECC.

 

Please find the steps I followed.

 

1 ) Updated the table VBAK and structures (VBAKKOZ, VBAKKOZX, BAPE_VBAK, BAPE_VBAKX) with the custom field created in CRM with same data type.

 

2) Enhanced the Exchange BADI : CRM_DATAEXCHG_BADI

 

3) Implemented the code in method IF_EX_CRM_DATAEXCHG_BADI~CRM_DATAEXCH_AFTER_BAPI_FILL as below.

 

IF sy-subrc = 0.

     wa_bapiparex-structure              = 'BAPE_VBAK'.

     wa_bapiparex-valuepart1+0(10)       = ls_orderadm_h-object_id.

     wa_bapiparex-valuepart1+35(1)       = lw_billing-zzfld000020. (Custom Field: ZZLD)

     APPEND wa_bapiparex TO ct_bapiparex.

     CLEAR wa_bapiparex.

 

     wa_bapiparex-structure              = 'BAPE_VBAKX'.

     wa_bapiparex-valuepart1+0(10)       = ls_orderadm_h-object_id..

     wa_bapiparex-valuepart1+10(1)       = 'X'.

     APPEND wa_bapiparex TO ct_bapiparex.

     CLEAR wa_bapiparex.

   ENDIF.


Please find the BAPI structures as below

VBAKX.PNGVBAK.PNG

 

 

Please correct me if I went wrong..

 

Thanks,

Raja


Viewing all articles
Browse latest Browse all 7775

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>