cancel
Showing results for 
Search instead for 
Did you mean: 

Form Upload: Shortdump while instantiating object

gerd_hotz
Contributor
0 Kudos

Hello,

while uploading an interactive form I get a shortdump: CX_FP_RUNTIME_USAGE

  • Create PDF Object using destination 'ADS' (<-- this is how it is

  • defined in SM59)

DATA: lo_pdfobj TYPE REF TO if_fp_pdf_object VALUE IS INITIAL.

lo_pdfobj = lo_fp->create_pdf_object( connection = 'ADS' ).

DATA: pdf_data TYPE xstring.

  • Set document

lo_pdfobj->set_document( pdfdata = pdf_data ).

method if_fp_pdf_object~set_document.

data: l_errstr type string.

if pdffile is initial and pdfdata is initial.

=====> raise exception type cx_fp_runtime_usage <=====

exporting

textid = cx_fp_runtime_usage=>nothing_to_do.

endif.

Does anybody know why this parameter pdf_data is empty,

although I have uploaded the file before with cl_gui_frontend_services=>gui_upload?

Thanks

G

Accepted Solutions (0)

Answers (2)

Answers (2)

gerd_hotz
Contributor
0 Kudos

Problem solved !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

The PDF was in wrong format, this was the problem .

Now it works.

Greets

G

Former Member
0 Kudos

Hello... How did you achieve this??? U mentioned PDF format... Can u please specify... It will be helpful...

Thanks in Anticipation

OttoGold
Active Contributor
0 Kudos

Total Posts: 440

Total Questions: 204 (39 unresolved)

Forum Points: 18

By the way: How comes you ask so much and answer very little? Why should people help you when you don´t bother to contribute and use others to do your job?

Otto