Skip to Content
0
Former Member
Dec 21, 2012 at 09:51 AM

Restrict exe file as an attachment in shopping cart sap srm

99 Views

Hi,

I want to restrict the user from attaching the exe file to the shopping cart items. I need a warning message also to be displayed when the user does that. I tried implementing the BADI BBP_ATT_CHECK which will restrict uploading only if the file contains the virus i.e., by adding the error message

e014(bbp_att) into the log. I cannot give a warning message to the user.

I also tried implementing the BADI BBP_DOC_CHECK_BADI. I restricted the exe file upload as an attachment by calling the BAPI BBP_PD_SC_UPDATE and marking the exe attachment as deleted (del_ind = 'X' ) if any. Even if i populate et_messages table with warnings at this stage after deleting the file, it doesnt show them.

Either a popup showing the message or just like an error during check on portal is fine with me.

Help me in this issue.

Thanks & Regards,

Karthik Babu