on 05-13-2009 1:24 PM
Hi,
I am working on a ABAP WD Application which have a Interactive form.
After user inputs and clicks submit it will send an emael.I also want store this pdf in application server & local desktop .
For this I have click event .In click method I am getting pdf object plus all user entries through the context node.But I need a PDF.
Let me know if you have any ideas?
Rgds
Vara
Edited by: Vara K on May 13, 2009 4:55 PM
Edited by: Vara K on May 13, 2009 7:19 PM
Edited by: Vara K on May 13, 2009 7:22 PM
Vara,
Is it possible that you are confusing the PDFobject and the pdfSource property? The pdfSsource (XSTRING) contains the binary of the PDF. See the property tab of the InteractiveForm UI element.
If you use this property there is no conversion necessary.
Regards,
Juergen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi VARA,
If you have PDF in the Context in binary form then you dont need to convert it, you can creae a pdf file with this alone.
Cheers,
Arafat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Juergen & Arafat Thank you for your replies.
Sorry for the confusion it was pdfsource.
I have seen the interactive form properties and pdfsource is already set to an attribute type XSTRING.
Now How do i convert it to PDF?
I called the attribute in click method.
* get single attribute
lo_el_context->get_attribute(
EXPORTING
name = `PDFSOURCE`
IMPORTING
value = lv_pdfsource ).
I need to pass this to cfolders FM .Main thing I need File path for that PDF and Size.
CALL FUNCTION 'CFX_API_DOC_DOCUMENT_WRITE'
DESTINATION RFCDEST
EXPORTING
i_doc_id = key_document (Already have this)
* I_VERSION_NAME =
* I_VERSION_DESCRIPTION =
* I_CHANGE_CURRENT_VERSION = CFXA0_SC_FALSE
* I_BACKEND_SYSTEM =
i_file_path = fname ( For a local file c:\test.pdf) is working
i_file_size = fsize ( How can we get size of the pdf file??)
* I_MIME_TYPE =
* I_CONTENT_URL = ?????? Do i need to use this URL
* I_CONTENT_PROXY =
* I_CONTENT_PROXYPORT =
IMPORTING
* ES_FAULT =
e_faultstring = fault
e_doc_version_id = key_version
e_version_name = vname
* E_CONTENT_RELATIVE_URL =
TABLES
it_content = content[].
Rgds
Vara
Edited by: Vara K on May 14, 2009 4:35 PM
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.