Function Modules used are as follows:
This fm will read the folder details in the sap inbox for the particular user id.
This fm will read the folder content present in the sap inbox folder.
This fm will read the attachment present in the mail.
This fm will read the attachment and will give in the binary format.
This fm will convert the binary format to xstring format.
6.Xml parsing is done to get data from the xstring by passing to the ADS.
Hence we can get the read the pdf attachment from the sap inbox mail.