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: 

Download fiels from DRAW table

graghavendra_sharma
Contributor
0 Kudos

Hi all,

Can anybody please let me know the function module to download fiels from DRAW table?

--Raghav

1 ACCEPTED SOLUTION

vadimklimov
Active Contributor
0 Kudos

Dear Raghav,

Could you please clarify your request? Do you need a function module to read data from document info record (including data from the table DRAW) or do you need to extract table structure for the table DRAW (e.g. fields of this table)?

If the question is to get document info record data, then following BAPIs can be used:

BAPI_DOCUMENT_GETDETAIL

BAPI_DOCUMENT_GETDETAIL2

If you need table structure to be downloaded, you can perform this using function module RFC_READ_TABLE.

My regards,

Vadim

6 REPLIES 6

vadimklimov
Active Contributor
0 Kudos

Dear Raghav,

Could you please clarify your request? Do you need a function module to read data from document info record (including data from the table DRAW) or do you need to extract table structure for the table DRAW (e.g. fields of this table)?

If the question is to get document info record data, then following BAPIs can be used:

BAPI_DOCUMENT_GETDETAIL

BAPI_DOCUMENT_GETDETAIL2

If you need table structure to be downloaded, you can perform this using function module RFC_READ_TABLE.

My regards,

Vadim

0 Kudos

Hi Vadim,

Thanks for reply. I found these BAPIs but with these I would be able to get the file details alone but the file. My requirement is to download the file in to PC. In DRAW table, we can view the file details. In DRAO table, the actual file contents are stored in RAW format (DRAO-ORBLK). I need a function module where in I can read these tables and download the actual file in to PC.

Please let me know if you need more information.

0 Kudos

Hi Raghav,

I'm sorry, I misunderstood your question and thought you are looking for BAPI to get the document itself.

As for attachments retrieval, I would suggest to look into function module CV120_DOC_CHECKOUT_VIEW. Using this function module, you can read raw data stored in the table DRAO and open it in the appropriate application on the end-user's workstation / download it further.

Regards,

Vadim

0 Kudos

Hi Vadim

Thank you very much. I too found the same function module in my search and tested it successfully. You can even have a look at the FM "CVAPI_DOC_CHECKOUTVIEW_DIALOG" and "CVAPI_DOC_CHECKOUTVIEW". These FM will actually give exact results. Thanks for your valuable time. Full points for you :).

Now my next challenge is, I need to read these files into my program and search for a specific string. If you could find time, please let me know how I can read and search for a string.

Regards

Raghav

Edited by: G Raghavendra Sharma on Mar 10, 2010 8:39 PM

0 Kudos

Raghav,

Do you have TREX installed and configured? If so, I assume this would be a good way to go on for searching in attached documents.

Regards,

Vadim

0 Kudos

Hello Ragav,

Could you please let me know the solution. I have data avaialble in DRAO table where the data is stored in word document only. But I need to read the data from that file.