on 10-06-2008 9:23 AM
Is there a way in Web Dynpro ABAP to add attachments to an interactive form in code. When I use the if_fp_pdf_object - set_attachments method, the attachments don't become visible when I display the form
Regards
Prince,
Check this blog:-
[Demystifying Attachments in PDF in WD Abap Application Part II|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/10864] [original link is broken] [original link is broken] [original link is broken];
Chintan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chintan
Thank you for your response. I have already gone through that blog. It only displays attachments already attached to the form in some other interface. I am trying to attach files to the interactive form and have them appear in the interactive form on the attachments tab. This I have to do in code. I can bind the attachments to the pdfsource xstring context attribute, but they are not getting listed in the form.
Regards
Hi,
It's possible to add attachemts to a form in your Web Dynpro ABAP application, see documentation:
http://help.sap.com/saphelp_nw70ehp2ru/helpdata/en/df/fbcc3aa8cd4e8d9e0e9a226985687c/frameset.htm
Attachments are officially supported as from SAP NetWeaver 7 EhP2 (7.02)
Ralf
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I believe the form is initially downloaded using a program . If that is the case while using the FM FP_JOB_OPEN we are passing the parameter of type sfpoutputparams. Here specify the filed sfpoutputparams-PDFCHANGESRESTRICTED = 'N'. If the form is loaded and saved later using an Abap webdynpro, then attachment option is always enabled.
To get and set attachments in WDA, access dynamically the UI element of Adobe forms.
Use cl_wd_interactive_forms to access the UI element.
Then use handler IF_WD_IACTIVE_FORM_METHOD_HNDL. here we can use set_attachments method.
I hope ADS is configured with proper credentials as well other wise these options wont be there .
Thanks and regards,
Hobs.
Edited by: hobin thomas on Oct 29, 2010 7:51 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
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.