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: 

Open po sending as pdf to email

Former Member
0 Kudos

Hi All,

I am sending open po report converting as pdf and excel and sending it to email specified in the selection screen email.

for few materials in the selection screen the data is coming properly and sending it to email.

But for few materials a pdf is sending to email and while opening an error message is coming as "adobe reader could not open because it is neither not a supported file type or because the file has been damaged (ex: it was sent as an email attachment and wasn't correctly decoded).

could please let me know why this message is coming? and the excel doesn't contains any data?

what could be the reason?

Regards

SRI

3 REPLIES 3

Former Member
0 Kudos

Hi Sri,

Can you debug the code for the erroneous materials? Can you provide us with the function modules/class methods that you are using?

You can probably generate some logs where you can fill in those error details? Are the customization settings maintained properly for those materials?

Hope this will guide you better to track the error and provide here with more information so that we can exactly pin point the problem.

Thanks,

Samantak.

0 Kudos

Hi,

It is normal ABAP programming.I have not used any methods.Based on selection screen executing the program in background mode and baed on spool number we are converting into pdf and csv.

Regards

SRI

0 Kudos

Hi,

I think u r using the FM for the creation of the PDF and Excel attachment to the external mail..

For the 4.7 the FM will support, if u run the same program in the ECC version , the same error u will get.

There is the SAP NOTE for this...

Here is the sample program this one BCS_EXAMPLE1 to BCS_EXAMPLE7 . Please refer these program..

Regards,

Bharani