Dear
Please go through this ->
The only standard option is to delete the SC line items. For this you the user must have activity "06 Delete" in his PFCG role. This activity enable him to delete SC line items once the SC is in status approved.
Shopping cart cannot be deleted once approval is done. You can delete it before approval.
But you can delete the line item of the shopping cart even after the approval is done. In that case if any follow-on doc is created for that line item of shopping cart it will get deleted. You will find the delete tab becoming grey once the follow-on doc. is created in the check status (BBPSC04 transaction) of the SC.
Other alternatives ->
1) The FM BBP_PD_SC_DB_DELETE deletes from persistent layer.
2) The FM BBP_PD_SC_STATUS_CHANGE with 'DELE' activity, marks as deleted and keep the document in the persistent layer.
According your needs, you will need to choose which one fits your requirement.
To commit changes to DB from BBP_PD_SC_DB_DELETE you will need to COMMIT WORK, cuz even the FM doesn't display any error messages in the e_messages table, the deletion task is not commited.
About the BBP_PD_SC_STATUS_CHANGE FM, you will need to inactivate the follow on document status in the CRM_JEST table to achieve the deletion with the FM i have mentioned...
For both FM's *DB_DELETE and *STATUS_CHANGE you need to create a ZFM or ZREP to write the COMMIT WORK instruction after the execution of the FM.
Related links ->
or
Goto trascn PFCG and enter any of the the user role(SAP_BBP_STAL_MANAGER or SAP_BBP_STAL_EMPLOYEE).Under authorization tab ,you can see the possibel actions in the Authorization object for SC.I dont have the access to the system so cant tell you the exact name of the object
This will solve the issue
Regards.