Unix script error while mail the pdf file.
Hi all,
I want to do a mail in pdf format via a unix script. for that i used the following query:
# Verplichte variabelen
inputname="dago130r.rdf"
outputname="$DATOUT/dago130rDC.pdf"
mailto="$MAIL_INKOOP_DC"
subject="Opgeloste PV's per Category Manager"
params="p_datum_1='08-08-2006' p_ind_dc_of_rz='D'"
# Opgeloste PV's per Category Manager
# Start script.
# Vanaf hier hoeft in principe niets gewijzigd te worden.
mymail () {
local tmp=$DATTMP/$$.txt
cat "$mailbody" > $tmp 2>/dev/null
do_unix "uuencode $outputname $(basename $outputname) >> $tmp"
check_success
do_unix "mailx -s '$subject' -c '$mailcc' -r '$replyto' '$mailto' < $tmp"
check_success
header
perform "$inputname R DESFORMAT=PDF DESTYPE=FILE DESNAME=$outputname $params"
check_success exit
mymail
footer
exit_check "$total_success"
When i execute this query it will make the pdf file in the output folder as well as in the tmp folder as a text file. but after that it will give me error in the log file as follows.:
09/08/06-11:13:19 [ 25178] -- perform: Successful completion of dago130r.rdf R DESFORMAT=PDF DESTYPE=FILE DESNAME=/appl/tst/ah01/dago/dat/out/dago130rDC.pdf p_datum_1='08-08-2006' p_ind_dc_of_rz='D'
09/08/06-11:13:19 [ 25178] -- do_unix: Successful completion of uuencode /appl/tst/ah01/dago/dat/out/dago130rDC.pdf dago130rDC.pdf >> /appl/tst/ah01/dago/dat/tmp/25178.txt
[ 25178] ,/appl/tst/ah01/dago/dat/tmp/25178.txt,: No such file or directory
[ 25178] "/appl/tst/ah01/dago/home/dead.letter" 1/1
[ 25178]
09/08/06-11:13:19 [ 25178] -- ERROR do_unix: mailx -s 'Opgeloste PV's per Category Manager' -c '' -r '' '[email protected]' < /appl/tst/ah01/dago/dat/tmp/25178.txt returned 1
09/08/06-11:13:19 [ 25178] --
I am not getting why this script not taking the file from the tmp folder and why this error comes??
please help me to go out of this problem.
Hi Bhavik,
Please can you tell how you are executing this script. ?
./scritpname or sh scriptname
Can you try the script removing local while declaring the tmp variable ?
naghu
Similar Messages
-
WebInterface Server - Error while opening the PDF file
Hello,
We are using webinterface to display the MSDS genearated.
Our customers use the link provided to them for displaying the msds.
We imported a few MSDS ( CG36 ), which are in PDF format & displayed successfully on the webinterface server.
However the newly generated MSDS ( Create Report ) from SAP EH&S system are not getting displayed on the webinterface server. We are getting following error message:
Error reading resulitng document from filesystem. Class:
COM.td.ehswww.results.EhsDocument.
Method:getResolvedDocument().This error could have been caused by a misconfigured filter.ini.
We checked and found that the filter.ini file is same on both quality & production system.
We are able to generate & display the report successfully on quality webinterface server.
Problem only appears on the production webinterface server.
We also tried to search for the SAP notes on this issue.
But we could not find out any relevant note for our issue.
Any help in this regarding is highly appreciated.
Thanks & Regards,
AarohiHello Sebastian,
Thank you very much for your help.
We checked on both quality & production webinterface server.
The Tomcat service is not executed with any specific user.
The system is working fine on quality , we are getting errors only on the production.
We also identified a strange behavior on the production web interface server.
We are able to see files under following menu path:
There are error files getting generated.
I guess these error files are getting generated while converting the rtf file to pdf file.
The resultant PDF file is not getting generated and hence system is giving the error on the webpage.
Can you guide us as to why these error files are getting generated .? What can be the root cause of this issue.? and How to prevent this.?
Again thanks a lot for your help.
Best Regards,
Aarohi -
Error while downloading the PDF file on presentation server
Hi all,
i have converted OTF file into PDF one and then downloading it to the presentation server . But it gives the error as follows
'Access to file denied' . Can anyone tell me what may be the issue ? Below is my code
DATA: i_lines TYPE tline OCCURS 0 WITH HEADER LINE.
DATA: ws_bin_size TYPE i.
DATA: t_otf TYPE TABLE OF itcoo,
ws_filename TYPE string.
t_otf[] = wa_job_info-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = ws_bin_size
TABLES
otf = t_otf
lines = i_lines.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = ws_bin_size
filename = 'C:\ABC.PDF'
filetype = 'BIN'
TABLES
data_tab = i_lines.Hi Sayeed,
You may not having the permissions to create files in 'C' folder. Change the path and try again. -
ERROR WHILE GENERATING THE PDF
HI gurus,
We are trying to publish BI reports in the Portal server as Iviews.
In the portal system, when I am clicking the PRINT VERSION button for the
CO cost center (area): Plan/actual: Quarterly iview, its giving the PDF file,
thats well and good.
<b>But when if I am doing the same thing for other iviews, for example: say the iview (COcost center range: Transaction Drill-down).
I am getting the ERROR WHILE GENERATING THE PDF</b>
The question is : <i>its working for some standard iviews and giving error message to other std. iviews.</i>
Please suggest how to resolve this issue.
Regards,
PrasadDear Prasad,
Did you resolve your problem, I have the similar one:
I need to print report made in BEx Report Designer and executed on Portal, but when I press Print Version button I am getting next message:
Error while generating PDF
Any information is much appreciated
Thanks in advance and best regards
Vladimir -
Getting the NullPointerException,while merging the pdf files.
I am getting the following exception, while merging the pdf files with PDFDocMerger class.
[121807_113056749][][EXCEPTION] java.lang.NullPointerException
at oracle.apps.xdo.template.pdf.PDFWriter.write(PDFWriter.java:62)
at oracle.apps.xdo.template.pdf.PDFWriter.generate(PDFWriter.java:157)
at oracle.apps.xdo.common.pdf.util.PDFDocMerger$PDFUtility.writeOutput(PDFDocMerger.java:2520)
at oracle.apps.xdo.common.pdf.util.PDFDocMerger.mergeDocs(PDFDocMerger.java:537)
at oracle.apps.xdo.common.pdf.util.PDFDocMerger.process(PDFDocMerger.java:378)
This error is coming for few PDF files and those files i was able to open successfully in my machine.
Could any one help me to resolve this issue?
Thanks,
IndiraOne of the merged PDF was edited by using the "Adobe Lifecycle Assembler" tool and i was able to open that file successfully in my machine.
Is bi publisher API compatible with such files?
It would be great, if any one can throw some light on this issue.
Thanks,
Indira -
Error while loading the WSLD file
Hi all
I am trying to consume a Webservice. When i try to create the Model out of the WSDL file, it says "Error while loading the WSDL file".
Its an XI webservice, so i cannot view it from Webservice navigator.
How could i find out that, the problem is with the Webservice or i am missing any thing
Kindly help
regards
DeepuHi
I checked the log and i am getting the following exceptions
1.DynamicProxy.TempDir=C:\DOCUME1\DEEPUM1\LOCALS~1\Temp\, DynamicProxy.INetProxy.Host=}'
at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:413)
Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.WebserviceClientException: GenericServiceFactory initialization problem. Could not load web service model.
2. Caused by: com.sap.engine.lib.xml.util.NestedException: IO Exception occurred while parsing file:Invalid Response Code: (401) Unauthorized. The requested URL was:"http://Pinnacle:50000/XISOAPAdapter/MessageServlet?channel=:PowerEP_BusService:Out_SOAP_DocViewDownload" -> com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL
3. java.lang.NullPointerException
at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DOperationImpl.initParameters_DocumentStyle(DOperationImpl.java:59)
Is this any authorization problem
regards
Deepu -
Error while updating the configuration files (MOB20003)
hi,
After installing the BI 4.0 server, i am trying to configure mobile using mobile server configuration tool. When i enter all the information for non Blackberry option as i would like to access through ipad, its giving me the error message" Error while updating the configuration files (MOB20003)" Please advise.Hi Somesh,
If i am not wrong, only a war file deployment is needed to make ipad work.
This happens with URL hitting directly on the Server.
If you want to configure VAS and VMS servers, let us know what configuration settings have been done.
Regards,
Atul -
SWF error- while generating the flash files.
Post Author: [email protected]
CA Forum: Xcelsius and Live Office
Hi, in the old forum I came across the folowing topic: SWF error- while generating the flash files.
As I have the same problem, I would like to know the solution / answer / meaning please. What do I have to change in order to let in function properly again.
Thanks anyone.
Femke
(The post is from 3/6/2007)
The following error is generated upon generating the flash files Any insight???SWF error- while generating the flash files.--ErrorSWF Function Overflow. The generated SWF will not function correctly because data dependencies go beyond SWF limits.--
OK -Post Author: Andres
CA Forum: Xcelsius and Live Office
Hello.
I'm having the same problem. It appeared after I made use of many cells (a table of 10x200 cells) with formulas inside them.
Before that, while I was making my tests and only used a few cells and the .XLF file was 4Mb, I had no problem. Now that the .XLF file is 8Mb I see this error appearing (in Spanish):
"Error
Desbordamiento de la función SWF. El archivo SWF generado no funcionará correctamente ya que las dependencias de datos superan los límites de SWF."
Any idea of how this could be resolved (appart from using less data)?
Thanks in advance. -
Adobe X pro 10.0.0 stop responding while saving the pdf file as word
Adobe X pro 10.0.0 stop responding while saving the pdf file as word, i chose file>save as>microsoft word>Word Document.
I tried to install on the X pro on another machine and tried to convert also the same issue.
Any help? please adviceI suggest you bring Acrobat up to 10.1.2 by appltying the most recent maintenance.
Ken Friedman -
Could someone help me with a Runtime Error while saving a PDF file?
While saving a 28 page PDF file in Illustrator today, I got a window saying, "This application has requested the "Runtime" to terminate it in a unusual way." It said to contact the applications support team for more information. I keep getting the same thing each time I try it. Does anyone know how to fix this issue or how I contact the applications support team ?
Thank you for any insight.
PamIt is a 13.5x11 inch calendar. There are 14 pages with images on them and
some text. The other pages have text, a grid and a colored background with a
gaussian blur. I saved each page as an "outline".
The printer I am using requested I save all pages in a pdf file. I was
successful in saving all but about six pages, now I can't even open the
file.
What happens is... I open Illustrator
I open the pdf file
A window appears that says... Runtime Error,
This application has requested the Runtime to terminate it in an unusual
way. Please contact the application's support team for more information.
I select ok
then a window appears that says... Adobe
Illustrator CS5 has stopped working. A problem caused the program to stop
working correctly. Windows will close the program and notify you if a
solution is available.
Then the program closes.
So far I have not been notified of anything.
Please let me know if you need more details.
Thank you so much for helping me with this.
Pam -
Error while sourcing the environment file
Hi,
Apps 11.5.10.2
O/S windows 2003 server
While sourcing the environment file i am getting the following error
E:\>oracle\prodappl\appsprod_tstoraf.cmd
ECHO is off.
ECHO is off.
Wed 10/06/2010 06:45 AM
ECHO is off.
ECHO is off.
This script requires the following files:
ECHO is off.
C:\MicrosoftVisualStudio\bin\vcvars32.bat
ECHO is off.
APPSORA.cmd exiting with status 1
After this command i am running the following (i am including vc98 directory in the path)
E:\>C:\MicrosoftVisualStudio\VC98\bin\vcvars32.bat
Setting environment for using Microsoft Visual C++ tools.
Actually vcvars32.bat file is under C:\MicrosoftVisualStudio\VC98\bin\vcvars32.bat directory structure
but
in appsora.cmd it is showing the C:\MicrosoftVisualStudio\bin\vcvars32.bat (VC98 Directory is not present in this path)
In contextfile.xml i have not seen any path related to vcvars32.bat.
In which file i have to change this directory structure of C:\MicrosoftVisualStudio\bin\vcvars32.bat to E:\>C:\MicrosoftVisualStudio\VC98\bin\vcvars32.bat
please advice
Regards,
SRKHi Srk;
That SR was raised by my team only.
I have gone through the doc id's given but my Visual Studio directory is more than 8 characters.So Could you please advice, instead of re-installing the visual studio? whether there is any file to change the path from If you already opened SR you have to confirm it wiht Oracle Support
Also,If we have to re-install the Visual Studio .will be there any effect on the existing 11.5.10.2 application?I belive yes it could effect your system until your install process end.
Please confirm all those wiht oracle support via your SR
Regard
Helios -
Getting error in Portal "Error while generating the PDF" for BI Report
Hi Experts,
we are gettign the error while trying to generate the PDF file from the Reports.
Earlier it was working fine Adobe Reader 8 , currently we have upgrated Adobe Reader 9 in our system.
After this upggradation browser "*Failed to open PDF in Browser"*
Could you please suggest me how to diagnostic the error. Do we need to configre something in the Portal or in the Backend BI system for this.
Please suggest me the needful on this?
thanks
NarpalHello,
i am facing the same problem and found help by 925741:
"Error while generating PDF"
There is no more information available when clicking on the error.
Used Software:
Adobe 8
SAP_ABA 700 0018 SAPKA70018 Cross-Application Component
SAP_BASIS 700 0018 SAPKB70018 SAP Basis Component
SAP_BW 700 0020 SAPKW70020 SAP NetWeaver BI 7.0
PI_BASIS 2005_1_70 0018 SAPKIPYJ7I PI_BASIS 2005_1_700
BI_CONT 703 0013 SAPKIBIIQ3 Business Intelligence Content
Any other ideas?
Thanks,
Rainer
Edited by: Rainer SIGG on Mar 9, 2009 4:41 PM
Edited by: Rainer SIGG on Mar 9, 2009 5:27 PM
Edited by: Rainer SIGG on Mar 9, 2009 5:42 PM -
Error while opening the PDF attachment
HI SDN's
I have to send order confirmation thru mail as a pdf attachment as soon as order has been saved.
I have written the code and assigned to output type.
Here I am getting an error opening a converted pdf file with Adobe Reader
The error message reads:
Adobe Reader could not open "filename.PDF" because it is either not a supported file type or because the file has been corrupted (for example, it was sent as an email attachment and wasn't correctly decoded).
Any help would be appreciated.
Thanks in advance
VRhello, i have the same problem as VR's. The pdf file sent to my email is not able to open. You mentioned that this is only supported by early releases of Adobe. But anyhow, I followed your advice to have my spool converted to PDF, instead of OTF to PDF. But I get this error: Spool request 23595 contains no ABAP list data.
What exactly my transaction does is that, it makes use of a sapscript layout via VL02N using an output type. I retrieve the OTF data in CLOSE_FORM function module. OTF is then converted to PDF via SX_OBJECT_CONVERT_OTF_PDF, then send via email through SO_NEW_DOCUMENT_ATT_SEND_API1.
When I view the sent PDF file in my email, It cannot be opened.
I would appreciate your help guys! thank you very much. -
File Adapter giving Translation error while reading & moving pdf files
Hello Gurus,
I am on SOA 10.1.3.4 and using BPEL for the below procedure.
The requirement I have is to move pdf files from one local directory to another as soon as the pdf files land in source directory. So I used a file adapter (FileAdapter_1) to poll the file and read as an opaque schema. Then I copied the name and directory in a header variable and passed the header variable to another file adapter(FileAdapter_2) which moves the file from source to target directory. The jca operation for FileAdapter_2 is as follows:
<jca:operation
InteractionSpec="oracle.tip.adapter.file.outbound.FileIoInteractionSpec"
SourcePhysicalDirectory="foo1"
SourceFileName="bar1"
TargetPhysicalDirectory="foo2"
TargetFileName="bar2"
Type="MOVE">
</jca:operation>
It is working fine for all 90% of pdf files, but some files are failing with the following error in domain.log file.
2012-02-24 11:15:12,170> <DEBUG> <custst1.collaxa.cube.translation> <TranslatorFactory::log> Inside TranslatorFactory
<2012-02-24 11:15:12,170> <DEBUG> <custst1.collaxa.cube.translation> <TranslatorFactory::log> using version attribute = NXSD
<2012-02-24 11:15:12,170> <DEBUG> <custst1.collaxa.cube.translation> <TranslatorFactory::log> loading xlator class...oracle.tip.pc.services.translation.xlators.nxsd.NXSDTranslatorImpl
<2012-02-24 11:15:12,174> <DEBUG> <custst1.collaxa.cube.translation> <TranslatorFactory::log> class loaded
<2012-02-24 11:15:12,174> <DEBUG> <custst1.collaxa.cube.translation> <NXSDTranslatorImpl::log> Starting translateFromNative using InputStream
<2012-02-24 11:15:12,174> <DEBUG> <custst1.collaxa.cube.translation> <XlatorHelper::logDebug> validating payload size
<2012-02-24 11:15:12,175> <INFO> <custst1.collaxa.cube.activation> <File Adapter::Inbound> Error while translating inbound file : Sample.pdf
<2012-02-24 11:15:12,175> <INFO> <custst1.collaxa.cube.activation> <File Adapter::Inbound>
ORABPEL-11104
Error while translating.
[Line=1, Col=5] The value "%PDF" read from the native data, from the specified position, using "choiceCondition" as "fixedLength" and "length" as "4", doesnt match any of the "conditionValue" on the particles of choice model group.
Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
at oracle.tip.pc.services.translation.xlators.nxsd.NXSDTranslatorImpl.parseNXSD(NXSDTranslatorImpl.java:1312)
at oracle.tip.pc.services.translation.xlators.nxsd.NXSDTranslatorImpl.parseNXSD(NXSDTranslatorImpl.java:1142)
at oracle.tip.pc.services.translation.xlators.nxsd.NXSDTranslatorImpl.doTranslateFromNative(NXSDTranslatorImpl.java:748)
at oracle.tip.pc.services.translation.xlators.nxsd.NXSDTranslatorImpl.translateFromNative(NXSDTranslatorImpl.java:509)
at oracle.tip.adapter.file.inbound.ProcessWork.doTranslation(ProcessWork.java:846)
at oracle.tip.adapter.file.inbound.ProcessWork.processMessages(ProcessWork.java:380)
at oracle.tip.adapter.file.inbound.ProcessWork.run(ProcessWork.java:231)
at oracle.tip.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
at oracle.tip.adapter.fw.common.ThreadPool.run(ThreadPool.java:280)
at java.lang.Thread.run(Thread.java:595)
<2012-02-24 11:15:12,175> <INFO> <custst1.collaxa.cube.activation> <File Adapter::Inbound> Since a translation exception was thrown, this indicates that it is a non-debatching scenario.
<2012-02-24 11:15:12,175> <INFO> <custst1.collaxa.cube.activation> <File Adapter::Inbound> Failed to translate file : {common/InboundFiles/Sample.pdf}
Thanks in advance for your help.......As stated in my Original Post, I am using opaque schema for both the adapters, still not sure why the adapter is going through native translation.
-
Error while deploying the par file
while deploying an application in NWDS we are getting the error as"operation failed,please make sure that the server is running or check the log."
we have ensured that the server is running,but the deployment is getting failed.
Please suggest tips to deploy the PAR file successfully.
Thanks.Hi,
We are using NWDS to create a small application to develop ( for ex jspdynpage)
.while deploying the par file or exporting it to the server,we are getting the error as "please make sure that the server running.HTTPS protocol is not supported,please ensure that this server is not using HTTPS.
the server is running and is shown in green.
we have also disabled the proxy settings.
we have also tried by specifiing the IP of the server in the proxy settings.
the above steps didnt work.please suggest the things to do to make this working.
thanks,
rajani.
Maybe you are looking for
-
SEM-BCS Changing of posting periods
Hi: In the Consolidation Monitor, by going to 'edit' function, we can open and close the posting periods. I have the following questions: a) How far we can go to open the posting periods? Say if you are in pp '7', can you open period '5' and post a m
-
Can't connect to app store nor itunes,youtube,viber and the notifications doesn't appear
At first i updated my ipad 3 software to ios 6.0.1 after this update my ipad didn't connect to app store nor itunes and when i am browsing i tried to open youtube page but it doesn't work there is message appear "the server is not responding" then i
-
Problems accessing fields in a CMP entity bean from a session bean
Hello everybody, I'm getting the next problem: when I try to access a field in a CMP entity bean that I have instantiated from a session bean (trhoug entitybean.getNameOfField), I get the error "the entity bean does not exist in the database". This e
-
How to change the QueryRowSet in early access 2?
hi everybody, I do know how to change the query but I want to add a condition on a variable got from a text field, and use by button action. I don't know where to initialize this variable exactly? provided that the query is created in the session bea
-
It's not showing the play or next song buttons on locks screen when the musics are played
it's not showing the play or next song buttons on locks screen when the musics are played