As sap has provide many function module to get filename and extension by passing the …
As we can attach the document in most of the SAP transactions like, FI document…