08-04-2013 6:52 AM
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.
08-04-2013 3:41 PM
Hi,
I think the basic configuration that defines what type of files are allowed are missing. Check the configurations in GOS if the BO object attachment is active. Check the link below for known issues
Cheers,
Arindam
08-04-2013 7:30 PM
Thanks Arindam for sharing helpful link.
I am able to attach PDF, JPEG, XLS attachment if I use GUI-UPLOAD to get file content directly from my local PC location and I am able to see the attachment if I open it from Service object link in TRIP.
But if I get the content of the PDF/JPEG/XLS from en external system in BINARY format, I am unable to attach it to TRIP as service object properly. The attachment is corrupted.
So if the basic configuration is not available, then will it allow me to attach file from PC by direct uploading the content using GUI_UPLOAD followed by calling FM 'BDS_BUSINESSDOCUMENT_CREA_TAB' ?
Could you please help me with exactly what configuration is required to upload PDF/JPG/XLS File content coming from external system.
Thanks,
Sumana Sarkar.
08-04-2013 11:31 PM
Hi,
GUI Upload is different to the kind of upload you are looking at. I think the GOS specific configuration has to be there in place to achieve the same. Check the link below:
Cheers,
Arindam