on 10-02-2012 11:00 PM
Hi,
when creattin return from complaint, we want the sales order referened on complaint to be passed to return order in ecc.
I think we can use CRM exchnage badi.
but please elaborate this to me as we will be using thsi sales order to copy prcing relavnt data in ecc to return order.
thanks,
sasi
Hi Lakshmi
You can use method CRM_DATAEXCH_AFTER_BAPI_FILL of CRM_DATAEXCHG_BADI BADI.
1. You need to enhance the BAPE_VBAK structure in CRM as well in ECC.Add the Z field for which you want to pass in both the structure
2. Also append VBAK in ECC with new field.
3. Enhance the BAPE_VBAKX s
Use the following code in CRM
DATA: wa_bape_vbak TYPE bape_vbak,
wa_bapiparex TYPE bapiparex
wa_bapiparex-structure = 'BAPE_VBAK'.
wa_bape_vbak-zzsalesorder = lv_salesord." Sales order number which u want to pass
wa_bapiparex-valuepart1 = wa_bape_vbak.
APPEND wa_bapiparex TO ct_bapiparex.
wa_bapiparex-structure = 'BAPE_VBAKX'.
wa_bapiparex-valuepart1 = ' X'.
APPEND wa_bapiparex TO ct_bapiparex.
Regards
Naresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.