on 02-09-2012 9:11 AM
Hey,
is it possible to change an office document with the office control or is the office control only for viewing an office document?
Thanks for your support.
BR,
Christoph
Hi again,
I have the problem that sometimes the context element which is bound to the office conrol is not actual.
For example:
I have an empty document. I fill the empty document with some text content over the web dynpro office control. After I press a button in the web dynpro the content of the context element i still empty. There was no refresh.
The office control is enabled.
Thanks for your support.
BR,
Christoph
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yep XSTRING is correct.
For further details refer to the OfficeControl documentation.
e.g.
german 7.02:
http://help.sap.com/saphelp_nw70ehp2/helpdata/DE/d1/af8841349e1909e10000000a155106/frameset.htm
english 7.31:
http://help.sap.com/saphelp_nw73ehp1/helpdata/en/29/495540d5854ceeaf6b84e0a389c622/frameset.htm
http://help.sap.com/saphelp_nw73ehp1/helpdata/en/1a/f5b499b99544e1b17a3d1094ff1e04/frameset.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes this is possible.
e.g. you can use the onSave-action of the OfficeControl, just check that the context contains the updated file.
Make sure that the "enabled"-property of the OfficeControl is set to true, else the context does not get updated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey,
thanks for the fast response.
The context binding element has from type XSTRING right?
Here is my code example. This example converts the context xstring element to an binary table.
" convert the current office document to an binary
wd_context->get_attribute( EXPORTING name = 'OFFICE_DOCUMENT' IMPORTING value = document ).
" dokument aus xstring in binary kontaktieren
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = document
IMPORTING
OUTPUT_LENGTH = size
TABLES
binary_tab = lt_bindata.
DATA: zaehler TYPE i.
zaehler = 1.
loop at lt_bindata into ls_bindata.
clear ls_drao.
ls_drao-mandt = '602'.
ls_drao-orblk = ls_bindata.
ls_drao-orln = size.
ls_drao-dokar = ls_draw-dokar.
ls_drao-doknr = ls_draw-doknr.
ls_drao-dokvr = ls_draw-dokvr.
ls_drao-doktl = ls_draw-doktl.
ls_drao-zaehl = zaehler.
ls_drao-appnr = '1'.
append ls_drao to lt_drao.
ls_drao-orbkl = 2550.
zaehler = zaehler + 1.
endloop.
Thanks for your support.
BR,
Christoph
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.