cancel
Showing results for 
Search instead for 
Did you mean: 

reference doc no from complaints to ecc

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Naresh,

thanks very much.

we want to trigger the pricing on return in ecc from the sales order we are passing. and i think this should happen before creating the return(sales order) in ecc.

Ho can we acheive that,

Thanks,

Priya

Former Member
0 Kudos

can you please elaborate your question. I didn't get your question

Former Member
0 Kudos

Hi naresh,

we are passing the Ref( sales doc number) from CRM complaints to ECC on the return order(sales order).

because we want the pricing to be copied from sales order(ecc) to return order in ecc

Thanks,

Priya

Former Member
0 Kudos

Hello Lakshmi

the pricing will not get copied. It can be determined same as your original sales order if you are using same pricing procedure for return order as in your sales order.

Regards

Naresh

Answers (0)