on 11-28-2013 6:08 AM
Dear Team,
i have a requirement like display data in document(word/pdf) , entire document in editable mode .
user open it and do some changes once user click on save button the document should be saved.
how to save document with changes?
Hi,
You can display word document and edit and save them using Office control UI. Check this wiki for reference: http://wiki.scn.sap.com/wiki/display/WDABAP/Microsoft+Excel+using+the+office+integration+in+WebDynpr...
Also this SAP Help: http://help.sap.com/saphelp_nw70ehp1/helpdata/en/d1/af8841349e1909e10000000a155106/content.htm
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
To pass user values to document, consider creating smart form/adobe form and pass the data to the form and display it as PDF using Interactive Form UI element in WDA. But the pdf cannot be editable.
Or, If you are looking for WDA Interactive adobe form, check this demo: http://scn.sap.com/docs/DOC-10241
And It's so difficult to create a word document with user entered values. You can consider XML word generation. Search for ABAP2DOCX project in scn ( But the code exchange has been closed)
Regards,
Kiran
Hi Chandrakala,
We can save the changed data.
You can achieve your requirement as below
Steps
- Create a table with a field DOCUMENT of type RAWSTRING to store the data of word document.
- Place an office control ui element in view and bind the data source property to context attribute DATA
- You can create an action ON_SAVE and bind it to the Event OnSave of office control ui element
- Fetch data from data base table and bind it to the context attribute DATA of office control data source ( loading the saved data to context )
- On save action on word document, you can read the value of context attribute DATA and save back to the data base table.
Please refer the WD component: IOS_TEST_WORDPROCESSING
Hope this helps you.
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.