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
657

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 .

Thanks in advance.

Thanks & regards,

Chetan

3 REPLIES 3
Read only

Former Member
0 Likes
484

which all classes and interfaces u are using?

Read only

0 Likes
484

Hi,

Following are the objects.

DATA: control TYPE REF TO i_oi_ole_container_control.

DATA: container TYPE REF TO cl_gui_custom_container.

document TYPE REF TO c_office_document.

CALL METHOD document->create_document

EXPORTING open_inplace = 'X'

IMPORTING retcode = retcode.

Thanks in advance.

Regards,

Chetan

Read only

0 Likes
484

Hi,

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.

Chetan