cancel
Showing results for 
Search instead for 
Did you mean: 

OpenText VIM: How to implement a custom filter to delete certain E-Mail attachments?

ps_paolo
Discoverer
0 Kudos

For incoming invoices (via email) we want to delete all attachments which are unequal .pdf. The class and method which are responsible for this are:

  • /OTX/PF01_CL_REGISTER_MAIL
    - /OTX/PF01_IF_REGISTRATION~REGISTER
    - GET_ATTACHMENT

At the moment I consider to solve this via an implicit enhancement spot in the method GET_ATTACHMENT. 

Would this be the best solution or does the VIM module have any Business Rules, Customizing, BAdIs, etc. instead which would be more suitable for this kind of 'enhancement'? If yes can someone provide more insights?

System is running on S/4HANA2020 On-premise.

Accepted Solutions (1)

Accepted Solutions (1)

ps_paolo
Discoverer
0 Kudos

Deleting attachments is not possible, to ensure the document integrity - see sap note 2753902.

I copied class /OTX/PF01_CL_REGISTER_MAIL into a custom Z-class and implemented a filter to only register certain file types with OpenText.

The following blog post describes how you can add your own ABAP coding for email inbound processing.

Answers (0)