cancel
Showing results for 
Search instead for 
Did you mean: 

Blank PDF sent to mail

Former Member
0 Kudos

Hi

We have a transaction ZME9 through which users can print a Purchase Order Draft or send it to the mail in PDF format .

In one case user is getting a blank PDF documnet for some particualt Purchase orders . We have observed that hte issue is happening for japanese users when they trying to use PDF option for Purchase orders with US vendors .

After investigation we have found out that in this case the Buyer is related to a Pinter and the Device type of that Printer is JPHPLJ4 - HP Laser Jet PCL 5- japanese. In this case the user is getting a blank PDF ,but the print option and the preview option are working fine

But if i change hte Printer in Debugging mode the PDF is generated successfully ,device type of this printer is POST2.

Can you please help me how can i solve this .

Thanks and Regards

Ramakanth Akunury

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi ,

when ur getting the blank pdf ,whether when ur trying to print it or while sending it as pdf attachment to mail . if there is a prblm with the pdf attachment in the mail then the print spool parameters have to be checked with the destination printer type .

if u cud specify it correclly then i can solve the prblm .

regards

Former Member
0 Kudos

Hi Gurunath

Thanks for your response .

Yes , user is having the problem when receving the PDF as an attachment .

PDF document is blank . He is not having any problem with print .

Thanks and Regards

Ramakanth Akunury

Former Member
0 Kudos

hi ramakanth ,

then the problem should be in the coding , u need the check the program for the function module " GET_PRINT_PARAMETERS".

CALL FUNCTION 'GET_PRINT_PARAMETERS'

EXPORTING

  • ARCHIVE_ID = C_CHAR_UNKNOWN

  • ARCHIVE_INFO = C_CHAR_UNKNOWN

  • ARCHIVE_MODE = C_CHAR_UNKNOWN

  • ARCHIVE_TEXT = C_CHAR_UNKNOWN

  • AR_OBJECT = C_CHAR_UNKNOWN

  • ARCHIVE_REPORT = C_CHAR_UNKNOWN

  • AUTHORITY = C_CHAR_UNKNOWN

  • COPIES = C_NUM3_UNKNOWN

  • COVER_PAGE = C_CHAR_UNKNOWN

  • DATA_SET = C_CHAR_UNKNOWN

  • DEPARTMENT = C_CHAR_UNKNOWN

  • DESTINATION = C_CHAR_UNKNOWN

  • EXPIRATION = C_NUM1_UNKNOWN

IMMEDIATELY = space "C_CHAR_UNKNOWN

  • IN_ARCHIVE_PARAMETERS = ' '

  • IN_PARAMETERS = ' '

  • LAYOUT = C_CHAR_UNKNOWN

  • LINE_COUNT = C_INT_UNKNOWN

  • LINE_SIZE = C_INT_UNKNOWN

  • LIST_NAME = C_CHAR_UNKNOWN

  • LIST_TEXT = C_CHAR_UNKNOWN

  • MODE = ' '

  • NEW_LIST_ID = C_CHAR_UNKNOWN

  • PROTECT_LIST = C_CHAR_UNKNOWN

NO_DIALOG = 'X'"C_FALSE

  • RECEIVER = C_CHAR_UNKNOWN

  • RELEASE = C_CHAR_UNKNOWN

  • REPORT = C_CHAR_UNKNOWN

  • SAP_COVER_PAGE = C_CHAR_UNKNOWN

  • HOST_COVER_PAGE = C_CHAR_UNKNOWN

  • PRIORITY = C_NUM1_UNKNOWN

  • SAP_OBJECT = C_CHAR_UNKNOWN

  • TYPE = C_CHAR_UNKNOWN

  • USER = SY-UNAME

  • USE_OLD_LAYOUT = ' '

  • UC_DISPLAY_MODE = C_CHAR_UNKNOWN

  • DRAFT = C_CHAR_UNKNOWN

  • ABAP_LIST = ' '

  • USE_ARCHIVENAME_DEF = ' '

  • DEFAULT_SPOOL_SIZE = C_CHAR_UNKNOWN

  • WITH_STRUCTURE = C_CHAR_UNKNOWN

  • SUPPRESS_SHADING = C_CHAR_UNKNOWN

  • PO_FAX_STORE = ' '

  • NO_FRAMES = C_CHAR_UNKNOWN

IMPORTING

  • OUT_ARCHIVE_PARAMETERS =

OUT_PARAMETERS = mstr_print_parms

VALID = t_valid

  • VALID_FOR_SPOOL_CREATION =

EXCEPTIONS

ARCHIVE_INFO_NOT_FOUND = 1

INVALID_PRINT_PARAMS = 2

INVALID_ARCHIVE_PARAMS = 3

OTHERS = 4

.

IF SY-SUBRC <> 0.

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

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

ENDIF.

*-- Make sure that a printer destination has been set up

*-- If this is not done the PDF function module ABENDS

if mstr_print_parms-pdest = space.

mstr_print_parms-pdest = 'LOCL'.

endif.

*-- Explicitly set line width, and output format so that

*-- the PDF conversion comes out OK

mstr_print_parms-linsz = linsz.

mstr_print_parms-paart = paart.

In this coding u have the printer destination , plz check up with ur printer port and give it correctly here . i think this should solve ur problem.

regards,