on 04-13-2011 8:28 AM
Hi Guys,
I have two questions:-
1. Is there a way to download the all the DMS attachments(all extenstions) related to particular DIR
into an application server in background mode?
2. Is it possible to view the files in the content server repository? I came to know the URL through debugging,
but when I place the same URL in browser, I don't say anything.
Thanks in advance,
Shailaja
Hi,
I am not usre of first question, i think you need some abap program to do that one.
Coming to next one you can go to OACO and select your cotent repository and cick on it you will see Physical Path for the document location.
Hope its helpful.
Thanks,
Tarun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your response Tarun.
I could see the path, but I cannot see all the files that have been stored on this content server in this path.
About my first question, I got the contents of the PDF file through FM ' SDOK_PHIO_LOAD_CONTENT', then converted to Xstring, then again to binary, which I have to send to application server to create a PDF or DWG file.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = data_string
APPEND_TO_TABLE = ' '
IMPORTING
OUTPUT_LENGTH =
TABLES
binary_tab = it_content_binary[]
then, the logic to create a file on application server
vo_originals-filename = 'C:\usr\sap\<SYSID>\SYS\src\SAMPLE ABC.pdf'.
open dataset vo_originals-filename for output in binary mode.
if not sy-subrc is initial.
message e500(26) with vo_originals-filename 'not found'.
endif.
loop at it_content_binary into s_content_binary.
transfer s_content_binary-line to lf_line.
endloop.
Here, it creates a PDF file on application server with 0 kbytes and dumps while execution saying 'File " " is not open.'.
Regards
Shailaja
endloop.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
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.