Application Development 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: 

Extract file from DMS in binary format

Former Member
0 Kudos

Dear gurus,

i have a file in DMS (table DRAW), how can we extract this file in binary format? Is there any FM? We need to extract it in binary format and sent it via interface in binary format.

Regards.

Alberto

5 REPLIES 5

gouravkumar64
Active Contributor
0 Kudos

Hi,

There is a FM For this

SDOK_PHIO_LOAD_CONTENT

Try with this and search for examples.

Thanks

Gourav.

0 Kudos

Thanks

I already checked some threads with this FM but solutions access to tables  dms_doc2loio and dms_ph_cd1, but in my case these tables are empty. I can see entires in DRAW, DRAD etc...

Regards.

0 Kudos

Hi,

In this case please follow this thread

http://scn.sap.com/thread/169901

Hope it will solve ur problem

Gourav.

0 Kudos

Thanks. This seems to be valid, Just one more question, what is the format of T_DRAO-ORBLK, we need to convert it to base64, how can this be done?

0 Kudos

Hi,

To convert to base64 (if needed )

DATA: utility TYPE REF TO cl_http_utility.

      CREATE OBJECT utility.

      CALL METHOD utility->decode_base64

        EXPORTING

          encoded = mysapsso2

        RECEIVING

          decoded = cookie.

Use this

Thanks

Gourav.