In my requirement i need to validate the attachment size of the files in the shopping cart if it exceeds more than 20 MB an error message to be thrown. This condition is working fine for all the buttons except for SAVE. When i click SAVE button the error message occurs for more than 20 MB ,after EDIT and remove the exceeding file from the attachment list again the error message was occurring. While debugging i found that the FM: BBP_PD_SC_GETDETAIL is used for getting all the shopping cart details including the attachment files. The internal table ET_ATTACH is populated with the deleted attachment files in it.
From my conclusion the Shopping cart page is not fully refreshed and while clicking the SAVE button the contents were getting saved in some database table or programs. Kindly help me to overcome this issue.
Thanks & Regards,
In SAP SRM, BBPCONT table stores attachment document contents permanently. Attachment content is not removed here even if you delete attachment document on the Web UI. Attachments are deleted only logically (deletion indicator is set).
In this table, You will find the contents of all attachment documents, attached to SRM documents ever since SRM system has been installed.
BBP_TRANSXSTRING is to store attachment documents temporarily.
You can check also the following KBA: 2033011 - Maintenance of SRM attachment storage tables BBPCONT and BBP_TRANSXSTRING
I hope this information will help you to clarify why the attachment is returned in ET_ATTACH table with deletion indicator and help you to achieve your requirement.