on 06-22-2006 11:04 AM
Dear all,
There is any FM that uploads a file to a DMS Object from the application server?
Kind Regards,
Vasco
Hello Vasco,
the BAPI DOCUMENTCREATE2 is loading metadata to the DIr and is uploading original file to the vault of KPRO. You need to make a ABAP program to use the bapi. Also you can use a additional software DVSLoader from Seal Systems (www.sealsystems.com). These guys have made a fine peace of software and are SAP certified.
Great software easy to use
Greetings and good luck
Dimitri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Vasco,
It depends on how you are specifying the path of file and how the program is called (foreground Vs background).
For example, if you are using a local path like c:\abc.txt and the program is running in foreground / online, the file should be on the machine from where program was executed. If the program was scheduled in background, it should be on the application server where program is running. Please note that you may have more than one application servers. So you may want to specify application server explicitly while scheduling background job.
You may also upload files from a fileserver
fileserver\directory\abc.txt
In this case, the files will be on a network file server.
hi all,
if your files are located on a network file server and you want to upload in background you have to do the following things:
1. create a link on the sap application server to access the network file server. the application server needs to have access to the network share.
2. use SAPHTTPA or SAPFTPA to access the network file server via the sap aapplication server.
example:
your files are located on //.
check in files using the link as DOCPATH
"/link/file1.pdf".
use BAPI_DOCUMENT_CREATE2 if you want to create a document info record and check in a file.
use BAPI_DOCUMENT_CHECKIN2 if your document info record already exists and you want to add a file to it.
i hope this helps.
greets,
lars
Message was edited by: Lars Verbüchels
hi all,
use BAPI_DOCUMENT_CHECKIN2 to create a new file in an existing document.
if you want to check in from the application server use values "SAPHTTPA" / "SAPFTPA" in the PF_HTTP_DEST / PF_FTP_DEST parameters.
greets,
lars
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am facing this same kind of issue when I use BAPI_DOCUMENT_CHANGE2. When I run the program in in foreground it is attaching the original file from network file server location and if I run in back ground it is not attaching, basically it is doing nothing.
Do any one have a work around for this. I required to complete this as early as possible . Any feed back will be greatly appreciable .
- Ramesh .P
Fujitsu consulting
Hi,
Thank you all for your support.
If we want to checkin documents from the application side, we have to do it in 2 steps, create the DMS document (BAPI CREATE2) and then checkin the file (BAPI CHECKIN) as Lars said.
Best Regards,
Vasco
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.