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
442

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

2 REPLIES 2
Read only

Former Member
0 Likes
385

This can easily done using a text editor using container.



data:
i_text_tab  type standard table of line initial size 0.

  call method editor->get_text_as_stream
    importing
      text = i_text_tab.

I hope this helps you.

Read only

0 Likes
385

Hi,

Thanks for the reply.

Can you please provide a example or test program.

Thanks & regards,

Chetan