Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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.

3 REPLIES 3

arindam_m
Active Contributor
0 Kudos

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

http://wiki.sdn.sap.com/wiki/display/SI/Frequently+asked+questions+about+Generic+Object+Services+%28...

Cheers,

Arindam

Former Member
0 Kudos

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.

arindam_m
Active Contributor
0 Kudos

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:

http://scn.sap.com/people/rammanohar.tiwari/blog/2005/10/10/generic-object-services-gos--in-backgrou...

Cheers,
Arindam