FRM-13008 after conversion from 6i
First, let me indicate that I am dumb as dirt about Forms, IAS, Java. I am a DBA but have next to zero experience in this area. In a test environment, I have converted all application 6i Forms & Reports to 10G. I have only one problem form to convert that errors when opened with a FRM-13008: 'Cannot find JavaBean with name oracle.forms.demos.uploadclient.FileUploader' .
Now I have read several Forum threads on this plus Metalink notes (including 1072329.6). One of the causes, per that note, is CLASSPATH and FORMSxx_BUILDER_CLASSPATH may be missing references to 1) the java bean class or .jar in the implementation class, 2) the f60all.jar or f90all.jar or 3) the 'forms60\java' or 'forms90\java' directories.
Per 3) above: My 10G IAS installed directory structure does not include a 'forms60' or 'forms90' directory. My directory is simply 'forms'.
Per 1): I copied and extracted the uploadclient.jar such that the resulting classes are located at '[ORACLE_HOME]\forms\java\oracle\forms\java\demos\uploadclient'.
Per 2): In the [ORACLE_HOME]\forms\java directory, I have frmall.jar, but no f60all.jar or f90all.jar.
Folks, I'm totally lost. Any crumbs you can throw me would be appreciated. Did I mention I was dumb as dirt?
Thanks.
I don't see a forms.jar. I do see a frmall.jar. Regardless and based on that last bit of info, in default.env (in my IAS Oracle Home and my developer Oracle Home), I modified CLASSPATH and added FORMS_BUILDER_CLASSPATH to contain c:\[ORACLE_HOME]\forms\java;c:\[ORACLE_HOME]\forms\java\frmall.jar;c:[ORACLE_HOME]\forms\java\UploadClient.jar. The error continues.
The implementation class in the property palette looks correct. I see no spelling or case issues.
Any recommended troubleshooting steps to take?
Similar Messages
-
Page numbers incorrect after conversion from Excel to pdf
Page numbers incorrect after conversion from Excel to pdf
""This above link (thread:834599) is from a case back in 2011 that claims to solve this problem, but it does not solve this problem. I think that customer only cared about having continuous page numbering, not discrete page numbering per sheet.
========================
I still have this issue in Acrobat XI and MS Office Professional Plus 2010. I keep upgrading to no avail. This regression has resulted in a huge time drain for me. If you fixed it, please explain how I can get my hands on the resolution.
Previous versions of Excel and Adobe Acrobat enabled flexibility around the "Page #" of "Number of Pages" (Page &[Page] of &[Pages]) token, depending on context and usage. The "# of pages" token could represent EITHER the number of pages in the workbook OR the number of pages in the tab/sheet, depending on how you generated the PDF:
You could select "Selected Sheets" and then select all or some of the individual sheets in the workbook, and the PDF would honor the discrete numbering of each of the sheets, so the first page of each sheet was p1 and the "# of pages" was the number of pages in the sheet; not the number of pages in the workbook; or
You could select "Entire Workbook" and the PDF would honor continuous page numbers across all sheets, as a single document.
Now, it only honors the total number of pages in the workbook, regardless of the method you use to publish to PDF: saving as PDF, printing to PDF, using "createPDF" from Acrobat plugin to Excel's menu ribbon; selecting all sheets, some sheets, or Entire Workbook; automatic First page number or "1" under Page Setup > Page> First page number. (This last option, btw, does restart every sheet at p1, but it hardly makes sense if the total number of pages is still the total number in the workbook instead of the number in the sheet.)
I spent a lot of time trying each which way that the blog posts recommended and have tried this on multiple versions of Excel and Acrobat now.
NONE of these time-consuming experiments gave me what I wanted.They all insist that "Page #" of "Number of Pages" (Page &[Page] of &[Pages]) is the total number of pages in the workbook or the total number of pages in the selected sheets combined.
The numbering are correct in Excel Page Layout.
The same issue happens when using LibreOffice calc. (Although, I never tested with Libre Office before, so I don't know that it ever worked).
The workaround now is to create PDF for each spreadsheet one at a time, and then compile them using the Acrobat combine/binder feature. All alternatives are extremely time consuming and tedious. It used to be automatic. This is a major regression that has gone untreated for over a year now, maybe two years.
My task takes infinitely more time to complete than it did with previous versions of Acrobat. That means that days are added to my project, when the functionality used to enable a quick pdf generation that was ready for review, now I have to do this very manual time-consuming set of steps to generate a draft. As the project has grown and more tabs are added, my pdf-generation task takes that much longer. We require lots of drafts. It used to be easy and fast. Now it is hard and time-consuming.
In my opinion, the problem is not Excel; it is Acrobat because it was introduced with an upgrade in Acrobat, not an upgrade in Excel. The problem was introduced in Acrobat 9 or 10. Please provide a patch or add-on or something.If you are setting up the page numbers in Excel, the resulting PDF would display the the page numbers created in Excel. On Excel 2010 support page, (http://office.microsoft.com/en-us/excel-help/insert-and-remove-page-numbers-on-worksheets- HA010342619.aspx#BM2) is stated the following "tip" which indicates by default Excel 2010 starts numbering each tab with 1. Exel's workaround tip is below -
Set a different number for the starting page
Tip To number all of the worksheet pages in a workbook sequentially, first add page numbers to all worksheets in a workbook, and then use the following procedure to begin the page number for each worksheet with the appropriate number. For example, if your workbook contains two worksheets that with both be printed as two pages, you would use this procedure to begin the page numbering for the second worksheet with the number 3.
On the Page Layout tab, in the Page Setup group, click the Dialog Box Launcher next to Page Setup.
On the Page tab, in the First page number box, type the number that you want to use for the first page.
Tip To use the default numbering system, type Auto in the First page number box.
Also helpful in the same section is the note on viewing page numbers. To see if the page numbering dilemma originates in Excel make sure you are using the Page Layout View see below:
Hide All
If you want numbers shown on pages when you print a worksheet you can insert page numbers in the headers or footers of the worksheet pages. Page numbers that you insert are not displayed on the worksheet in Normal view — they are shown only in Page Layout view and on the printed pages.
Overall it may be easier not to create the page numbers in Excel but instead create then in Acrobat using the Headers and Footers option in Acrobat. I hope this helps - it sounds like a frustrating issue you are experiencing. -
Some spaces omitted after conversion from x5
I recently converted my help project from x5 to ver. 7. After
the conversion, some, not all, words display merged together in the
compiled help, but don't appear that way in Design mode or when
previewing the topic. Normally, it happens following a word that is
bold, or hyperlinked. When I look at the html, it appears to be
formatted properly, In the following example the words Option
Management display in bold:
Design/Preview Display - Option Management menu
HTML - <span style="font-weight: bold;">Option
Management</span> menu
Compiled Help - Option Managementmenu
The only way to add the space is to insert a space prior to
the /span tag. Of course, in the case of hyperlinks, this extends
the hyperlink into the blank space. This happens throughout the
project sporadically, and it will take me forever to try and catch
all of these occurrences. Anyone have any ideas on how to fix this?
It also appears to be happening sometimes when I cut/paste from
Word.
Thanks so much for your help - JanetYes, I still had the same results after applying the two
patches. However, I installed version 8, and that took care of the
problem. Thanks for the idea! -
Recovering data from Time Capsule after conversion from Snow Leopard to Lion
Had a problem with my iMac, which was running Snow Leopard O/S. Data was backed up on Time Capsule using Time Machine, although recent back-ups had failed (but earlier back-ups had been OK). Apple support determined that I needed to re-install the O/S and they walked me through it. After blowing away all data (believing that once O/S reinstalled, could recover from Time Capsule), the reinstall failed. Took to Apple store, where they installed Lion at my request. Then tried to recover from Time Capsule, but couldn't do so. Sparse file doesn't work (it shows 10GB, which is wrong as it had several hundred GB's before due to lots of photos). Apple Support couldn't solve issue, believes it was corrupted with the last backup. Ultimately recommended that I have professional data recovery service recover data from the iMac hard-drive (as opposed to Time Capsule). Spoke to recovery service recommended by Apple, and it is very expensive (also, given the O/S reinstall, anything they recover will have new file names and no directory structure). They also said getting data off the Time Capsule is even more difficult and expensive to recover. I'm not a happy camper.
I would welcome any thoughts on what to do. FWIW, I live in South Florida and there appear to be lots of data recovery companies locally, but Apple support had said that they have only a few authorized vendors that can do it without voiding warranty, so I'm reluctant to even call them. Thanks. SteveYour backups may be corrupted.
Try to repair them, via Disk Utility (in your Applications/Utilities folder).
Mount the sparse bundle by opening the TC in the Finder and double-clicking on the sparse bundle. Drag the sparse bundle into Disk Utility's sidebar, and do a +*Repair Disk*+ (not permissions) on it. If it finds errors it can't fix, run it again (and again), until it either fixes them all, or can't fix any more. -
Lost Chunks of Content After Conversion from .HLP
I have 26 .HLP files that we converted from .HLP into RoboHelp HTML.
At first glance everything seemed fine. Then we noticed the stylesheets got a little messed up and colours were changed but those were easy enough to fix. Then we noticed that some topics were missing large chunks of data.
I opened a newly created .htm file for a corrupted topic and then opened the old .HLP file and looked at the same topic.
Sometimes indents were converted to numbers such as the following example.
.HLP topic
Line One
First Line
Line Two
Second Line
Line Three
Third Line
Line Four
Fourth line
.HTM topic file created by RoboHelp by conversion:
Line One
1.
Line Two
1.
Line Three
1.
Line Four
1.
Here's another example which seemed to vomit when it encountered numbered lists:
My List
I First
II Second
III Third
IV Fourth
V Fifth
VI Sixth
.HTM topic file
My List
1.
2.
3.
4.
5.
6.
So far in one of the projects, I've noticed 50% of the newly created .htm files are missing content.
Has anyone else encountered this? Is there a setting that we missed (hopefully) when we converted from .HLP?I tried the import again... we had to select "Formatted Text" on the conversion settings and now the lists have the text like they should. A pain to have to redo them all but at least it's fixing them.
-
Some Photos are blank after conversion from Aperture
Library contains 45K photos .. migrated from Aperture. For some reason a large number of the photos have meta data but are blank. Where have they gone?
Partial CLUE ..
Two photos .. appear to be dupes .. but the case of the file NAME is different. The UPPERCASE JPG is blank .. the lowercase .jpg is not.
Ok -- Apple Engineers .. here's a start .. go fix. -
Hi there guys,
I'm quite new to the forum, but I have come through an issue that is weird to me...
See: One of my clients I'm a freelance designer– is an ad agency whose only graphic designer is on marriage vacation.
This guy converted some files from Indesign CS3 to CS2 so I can go on whit the projects while he is out happily just married in Thailand...
The problem is, however, whit every single box, doesn't matter if they are text or image boxes or even empty boxes. Neither if they already had outline or not. They all have somehow come up whit a black outline. And I'm starting to lose my nerves on fixing that...
Moreover, there are some text boxes –footnotes and the like– that contain a web address or an e-mail direction. This "www.xxxxxxxxx.com" and the "[email protected]" stuff is outlined within the text box with the same black line that will disappear only if I type back the thing...
Is this maybe a known issue? Has anyone ever heard or experienced that?
Any workarounds or known fixes or whatever?
Thanks a lot for taking the trouble to read and answer!!!The outlines around hyperlinks are just visual indicators for you so you'll know they are there (not all hyperlinks show up as URLs) and won't print. You should be able to turn them off in the hyperlinks palette if you want to. If you just re-type the hyperlink text it will no longer be a real hyperlink, if that'st required.
As far as the strokes on everything, I'm not sure. Is it possible there's an object style applied to all of these items and the stroke is now defined in the style. (Does CS2 support object styles? I've forgotten and don't have it on this machine to check). It could also be some sort of translation glitch in the move from CS3 to CS2. -
Screenshots distorted after conversion from captivate 1 to captivate 3
Hi,
I have just converted a couple of .cp's that I have created
in the past with Macromedia Captivate (1). As soon as I open them
in Adobe Captivate 3, it starts converting. Then, when I take a
look at the output, some images are distorted : small ( like
3pixels ) horizontal lines appear in the projector file. These
lines only appear on a number of slides, not on all of them.
Strange enough, I cannot see the image distortions when I
work in captivate and edit the slides.
Does anybody know if this can be prevented or am I to do it
all over again ?
Thanks and regards ! :D
Sylvester
edit:typoYou probably need to change your project preferences to use a
higher video quality.
Beyond that, if you still have CP2, you might try opening
both versions and copy/pasting from the old file into the new file.
You can also export the files from the old version and import them
into the new version from disk. -
Still unable to edit a word document after conversion from pdf?
I converted a pdf file to a word document but am still unable to edit the word document and save as a newly created word document. please help, thanks.
Hi Disc9,
In order to help you. Let me know which application of Adobe you are using including the version.
Also let me know the complete workflow how you convert the PDF to docx/doc.
Regards. -
Procedure failure after conversion of MS SQL 7
I would like you to know anyone has had problems after conversion from MS SQL7 to Oracle 8.0.5 or Oracle 8i.
I have tries using very simple procedure which have failed. Any information will be very helpful.
Pl. get back to me at [email protected]
Thanks,
Jeevan
nullHi Jeevan,
Please mail [email protected] with details of your issues. We will work to resolve them as quickly as possible.
The Workbench should work for you. Please remember you have a beta version of the SQL Server 7.0 software and we have fixed a lot of issues in the production version.
The production version 1.2.5.0.0 will be available from this site shortly and also from the 8.1.6 release 2 for Windows NT CD.
Regards
John -
Conversion from FORMS5 to FORMS6
Hi All,
We converted several of our forms and Menus from Forms5 to Forms 6. Now on some of the forms when we try to run them we are constantly getting error " FRM-41067- Can not find menu item: Invalid ID"
Could somebody tell me why are we seeing this message after conversion.
Thanks
SanjayI have the same error!
Does anybody knows why it occurs?
Thanks -
Found Error FRM-13008 Cannot find JaveBean with name oracle.forms.webutil.o
Create new form attached libraies WEBUTIL and Open webutil.old
drag WEBUTILCONFIG and WEBUTIL then create datablock,canvas WEBUTIL_CANVAS I double click canvas alert Found Error FRM-13008 Cannot find JaveBean with name oracle.forms.webutil.o
How to solve problem
Please Urgent
Thank youformsweb.cfg
ific, named configuration (see below)
[default]
# System parameter: default base HTML file
baseHTML=webutilbase.htm
baseHTML=base.htm
baseHTMLjinitiator=webutiljini.htm
baseHTMLjpi=webutiljpi.htm
workingDirectory=
envFile=default.env
escapeparams=true
# System parameter: base HTML file for use with JInitiator client
baseHTMLjinitiator=basejini.htm
# System parameter: base HTML file for use with Sun's Java Plug-In
baseHTMLjpi=basejpi.htm
# System parameter: delimiter for parameters in the base HTML files
HTMLdelimiter=%
# System parameter: working directory for Forms runtime processes
# WorkingDirectory defaults to <oracle_home>/forms if unset.
# System parameter: file setting environment variables for the Forms runtime processes
envFile=default.env
# Forms runtime argument: whether to escape certain special characters
# in values extracted from the URL for other runtime arguments
# Forms runtime argument: which form module to run
form=test.fmx
# Forms runtime argument: database connection details
userid=
# Forms runtime argument: whether to run in debug mode
debug=no
# Forms runtime argument: host for debugging
host=
# Forms runtime argument: port for debugging
port=
# Other Forms runtime arguments: grouped together as one parameter.
# These settings support running and debugging a form from the Builder:
otherparams=buffer_records=%buffer% debug_messages=%debug_messages% array=%array% obr=%obr% query_only=%query_only% quiet=%quiet% render=%render% record=%record% tracegroup=%tracegroup% log=%log% term=%term%
# Sub argument for otherparams
buffer=no
# Sub argument for otherparams
debug_messages=no
# Sub argument for otherparams
array=no
# Sub argument for otherparams
obr=no
# Sub argument for otherparams
query_only=no
# Sub argument for otherparams
quiet=yes
# Sub argument for otherparams
render=no
# Sub argument for otherparams
record=
# Sub argument for otherparams
tracegroup=
# Sub argument for otherparams
log=
# Sub argument for otherparams
term=
# HTML page title
pageTitle=Oracle Application Server Forms Services
# HTML attributes for the BODY tag
HTMLbodyAttrs=
# HTML to add before the form
HTMLbeforeForm=
# HTML to add after the form
HTMLafterForm=
# Forms applet parameter: URL path to Forms ListenerServlet
serverURL=/forms/lservlet
# Forms applet parameter
codebase=/forms/java
# Forms applet parameter
imageBase=DocumentBase
# Forms applet parameter
width=2000
# Forms applet parameter
height=800
# Forms applet parameter
separateFrame=false
# Forms applet parameter
splashScreen=
# Forms applet parameter
background=
# Forms applet parameter
lookAndFeel=Oracle
# Forms applet parameter
colorScheme=teal
# Forms applet parameter
logo=no
# Forms applet parameter
restrictedURLparams=HTMLbodyAttrs,HTMLbeforeForm,pageTitle,HTMLafterForm,log,allow_debug,allowNewConnections
# Forms applet parameter
formsMessageListener=
# Forms applet parameter
recordFileName=
# Forms applet parameter
serverApp=default
# Forms applet archive setting for JInitiator
archive_jini=frmall_jinit.jar
# Forms applet archive setting for other clients (Sun Java Plugin, Appletviewer, etc)
archive=frmall.jar
# Number of times client should retry if a network failure occurs. You should
# only change this after reading the documentation.
networkRetries=0
# Page displayed to Netscape users to allow them to download Oracle JInitiator.
# Oracle JInitiator is used with Windows clients.
# If you create your own page, you should set this parameter to point to it.
jinit_download_page=/forms/jinit/us/jinit_download.htm
# Parameter related to the version of JInitiator
jinit_classid=clsid:CAFECAFE-0013-0001-0022-ABCDEFABCDEF
jinit_exename=jinit.exe#Version=1,3,1,22
# Parameter related to the version of JInitiator
jinit_mimetype=application/x-jinit-applet;version=1.3.1.22
# Page displayed to users to allow them to download Sun's Java Plugin.
jpi_download_page=http://java.sun.com/products/archive/j2se/1.4.2_06/index.html
# Parameter related to the version of the Java Plugin
jpi_classid=clsid:CAFEEFAC-0014-0002-0006-ABCDEFFEDCBA
# Parameter related to the version of the Java Plugin
jpi_codebase=http://java.sun.com/products/plugin/autodl/jinstall-1_4_2-windows-i586.cab#Version=1,4,2,06
# Parameter related to the version of the Java Plugin
jpi_mimetype=application/x-java-applet;jpi-version=1.4.2_06
# EM config parameter
# Set this to "1" to enable Enterprise Manager to track Forms processes
em_mode=0
# Single Sign-On OID configuration parameter
oid_formsid=%OID_FORMSID%
# Single Sign-On OID configuration parameter
oracle_home=C:\DevSuiteHome_1
# Single Sign-On OID configuration parameter
formsid_group_dn=%GROUP_DN%
# Single Sign-On OID configuration parameter: indicates whether we allow
# dynamic resource creation if the resource is not yet created in the OID.
ssoDynamicResourceCreate=true
# Single Sign-On parameter: URL to redirect to if ssoDynamicResourceCreate=false
ssoErrorUrl=
# Single Sign-On parameter: Cancel URL for the dynamic resource creation DAS page.
ssoCancelUrl=
# Single Sign-On parameter: indicates whether the url is protected in which
# case mod_osso will be given control for authentication or continue in
# the FormsServlet if not. It is false by default. Set it to true in an
# application-specific section to enable Single Sign-On for that application.
ssoMode=false
# The parameter allow_debug determines whether debugging is permitted.
# Administrators should set allow_debug to "true" if servlet
# debugging is required, or to provide access to the Forms Trace Xlate utility.
# Otherwise these activities will not be allowed (for security reasons).
allow_debug=false
# Parameter which determines whether new Forms sessions are allowed.
# This is also read by the Forms EM Overview page to show the
# current Forms status.
allowNewConnections=true
# EndUserMonitoring
# EndUserMonitoringEnabled parameter
# Indicates whether EUM/Chronos integration is enabled
EndUserMonitoringEnabled=
# EndUserMonitoringURL
# indicates where to record EUM/Chronos data
EndUserMonitoringURL=
[sepwin]
separateFrame=True
lookandfeel=Generic
# Example Named Configuration Section
# Example 2: configuration forcing use of the Java Plugin in all cases (even if
# the client browser is on Windows)
[jpi]
baseHTMLJInitiator=basejpi.htm
# Example Named Configuration Section
# Example 3: configuration running the Forms ListenerServlet in debug mode
# (debug messages will be written to the servlet engine's log file).
[debug]
serverURL=/forms/lservlet/debug
# Sample configuration for deploying WebUtil. Note that WebUtil is shipped with
# DS but not AS and is also available for download from OTN.
[webutil]
#WEBUTIL_CONFIG=C:\DevSuiteHome_1\forms\webutil.cfg
#WebUtilArchive=frmwebutil.jar,jacob.jar
WebUtilArchive=/forms/java/frmwebutil.jar,/forms/java/jacob.jar
WebUtilLogging=off
WebUtilLoggingDetail=normal
WebUtilErrorMode=Alert
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
WebUtilMaxTransferSize=16384
archive_jini=frmall_jinit.jar
archive=frmall.jar
lookAndFeel=oracle
[webutilie]
IE=native
webUtilArchive=/forms/java/frmwebutil.jar,/forms/java/jacob.jar
WebUtilLogging=off
WebUtilLoggingDetail=normal
WebUtilErrorMode=Alert
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
WebUtilMaxTransferSize=16384
baseHTML=webutilbase.htm
baseHTMLie=webutilbase.htm
archive=/forms/java/frmall.jar
lookAndFeel=oracle
[webutiljpi]
WebUtilArchive=/forms/java/frmwebutil.jar,/forms/java/jacob.jar
WebUtilLogging=off
WebUtilLoggingDetail=normal
WebUtilErrorMode=Alert
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
WebUtilMaxTransferSize=16384
baseHTMLjinitiator=webutiljpi.htm
baseHTMLjpi=webutiljpi.htm
baseHTMLie=webutiljpi.htm
baseHTML=webutiljpi.htm
archive=/forms/java/frmall.jar
[tutoforms10g]
envFile=tutforms10g.env
archive_jini=frmall_jinit.jar,myIcons.jar,FormsGraph.jar
archive=frmall.jar,myIcons.jar,FormsGraph.jar
pageTitle=Oracle Forms 10g tutorial
WebUtilArchive=frmwebutil.jar,jacob.jar
WebUtilLogging=off
WebUtilLoggingDetail=normal
WebUtilErrorMode=Alert
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
WebUtilMaxTransferSize=16384
baseHTMLjinitiator=webutiljini.htm
baseHTMLjpi=webutiljpi.htm
form=tuto_forms.fmx
separateFrame=True
lookandfeel=Oracle
imagebase=codebase
width=2000
height=800
splashScreen=no
background=no
lookAndFeel=Oracle
colorScheme=blaf
logo=no
2 class path,create db packages,generate plx? how to set where? classpath,create public synonym? Please ask me step to set -
ECC6.0 - PDF issue - Junk Character output after Upgrade from 4.7c
Hi All,
I am working in Uprgade project(from 4.7c Non-unicode system to ECC6.0 unicode system).
We are facing PDF output issue in ECC6.0 that means we are getting junk character output(screenshot is attached for your reference).
In 4.7c , we have stroed the OTF data in table after generated from smartform as we should not get different output in future. Whenever we need output of the same then we are getting the OTF data from that table and we will generate pdf through "Convert_otf" function module.This logic is working fine in 4.7c.
In ECC6.0 ,the same logic is not working as system is unicode sytem and we are getting junk character output.
As per my old upgrade project experience , i have used the below piece of code for solve this junk character issue but still I am facing the same issue.
Kindly note that in my old upgrade project i have regenerated the OTF data in ECC6.0 and used the below piece of code then I got correct output but here I have to use the old OTF data (from table) which was generated in 4.7c.
Please any one can give solution for this issue.
Regards
Anandakumar.K
+91 9486963561.
REPORT z_display_notification_tst.
Local Vairable Declaration
TYPES: lt_pdf_table(1000) TYPE x.
Local Vairable Declaration
DATA :
lv_otf_data TYPE STRING, " OTD data in string format
lv_length TYPE i, " OTF Length
lv_lines TYPE i, " No of lines
lv_no_of_recs TYPE int4, " No of OTF Lines
lv_offset TYPE int4, " Offset
pdf_fsize TYPE i,
lv_binfile TYPE xstring,
gv_reportsize TYPE i,
l_url(80) TYPE c,
l_pdf_data TYPE STANDARD TABLE OF lt_pdf_table ,
l_pdf_line TYPE lt_pdf_table,
l_offset TYPE i,
l_len TYPE i,
lt_pdf_table TYPE rcl_bag_tline,
lt_otfdata TYPE tsfotf,
ls_otfdata TYPE itcoo. " Line type of OTF data
DATA:
g_html_container TYPE REF TO cl_gui_custom_container,
g_html_control TYPE REF TO cl_gui_html_viewer.
******************GET OTF data from Table ******************************
Primary Keys used for selection : BUSKEY,
NTFTYP,
TRNTYP,
SELECT SINGLE otf_data FROM znotif_otf
INTO lv_otf_data
WHERE buskey EQ 'LS_000000000010001470'
AND ntftyp EQ '0037'
AND trntyp EQ 'ACT'.
Get the length of the OTF data stored as stream of string************
l_len = STRLEN( lv_otf_data ).
Compute the OTF lines
lv_lines = l_len / 72.
lv_no_of_recs = lv_lines + 1.
Set the offset to initial
lv_offset = 0.
*Reconstruct the OTF data from the string
DO lv_no_of_recs TIMES.
IF sy-index NE lv_no_of_recs .
Get OFT format: command ID
ls_otfdata-tdprintcom = lv_otf_data+lv_offset(2).
lv_offset = lv_offset + 2.
Get OTF format: command parameters
ls_otfdata-tdprintpar = lv_otf_data+lv_offset(70).
lv_offset = lv_offset + 70.
ELSE.
Last line contains only the OFT format: command ID "//" (End of file)
ls_otfdata-tdprintcom = lv_otf_data+lv_offset(2).
lv_offset = lv_offset + 2.
ENDIF.
Append the OTF data to Export OTF table
APPEND ls_otfdata TO lt_otfdata.
CLEAR ls_otfdata.
ENDDO.
*************************Convert OTF to PDF**************************
IF lt_otfdata IS NOT INITIAL.
clear: lv_binfile,
pdf_fsize.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
IMPORTING
bin_filesize = pdf_fsize
bin_file = lv_binfile
TABLES
OTF = lt_otfdata
lines = lt_pdf_table
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
OTHERS = 4.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDIF.
Call screen***********************************
Call screen
CALL SCREEN 100.
RETURN.
*& Module STATUS_0100 OUTPUT
text
MODULE status_0100 OUTPUT.
SET PF-STATUS '100'.
SET TITLEBAR '100'.
Convert bin file
clear :l_len,
l_offset.
free l_pdf_data[].
l_len = XSTRLEN( lv_binfile ).
WHILE l_len >= 1000.
l_pdf_line = lv_binfile+l_offset(1000).
APPEND l_pdf_line TO l_pdf_data.
ADD 1000 TO l_offset.
SUBTRACT 1000 FROM l_len.
ENDWHILE.
IF l_len > 0.
l_pdf_line = lv_binfile+l_offset(l_len).
APPEND l_pdf_line TO l_pdf_data.
ENDIF.
Initialise and create the HTML container
IF NOT g_html_container IS INITIAL.
CALL METHOD g_html_container->free
EXCEPTIONS
OTHERS = 0.
CLEAR g_html_container.
ENDIF.
CREATE OBJECT g_html_container
EXPORTING
container_name = 'HTML_CONTAINER'.
Initialise and create the HTML control that will display the
PDF output as URL
IF NOT g_html_control IS INITIAL.
CALL METHOD g_html_control->free
EXCEPTIONS
OTHERS = 0.
CLEAR g_html_control.
ENDIF.
CREATE OBJECT g_html_control
EXPORTING
parent = g_html_container
saphtmlp = 'X'.
Load the pdf data and obtain the URL
CALL METHOD g_html_control->load_data
EXPORTING
size = pdf_fsize
type = 'application'
subtype = 'pdf'
IMPORTING
assigned_url = l_url
CHANGING
data_table = l_pdf_data
EXCEPTIONS
OTHERS = 1.
IF sy-subrc NE 0.
raise cntl_error.
ENDIF.
CALL METHOD cl_gui_cfw=>flush.
Show the URL
CALL METHOD g_html_control->show_url
EXPORTING
url = l_url.
ENDMODULE. " STATUS_0100 OUTPUT
Edited by: Anandakumar.K on Oct 25, 2011 12:47 PM
Edited by: Anandakumar.K on Oct 25, 2011 12:54 PMHi,
as you can see in SAP notes 842767 and 1349413, spool data cannot be converted properly for all types in a Unicode conversion.
This might be possible if you have English (US7ASCII) characters only, but with Chinese characters I do not think that a small piece of code can do it ...
Hence I think you need to recreate the data on the Unicode system ...
Best regards,
Nils Buerckel
Edited by: Nils Buerckel on Nov 3, 2011 1:51 PM -
Comparing counts after conversion: iPhoto to Aperture
Well, I just finished a major conversion from iPhoto to Aperture. 47,000 photos and videos in a 303 gigabyte iPhoto Library. It was a long and winding road, and I learned a lot about how to compare counts of photos and videos between iPhoto and Aperture. I hope this information helps someone spend a few less hours on the task than I had to.
After an iPhoto-Aperture library conversion, the first check you'll probably want to do, to confirm all went well, is to compare the number of photos and/or videos reported from each application. You'll probably compare the overall total, and/or the total for important subgroups (say, all photos keyworded "family".) Here are some things to be aware of:
- You can run iPhoto and Aperture at the same time, even if Aperture is referencing the photos in their iPhoto library locations. This can make various count comparisons easy. Sometimes though I found the apps suddenly bogged down, and I had to quit one of the two to recover (this was on a 4GB 2.93 GHz iMac).
- Whether your Aperture "stacks" are open or closed affects the photo count reported by Aperture. If you edit an original photo in iPhoto, in the end all you see is edited photo, the original is preserved but tucked away unseen. In terms of a photo count, you still have just one photo. When this photo is imported into Aperture, it comes in as a 2-photo stack (original & edited). If you stacks are closed, your counts should match; if your stacks are open, Aperture will be higher.
- Photos "hidden" in iPhoto come in as "rejects" in Aperture (i.e. a rating of "X" on a scale of X,1,2,3,4 or 5 stars). When the search box in Aperture says "Showing All," you are including the rejects in the count (that is, the count appearing at the bottom of the window in browser mode). If it says "Unrated or better," the rejects are not being counted. Make sure you are consistently including or excluding hidden/rejects when comparing numbers.
- Formats supported by iPhoto but not by Aperture. I have some old (pre-OS X) screenshots in PICT format. Viewable just fine in iPhoto, but they do not get imported into Aperture.
- Some video formats (in my case, MPEG1 Muxed) are imported into Aperture, but are not playable within Aperture, and do not show up if you filter on File Type = Video (that last part seems just plain wrong behavior).
- Every count I saw in Aperture included videos, even when the count was labeled "Photos" (e.g. "23,434 Photos"—you'll see this under Projects, if you group by folder)
- I did have a few items that were *just plain skipped*, with no error dialog, by the import. Scary. But in every case, there was evidence of a problem in iPhoto: I would see a fine thumbnail, but if I tried to open the photo or video, I'd see a gray exclamation point where the photo/video should appear. In every case I successfully found an valid original (in the iPhoto "Originals" folder) and moved it manually into Aperture. Problem is, are you going to try and view every photo you have in iPhoto, checking for exclamation points? I tracked my missing photos/videos down by painstakingly comparing counts in matching slices of time (say, August 2006) in iPhoto and Aperture. When I narrowed a count discrepancy to a set of 100 pics or so, I compared thumbnails between the 2 apps until I found the item missing from Aperture. Not fun.
I hope this helps somebody. Now that I've made the switch, I have a love-hate relationship with Aperture. Mostly love. But that is a separate post. Aperture is also my first Pro app from Apple, and iPhoto and Aperture make a fascinating case study in contrasting user interface design (freedom from choice vs. options galore). Also a topic for another post.
Mike MHey, thanks for the comprehensive post. It helped me quite a bit and probably saved me a lot of time; I'm sure it did the same to a lot of people who didn't have an account here as well.
-
Conversion from milliseconds to Date in 1.5
A java.util.Date object can be constructed by passing the number of milliseconds since 1 January 1970 as a constructor argument. This Date can then be formatted to a human-readable format with SimpleDateFormat.
I have tested this conversion from milliseconds to a date both in Java SDK 1.4.1 and Java 1.5.0 to see if there are differences in the way dates are calculated from milliseconds. It seems that there are differences when the system timezone is set to Europe/Berlin. The dates from 1.5.0 are one hour ahead of those from 1.4.1 in a certain week in May 1945 and a day in September 1945.
This means that milliseconds that are generated from a date by using the Java 1.4.1 runtime and then stored are interpreted differently when they are retrieved when using java runtime 1.5.0, if they happen to be one of those days in 1945. This could cause discrepancies when an application is migrated to JDK 1.5.0.
This is only a minor problem, but is there any way to know what caused these changes in SDK 1.5.0 and what these changes are? Is there historical data that the Sun implementation is based on to calculate dates from millisecond values?
Any help is appreciated.
Kind regardsI found the following at "http://thedailywtf.com/forums/70146/ShowPost.aspx"
In summer 1945, Berlin and the Soviet-occupied part of Germany observed a daylight savings time of two hours. Unfortunately, Sun's JRE 1.4 implementation of GregorianCalendar defines a maximum DST of one hour and, in non-lenient mode, rejects the 2 hours as invalid when recalculating all fields after the millisecond field is set.
Here's the bug report: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4639407
Maybe you are looking for
-
Hi all, Can anyone out there tell me if the early 2008 (the latest white 2.4GHz MacBooks) have been subject to the case cracks as the earlier whites were? Are there any other problems that seem specific to the newer white models? Thanks for any comme
-
LaserJet Pro 100 color MFP M175nw
I am trying to load the driver for my LaserJet Pro 100 color MFP M175nw on my new laptop. It is very slow and after about 10 minutes times out at 99% and says it is a fatal error. I have restarted the PC several times and always with the same result.
-
Future Dated Invoices and Payments
Hello Can you give me some inputs about Future Dated Invoices and Payments..? What its importance? What would the effect on the AP Trial Balance and Account Analysis if I use it? Thanks Grace
-
Problems with tables in InDesign CS4
Since recently upgrading to CS4, I've been having issues with editing strokes in tables. The problem occurs after working on a table for a while-- where at first I'm able to edit stroke color and weight fine, but then after a period of time it become
-
I would like to download the above programmes onto my Levono tablet which runs on Windows 8. The only information I can find is all about downloading onto iPhones and iPads. Therefore I'd like to know if anybody can help please?