cancel
Showing results for 
Search instead for 
Did you mean: 

Error in generating adobe interactive form created from WSDL file

Former Member
0 Kudos

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 ).

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

HI,

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

Regards

Manisha

former_member389677
Active Participant
0 Kudos

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