Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

automatic generated mail's pdf didn't open properly

Former Member
0 Kudos

Dear Experts ,

We have created one report for generated automatic mail.

Its displaying properly and received by the receiver properly .

But the issue is , that received mail's pdf didn't open.

Kindly help me to do.

Advance thanks.

9 REPLIES 9

bastinvinoth
Contributor
0 Kudos

Hi

Did u check below thread , similar to your issue

http://scn.sap.com/thread/913647

also kindly go through the below link for your reference,

http://wiki.sdn.sap.com/wiki/display/Snippets/Generate+PDF+from+ABAP+List+Output

http://wiki.sdn.sap.com/wiki/display/ABAP/PDF+files+in+SAP

Regards,

Bastin.G

former_member193464
Contributor
0 Kudos

If it says the pdf is corrupted  while opening , then mostly this happens if the total length/size of the pdf is not calculated properly in your program , please check it....

arindam_m
Active Contributor
0 Kudos

Hi,

Please check the value of the linesize that you are passing during PDF conversion. That is the reason it says PDF is corrupted.

Cheers,

Arindam

Former Member
0 Kudos

Hi Experts ,

There is a existing report already its going smooth but now only that problem occurred.

Kindly help me to solve it ...

Advance Thanks......

0 Kudos

hi,

Kindly tell the report name and other details.

Cheers,

Arindam

0 Kudos

may be some changes are done to it , you can have a look on that if someone added some functionality to the report recently.
What exactly is the error message that you are getting while opening the pdf ?

0 Kudos

Dear Kiruphagar,

    

       This problem occurs when you didnt change the length of the pdf file to 255 long string from the 132 long string.

http://www.sapdev.co.uk/reporting/rep_spooltopdf.htm

Kindly go through this link and pay attention to the code under the comment

Transfer the 132-long strings to 255-long strings


Hope it will solve your problem.

Thanks and Regards

Davis

Former Member
0 Kudos

No error occurred but in the smartform pdf same like sample output of smartform

Not displaying original output...

0 Kudos

I think it would have been better if you have mentioned it at the top. Everyone here was assuming that you got an error while opening the pdf 
can you describe a little more on the same like sample output of smartform , coz i think if this sample output is converted to pdf then it will be the same as the sample output... where's the ambiguity in that ?
May be other people here can have their thoughts on it....