Application Development and Automation 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: 
Read only

Get file from DMS

elko_hasse
Participant
0 Likes
4,508

Hello everybody,

I want to load a file from DMS via a function module. I need the file content in a int. table.

I know the way of using FM SDOK_PHIO_LOAD_CONTENT. But this will only work if the file is checked in into KPro. In transaction CV02N the little lock in the Original Overview is then closed.

But as long as the lock is open (file is not checked in into Kpro) the above FM wont work.

Which FM can I use to either get files not checked in or to get all files (checked in and not checked in).

Thanks,

Elko

Hello everybody,

I want to load a file from DMS via a function module. I need the file content in a int. table.

I know the way of using FM SDOK_PHIO_LOAD_CONTENT. But this will only work if the file is checked in into KPro. In transaction CV02N the little lock in the Original Overview is then closed.

But as long as the lock is open (file is not checked in into Kpro) the above FM wont work.

Which FM can I use to either get files not checked in or to get all files (checked in and not checked in).

Thanks,

Elko

7 REPLIES 7
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
2,509

Check DMS_GEN_DOCUMENT_TO_OBJECT

In se37 please search form dmsdocument* you will find a list.

Read only

0 Likes
2,509

Thanks for your answer,

but FM DMS_GEN_DOCUMENT_TO_OBJECT just returns the attributes and the ID of the document, NOT the actuall content.

I am looking for a FM that returns the binary or hex data of the Original of the document. Just like SDOK_PHIO_LOAD_CONTENT, but for Docs not checked in into Kpro.

Thanks,

Elko

Read only

0 Likes
2,509

any hints ?

Read only

0 Likes
2,509

check bapi BAPI_DOCUMENT_GETDETAIL2 and see if it helps..

Read only

0 Likes
2,509

thanks fpr your reply,

but this BAPI only returns information about the document, not the document itself. I need the binary data of the physical document - returned in a int. table.

Like FM SDOK_PHIO_LOAD_CONTENT returns, but for documents not checked in.

Thanks

Elko

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
2,509

Have a look at SCMS_DOC_READ.

Read only

0 Likes
2,509

Solution is to check in the document into KPro.

Then the know function modules will work.

Elko