cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Rejection in SRM 5.0

Former Member
0 Likes
149

Hello Experts,

We are developing a scenario like below in a bsp application

Create a shopping with an added manual approver.

The approver rejects the shopping cart, here the workitem will be completed after the rejection.

the requester will again make the changes an will send the cart for approval,

now the shopping cart status is updated as approved at he header level and rejected at the item level, instead of awaiting approval at both levels.

below is the code i'm using

CALL FUNCTION 'BBP_PDH_WFL_DB_UPDATE'     

       EXPORTING

         iv_object_id           = iv_object_id

          IV_WORKITEM_ID = lv_workitem_id

         iv_object_type        = 'BUS2121'

         iv_action                = 'C' 

         iv_obj_changed       = 'X'

         iv_user                   = sy-uname.

call function 'BBP_PD_SC_SAVE'

     exporting

       iv_header_guid = header_u_guid.

call function 'BBP_PD_SC_COMMIT'.

can any one kindly help me on this

Thanks in advance

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

Issue resolved

While updating the shopping cart after rejection at the item level we should clear the deduct_ind flag

Hope this might help someone.

Regards,

Praveen