on 02-27-2007 1:29 AM
Hello everyone,
I would like to load a word document template into a web dynpro and then load values into the word doc, like a mail merge.
I found a good example from the forum itself in the SAP package <b>SIOS</b>. The webcompoment <b>IOS_TEST_WORDPROCESSING</b> is a pretty good example of that requirement.
But there is one part of the code that I can't figure out is how to get the URL of the word doc template. You can see that in the view <b>TEST_VIEW_WORDPROC</b> and method <b>WDDOMODIFYVIEW</b> there is a variable <b>URL</b> which has a link to a word document <i><b>'/SAP/BC/WebDynpro/SAP/PUblic/BC/ssr/uuielibs/office_integration/iostest_fields.doc'</b></i>.
METHOD wddomodifyview.
DATA:
office TYPE REF TO cl_wd_view_element,
office_res TYPE REF TO cl_wd_view_element,
mime_repository TYPE REF TO if_mr_api,
content TYPE xstring,
url TYPE string VALUE
'/SAP/BC/WebDynpro/SAP/PUblic/BC/ssr/uuielibs/office_integration' &
'/iostest_fields.doc'.
.
.
.
ENDMETHOD.
Does anyone know how to get that URL and also how to upload the word doc template on the SAP system, is there a transaction to do that?
Thank you very much for your help,
Vishal
Hello Vishal.
One way could be uploading the word doc by importing a Mime into your Web
Dynpro component.
Right click your component->Create->Mime Object->Import.
Consider the name of your component 'ZWD_TEST' and the name of the word
doc 'template.doc'.
The URL of the doc would be:
http://your.server.com/sap/bc/webdynpro/sap/zwd_test/template.doc
Hope this helps.
Cheers,
Sascha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hallo Vishal,
did you realize your idea with the transfer of values in the word document. I'll try the same but I've no idea how to get the values to the word dokument. It will be fine if you can give me your example.
Thank you and nice christmas
Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank Sascha,
Actually I end up with the same solution, was checking the SAP help website and find these links to be quite useful:
MIME:
http://help.sap.com/saphelp_erp2005/helpdata/en/46/bb182fab4811d4968100a0c94260a5/content.htm
E.g. you can create a folder for in "PUBLIC" or upload a file in it, this will be available for everyone to use.
http://help.sap.com/saphelp_47x200/helpdata/en/e9/0be7b9408e11d1893b0000e8323c4f/content.htm
Still thanks very much for your reply,
Vishal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.