Problem in downloading smartform as pdf file...
Hi SDNs.,
while downloading the invoice layout as .PDF file.. i am getting following error...
<b>OTF end command // missing in OTF data</b>
and the file is downloading as empty size... ( xyz.pdf with 0kb )
It is working fine in sandbox... i am getting this error in production...
what could be the probelm? when this type of error occurs?
hi raghu.,
CALL FUNCTION LF_FM_NAME
EXPORTING
ARCHIVE_INDEX = TOA_DARA
ARCHIVE_PARAMETERS = ARC_PARAMS
CONTROL_PARAMETERS = W_CTRLOP
MAIL_RECIPIENT = LS_RECIPIENT
MAIL_SENDER = LS_SENDER
OUTPUT_OPTIONS = LS_COMPOSER_PARAM
USER_SETTINGS = 'X'
IS_BIL_INVOICE = LS_BIL_INVOICE
IS_NAST = NAST
IS_REPEAT = REPEAT
OUT_TYPE = V_OUTPUT
TEMP_LST = TEMP_LST
TEMP_CST = TEMP_CST
TEMP_TELF1 = TEMP_TELF1
TEMP_TELFX = TEMP_TELFX
TEMP_NAME1 = TEMP_NAME1
TEMP_STRAS = TEMP_STRAS
TEMP_ADRNR = TEMP_ADRNR
TMP_VAT = TMP_LST
TMP_CST = TMP_CST
TEMP_WERKS = TEMP_WERKS
VAT_DATE = VAT_DATE
CST_DATE = CST_DATE
VAT = VAT
I_ADDRESS = I_ADDRESS
FLAG_HDR = FLAG_HDR
I_ADDR = I_ADDR
TMP_CST_DATE = TMP_CST_DATE " mod-004
TMP_LST_DATE = TMP_LST_DATE " mod-004
IMPORTING
JOB_OUTPUT_INFO = W_RETURN
TABLES
IT_KONV = TEMP_KONV
IT_VBRP = IT_VBRP_FORM
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
IF SY-SUBRC <> 0.
error handling
CF_RETCODE = SY-SUBRC.
PERFORM PROTOCOL_UPDATE.
get SmartForm protocoll and store it in the NAST protocoll
PERFORM ADD_SMFRM_PROT.
ENDIF.
ENDDO.
LS_COMPOSER_PARAM-TDCOPIES = NAST_ANZAL.
IF NOT NAST_TDARMOD IS INITIAL.
NAST-TDARMOD = NAST_TDARMOD.
CLEAR NAST_TDARMOD.
ENDIF.
ENDIF.
************************add for pdf**********************************
I_OTF[] = W_RETURN-OTFDATA[].
DATA : ITAB2 LIKE DOCS OCCURS 0,
SIZE TYPE I.
BIL_NUM = LS_BIL_INVOICE-HD_GEN-BIL_NUMBER.
CALL FUNCTION 'CONVERT_OTF_2_PDF'
EXPORTING
USE_OTF_MC_CMD = 'X'
ARCHIVE_INDEX =
IMPORTING
BIN_FILESIZE = SIZE
TABLES
OTF = I_OTF
DOCTAB_ARCHIVE = ITAB2
LINES = I_TLINE
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.
****************download************************
CONCATENATE 'C:\' BIL_NUM '.PDF' INTO FILENAME.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
FILENAME = FILENAME
FILETYPE = 'BIN'
IMPORTING
FILELENGTH =
TABLES
DATA_TAB = I_TLINE
FIELDNAMES =
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
IF SY-SUBRC = 0.
message i000.
ENDIF.
is this enough????
Thanking you..,
Similar Messages
-
I've started having problems with downloading and opening PDF files. Any hints?
This started late yesterday and I've been unable to download or open or view any PDF files. I've restarted my computer a few times, made sure Preview was open then when those things didn't work downloaded Adobe PDF reader and that didn't work either. Any other ideas????
Back up all data.
Quit Safari. In the Finder, select Go ▹ Go to Folder from the menu bar, or press the key combination shift-command-G. Copy the line of text below into the box that opens, and press return:
/Library/Internet Plug-ins
From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then launch Safari and test.
If you still have the issue, repeat with this line:
~/Library/Internet Plug-ins
If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again. -
A problem in downloading a DRM pdf file.
Hi,
Today I purchased an ebook via Kobo's site:
http://www.kobobooks.com/ebook/Applied-Natural-Language-Processing-Identification/book-dR0 XnmDKKk27gMjojat8DQ/page1.html
It is in my library and when I go to ADOBE DRM PDF in order to download it and read it in Adobe Digital Editions (windows 8 pro) it says that:
"Retailer not authorized" and "The requested eBook title cannot be downloaded at this time due to difficulty in communicating with the retail site. Please try again later."
Kobo's customer services told me to refer to Adobe Digital Editions.
So, is there any solution?
I need your help urgently.
Thanks so much in advance.
Regards.Did you ever get this resolved? I'm having the same issue.
-
Problem in converting smartform to PDF
Hi Experts,
I am facing the issue while converting the smartform to pdf form with the help of FM convert_otf_2_pdf .
Problem is that
CH3OH4OD7 3 , 4 and 7 are the subscipts in SMARTFORM like in a chemical formula ,but after conveting to PDF # is replacing the subscripts like CH#OH#OD# .
Kindly help in this issue.
Thanks
Sachin
Edited by: Rob Burbank on Feb 6, 2012 10:13 AMTry this example it will be help full
REPORT YSAMPLE5.
DATA:
w_form_name TYPE tdsfname VALUE 'YSAMPLE2',
w_fmodule TYPE rs38l_fnam,
w_cparam TYPE ssfctrlop,
w_outoptions TYPE ssfcompop,
W_bin_filesize TYPE i, " Binary File Size
w_FILE_NAME type string,
w_File_path type string,
w_FULL_PATH type string.
Internal tables declaration
Internal table to hold the OTF data
DATA:
t_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
Internal table to hold OTF data recd from the SMARTFORM
t_otf_from_fm TYPE ssfcrescl,
Internal table to hold the data from the FM CONVERT_OTF
T_pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE.
This function module call is used to retrieve the name of the Function
module generated when the SMARTFORM is activated
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = w_form_name
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
fm_name = w_fmodule
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.
Calling the SMARTFORM using the function module retrieved above
GET_OTF parameter in the CONTROL_PARAMETERS is set to get the OTF
format of the output
w_cparam-no_dialog = 'X'.
w_cparam-preview = space. " Suppressing the dialog box
" for print preview
w_cparam-getotf = 'X'.
Printer name to be used is provided in the export parameter
OUTPUT_OPTIONS
w_outoptions-tddest = 'LP01'.
CALL FUNCTION w_fmodule
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
control_parameters = w_cparam
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
output_options = w_outoptions
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
job_output_info = t_otf_from_fm
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.
ENDIF.
t_otf[] = t_otf_from_fm-otfdata[].
Function Module CONVERT_OTF is used to convert the OTF format to PDF
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 132
IMPORTING
BIN_FILESIZE = W_bin_filesize
BIN_FILE =
TABLES
otf = T_OTF
lines = T_pdf_tab
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
ERR_BAD_OTF = 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.
ENDIF.
To display File SAVE dialog window
CALL METHOD cl_gui_frontend_services=>file_save_dialog
CHANGING
filename = w_FILE_NAME
path = w_FILE_PATH
fullpath = w_FULL_PATH
USER_ACTION =
FILE_ENCODING =
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
NOT_SUPPORTED_BY_GUI = 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.
Use the FM GUI_DOWNLOAD to download the generated PDF file onto the
presentation server
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE = W_bin_filesize
filename = w_FULL_PATH
FILETYPE = 'BIN'
tables
data_tab = T_pdf_tab
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
I am getting messages that I can't download and read .pdf files since I have the wrong Adobe reader. I know about their security disasters of course, but I downloaded the latest version of Adobe Reader from the Adobe web site and I have other ,pdf file readers as well, and for some reason they won't work either. I have 5 computers running top end processors and RAM. By this I mean I have one, this one which I am using that has an AMD Phenom Black 3.2 Quad-core with 8 GBs of Corsair top DDR2 RAM, my other two AMD have either an Athlon II triple core with 4 GBs of DDR2 Corsair RAM, one with the Phenom X4 965 3.4 GHz Quad-core with 8 GBs of their best DDR2 RAM, and two Intels with the i7 920 Processors using the triple channel 1366 socket processors and one with 8 GBs of low latency DDR3 RAM and the other with 4 GBs of the same RAM. I am getting the message on this one, which has a fresh install of XP Pro X64 operating system, as do the other 4 as well. I have run Avast Business Pro Anti-virus on this one, which I am getting the message on with a single result which I deleted, and also both Spybot Search and Destroy, which came back clean as well as Malwarebytes Antimalware, which got a lot of tracing cookies now removed, and SuperAntiSpware which also found a few cookies also now deleted. Can you tell me what I need to do to get these files to show as .pdf files rather than as a clean blank page. One other issue is that I wish to know how to turn off my downloads so they are saved and Mozilla will give me the option of returning them instead of me losing them all together as it does now. Thanks for your assistance. If there is another Adobe reader I should download and install, could you provide me with the link to it? I appreciate your assistance here
== When I download and try to read a .pdf file and when I am asked to turn off all Firefox files and if I do, I lose them since I need to know how to save them without rebooting my computer.Brilliant! Problem solved! Thanks so much.
-
Why can I no longer download and read .pdf files
I have never had any problems downloading and reading .pdf files until I 'upgraded' the Adobe reader to version 11. Now all attempted downloads fail because "I don't have the necessary helper application or even C:\DOCUME~1\Will-o\LOCALS~1\Temp\Back Channel II - The Vietnam Betrayal - Chaps 1&2.pdf could not be opened, because the associated helper application does not exist. Change the association in your preferences. What in the world is going on and how do I fix it?
Under 'Tools - Applications - Adobe Acrobat Document, the I've selected 'Use Adobe Reader.' However since I also have Adobe Acrobat 8.3, I've tried substituting that for the Reader, but that doesn't work either. Please help.Brilliant! Problem solved! Thanks so much.
-
in script it is possible to download in pdf format without new spool
request.is it possible in smartforms if possible please help..Go through the link given below :
SMARTFORM to PDF File format
Smartform to PDF format -
Can't download or print pdf files
All of a sudden I can't download or print pdf files from Safari. When I try to download the file it says it can't export and then gives file name. I tried changing the file name with the same result. When I try to print, I just get a single blank page. I have reinstalled Safari. I thought it might be a problem with Adobe reader, but that works outside of Safari I did just install reader 10.1.3 and that is when I noticed the problem, but I reinstalled 10.1.1 and still have the same problem. Please help!!
Thanks
ScottThank You !!! Even I had the same problem... I used Folx downloader evry time to download the PDF file and open it using preview . Thanks You So much DN Scott & Scorbett.
-
How do you download and open PDF files that come in the email?
I can NOT download or open PDF files. It prompts me to open in IBooks and then it's not there. I am so frustrated. PLEASE HELP!
Touch the attachement once to download it. Then touch it a second time, after it is downloaded ( watch the attachment icon) to open it in quick view. if you want to do something more than just view it, and if you want to save it, Touch and hold the downloaded attachment to get the 'open in' pop up, and any app that supports PDFs, like I books, or any of the other PDF ready apps.
If it is not downloaded yet, it will not be in I books. -
How do I download a Adobe PDF file and get it converted to a Word document?
How do I download a Adobe PDF file and get it converted to a Word document?
Download: you just download it as you would any other document.
Convert to Word: either using the ExportPDF online service, or Acrobat. -
While downloading smartform into PDF the character formatting such as "BOLD, UNERLINE,ITALIC" are not reflecting in the PDF document.
The following function modules are used for downloading:
1)'CONVERT_OTF'
2)'GUI_DOWNLOAD'
The printer used is 'LOCL' (Local Windows Printer).hi friend,
plz Check if the smartstyle for the respective smartform is transported or not.
Regards,
K.S.Kannan -
I am having a hard time downloading the adobe photoshop cs5 it keeps downloading as a pdf file help
I am having a hard time downloading the adobe Photoshop cs5 it keeps downloading as a PDF file help
Try the links posted at the bottom of this page.
Downloads of older Creative Suite Products
http://helpx.adobe.com/download-install.html
Nancy O. -
Download jpeg and pdf files on my iPhone 6
Why can't I download jpeg and pdf files on my iPhone 6?
Download from where? Downloading through Safari may work for images but will not work for other types of files.
~Lyssa -
Is there an app that allows you to download and read pdf files on your ipod touch?
Is there an app that allows you to download and read pdf file on your ipod touch (5G)?
There are many apps that allow reading PDFs. GoodReader allows downloading some items. It all depends upon how the site handles the download. It also uses file sharing in iTunes.
iBooks also reads and had file sharing. -
Why does Acrobat Pdf converter file slow down my 2003, Windows Word Program. I only experience this problem when i convert a pdf file to a doc file.
Hi Bill -- thanks for your reply!
When I check the Document Properties on Acrobat I can see that the fonts used in the document (Cambria, Times and Windings) are listed as "Embedded Subset" in the Fonts panel. The machine it was created on did use an earlier version of OS X and an old version of Word, but it seems to have the proper fonts...
-nick
Maybe you are looking for
-
Photoshop CS4 APPCRASH @ Startup Vista 32bit
Hi, I've currently trying to fix photoshop on my company computer and I can't seem to get it to work. I've tried the following: 1. uninstall/delete files/reinstall 2. clear prefetch files 3. scan for viruses and registry errors 4. run as admin, run o
-
External Monitor with iTunes - iMac screen goes black
I have an iMac with iTunes 7.7/Leopard and an external VGA monitor (I use the standard Apple mini-DVI to VGA converter) then I use the external monitor to watch video from my iTunes library. All works well - I have my desktop spread over both monitor
-
Save SQL select output as html page on another box.
How can I save a simple sql select output on another server as a html page?
-
Imported Quicktime movie clip has no audio
I am putting together a wedding video. We have a Sony HD-12 camcorder. I used FCE4 to Log and Transfer the individual video clips. These are fine. The bride and groom gave me two additional video clips recorded by someone else they want inserted in t
-
Mail the BI Publisher genereted Conc Pgm out put as attachment.
Hi All, I have a requirement... I need to send the output of a concurrent program to particular mail id. The Concurrent program output is in pdf format which is generated from BI Publisher. I have written a procedure to execute the desired concurrent