cancel
Showing results for 
Search instead for 
Did you mean: 

how to save word/pdf documents.

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member184578
Active Contributor

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

Former Member
0 Kudos

hi kiran

my document contains some dynamic data passed from screen fields( user enter values on screen) .

how to pass screen fields to document.

former_member184578
Active Contributor
0 Kudos

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

ramakrishnappa
Active Contributor
0 Kudos

Hi Chandrakala,

We can save the changed data.

You can achieve your requirement as below

Steps

  1. Create a table with a field DOCUMENT of type RAWSTRING to store the data of word document.
  2. Place an office control ui element in view and bind the data source property to context attribute DATA
  3. You can create an action ON_SAVE and bind it to the Event OnSave of office control ui element
  4. 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 )
  5. 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

Former Member
0 Kudos

hi ramakrishna,

my document contains some dynamic data passed from screen fileds( user enter values on screen) .

how to pass screen fields to doccument.

ramakrishnappa
Active Contributor
0 Kudos

Hi Chandrakala,

I don't think passing screen field values to word document is possible.

To meet your requirement, you can go for adobe forms development. Here you can pass the context data from Webdynpro application to form.

Regards,

Rama