Requirement: end user could not be allowed to upload attachment whose size is greater than a given limit for example 400KB.
(1) Create a BAdI implementation via SPRO->Customer Relationship Management->Basic Functions->Content Management->Business Add-Ins->
Confirmation of Changed Documents
(2) copy the following source code to BAdI Implementation. For code detail please refer to comment for each line.
Activate the BAdI implementation:
Now if an attachment is uploaded which exceeds 400KB, the end user will see an error message in UI.
来自 “ ITPUB博客 ” ，链接：http://blog.itpub.net/24475491/viewspace-2708661/，如需转载，请注明出处，否则将追究法律责任。