BAdI to handle synchronized custom documents

You can use BAdI /AEB/AES_DOC_01 to handle processing of received customs documents. Customs documents,e.g. EAD or POE, are provided as a byte stream representing the PDF.
The BAdI is run through only once a document is received the first time.