cancel
Showing results for 
Search instead for 
Did you mean: 

action should be done when we Copy shopping cart item

Former Member
0 Kudos

Hi Experts,

We have requirement like , while we are creating shopping cart item , when we copy the shopping cart item

i have to clear the one field in the Screen .

can anybody help me out .

Thanks in Advance .

Bharathi

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi baarati,

I think you could try with BBP_DOC_CHANGE_BADI, controlling the SY-UCOMM variable, in that case SY-UCOMM = UI_ITMOVR_ITM_COPY .

BR

Former Member
0 Kudos

Hi Jorge,

Thanks for ur reply.

But this DOC CHECK Badi is not triggering when ever i am copying the line item.

i have coded like this ...but i didnt feel any difference .

IF_EX_BBP_DOC_CHANGE_BADI~BBP_SC_CHANGE

LOOP AT et_item INTO wa_sc_item.

if SY-UCOMM = 'UI_ITMOVR_ITM_COPY'.

CLEAR wa_account-zz_startech.

MODIFY et_item FROM wa_sc_item.

endif.

ENDLOOP.

Former Member
0 Kudos

Hi. You do need to use the BBP_DOC_CHANGE_BADI to change data.

Are you not modifying the wrong structure?

If that field you want to change is an account assignment field you should be modifying ET_ACCOUNT, not ET_ITEM.

Regards,

Dave.

Former Member
0 Kudos

thank you all...my question has been answered.