cancel
Showing results for 
Search instead for 
Did you mean: 

Converted PO into PDF and sending as a mail but size differ in qual frm dev

Former Member
0 Kudos

I have used some Bitmap images in smart form and converted that into PDF and triggered a mail while creating a purchase order.when i test it in development its generating around 50 kb PDF file where as if i test the same in quality its generating 3 MB file.

If I compared the two pdfs every thing is same but in development its 50 KB and in Quality its generating 3MB file..thats leads to problem becoz user mail box will be fulled in a matter minutes.

Plzz provide me with a solution..!

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Iam using some graphics which i imported in development from my desktop , I have transported the same into quality will it differ in the size when it moved to quality.I tryed in the MIME repository Iam unable to find the images which i uploaded well I check in se78 for the graphics they are with the same attributes.

Well the SAP iam using is 4.7

Edited by: maq_maq on Jul 10, 2010 5:48 PM

Sandra_Rossi
Active Contributor
0 Kudos

After you used RSXFT_MIGRATE_BDS_GRAPHICS, you must find the graphic in the MIME repository. That's just to make sure about the size in case of transport error + manual actions, one's never know...

Other possibilities about what can be different between the 2 systems, are:

- the device type (check SPAD transaction, in the output device attributes)

- the language of the correspondance (I know there may be some issues with that. Check the SAP notes)

- issue is not about the image, but about the fonts, in case they are TrueType and stored in the PDF. Well, that shouldn't be different between the 2 systems, but it's worth checking everything

Could you give more information about the remarks above, + how do you convert?

Former Member
0 Kudos

Hi Sandra Rossi,

Iam using 'CONVERT_OTF_2_PDF' for converting into PDF.

And using CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'

for sending mail.

I checked with SP packs and SAP notes they are same.

CALL FUNCTION 'CONVERT_OTF_2_PDF'

  • EXPORTING

  • USE_OTF_MC_CMD = 'X'

  • ARCHIVE_INDEX =

IMPORTING

BIN_FILESIZE = gv_bin_filesize

TABLES

otf = gt_otf[]

doctab_archive = it_docs

lines = gt_pdf_tab[]

  • EXCEPTIONS

  • ERR_CONV_NOT_POSSIBLE = 1

  • ERR_OTF_MC_NOENDMARKER = 2

  • OTHERS = 3

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Thank u.

Sandra_Rossi
Active Contributor
0 Kudos

Based on the information you gave, I cannot help you more.

You must find out what makes the QAS PDF so big. See [Note 843480 - PDF conversion: Compression of bitmaps and TrueType fonts|http://service.sap.com/sap/support/notes/843480].

Last thing: check every part of the smart form that might be the cause, do not only focus on the image you have recently uploaded (but check it of course, if you please mind, as I said above; if you don't I can't help).

Former Member
0 Kudos

Thank u Sandra Rossi ,

Iam glad that you have provided with enough information,

-I have checked there is no change in tht both are same in QUALITY n DEV the device type (check SPAD transaction, in the output device attributes)

-Checked- the language of the correspondance (I know there may be some issues with that. Check the SAP notes)

-Checked- issue is not about the image, but about the fonts, in case they are TrueType and stored in the PDF. Well, that shouldn't be different between the 2 systems, but it's worth checking everything

The font is True type -Helvetica .in the both Dev and Quality.And as it is reflected in PDF.

Iam trying in all angles to come with a solution on this..!

Let me try the SAP notes you have provided and also the smartform ..Once again.

Thank You Very Much.

MAQDOOM.

Edited by: maq_maq on Jul 12, 2010 5:03 PM

Edited by: maq_maq on Jul 12, 2010 5:15 PM

Former Member
0 Kudos

Hi Sandra,

I found some clue regarding the..size of PDF,

when I debug the program...I found the OTF table iam passing to convert_otf_2_pdf

is same in development and quality and records in this OTF table is same.

but after this function module runs.. the pdf data table records in development are less comparing to quality.

and also the BIN_FILESIZE is around 27kb in development and in quality its of 1 MB.

Is it related to spool..?Can we compress this size here it self..?

CALL FUNCTION 'CONVERT_OTF_2_PDF'

  • EXPORTING

  • USE_OTF_MC_CMD = 'X'

  • ARCHIVE_INDEX =

IMPORTING

BIN_FILESIZE = gv_bin_filesize " Intially its 0 after running this its around 27kb in DEV and 1MB in Qual

TABLES

otf = gt_otf[] "OTF table records are same in DEV and Quality

doctab_archive = it_docs

lines = gt_pdf_tab[] "Records for this table is less iin DEV comparing to Qual

  • EXCEPTIONS

  • ERR_CONV_NOT_POSSIBLE = 1

  • ERR_OTF_MC_NOENDMARKER = 2

  • OTHERS = 3

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Former Member
0 Kudos

Is any one there to help on this ..??

Former Member
0 Kudos

Got the solution..!

system QAS has a very old kernel patch. In QAS, the kernel patch

level is release 640, patch level 21. In DEV it is release 640, patch

level 139.

Thanks to SAP.

Sandra_Rossi
Active Contributor
0 Kudos

make sure that:

- system is same SP level in DEV and QAS, and same SAP notes are applied

- the size of the image in QAS system is small (as in DEV): the only way I know is to start program RSXFT_MIGRATE_BDS_GRAPHICS so that to migrate the image to the MIME repository (to path SAP/BC/fp/graphics/PUBLIC/GRAPHICS/BMAP/... (BCOL or BMON)), start SO2_MIME_REPOSITORY, go to the image and check properties / technical information.