Skip to Content
Former Member
Aug 04, 2013 at 05:52 AM

Not able to attach PDF/JPG/XLS file content coming from ADOBE Flex into SAP TRIP in using FM-BDS_BUSINESSDOCUMENT_CREA_TAB


Hello Everyone,

I have a requirement to attach receipt to TRIP in service object coming from ADOBE Flex front end. Receipt can be in PDF/XLS/JPEG format. I am able to attach TXT content successfully by passing the binary file content coming from ADOBE flex to TRIP using BO-BUS2089.

But while trying to attach PDF/JEPG/XLS, It is showing me the file name and icon in Trip Business Object Document, but while trying to open the file, it is showing error 'it is not supported file type or file has been damaged'.

Could you please help me to get out of this problem. I searched a lot to get a solution, but unable to find proper one.

Tried with the below options to attach PDF, but its not uploading PDF if I pass file content. But if I upload file directly using GUI_upload, it works. I cannot use GUI_UPLOAD as my program will run in background as BSP connection ADOBE FLEX Front end.

Part of Code:

i_signature-doc_count = 1.

i_signature-prop_name = 'BDS_DOCUMENTCLASS'.

i_signature-prop_value = 'PDF'.

APPEND i_signature.

i_signature-prop_name = 'BDS_DOCUMENTTYPE'.

i_signature-prop_value = 'BDS_PDF'. " 'BDS_TEXT'.

APPEND i_signature.