Problem generating Adobe form in ABAP
Hi Experts,
I have just written a function module that calls a form that I created, which is meant to generate a pdf form and email it to a specific email address. However, I have the problem where the pdf is not being generated properly and is actually empty.
I tried to debug the program and sy-subrc returns a usage error when calling the function module generated at runtime from my form. The end result is a pdf attachment that is 1K in size and contains nothing. I get an error when I try to open the attachment, with the message being the document type is not supported or the document is corrupted or something is wrong with the coding.
Would anyone be able to shed some light on this? Its quite urgent, so any help will be appreciated and rewarded. I have also pasted my code below:
FUNCTION z_vip_vendor_survey_01.
""Local Interface:
*" TABLES
*" I_INPUT TYPE ZZVENDOR_MATNR
*" CHANGING
*" VALUE(ET_TLINE) TYPE TLINE
*---- Line of Table
DATA: lt_vendor_matnr LIKE LINE OF it_vendor_matnr,
fp_outputparams TYPE sfpoutputparams,
fm_name TYPE funcname,
fp_docparams TYPE sfpdocparams,
fp_formoutput TYPE fpformoutput,
pdf TYPE fpformoutput-pdf,
lt_att_content_hex TYPE solix_tab.
TABLES: tvarvc.
it_vendor_matnr[] = i_input[].
fp_outputparams-nodialog = 'X'.
fp_outputparams-getpdf = 'X'.
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = 'Z_VENDOR_ADOBE_FORMS_FORM'
IMPORTING
e_funcname = fm_name.
E_INTERFACE_TYPE =
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = fp_outputparams
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
fp_docparams-langu = 'E'.
fp_docparams-country = 'AU'.
fp_docparams-fillable = 'X'.
fp_docparams-dynamic = 'X'.
CALL FUNCTION fm_name
EXPORTING
/1bcdwb/docparams = fp_docparams
vendornumber = '123'
vendordesc = 'test vendor'
materialnumber = '456'
materialdesc = 'test material'
IMPORTING
/1bcdwb/formoutput = fp_formoutput
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
pdf = fp_formoutput-pdf.
CALL FUNCTION 'FP_JOB_CLOSE'
IMPORTING
E_RESULT =
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = fp_formoutput-pdf
APPEND_TO_TABLE = ' '
IMPORTING
OUTPUT_LENGTH =
TABLES
binary_tab = lt_att_content_hex
CLASS cl_bcs DEFINITION LOAD.
DATA:
lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
lo_send_request = cl_bcs=>create_persistent( ).
DATA:
lt_message_body TYPE bcsy_text VALUE IS INITIAL,
lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.
LOOP AT it_vendor_matnr INTO lt_vendor_matnr.
SELECT SINGLE * FROM tvarvc INTO tvarvc
WHERE name = 'ZZTEST'
AND type = 'P'.
tvarvc-low = lt_vendor_matnr-lifnr.
tvarvc-high = lt_vendor_matnr-SMTP_ADDR.
MODIFY tvarvc.
APPEND 'Dear ' TO lt_message_body.
APPEND lt_vendor_matnr-lifnr TO lt_message_body.
APPEND ',' TO lt_message_body.
APPEND '' TO lt_message_body.
APPEND 'Please fill in the attached form and send it back to the email address in the sender field.' TO lt_message_body.
APPEND '' TO lt_message_body.
APPEND 'Thank you.' TO lt_message_body.
lo_document = cl_document_bcs=>create_document(
i_type = 'RAW'
i_text = lt_message_body
i_subject = 'Test Survey - Please complete' ).
DATA: lx_document_bcs TYPE REF TO cx_document_bcs VALUE IS INITIAL,
attdoctype TYPE soodk-objtp,
atttitle TYPE sood-objdes,
attsize TYPE sood-objlen.
attdoctype = 'PDF'.
atttitle = 'test survey'.
attsize = XSTRLEN( pdf ).
lt_att_content_hex = cl_document_bcs=>xstring_to_solix(
ip_xstring = pdf ).
TRY.
lo_document->add_attachment(
EXPORTING
i_attachment_type = attdoctype
i_attachment_subject = atttitle
i_attachment_size = attsize
i_attachment_language = sy-langu
i_att_content_hex = lt_att_content_hex ).
CATCH cx_document_bcs INTO lx_document_bcs.
ENDTRY.
lo_send_request->set_document( lo_document ).
DATA:
lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,
lo_send TYPE adr6-smtp_addr VALUE <senderemail>.
lo_sender = cl_cam_address_bcs=>create_internet_address( lo_send ).
lo_send_request->set_sender(
EXPORTING
i_sender = lo_sender ).
DATA:
lo_recipient TYPE REF TO if_recipient_bcs VALUE IS INITIAL,
lo_rec TYPE adr6-smtp_addr VALUE <recipientemail>.
lo_recipient = cl_cam_address_bcs=>create_internet_address( lo_rec ).
lo_send_request->add_recipient(
EXPORTING
i_recipient = lo_recipient
i_express = 'X' ).
DATA: lv_sent_to_all(1) TYPE c VALUE IS INITIAL.
lo_send_request->send(
EXPORTING
i_with_error_screen = 'X'
RECEIVING
result = lv_sent_to_all ).
COMMIT WORK.
ENDLOOP.
et_tline-tdformat = 'S'.
CONCATENATE 'Triggered the Forms successfully for'
lt_vendor_matnr-lifnr
INTO
et_tline-tdline .
ENDFUNCTION.
Check your ADS configuration.
Raja T
Similar Messages
-
Problem with interactive forms using ABAP
Hi all,
I am trying to create an interactive adobe form using ABAP in ECC 6.0. But while execute the form, it is creating an error saying that
Exception SYSTEM_ERROR
Message ID: FPRUNX Message number: 001
Message:
ADS: The render error log file has been written to D:\u(200101)
But i was able to create adobe interactive form using WebDynpro and its working perfectly. But the problem is while using ABAP method.
Do anyone have an idea why its happening?
Thanks and Regards,
Raja SekharHi
Interactive Forms based on Adobe software is SAP's new solution for forms development. Its first release has the focus on interactive use of forms. High-volume printing is supported in principle, but - being a new solution - the performance has not yet reached the same level as Smart Forms or SAPscript, two established solutions that had years to grow. Interactive Forms is the only solution that will continue to be enhanced with new features, while SAPscript and Smart Forms will be supported without limitations.
When (or if) to move to Interactive Forms depends on your requirements. For interactive forms usage, i.e. the new functions, you have no choice, as the existing solutions don't support it. High-volume print scenarios need to be carefully analyzed to see whether your concrete requirements can be met at this point.
However, it is possible to move to Smart Forms and design your forms in such a way that a migration at any point in the future would be but a small step. Smart Forms offers from Web AS 6.40 a migration wizard to Interactive Forms. Technically, everything can be migrated, but we recommend against things like ABAP program nodes, for example.
You are not forced to ever go to Interactive Forms if you don't want to. It really depends on whether your client needs any of the new features in Interactive Forms. Also, if they are currently working with JetForms, they could enquire with Adobe directly what migration path they offer to the joint solution.
It is impossible to make a blanket statement on what needs to be done in each of the applications using a form for output. Despite the same underlying technology, forms handling has always been a decision for each SAP application: Some do it through customizing, some through coding, some in yet anither way.
What I CAN say from a technology pespective is that all applications are in the process of creating their forms based on Interactive Forms so that by 2007 pretty much all SAP forms will be PDF-based. Obviously, each application does it within the framework of their application - but they all use Interactive Forms.
By the way, be aware that in ERP 2004 this forms solution is subject to a limitation for high-volume printing scenarios as we cannot ensure that ALL customers will be content with the performance in ALL scenarios with this release. (see SAP Note 863893).
To get an overview idea about Adobe forms ,
Using SFP , first you need to create a interface . in interface you can declare the import and export parameters and also the declaration part, coding etc : This is nothing but similar to Function module interface.
And now we have to create the Form which is interactive. Create the form and enter the interface name which you have created in first step, so that the parameters , declarations of fields etc : will be copied and available in the form layout. So that you can drag and drop these declared fields ( dclared fields of interface ) to the layout.
Create the context and layout in the form.
The layout generated can be previewed and saved as PDF output.
Now we need to integrate the driver program and the PDF form to get the final output as per the requirement.
On activating and executing the form you will get a function module name just similar to smartforms.
The driver program needs to call this FM.
Refer to the below sample code :
DATA : is_customer TYPE scustom.
DATA : it_bookings TYPE ty_bookings.
DATA : iv_image_url TYPE string.
DATA : iv_sending_country TYPE adrc-country.
DATA : it_sums TYPE TABLE OF flprice_t.
DATA : docparams TYPE sfpdocparams.
DATA : formoutput TYPE fpformoutput.
DATA : outputparams TYPE sfpoutputparams.
PARAMETERS : pa_cusid TYPE scustom-id.
SELECT SINGLE * FROM scustom INTO is_customer
WHERE id = pa_cusid.
SELECT * FROM sbook
INTO CORRESPONDING FIELDS OF TABLE it_bookings
WHERE customid = pa_cusid.
outputparams-nodialog = 'X'.
outputparams-getpdf = 'X'.
*outputparams-adstrlevel = '02'.
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = outputparams
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
docparams-langu = 'E'.
docparams-country = 'US'.
docparams-fillable = 'X'.
CALL FUNCTION '/1BCDWB/SM00000043'
EXPORTING
/1bcdwb/docparams = docparams
is_customer = is_customer
it_bookings = it_bookings
IV_IMAGE_URL =
iv_sending_country = 'US'
IT_SUMS =
IMPORTING
/1bcdwb/formoutput = formoutput
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'FP_JOB_CLOSE'
IMPORTING
E_RESULT =
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
http://help.sap.com/saphelp_nw04/helpdata/en/d2/4a94696de6429cada345c12098b009/frameset.htm
https://www.sdn.sap.com/irj/sdn/interactiveforms-elearning
/people/thomas.jung3/blog/2005/07/13/lessons-learned-from-adobe-forms-development
/people/community.user/blog/2006/11/20/search-help-in-isr-adobe-forms
/people/franklin.herbas/blog/2005/12/13/2d-barcode-pdf-forms-with-sap-netweaver
/people/vani.krishnamoorthy/blog/2006/05/17/fillable-adobe-forms-using-abap
http://help.sap.com/saphelp_nw04s/helpdata/en/43/849b3482206353e10000000a11466f/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/43/82538c0c4458bbe10000000a422035/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/46/55c841d202c317e10000000a155106/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/6d/bd2d828aa04eeb9451aad0d02ae9a0/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/dd/60694fddb74ad88cdb7d2a094f3dd2/frameset.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d4fe7fca-0b01-0010-569a-9a9c1ddf4132
https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/7c3bc67e-0c01-0010-dbb3-908315896909 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/7c3bc67e-0c01-0010-dbb3-908315896909 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
/people/vani.krishnamoorthy/blog/2006/05/17/fillable-adobe-forms-using-abap
https://www.sdn.sap.com/irj/sdn/interactiveforms
http://www.sap.com/company/press/press.epx?pressID=2785
http://www.adobe.com/enterprise/partners/sap.html
http://www.adobe.com/enterprise/partners/pdfs/sap_datasheet.pdf
look at the Adobe page here in SDN:
https://www.sdn.sap.com/sdn/developerareas/was.sdn?page=AdobeForms.htm
Check these links on Adobe forms
http://help.sap.com/saphelp_nw04/helpdata/en/1e/05853ff8ec2c17e10000000a114084/content.htm
https://www.sdn.sap.com/irj/sdn/interactiveforms
http://www.sap.com/solutions/solutionextensions/pdf/BWP_Interactive_Forms_Adobe.pdf
It contains lots of useful information, documentation, and e-learning materials teaching you the basics.
http://help.sap.com/saphelp_nw2004s/helpdata/en/b7/64348655fb46149098d95bdca103d0/frameset.htm
Use the Tcode : SFP
https://www.sdn.sap.com/sdn/developerareas/was.sdn?page=AdobeForms.htm
Check these links on Adobe forms
http://help.sap.com/saphelp_nw04/helpdata/en/1e/05853ff8ec2c17e10000000a114084/content.htm
https://www.sdn.sap.com/irj/sdn/interactiveforms
http://www.sap.com/solutions/solutionextensions/pdf/BWP_Interactive_Forms_Adobe.pdf
It contains lots of useful information, documentation, and e-learning materials teaching you the basics.
http://help.sap.com/saphelp_nw2004s/helpdata/en/b7/64348655fb46149098d95bdca103d0/frameset.htm
Very useful
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/00f4f594-7306-2a10-8483-b45bec157093 [original link is broken]
for PDF forms
http://help.sap.com/saphelp_nw04/helpdata/en/c8/4adf7ba13c4ac1b4600d4df15f8b84/content.htm
See the links for debugging
Refer to this thread
http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
Debugging
Check these documents.
http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc
http://help.sap.com/saphelp_nw04/helpdata/en/5a/4ed93f130f9215e10000000a155106/frameset.htm
http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc
http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/84/1f624f4505144199e3d570cf7a9225/frameset.htm
http://help.sap.com/saphelp_bw30b/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm
ABAP Debugging
http://www.saplinks.net/index.php?option=com_content&task=view&id=24&Itemid=34
Look at the SAP help link below
http://help.sap.com/saphelp_nw2004s/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
For online PDF form creation...........
https://createpdf.adobe.com/index.pl?BP=IE&LOC=en_US
for Other information use these Links
C:Documents and Settingsvuser01DesktopSANKET SPersonalVikalpsap netweaver ABAP and adobe Formspdf form webpdf based print forms.htm
C:Documents and Settingsvuser01DesktopSANKET SPersonalVikalpsap netweaver ABAP and adobe Formspdf form webSAP Interactive Forms by Adobe.htm
http://searchsap.techtarget.com/generic/0,295582,sid21_gci1079310,00.html?Offer=SAPwn927nw
http://www.thespot4sap.com/articles/SAP_Netweaver_Introduction.asp
http://help.sap.com/saphelp_webas630/helpdata/en/cb/f4bc3d42f46c33e10000000a11405a/content.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c7cbe08d-0c01-0010-8bac-b9ce7348246c?source=gawindev09&kw=sap+netweaver&adgroup=brand_netweaver
https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/cfc19866-0401-0010-35b2-dc8158247fb6
https://websmp204.sap-ag.de/~sapidp/011000358700004952682004E
/people/venkata.ramisetti/blog/2006/09/21/configuring-output-types-for-pdf-based-print-forms
http://help.sap.com/saphelp_erp2005vp/helpdata/en/96/6ee0d5b39640d68fc0078fc575114a/frameset.htm
D:adobe livecycle designerAdobe_Designer_71BeforeInstall.htm
http://sdn.sap.com/irj/sdn/interactiveforms
very imp ADS configuration guide
http://help.sap.com/saphelp_nw2004s/helpdata/en/95/5a08cd0e274a0bae559622d6670722/frameset.htm
Could anyone provide the complete manual of SAP Query Creation
Tcode is : SFP
chk these links:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d4fe7fca-0b01-0010-569a-9a9c1ddf4132
https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/7c3bc67e-0c01-0010-dbb3-908315896909 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/7c3bc67e-0c01-0010-dbb3-908315896909 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
/people/vani.krishnamoorthy/blog/2006/05/17/fillable-adobe-forms-using-abap
see these links..
https://www.sdn.sap.com/irj/sdn/interactiveforms-elearning
/people/thomas.jung3/blog/2005/07/13/lessons-learned-from-adobe-forms-development
/people/community.user/blog/2006/11/20/search-help-in-isr-adobe-forms
/people/franklin.herbas/blog/2005/12/13/2d-barcode-pdf-forms-with-sap-netweaver
/people/vani.krishnamoorthy/blog/2006/05/17/fillable-adobe-forms-using-abap
http://help.sap.com/saphelp_nw04s/helpdata/en/43/849b3482206353e10000000a11466f/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/43/82538c0c4458bbe10000000a422035/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/46/55c841d202c317e10000000a155106/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/6d/bd2d828aa04eeb9451aad0d02ae9a0/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/dd/60694fddb74ad88cdb7d2a094f3dd2/frameset.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d4fe7fca-0b01-0010-569a-9a9c1ddf4132
https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/7c3bc67e-0c01-0010-dbb3-908315896909 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/7c3bc67e-0c01-0010-dbb3-908315896909 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
/people/vani.krishnamoorthy/blog/2006/05/17/fillable-adobe-forms-using-abap
https://www.sdn.sap.com/irj/sdn/interactiveforms
http://www.sap.com/company/press/press.epx?pressID=2785
http://www.adobe.com/enterprise/partners/sap.html
http://www.adobe.com/enterprise/partners/pdfs/sap_datasheet.pdf -
Error occured while showing adobe form in abap webdynpro application
Dear SAP-Masters ,
This is the mail regarding the error occured while showing adobe form in abap webdynpro application .
When i run the adobe form seperately it works fine but with abap web dynpro , i'll get following error .
Pls tell me how to resolve this problem .
The following error text was processed in the system D35 : WebDynpro Exception:
The error occurred on the application server DV35_D35_00 and in the work process 2 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: UPDATE_PDF of program CL_WD_ADOBE_SERVICES==========CP
Method: CREATE_PDF of program CL_WD_ADOBE_SERVICES==========CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LADOBE==================CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LADOBE==================CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
Method: CONV_VIEW_INTO_VE_ADAPTER_TREE of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
Method: SET_CONTENT_BY_WINDOW of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
Method: RENDER_WINDOWS of program CL_WDR_CLIENT_SSR=============CPHi Arjun ,
Thanx for ur reply ,
i got following results in ST22 dump analysis :
' An exception occurred that was not caught ' .
and
Source Code Extract
Line
SourceCde
79
x_xml = get_wd_context_as_xml( data_source = data_source ).
80
m_pdf_object->set_data( formdata = x_xml ).
81
catch cx_fp_exception into lr_fpexc.
82
raise exception type cx_wd_general
83
exporting
84
previous = lr_fpexc.
85
endtry.
86
if fillable = abap_true.
87
if m_version is initial.
88
m_version = m_pdf_object->get_version_info( ).
89
endif.
90
if version < ''.
91
set_usage_rights( m_pdf_object ).
92
endif.
93
endif.
94
endif.
95
endif.
96
97
only call the ads if requested
98
if execute_ads_call = abap_true.
99
try.
100
set document
101
m_pdf_object->set_document( pdfdata = pdf ).
102
103
execute, call ADS
104
m_pdf_object->execute( ).
105
106
get result
107
m_pdf_object->get_document( importing pdfdata = pdf ).
108
catch cx_fp_exception into lr_fpexc.
>>>>>
raise exception type cx_wd_general
110
exporting
111
previous = lr_fpexc.
112
endtry.
113
endif.
114
115
endmethod.
and
Error analysis
An exception occurred which is explained in detail below.
The exception, which is assigned to class 'CX_WD_GENERAL', was not caught and
therefore caused a runtime error.
The reason for the exception is:
WebDynpro Exception:
The occurrence of the exception is closely related to the occurrence of
a previous exception "CX_FP_RUNTIME_SYSTEM", which was raised in the program
"CL_FP_PDF_OBJECT==============CP",
specifically in line 255 of the (include) program
"CL_FP_PDF_OBJECT==============CM02Y".
The cause of the exception was:
ADS: com.adobe.ProcessingException: PDF is not interactive. Data can only be
| imported into interactive forms.(201501). -
Develop forms using Adobe Forms and ABAP Web Dynpro
Hi,
Could someone help me on how to learn forms development using Adobe Forms and ABAP Web Dynpro? Any suggestion on Tutorials / Books / other helpful hints please?
I have good knowledge of Smart Forms and used these to generate PDF Attachments via emails.
Thanks.
Regards
Keshavhttp://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/d-f/faq%20on%20interactive%20forms%20based%20on%20adobe%20software.faq
-
PDF Attachment problem in Adobe form and send mail is not working
Dear Experts,
Recently i'm facing a problem regarding Adobe form PDF attachment and sending an e-mail along with the PDF attachment to customer mail id.But when i execute the RFC Function module, in customer side no mail is comming. And when i check the transaction SBWP then i found that the PDF attachment hold only 1KB of data which is not right.For that i'm sending my code which i was declared in my program.Can anybody please help me to overcome this problem?
Warm Regards,
sameek.
CLASS cl_bcs DEFINITION LOAD.
DATA:
lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
lo_send_request = cl_bcs=>create_persistent( ).
data: t_att_content_hex type SOLIX_TAB.
DATA: lx_document_bcs TYPE REF TO cx_document_bcs VALUE IS INITIAL.
DATA: lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,
l_send type ADR6-SMTP_ADDR value 'Already provided an e-mail address here'.
DATA: lo_recipient TYPE REF TO if_recipient_bcs VALUE IS INITIAL.
DATA: lv_sent_to_all(1) TYPE c VALUE IS INITIAL.
Message body and subject*
DATA:
lt_message_body TYPE bcsy_text VALUE IS INITIAL,
lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.
APPEND 'Dear,' TO lt_message_body.
append ' ' to lt_message_body.
APPEND 'Please fill the attached form and send it back to us.'
TO lt_message_body.
append ' ' to lt_message_body.
APPEND 'Thank You,' TO lt_message_body.
lo_document = cl_document_bcs=>create_document(
i_type = 'RAW'
i_text = lt_message_body
i_subject = 'Customer Information Form').
TRY.
lo_document->add_attachment(
EXPORTING
i_attachment_type = 'PDF'
i_attachment_subject = 'Customer Information Form'
I_ATTACHMENT_SIZE =*
I_ATTACHMENT_LANGUAGE = SPACE*
I_ATT_CONTENT_TEXT =*
I_ATTACHMENT_HEADER =*
i_att_content_hex = t_att_content_hex ).
CATCH cx_document_bcs INTO lx_document_bcs.
ENDTRY.
Add attachment*
Pass the document to send request*
lo_send_request->set_document( lo_document ).
Create sender*
lo_sender = cl_cam_address_bcs=>create_internet_address( l_send ).
lo_sender = cl_sapuser_bcs=>create( sy-uname ).*
Set sender*
lo_send_request->set_sender(
EXPORTING
i_sender = lo_sender ).
Create recipient*
lo_recipient = cl_sapuser_bcs=>create( sy-uname ).
lo_recipient = cl_cam_address_bcs=>create_internet_address( l_send ).*
Set recipient*
lo_send_request->add_recipient(
EXPORTING
i_recipient = lo_recipient
i_express = 'X' ).
lo_send_request->add_recipient(*
EXPORTING*
i_recipient = lo_recipient*
i_express = 'X' ).*
Send email*
lo_send_request->send(
EXPORTING
i_with_error_screen = 'X'
RECEIVING
result = lv_sent_to_all ).
COMMIT WORK.
message 'The Customer Information form has been emailed to the Employee' type 'I'.I am also facing issue with email send .
apex 4.1.1 oracle 11g
create or replace procedure email ( p_email in varchar2)
is
l_workspace_id number;
l_subject varchar2(2000);
l_body clob;
l_body_html clob;
l_email varchar2(40);
begin
l_workspace_id := apex_util.find_security_group_id (p_workspace => 'xyz');
apex_util.set_security_group_id (p_security_group_id => l_workspace_id);
l_email:= p_email;
l_body := ' ';
l_subject := 'You have new tasks';
--if l_email=:P3_CONFIRM_EMAIL_ADDRESS is not null then
-- email( l_email =>:P3_CONFIRM_EMAIL );
-- end if;
l_body_html := '<p />The following tasks have been added.';
apex_mail.send (
p_to => l_email ,
p_from => '[email protected]',
p_body => l_body,
p_body_html => l_body_html,
p_subj => l_subject );
APEX_MAIL.PUSH_QUEUE;
end; I also check the log and queue but both are empty,
select * from
apex_mail_queue
select * from
apex_mail_log Kindly suggest what to do ?
I also created a process in apex , which call this procedure and pass the email address entered by user. -
Hi,
I have some problem in adobe form.................................
I have to design my adobe form in ADOBE DESIGNER layout.
and in the another end i have make my application programe in which i picke
some data from the sap tables. now my problem is that how can i send the data in
my adobe form from my programe i want to print that data on the form.
and always my programe is going to be notresponding.CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = 'Adobe form name'
IMPORTING
e_funcname = lv_funcname.
IF sy-subrc = 0.
u will get the fm name here.....
use fb_job_open
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = gs_output
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION lv_funcname
EXPORTING
/1bcdwb/docparams = gs_outputpara
wa_data = <> pass value here....as per u r requirement.(interface)
PATH = <>
IMPORTING
/1bcdwb/formoutput = ls_return
EXCEPTIONS
OTHERS = 1.
FP_JOB_CLOSE
CALL FUNCTION 'FP_JOB_CLOSE'
IMPORTING
e_result = result
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
regards
Anbu B -
How to use Adobe forms in ABAP
Hello Everybody,
I have used Adobe forms in webdynpro applications. Now, i want to use adobe forms in ABAP stack. Please provide me steps and guidelines to develop Adobe forms in ABAP.
What should be the infrastructure needed for that?
Thanks in Advance,
BhavikHi Bhavik,
there is extensive documentation on creating PDF-based forms for printing in ABAP Workbench (transaction SFP) on the SAP Help Portal at http://help.sap.com/saphelp_nw04/helpdata/en/d2/4a94696de6429cada345c12098b009/frameset.htm.
The infrastructure is identical (ADS on Java Engine) except that you need an ABAP backend (minimum 6.40) and the corresponding SAP GUI. You also need to create an HTTP connection from your ABAP system to the ADS in transaction SM59 (see ADS Configuration Guide).
Your Adobe LiveCycle Designer installation from the NWDS should be OK, if you are working on the same frontend. (If you have difficulties with Designer, uninstall it and install it with the SAP GUI again).
Note that Web Dynpro for ABAP integration is only supported as of NetWeaver 2004s (going into ramp-up with mySAP ERP 2005 this month), which means that interactive scenarios are more cumbersome to implement in ABAP with NetWeaver 04.
Some of the things you get with the Web Dynpro framework (such as the return of data in interactive scenarios via the WD context) would need to be manually coded when working in SFP, which was designed for output forms.
Hope this helps,
Markus Meisl
SAP NetWeaver Product Management -
Hi,
Iam a beginer to web dynpro . Can any send me some doccument related to adobe form in abap .
Wht are the things needed for abobe form in abap to get started in web dynpro .
What is meant by adobe doccument services in ABAP ? Requirement for Adobe doccument sercices in web dynpro ?
Very urgent .
Plz send me a user guide for that .Hi all,
Just an update because I know when I search for stuff and find a question the same as mine that is just unanswered that's very frustrating.
After speaking with OSS around this it seems that the ADS patch level wasn't correct and need updating.
W -
hi,
I am new to adobe forms in ABAP.can anybody please tell me the pre-requisites for the set up and step by step procedure to create Adobe Forms in ABAP?
Thanks,
Parama.Did you make an effort of searching on SDN, if not please do that.
Chintan -
Calling and manipulating data on an Interactive Adobe form from ABAP report
Dear All,
Can you please tell me how to call an interactive adobe from from a custom adobe form?
If so how can we pass and receive data between the interactive adobe form and the abap report program?
Thank you.
Regards,
Prosenjit.Hi,
It is possible to call an Interactive Adobe form from ABAP report and pass data into the form. If you search the forum, you will get many threads explaining the process. Let me know if you have any specific questions on this.
Regards,
Sanoosh -
How to print interactive adobe form in ABAP ?
Dear all,
I've create a static adobe form in ABAP environment using SFP transaction. But when i build the form and test print out, system raise an error "<b>Device type unsuitable for ADS documents</b>". So, which device type should I use to print ADS documents ?
Thank you very much for your help,
Best regards,
Sylvecast.The printer selected for output must support Adobe forms (the default "local" printer does not). If you don't already have a printer that supports Adobe output, you can create one via SPAD using (for example) device type PDF1.
-
Adobe forms using abap documents
Hi,
Iam beginner in Adobe forms using abap. i searched the SCN for documents but i could not found any complete document for Adobe forms using abap.
Please provide me complete documents for Adobe forms using abap .
Thanks in advance,
Suresh.hi,
use th following link,
dpermana.files.wordpress.com/2008/02/how-to-use-webdynpro.doc
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c2567f2b-0b01-0010-b7b5-977cbf80665d
Regards
Jayapriya -
Adobe Forms in ABAP Image upload from a local drive
Hello,
Can anybody suggest me the procedure, how to upload the image field dynamically of an employee which is existing in PA30 to SAP interactive forms (SFP). I have gone through many forums but could not able to find any right solution on it.. and hence my development is required to design the layout and call this not through WDP but using ABAP report SE38 in order to generate the employee CV, the programming logic completed till downlaoding the employee photo to local drive from PA30 and I need the same to upload the picture which is downloaded earlier by my driver program into adobe form. Can anyboby help me on this mentioned issue will be appreciated.
Thanks in advance.
Regards,
Murali.Thanks Kittu for your speedy response, I have already checked the link which was sent by you...But I couldn't able to find any helpful solution to my requirement. Can you please suggest me any new procedure to solve my problem.
-
Issue with displaying ADOBE forms using ABAP dynpro
Hi all,
We are trying to display the adobe form in the portal using ABAP dynpro. but as i test the application in R/3 it throws the dump in ST22. if i see that dump it says Uncaught exception in ADS, forms are not interactive, data can be provided on interactive forms only. But if we try the same aplication using Java dynpro it runs successfully.
What can be the issue, is there any problem with ADS configuration.
Its urgent. Please provide some inputs.
Thanks and RegardsThanks Abhi,
I checked displayType it is already native and form type also ZCI. still there is same problem
In st22, it shows exception as
Error analysis
WebDynpro Exception:
The cause of the exception was:
ADS: com.adobe.ProcessingException: PDF is not interactive. Data can only be
imported into interactive forms
thanks -
Problem in Adobe Form Execution
Hi,
I am getting an error "ADS: SOAP Runtime Exception: CSoapExceptioFault: SOAP(100102)" while executing Adobe Form.
It seems the ADS configuratoin is not correct. Can some help me out in fixing this issue.Hi Sathish,
To check the Present configuration do the following:
1.1 Checking by Executing Test Report FP_TEST_00
Use
This test report checks if your system is configured correctly for processing forms in an ABAP environment.
Procedure
1. Log on to your SAP Net Weaver AS ABAP.
2. Call transaction SA38 and enter the name FP_TEST_00.
3. Choose Execute (F8). A dialog box is displayed.
4. Enter FP_TEST_00 in the field Form.
This is displayed as the default form name.
5. Enter the name of the connection to the ADS. Enter the default name ADS, or, if you have specified another name, the one you are using in your system.
6. In the dialog box, choose Output in Print Preview.
7. Enter an appropriate device type in the field Output Device.
8. Choose Print Preview.
On successful execution of the report, you find the Print Preview of the PDF form.
If the Configuration is not correcr no form is displayed.
The following steps are only necessary, if the result of the above test was not successful.
2. Check the ABAP Connection
3. Check the User and Password
4. Check the Destination Service
1.2 Checking the ABAP Connection
Use
This is a test for checking the RFC destination. This test applies to both connections using Basic Authentication and SSL connections.
Procedure
1. Log on to your SAP system.
2. Call transaction SE38.
3. Enter the name of the test report FP_PDF_TEST_OO.
4. Enter the name of the connection. Enter the default name ADS, or, if you have specified another name, the one you are using in your system.
5. Choose Execute (F8).
Result
If the configuration is correct, the system displays the version number of the Adobe document services.
If the configuration is not correct, the system displays a corresponding message.
or
Go to the following link to download the complete ADS configuration guide:
[https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9e4e9afb-0701-0010-f8a8-b8cd093662c2]
Hope to solve your problem.
Regards,
Vaibhav Tiwari.
Maybe you are looking for
-
How do i install a cd rom on my mac mini
former windows guy here I have this CD-rom for my Sony voice recorder i inserted the cd,drug it to the Macintosh HD but it still wont work I need to do something to get my mac to pull the files off my recorder so i can store them on the mac. when i c
-
Message Output for purchase order
Dear SAP Expert, We have defined the message output type for purchase order document type XX with special function. We have maintained condition record for the same. It is working fine. Now we have defined another output type for another PO document
-
How to display multiple records in a block text items
Can fetching be done to dispplay multiple records in the text items base on the query.
-
Hi, I am using SPOOL in SQL Plus to generate a csv file. Before the start of query I am using following parameters: SET HEAD OFF SET PAGES 0 FEED OFF SET LINESIZE 800 I have computed linesize by adding up all the field lengths in the select statement
-
Hi I should not allow Cocode AD01 records to update and Display when user has authorization for CoCode AD01. i know in Event its possible, but we need to do it in PBO PAI of Screen. PBO *First statement Module Authorictycheck. Include LZXXXO01 modul