on 12-08-2010 9:45 PM
Hi All,
I have a problem when reading attachments from online adobe interactive form in Webdynpro ABAP.
I have tried two options:
Option1:
Get FP reference.
l_fp = cl_fp=>get_reference( ).
try.
Create PDF Object.
l_pdfobj = l_fp->create_pdf_object( connection = 'ADS' ).
Set document.
l_pdfobj->set_document( pdfdata = lv_pdf ).
Set task to get attachments.
l_pdfobj->set_task_getattachments( ).
Execute, call ADS.
l_pdfobj->execute( ).
Get result.
l_attachments = l_pdfobj->get_attachments( ).
CATCH cx_fp_runtime_system INTO exc.
xslt_message = exc->get_text( ).
ENDTRY.
option 2: in wdomodify method
DATA l_ifba TYPE REF TO cl_wd_interactive_form.
l_ifba ?= view->get_element( 'IF_001' ).
DATA l_form_method_handler TYPE REF TO IF_WD_IACTIVE_FORM_METHOD_HNDL.
l_form_method_handler ?= l_ifba->_method_handler.
DATA l_attachments TYPE tfpattachments.
l_attachments = l_form_method_handler->get_attachments( ).
Both options are not getting the attachments.
Our SAP Netweaver version is 7 and ehp 4, ADS configured.
If i save the pdf with attachments locally and then use the UI upload and read the attachments it works. But not when the interactive form is online and when i add attachments to it and click submit(where submit code is the option 1 code), it is not finding any attachments. I wonder whether pdfsource context stores the attachments or not.
When i check the note, SAP say that attachments are supported from ehp2.
What is that i am missing? Any direction would be good.
In worst case i will do webdynpro screens for attachments maintenance, wanted to check with all experts before taking this option.
Please someone answer.
Thanks
Anu
>When i check the note, SAP say that attachments are supported from ehp2.
That is correct. Attachments are supported as of NetWeaver 7.0 Enhancement Package 2.
>Our SAP Netweaver version is 7 and ehp 4, ADS configured.
Not possible. NetWeaver 7.0 Enhancement Package 4 doesn't even exist yet. In fact 7.0 Enhancement Package 2 won't start ramp-up until December 20th. I think you are confusing your ERP Enhancement Package level with your NetWeaver Enhancement Package level. I'm guessing that it is much more likely that you are on ERP 6.0 Enhancement Package 4. This level of ERP actually runs on NetWeaver 7.0 Enhancement Package 1.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> just wonder why i see that handler getattachments method, if it is not supported in our version.
The input handling for offline forms and online interactive forms are a bit different. For instance in online interactive forms you can't currently added new context elements on the client side. This limitation is also removed in 7.02.
Thomas, You were absolutely right...ours is ERP 6. EHP 4. So netweaver 7 and EHP1.
So bottom line is i need to do my own screens (to add attachments and to display the attachments right) until we get EHP2.
How is ISR framework handling the attachments(in online interactive form) in our version?
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.