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

Opening word document using Container method

Former Member
0 Likes
537

Hi ,

I am opening word document using container method.

I type some text in that word document.

Once i save that document control comes to the Abap screen

from where i had called that container.

I want the text typed in the word document to load into to the

internal table.

Can any please tell me which method to be used or provide

me some example code .

I am refering to sap standard program

"SAPRDEMODOCUMENTCONTAINER".

What i want is when the user clicks on Save, button data should get saved in the internal table.

I am only going to type plain text for Ex ; "Hi from chetan" in the word document.

I my internal table "Hi from chetan" should get saved.

Thanks in advance.

Thanks & regards,

Chetan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
489

Hi Try using this method in I_OI_DOCUMENT_PROXY interface.

CALL METHOD DOCUMENT-SAVE_DOCUMENT_TO_TABLE

IMPORTING

RETCODE = RETCODE

CHANGING

DOCUMENT_TABLE = DATA_TABLE

DOCUMENT_SIZE = DATA_SIZE.

It may solve ur problem.

Reward points if useful.

Venkat

2 REPLIES 2
Read only

Former Member
0 Likes
490

Hi Try using this method in I_OI_DOCUMENT_PROXY interface.

CALL METHOD DOCUMENT-SAVE_DOCUMENT_TO_TABLE

IMPORTING

RETCODE = RETCODE

CHANGING

DOCUMENT_TABLE = DATA_TABLE

DOCUMENT_SIZE = DATA_SIZE.

It may solve ur problem.

Reward points if useful.

Venkat

Read only

Former Member
0 Likes
489

not required