GUI_DOWNLOAD PDF File in Unicode System
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
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
Similar Messages
-
Unable to Open unix file in UNICODE system which created NON-UNICODE system
Unable to Open unix file in UNICODE system which created in NON-UNICODE system
We have two SAP systems both are ECC6.0 but System 1 is NON-Unicode and System2 is Unicode system.
There is a common unix directory/folder for both system.
Our requirement is to create one file on unix common folder and write the data to file from system1 .
In system2 open the same file for appending mode to write the data .
The file in system 1 created with below sentence.
OPEN DATASET g_unix_file FOR OUTPUT IN TEXT MODE ENCODING UTF-8.
Now I have to append the data from system 2 to same file.
I have tried to used below statement in system 2 to open the file but sy-subrc value comes as '8'.
1> OPEN DATASET g_unix_file FOR APPENDING IN TEXT MODE ENCODING UTF-8.
2>OPEN DATASET g_unix_file FOR APPENDING IN legacy TEXT MODE CODE PAGE
cdp IGNORING CONVERSION ERRORS .
3>OPEN DATASET g_unix_file FOR APPENDING IN TEXT MODE ENCODING Default.
4>OPEN DATASET g_unix_file FOR APPENDING IN TEXT MODE ENCODING NON-UNICODE.
Tried out all the possibilities as per F1 help given for open dataset , but still there is problem with opn file in appending as well output mode.However the file successfully open in Input mode(Read).
Please advice suggestion to resolve this issue.
Thanks.Messgae captured as 'Permission Denied". The program gets triggered with system user Id PPID.
How to check the security access of the User ID. -
After updating silverlight, i'm unable to open any pdf files in the system
After updating silverlight, i'm unable to open any pdf files in the system
According to your User Agent you posted this question using Internet Explorer 11 on Windows 8.1. Are you having a problem with Firefox? What Firefox version?
You said you are having a problem opening PDF files on your system. Can you explain that better? Mozilla Support can help you with opening PDF files in Firefox, which uses a built-in PDF reader. Maybe one of these articles will help?
* [[View PDF files in Firefox without downloading them]]
* [[How to disable the built-in PDF viewer and use another viewer]] -
I am unable to read PDF files on my system.
I am unable to read PDF files on my system. Need immediate help. Thanks
DeepakSS wrote:
It said that 11 is not compatible to my system.
What exactly is "it"; can you post a screenshot of that?
Other things you can try...
Using Windows Explorer navigate to C:\Program Files (x86)\Adobe\Reader 11.0\Reader, then double-click on Eula.exe and accept the license agreement
Can you open Adobe Reader by itself? If so, try disabling Protected Mode [Edit | Preferences | Security (Enhanced)].
If you cannot open Reader by itself, try to disable Protected Mode in the registry; download, unzip, then run the attached registry script
It could even be a malware issue; see http://helpx.adobe.com/acrobat/kb/reader-core-dll-error.html
...or wait and see if the next Reader version fixes the problem (likely to be released later today). -
Errors in PDF converter for Unicode systems
Hello experts,
I have some problems with the PDF conversion in a Unicode system.
I have to convert a smartform to PDF using CONVERT_OTF. I have implemented SAP notes 812821 and 999712.
The problem is that the special characters(diacritics, language specific characters) are overlapped in the generated PDF document. Does anyone knows what is the problem? I don't know what to do anymore...Hi,
Try Below code
*& Report ZTEST_NREDDY1
REPORT ztest_nreddy1 NO STANDARD PAGE HEADING.
DATA: it_otf TYPE STANDARD TABLE OF itcoo,
it_docs TYPE STANDARD TABLE OF docs,
it_lines TYPE STANDARD TABLE OF tline,
st_job_output_info TYPE ssfcrescl,
st_document_output_info TYPE ssfcrespd,
st_job_output_options TYPE ssfcresop,
st_output_options TYPE ssfcompop,
st_control_parameters TYPE ssfctrlop,
v_len_in TYPE so_obj_len,
v_language TYPE sflangu VALUE 'E',
v_e_devtype TYPE rspoptype,
v_bin_filesize TYPE i,
v_name TYPE string,
v_path TYPE string,
v_fullpath TYPE string,
v_filter TYPE string,
v_uact TYPE i,
v_guiobj TYPE REF TO cl_gui_frontend_services,
v_filename TYPE string,
v_fm_name TYPE rs38l_fnam.
CONSTANTS c_formname TYPE tdsfname VALUE 'ZTEST'.
CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
EXPORTING
i_language = v_language
i_application = 'SAPDEFAULT'
IMPORTING
e_devtype = v_e_devtype.
st_output_options-tdprinter = v_e_devtype.
*st_output_options-tdprinter = 'locl'.
st_control_parameters-no_dialog = 'X'.
st_control_parameters-getotf = 'X'.
.................GET SMARTFORM FUNCTION MODULE NAME.................
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = c_formname
IMPORTING
fm_name = v_fm_name
EXCEPTIONS
no_form = 1
no_function_module = 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.
...........................CALL SMARTFORM............................
CALL FUNCTION v_fm_name
EXPORTING
control_parameters = st_control_parameters
output_options = st_output_options
IMPORTING
document_output_info = st_document_output_info
job_output_info = st_job_output_info
job_output_options = st_job_output_options
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
.........................CONVERT TO OTF TO PDF.......................
CALL FUNCTION 'CONVERT_OTF_2_PDF'
IMPORTING
bin_filesize = v_bin_filesize
TABLES
otf = st_job_output_info-otfdata
doctab_archive = it_docs
lines = it_lines
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.
Regards
jana -
Unable to fetch data in embedded Xcelsius PDF file on disconnected system
I have an Xcelsius 2008 document with QaaWS. I am able to export it to the PDF and fetch data using QaaWS.
I would like to know, it is possible for the embedded Xcelsius file in PDF to fetch data when the PDF file is sent to customers outside the network.
We are using Business Objects XI 3.1, Xcelsius 2008, QaaWS, MS SQL Server 2008
Thanks in advance.Hi,
When you send the PDF file for the dashboard you have created in Xcelsius, it takes it with the data available in embeded excel. You need not send the data separetly with the PDF.
However, if the data changes, you need to save the dashboard again in PDF format and send it to the user community.
Hope I answered your question.
Regards,
Rashmi -
Problem in output file in unicode system
Hi ,
When we are downloading data from SAP to application server(Unix system)
the output xml file contains # symbol in the begining of the file. we are using
'Open data set dataset name for output in textmode encoding non unicode'.
we have upgraded from SAP 4.7 to ECC6.0 recently . please advice the solution to get rid of this # sign from output file.
thanks & Ragards,
SarathUse the following logic to remove #
constants:c_cr_lf(1) type c VALUE cl_abap_char_utilities=>cr_lf.
then in open dataset after reading string from file use following statement:
replace all occurrences OF c_cr_lf in gv_string WITH ''.
Please reward if useful
Edited by: arunchandra c p on Jul 24, 2008 11:47 AM -
Reading TemSe files in unicode system showing greek letters
Hi Gurus,
I am facing issue with the newly converted unicode (cp 4102) spool files. I am using the standard functions RSTS_OPEN_RLC , RSTS_READ and RSTS_CLOSE to read TemSe files and create output files on application server using OPEN DATASET and TRANSFER.
After conversion to unicode, these function calls are returning some greek characters with size of the itab doubled (and that is due to double-byte UTF-16 charcter set) .
The program generates
Runtime Error CONVT_CODEPAGE
Except. CX_SY_CONVERSION_CODEPAGE
" While a text was being converted from code page '4102' to '1100', on
the following occurred:
- an character was discovered that could not be represented in one o
the two code pages;
- the system established that this conversion is not supported."
the statement
TRANSFER TEMSE_DATA TO ACT_FILE
generates this error.
Can someone tell me what is missing ?
TIA
WasimThe extra characters are pasted below:
㤀 ㈀㈀㐀 ㈀㜀㐀㐀㐀 㤀 ㈀ 㘀 㤀㈀ 圀 㤀㐀 唀⸀匀⸀ 䈀䄀一䬀
These kind of characters are also visible in SP11 contents for spool files.
Again the question: which font to you use to display in your SAPGUI?
The spool files are generated through language EN and should not show any non-english characters.
That doesn´t tell anything. One advantage of Unicode is that you can enter, display and modify all languages/characters with an English logon.
Another question: What technology is generating those spool files? Sapscript? Smartforms? Self written program?
Markus -
Hello all,
Since we have upgraded our system to ECC6, we're facing a problem concerning pdf(created by smartforms) download in a bsp application. everytime we try to download a pdf, there is a "#" before every characters.
I don't no if this is a unicode problem or an HTTP problem, or something else...
Did any one of you heard about that issue?
Many thanks
KarimHello,
No one heard about that problem?
regards
Karim -
RFUMSV00 (Tax report) wrong generation of DME file in Unicode system
Hello gurus,
I've a problem running the program RFUMSV00 (Advance Return for Tax on Sales/Purchases) transaction S_ALR_87012357 when "Create DME file" check box is selected and a format tree and a file name are specified.
On 4.7 it was working properly but now on ECC6.0, that is unicode compliant, does not work correctly because each char of each field on the downloaded table into Unix directory has preceeded by an hash (#).
So 1234 becomes #1#2#3#4...
The problem seems to be related to codepages and I found in debug that the RFUMSV00 program calls from the include I_RFUMS_DME_FORMS the following routine at line 119: PERFORM write_file_to_system USING lt_dme_file.
This form contains a call to the following function:
CALL FUNCTION 'FI_PAYM_FILE_OPEN'
EXPORTING
i_temse_name = par_tems
i_file_name = l_file_name.
without specifying the codepage as further parameter so the function open the dataset for output in binary mode (and here the problem) because i_codepage is initial
Pls see below.
IF i_codepage IS INITIAL.
OPEN DATASET i_file_name FOR OUTPUT "Open File to write
IN BINARY MODE.
ELSEIF i_codepage = '4110' AND
cl_abap_char_utilities=>charsize > 1. " UTF-8 and Unicode
OPEN DATASET i_file_name IN TEXT MODE FOR OUTPUT
ENCODING DEFAULT.
ELSEIF i_codepage = '4102' OR i_codepage = '4103' OR i_codepage = '4110'.
OPEN DATASET i_file_name FOR OUTPUT
IN BINARY MODE.
ELSE.
OPEN DATASET i_file_name FOR OUTPUT "Open File to write
IN LEGACY BINARY MODE
CODE PAGE i_codepage
IGNORING CONVERSION ERRORS.
Putting '4110' on i_codepage all is working magically perfect.
Does anybody know where set the code page (4110) or how to solve this problem ?
Thanks a lot in advance & best regards
TonyHello Rob,
thanks for your reply.
Yes I did a check of the OSS notes and I found that OSS 1365764 (Pls see below) describes exactly the problem I have but it is relevant only for payments and DME files created with this purpose.
Also the DCP parameter (that has to be specified at user level) is only relevant for RFFO* programs.
Note 1365764 - Codepage of DME file
https://service.sap.com/sap/support/notes/1365764
Also the two following notes
Note 911190 - PMW: Entering the code page when writing and downloading
https://service.sap.com/sap/support/notes/911190
Note 899205 - RFUMSV00: DMEE format tree with additional parameters
https://service.sap.com/sap/support/notes/899205
So to be honest I do not really know how to look at to solve the issue.
Thanks again for your reply & best regards
Tony
Edited by: Antonio Lanza on Nov 9, 2010 9:33 AM -
Annotated PDF file not saved, + "System Error"
A few issues with the newly updated Adobe Reader app for the iPad (April 10, 2012):
1- I can mark-up a PDF with the annotation tools (pen, highlighting, underlining, etc) and then hit SAVE. When I then re-open the PDF, I do not see my comments/mark-ups,
2- From within the Adobe Reader app -- when I try the "open-in" (to another application), I receive a pop-up message: "A system error was encountered."Luis,
I think the problem you describe is different. For SGFilipe1022, the issue is that while in Reader, the annotations are not visible after closing and opening the document within Adobe Reader. However, in your case I suspect that what you are seeing is that not all PDF Readers support the viewing of comments and markups. In particular, the previewer in Apple's Mail program for iOS does not render comments. Similarly, most PDF Readers on iOS use the device's built-in rendering to show PDFs. This also does not support viewing of annotations.
Can you please tell me where you are viewing the PDF after editing it in Reader? This will help me confirm (or disprove) my suspicion.
Thanks!
Pat -
GUI_DOWNLOAD problems with CR+LF when transfering from unicode system
Hi,
I was successfuly used FM GUI_DOWNLOAD in a non-unicode systems for years. Lately I faced a challenge to rewrite my code for a unicode system. The configuration is:
- SAP R/3 unicode system;
- data to be downloaded at presentation server in a non-unicode codepage (cp 9504).
I have successfuly used a GUI_DOWNLOAD-parameter CODEPAGE and the data is translated correctly when checking local file, but due to some reasons CRLF are replaced with '#' (which is default value of REPLACEMENT parameter of this function) - means at the end of each row as a result I have '##' instead of CRLF.
My question is: how can I force correct behaviour of GUI_DOWNLOAD in order to get my output file at presentation server with CR+LF?
Any help would be highly appreciated.
Many thanks in advance.
Regards,
Ivaylo Mutafchiev
SAP/ABAP consultant
VBS Ltd.
P.S. In order to find some other way to fix my problem I'm still playing with the instanciation of a CL_ABAP_CONV_OBJ and its methods create & convert, but without success for now - resulted strings are not as expected.Hi,
in fact, I never placed CRLF in my lines before your suggestion. The rest was done by the FM 'GUI_DOWNLOAD'. It works fine even when I use unicode file as output - means I got my CRLF at the end of the record in MY OUTPUT FILE ONLY but not in my internal table - I never placed CR+LF in there.
The problem occures when I tried to use GUI_DOWNLOAD with parameter CODEPAGE = '9504' (some non-unicode codepage), and the original data (my internal table) is in unicode. Then (in my opinion) this function doesn't translate the unicoded CR+LF into non-unicode ones (if thats possible at all, I can't be sure) and the result is '##' in the output file.
I checked the value of CL_ABAP_CHAR_UTILITIES=>CR_LF by getting it in my variable - and it is '##'.
Whet should I put into this class-attribute in order to get it working in this scenario? I have no idea...
The attribute type is ABAP_CR_LF - which is char 2.
What next?
Thanks,
Ivaylo -
Re: uploading pdf file farmat into sap system
Hi Sap Guru's
One of my client have requirement of uploading PDF file into sap system
client is getting scan copy in PDF format of sales order that order , material number and qty should be uploaded into sap through
va01
as clent havint 200 customers and all tha customers having different styles of format in pdf
i know that we can do by webdyopro / adobe forms but for one customer i can do but here 200 customer are having different
format
can any one suggest me this requirement is fulfilled by SAP-XI, OR ANY OTHER
Thanks & Regards
T BharatHi,
you can try using the method cl_gui_frontend_services=>file_open_dialog, this will open a popup allowing
you to browse and selected the desired files from your system.
Use this method along with the function module GUI_UPLOAD to upload all the desired files and their contents in SAP.
Hope this was useful.
Thanks and regards,
Adithya. -
Re: uploading pdf file format into sap system
Hi Sap Guru's
One of my client have requirement of uploading PDF file into sap system
client is getting scan copy in PDF format of sales order that order , material number and qty should be uploaded into sap through
va01
as client having 200 customers and all that customers having different styles of format in pdf
i know that we can do by webdyopro / adobe forms but for one customer i can do for all 200 customer through webdyopro /
adobe forms for having different format
can any one suggest me this requirement is fulfilled by SAP-XI, OR ANY OTHER
Thanks & Regards
T BharatHi,
You can use SAP DMS for this.
Thanks
Sunny -
How to output PDF file through XI from PDF form generated in SAP
Hi, All,
I need to generate and send out PDF file to other system through XI. The PDF file source come from SAP PDF form which type is XSTRING. I see there is a similar thread posted here /message/527877#527877 [original link is broken]
but it seems does not have good solution there. Can anybody give a hand?
Useful information will be surely awarded.
YangHi,
Please check the links below to know about conversion agent tool,it is a third party tool which helps to convert the PDF,word doc,HL7 doc......etc into xml format.
This s/w u have to buy from SAP and do the convertion in the convertion agent tool and deploy it in the xi server.
Check the links
http://help.sap.com/saphelp_nw04/helpdata/en/43/6d95e0ac846fcbe10000000a1553f6/CMGetStart.pdf
http://help.sap.com/saphelp_nw04/helpdata/en/43/4c38c4cf105f85e10000000a1553f6/content.htm
More on the SAP Conversion Agent by Itemfield
Integrate SAP Conversion Agent by Itemfield with SAP XI
Conversion Agent a Free Lunch?
How to get started using Conversion Agent from Itemfield
Conversion Agent - Handling EDI termination characters
https://websmp102.sap-ag.de/~sapdownload/011000358700001090982006E/ConvAgentDocSP16.zip
https://websmp102.sap-ag.de/~sapdownload/011000358700004921152005E/ConversionAgent.pdf
Regards,
Phani
Maybe you are looking for
-
ITunes store won't display open. No error message or connection problems.
For the last few weeks I've been trying to access the iTunes store but it will not open. I click on "iTunes Store" but it just shows me a blank screen. It seems to load it judging by the bar that displays the song information but it just doesn't show
-
What are the options for integrating the event catalog and event landing pages in our website?
We'd like to integrate the event catalog and event landing pages into our website but would prefer not to use the standard iframe embed code. Are there other solutions available, like an API or something else? Reason for this is that when we tried it
-
Problems with bootcamp on Mac mini (Mavericks) late 2009
Hi all! The problem I encounter is that I get an error message saying that the files aren't available on the software update server (?). I don't get to the point where to partition the hdd or in my case the ssd. I have tried with an external 500 gb h
-
JNI FC1063 HBA support on solaris 10
Hi , I have upgraded Solaris 9 to Solaris 10 using Live upgrade.Server is SUN fire V880 and the HBA is JNI FC1063. After upgrading ,I am not able to see the FC LUNS . Does The JNI Fc1063 HBA has support on Solaris 10. Thanks
-
Hi All, We have a requirement where we have to call SSN number field with *value ******** instead of orginal value* in PA30 screen header. Is it possible? Kind regards. Subhash