Skip to Content
author's profile photo Former Member
Former Member

Error in generating adobe interactive form created from WSDL file

Hi,

I have created a form in SFP from a WSDL file.Copy paste the below program and when i run the program it gives me error message

"_Adobe reader could not open ..Because it is either not supported file type or has been damaged (...)"_. I am not sure whether i am doing right.If this is not the right one, then how can i generate a interactive PDF from WSDL.

DATA: ie_outputparams TYPE sfpoutputparams.

DATA: i_name TYPE fpname,

i_funcname TYPE funcname.

DATA: fp_docparams TYPE sfpdocparams.

DATA: fp_formoutput TYPE fpformoutput.

DATA: data_tab TYPE solix_tab.

ie_outputparams-getpdf = 'X'.

ie_outputparams-nodialog = 'X'. " suppress printer dialog popup

CALL FUNCTION 'FP_JOB_OPEN'

CHANGING

ie_outputparams = ie_outputparams.

TRY.

  • i_name = 'ZSPADOBE01'. "your form name

i_name = 'Z....'. "your form name

CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'

EXPORTING

i_name = i_name

IMPORTING

e_funcname = i_funcname.

CATCH cx_fp_api_repository.

CATCH cx_fp_api_usage.

CATCH cx_fp_api_internal.

ENDTRY.

fp_docparams-langu = 'E'.

fp_docparams-country = 'US'.

fp_docparams-fillable = 'X'.

CALL FUNCTION i_funcname

EXPORTING

/1bcdwb/docparams = fp_docparams

IMPORTING

/1bcdwb/formoutput = fp_formoutput

EXCEPTIONS

usage_error = 1

system_error = 2

internal_error = 3.

CALL FUNCTION 'FP_JOB_CLOSE'

EXCEPTIONS

usage_error = 1

system_error = 2

internal_error = 3

OTHERS = 4.

DATA: filename TYPE string,

path TYPE string,

fullpath TYPE string,

default_extension TYPE string VALUE 'PDF'.

cl_gui_frontend_services=>file_save_dialog(

EXPORTING

default_extension = default_extension

CHANGING

filename = filename

path = path

fullpath = fullpath ).

CHECK fullpath IS NOT INITIAL.

CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'

EXPORTING

buffer = fp_formoutput-pdf

TABLES

binary_tab = data_tab.

cl_gui_frontend_services=>gui_download(

EXPORTING

filename = filename

filetype = 'BIN'

CHANGING

data_tab = data_tab ).

cl_gui_frontend_services=>execute(

EXPORTING

document = filename ).

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Dec 07, 2011 at 11:04 AM

    Hi Sanu,

    Hope this link help you.

    [CALLING WEB SERVICES IN INTERACTIVE ADOBE FORMS|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20280d13-7b93-2e10-51a0-ba05fd26355a]

    Regards,

    Shaira

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 08, 2011 at 10:21 AM

    HI,

    check if the wsdl configuration is set to 'NO AUTHENTICATION'!

    Regards

    Manisha

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.