Hi guys,
I'm creating this topic just to share if some one maybe have the same problems that i had, so if you've been trying use this function and it's didn't work, try execute this:
Standard Program: R_WSSO_CANCEL_GOODS_ISSUE
Execution
SUBMIT r_wsso_cancel_goods_issue
WITH dlv_numb = <DELIVERYNUMBER>
WITH mat_doc = space
AND RETURN.
IMPORT lt_mesg = lt_mesg FROM MEMORY ID cl_wsso_dlv_cancel=>gc_mem_id_mesg.
When you execute this way all problems with trash in SAP memory will be fixed.
Thaks and advanced.