05-01-2006 5:29 AM
Hi all,
I am using GUI_UPLOAD to upload pdf and doc files.I am using filetype = 'BIN'.But though the files are getting uploaded,they are not opened. Word is showing error in opening and so is Acrobat Reader.Where have I gone wrong ? Please suggest.
Regards,
Ananya
05-01-2006 9:16 AM
Hi Raja,
How do I pass the filename in this FM? How can it be of table type ?
Also,I am loading the document from the presentation server from one system as an attachment of a BO.
Do I need to pass my system info ?
Will GUI_UPLOAD be simpler for a beginner like me?
Or else,can you kindly explain this FM a bit ?
Regards,
Ananya
05-01-2006 5:56 AM
Hi Ananya,
Pls give your complete requirement. What you want to ? Where are you uploading the document and what is the purpose of uploading? Are you uploading the document to some Z tables? Are you uploading the document just to display the document? Are you uploading the document to read the contents and further process the document??
When you upload the data using GUI_UPLOAD in BIN format you have to download the DATA again in BIN FORMAT to be able to open the file and read it.
If you just want to open a file from the PC and show it to the user on one click of a button then as explained yesterday use WS_EXECUTE and pass the path where you have stored the file. This will open the document from the PC. This does not upload the document it just opens the document from the PC.
Hope this is helpful
Cheers
VJ
05-01-2006 6:00 AM
Hi,
I am uploading the document by GUI_UPLOAD and then converting it to a business object which is attached to another business object.From the main business object I am to view the uploaded document just like we open attachments .
So I am viewing the uploaded document from the main business object. I donot want to download it,to view it.
Regards,
Ananya
05-01-2006 6:05 AM
Hi,
COuld you give details when you say 'converting it to a business object'? How do you convert the uploaded document into a business object? May be the problem lies in the converting?
Rgds
Vj
05-01-2006 6:06 AM
05-01-2006 6:42 AM
Hi,
I am using GOS only for attaching the uploaded file to the BO.
There is no problem while converting the uploaded text file to BO,then why so for PDF and DOC files ?
In GUI_UPLOAD only the uploaded file in case of PDF and DOC ,gets filled up with junk values.Does the problem lie with GUI_UPLOAD ?
Regards,
Ananya
05-01-2006 7:59 AM
you dont need to use gui_upload to load documents into GOS. you can use FM
BDS_BUSINESSDOCUMENT_CREATEF
Regards
Raja
05-01-2006 8:03 AM
05-01-2006 9:16 AM
Hi Raja,
How do I pass the filename in this FM? How can it be of table type ?
Also,I am loading the document from the presentation server from one system as an attachment of a BO.
Do I need to pass my system info ?
Will GUI_UPLOAD be simpler for a beginner like me?
Or else,can you kindly explain this FM a bit ?
Regards,
Ananya
05-01-2006 9:30 AM
How do I pass the filename in this FM?
FILES table parameter
directory = "d:\Documents and Settings\user\Desktop\"
(please note that this is case sensitive"
filename = <fielanme.txt> "with extension"
How can it be of table type ?
i dont get this question, can you explain a bit further
Also,I am loading the document from the presentation server from one system as an attachment of a BO.
Do I need to pass my system info ?
this is for this purpose only and no local system info is required.
Will GUI_UPLOAD be simpler for a beginner like me?
No, because when you upload binary content like DOC or PDF you have to convert it to a propery type before loading that into GOS (which FM or class/method do you use for loading the uploaded content to GOS)
Regards
Raja
05-02-2006 2:08 PM
Hi Raja,
What I mean is,when I am passing the filename in the parametr TABLES,it throws error as,filename is not of table type.
How do I pass the filename as a table ?
Regards,
Ananya
05-02-2006 2:55 PM
Hi Raja,
thanks a lot. It is working fine now.Will get back if any more problems occur.
Regards,
Ananya