cancel
Showing results for 
Search instead for 
Did you mean: 

Print Preview of Sample Program LP01 not displaying form

former_member192818
Active Participant
0 Kudos

Hey,

I have successfully configured ADS in NW2004s ABAP stack.

I ran the FP_PDF_TEST_OO program which checks the ABAP Adobe configuration and displays the version number of Adobe document.

The problem however is when I implement the sample " Part I: Adobe Print Forms" given on the site https://www.sdn.sap.com/irj/sdn/interactiveforms.

When I run the program and do a Print Preview of the form, with the default printer LP01, I do not see a PDF as mentioned in the sample. The control returns to the start page. Also, the download button on the screen results in a PDF that has 0 bites.

During the debugging, data from the database gets retrieved properly, and the correct function name gets retrieved. Would you guys know what I might be missing.

Thank you for the help.

Sumit.

I did the interface, form, and building the context several times and that seems fine.

Attached is the code:

REPORT  ZTSA_EMPLOYEE_ADS_REPORT.

 parameter: i_empid type ZTSA_employee-employeeid obligatory.

 type-pools: abap.

 start-of-selection.
 data: ie_outputparams type sfpoutputparams.

 call function 'FP_JOB_OPEN'
 changing
 ie_outputparams = ie_outputparams.

 try.

   data: i_name type fpname,
   i_funcname type funcname.
   i_name = 'ZTSA_EMPLOYEE_FORM'.

   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.

 data: isemployee type ZTSA_EMPLOYEE_STRUCT.

select *
into corresponding fields of isemployee
from ZTSA_EMPLOYEE
where employeeid = i_empid.
endselect.


 data: fp_docparams type sfpdocparams.
 data: fp_formoutput type fpformoutput.

 call function i_funcname
 exporting
 /1bcdwb/docparams = fp_docparams
 employee = isemployee
 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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Did you install ACF on your system?

former_member192818
Active Participant
0 Kudos

Hey Raja,

I have not installed the Active Components Framework (ACF) on my client. Would you have the details of the same?

Sumit.

Former Member
0 Kudos

Hi,

You can get more info on ACF in this NOTE <b>766191</b>.

Regards,

<i><b>Raja Sekhar</b></i>

former_member192818
Active Participant
0 Kudos

Thanks Raja.

Answers (2)

Answers (2)

former_member192818
Active Participant
0 Kudos

This post solved the problem.

Thanks to Markus for the help.

former_member192818
Active Participant
0 Kudos

some further information:

I see that I get an ADS Render error when I run the form in test mode.

Exception SYSTEM_ERROR

Message ID: FPRUNX Message number: 001

Message:

ADS: The render error log file has been written to D:\u(200101)

Thank You.

Sumit.

Former Member
0 Kudos

Hi,

May be this link this be helpful...

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/how%20to%20t...

Regards,

<i><b>Raja Sekhar</b></i>

Former Member
0 Kudos

And Sumit,

I think this note <i><b>717568</b></i> also helps you to solve your current <b>FPRUNX001</b> problem. Check that out also.

Regards,

<i><b>Raja Sekhar</b></i>