Skip to Content
0

SAPOfficeIntegration: Get ID from stored document

Oct 21, 2017 at 07:00 AM

51

avatar image
Former Member

Hi all,

SAP provides some useful reports in package SOFFICEINTEGRATION.

Unfortunytelly I could not find how documents are stored?

Is there an ID for each document?

Are there any value help to find already created documents?

I would like to write an ABAP to create store and repoen documents. For the reopening I need a value help to retieve a document ID.

I appreciate any help

REgards Mario

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Sandra Rossi Oct 21, 2017 at 07:52 AM
1

When a document is created or opened, it exists in the memory of the frontend. Before it's closed, the user has to save it (custom button in Word, or in the SAP GUI dynpro), which should execute one of the SAVE_* methods of the document proxy to save the document (either to a file locally, or to a URL, or to an internal table).

It's up to you to save it under the ID or name you want (maybe to be entered via a popup) and where you want (for instance BDS, CMS, database table, ...)

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Oct 23, 2017 at 12:57 PM
-1

Hi Sandra,

thanks for the reply. I debugged a few times. But I do not understand exatly what happens.

Does anybody has an idea how to create, store, maintain a document (e.g. word, wordpad) in SAP?

Are there not any standard solutions?

Regards

Mario

Show 2 Share
10 |10000 characters needed characters left characters exceeded
It's just what I have answered: BDS, CMS, database table, ... For BDS, there is the demo program SAPRDEMO_DOI_BDS.
0

If you want to use Word in the SAP GUI and save the documents in SAP with a standard transaction (no custom code), then call the transaction OAOR (it will be in BDS).

0
avatar image
Former Member Oct 23, 2017 at 01:34 PM
-1

Hi Viajy,

sure? Ever heared of BLOBs and that is is possible to store binary data?`

How should it be possible to store Word-Documents in business workplace. Bevor giving answers prove your assumptions.

Thanks

Share
10 |10000 characters needed characters left characters exceeded