Requirement: end user could not be allowed to upload attachment whose size is greater than a given limit for example 400KB.
Solution:
(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.
要获取更多Jerry的原创文章,请关注公众号"汪子熙":