cancel
Showing results for 
Search instead for 
Did you mean: 

Save Adobe Form as XML

Shishir_P
Explorer
0 Kudos

Hello,

I am ABAPer and wanted to know if there is a way I can save the Online Adobe Form as XML using the SUBMIT button? Can I convert the Online Adobe Form as XML file using JAVA Script and then save it at at maybe a default location?

Regards,

Shishir.P

Accepted Solutions (0)

Answers (2)

Answers (2)

OttoGold
Active Contributor
0 Kudos

Hello, the important things is, why do you want to do this:

1) for archiving purposes you´d better save the whole PDF file as a binary stream, that is not difficult

2) of course you can archive only the XML but it won´t be valid if you change your form, if you don´t care, you can easily extract the XML file when the form gets back to the backend to be processed (I guess you need to extract the data anyway, or not? If yes, you can use this XML for archiving)

3) you want to do that in form, through JS scripting, then the code above works, but what are you going to do with the string? Do you want to send it somewhere through the WS for example?

If you can tell me the reason, I can tell you how to achieve the goal. Regards Otto

Shishir_P
Explorer
0 Kudos

Otto,

Let me take through step by step:-

1. I am working on SAP Version that does not support dynamic tables. Hence the when I convert the Adobe form into PDF content extracted in SAP Web dynpro, the PDF content does not have data entered in Dynamic Tables. To read dynamic tables the SAP system will have to undergo a ABAP kernel upgrade which is not possible at this time.

2. I had come up with a concept that using JAVA Script if I could convert the live Online Adobe Form into XML using the SUBMIT button on the form and then store it in one of the invisible fields on the form itself or maybe at remote location in desktop / application server.

3. This would be picked up once again by the ABAP Web dynpro and this file would contain the data entered by the User, I could then read the data in Web Dynpro for ABAP and process it further.

4. Well this is just an Idea and I am not sure if this can be implemented, please let me know if anything of this sort is possible, please excuse me if this sounds weird as my knowledge of JAVA is limited.

Regards,

Shishir.P

Edited by: Shishir Paltanwale on Apr 27, 2010 2:28 PM

OttoGold
Active Contributor
0 Kudos

2. I had come up with a concept that using JAVA Script if I could convert the live Online Adobe Form into XML using the SUBMIT button on the form and then store it in one of the invisible fields on the form itself or maybe at remote location in desktop / application server.

It is possible to implement your scenario. You only work a little harder on the point 2. You need to:

1) let the user fill the form, then click some submit button

2) onSubmit event will call a webservice created in your SAP system

3) the WS will accept the XML and save it as a string into a Z-table (something like: generated key number, timestamp - received and of course the XML string)

4) also the program with some XML factory will be triggered in backend to read the XML file and return the data

5) you have your data as if it would come through RFC or something and you can play around with that

Hope that clarifies the process.

Regards Otto

p.s.: the only problem will be the security: you must synchonize the WD access with the WebService. What is the problem: when somebody saves the data (of course it is a form which sends the data, we both know that) to a WS, you don´t know, who sent the data. Just because WS can be accessed by anybody, right? You cannot depend on the fact that a possible attacker will not know the proper XML structure to forge the data.

Former Member
0 Kudos

Hello,

I found this javascript :

xfa.data.saveXML();

I have not used it till now. Give it a try and let me know if it wrks.

Thanks & Regards,

Omkar Mirvankar.