Reading PDF attachment from sap inbox through ABAP

Function Modules used are as follows:
1.SO_USER_READ_API1
This fm will read the folder details in the sap inbox for the particular user id.
2.SO_FOLDER_READ_API1
This fm will read the folder content present in the sap inbox folder.
3. SO_DOCUMENT_READ_API1
This fm will read the attachment present in the mail.
4. SO_ATTACHMENT_READ_API1
This fm will read the attachment and will give in the binary format.
5. SCMS_BINARY_TO_XSTRING
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.

Comments