Application Development and Automation 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: 
Read only

automatic generated mail's pdf didn't open properly

Former Member
0 Likes
1,262

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.

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
Read only

bastinvinoth
Contributor
0 Likes
1,223

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

Read only

former_member193464
Contributor
0 Likes
1,223

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

Read only

arindam_m
Active Contributor
0 Likes
1,223

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

Read only

Former Member
0 Likes
1,223

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

Read only

0 Likes
1,223

hi,

Kindly tell the report name and other details.

Cheers,

Arindam

Read only

0 Likes
1,223

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 ?

Read only

0 Likes
1,223

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

Read only

Former Member
0 Likes
1,223

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

Not displaying original output...

Read only

0 Likes
1,223

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