Skip to Content
0
Former Member
Feb 05, 2009 at 01:42 PM

BADI BBP_RESERVATION_GRP - grouping items into one reservation

16 Views

Hi friends,

I am new to SRM and to SDN too. Hope my interaction would be mutually beneficial.

We have implemented the BADI BBP_RESERVATION_GRP for grouping the shopping cart items into one backend reservation. There are no conditions (based on cost center or account assignment data). All the items in the shopping cart need to be grouped into one reservation.

The necessary coding has been done in the method RESERVATION_GRP as below:

METHOD if_ex_bbp_reservation_grp~reservation_grp .

DATA : wa_ct_proc_res TYPE bbps_procurement_res.

LOOP AT ct_proc_res INTO wa_ct_proc_res.

wa_ct_proc_res-group = '1'.

MODIFY ct_proc_res FROM wa_ct_proc_res.

ENDLOOP.

ENDMETHOD.

But still, a reservation is being created for each item in shopping cart :(.

The BADI has been activated and even the code.

Have anyone have any idea what might be the problem? Do anyone have some sample code (I dont find any in the BADI documentation).

Advance Thanks

Advit