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: 

GUI_DOWNLOAD PDF File in Unicode System

Former Member
0 Kudos

Hi Team.

We are Upgrade to ECC 6.0 with Unicode.

We are reading a PDF File from Unix directory and use the GUI_DOWNLOAD function to the user can download the file.

Original we have a WS_DOWLOAD function and all right.

But with this function the file is incorrect.

This is the right File

%PDF-1.3%âãÏÓ1 0 obj<</Producer(htmldoc 1.8.18 Copyright 1997-2002 Easy Software Products, All Rights Reserved.)/CreationDate(D:20080814090000-0600)>>endobj 2 0 Obj<</Type/Encoding/Differences[ .......

And in SAP the File Down with this format:

% P D F - 1 . 3

% â ã Ï Ó

1 0 o b j < < / P r o d u c e r ( h t m l d o c 1 . 8 . 1 8 C o p y r i g h t 1 9 9 7 - 2 0 0 2 E a s y S o f t w a r e P r o d u c t s , A l l R i g h t s R e s e r v e d . ) / C r e a t i o n D a t e ( D : 2 0 0 8 0 8 1 4 0 9 0 0 0 0 - 0 6 0 0 ) > > e n d o b j

2 0 o b j < < / T y p e / E n c o d i n g / D i f f e r e n c e s [ 3 2 / s p a c e / e x c l a m / q u o t e d b l / n u m b e r s i g n / d o l l a r / p e r c e n t / a m p e r s a n d / q u o t e s i n g l e / p a r e n l e f t / p a r e n r i g h t / a s t e r i s k / p l u s / c o m m a / m i n u s / p e r i o d / s l a s h / z e r o / o n e / t w o / t h r e e / f o u r / f i v e / s i x / s e v e n / e i g h t / n i n e / c

Any body have a Idea of this problem.

Thanks

We try change the table to Binary Mode, and the problem continue

2 REPLIES 2

Former Member
0 Kudos

Hi,

try reading the file into an internal table of type 'solix' (hex) and download that internal table..... use binary mode..

Cheers,

Jose.

0 Kudos

The problem continue. Our system is SAP ECC 6.0 with UNICODE.

Ath the moment I'm test with character table and HEX table and the File download to the local PC with errors

% P D F - 1 . 3

% â ã Ï Ó

1 0 o b j < < / P r o d u c e r ( h t m l d o c 1 . 8 . 1 8 C o p y r i g h t 1 9 9 7 - 2 0 0 2 E a s y S o f t w a r e P r o d u c t s , A l l R i g h t s R e s e r v e d . ) / C r e a t i o n D a t e ( D : 2 0 0 8 0 8 1 4 0 9 0 0 0 0 - 0 6 0 0 ) > > e n d o b j

2 0 o b j < < / T y p e / E n c o d i n g / D i f f e r e n c e s [ 3 2 / s p a c e / e x c l a m / q u o t e d b l / n u m b e r s i g n / d o l l a r / p e r c e n t / a m p e r s a n d / q u o t e s i n g l e / p a r e n l e f t / p a r e n r i g h t / a s t e r i s k / p l u s / c o m m a / m i n u s / p e r i o d / s l a s h / z e r o / o n e / t w o / t h r e e / f o u r / f i v e / s i x / s e v e n / e i g h t / n i n e / c o l o n / s e m i c o l o n / l e s s / e q u a l / g r

The file download in Binary mode. But continue add a blank character before each character.

Thanks team