cancel
Showing results for 
Search instead for 
Did you mean: 

Download DMS Attachment in background to application server

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.