Output of the concurrent program in PDF - Reg
Hi All,
I have a requirement wherein i have to get the output of the concurrent program as a pdf file.
I'm using the report file (.rdf) as the executable.
When I'm giving the output as PDF in program definition, it errors out.
The report is very complex and using XML publisher for getting a PDF output will be tedious one.
Any pointers or tutorials will be of great help.
Regards,
Mohan
Hi,
"Program was terminated by signal 11
Concurrent Manager encountered an error while running Oracle*Report for your concurrent request ********.
Review your concurrent request log and/or report output file for more detailed information."
The error message was not specific and i could not make out what it is.Please make sure that the DISPLAY is set properly as per (Note: 377748.1 - Postscript And PDF Reports Complete With 'Program Was Terminated By Signal 11'). Also, verify the value of Tk2Motif*fontMapCs as per (Note: 396336.1 - PDF Reports Fail With Program Was Terminated By Signal 11). Make sure you bounce the CM each time you do any modification.
And regarding XML, can i get the PDF output from the concurrent program itself without using the XML publisher,by setting the output style as PDF??????Yes you can, create the concurrent program using reports builder and register it in the application with a PDF output format. If your database characterset is UTF8, then I believe you need to use XML publisher.
Regards,
Hussein
Similar Messages
-
How to convert the output of the report (program) to PDF file , Please HELP
Good Morning, ALL
I have done a small program in ABAP that lets the employee enters his information. Once the emplyee enters the information and executes the program, I want the result to be saved in a PDF file (in any kind of format). I did try to do this action BUT I couldn't. ( ABAP Beginner LOL ).
This is the code ( The main thing ):
SELECTION-SCREEN BEGIN OF BLOCK Yours WITH FRAME TITLE text-001.
PARAMETERS: NAME(15) TYPE C OBLIGATORY lower case,
CITY LIKE NAME OBLIGATORY ,
DATE LIKE SY-DATUM DEFAULT SY-DATUM MODIF ID ZZZ,
ID# TYPE C LENGTH 9,
PHONE TYPE C LENGTH 10.
SKIP 4.
SELECTION-SCREEN END OF BLOCK Yours.
SELECTION-SCREEN BEGIN OF BLOCK More WITH FRAME TITLE text-002.
PARAMETERS: MALE RADIOBUTTON GROUP G1 DEFAULT 'X',
FEMALE RADIOBUTTON GROUP G1.
SELECTION-SCREEN END OF BLOCK More.
SELECTION-SCREEN BEGIN OF BLOCK Details WITH FRAME TITLE text-003.
PARAMETERS: P_DATE TYPE DATUM,
Locate TYPE C LENGTH 30.
SELECTION-SCREEN END OF BLOCK Details.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'ZZZ'.
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Any useful help will be appreciated, THANK YOUHi
Try the below code.
REPORT ztest_notepad.
"Variables
DATA:
l_lay TYPE pri_params-paart,
l_lines TYPE pri_params-linct,
l_cols TYPE pri_params-linsz,
l_val TYPE c,
l_no_of_bytes TYPE i,
l_pdf_spoolid LIKE tsp01-rqident,
l_jobname LIKE tbtcjob-jobname,
l_jobcount LIKE tbtcjob-jobcount,
spoolno TYPE tsp01-rqident.
*Types
TYPES:
t_pripar TYPE pri_params,
t_arcpar TYPE arc_params.
"Work areas
DATA:
lw_pripar TYPE t_pripar,
lw_arcpar TYPE t_arcpar.
DATA:
it_t100 TYPE t100 OCCURS 0 WITH HEADER LINE,
it_pdf TYPE tline OCCURS 0 WITH HEADER LINE.
"Start-of-selection.
START-OF-SELECTION.
l_lay = 'X_65_132'.
l_lines = 65.
l_cols = 132.
"Read, determine, change spool print parameters and archive parameters
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
in_archive_parameters = lw_arcpar
in_parameters = lw_pripar
layout = l_lay
line_count = l_lines
line_size = l_cols
no_dialog = 'X'
IMPORTING
out_archive_parameters = lw_arcpar
out_parameters = lw_pripar
valid = l_val
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF l_val space AND sy-subrc = 0.
lw_pripar-prrel = space.
lw_pripar-primm = space.
NEW-PAGE PRINT ON
NEW-SECTION
PARAMETERS lw_pripar
ARCHIVE PARAMETERS lw_arcpar
NO DIALOG.
ENDIF.
"Get data
SELECT *
FROM t100
INTO TABLE it_t100
UP TO 100 ROWS
WHERE sprsl = sy-langu.
" Writing to Spool
LOOP AT it_t100.
WRITE:/ it_t100.
ENDLOOP.
NEW-PAGE PRINT OFF.
CALL FUNCTION 'ABAP4_COMMIT_WORK'.
spoolno = sy-spono.
"Convert spool to PDF
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = spoolno
no_dialog = ' '
IMPORTING
pdf_bytecount = l_no_of_bytes
pdf_spoolid = l_pdf_spoolid
btc_jobname = l_jobname
btc_jobcount = l_jobcount
TABLES
pdf = it_pdf.
"Download PDF file C Drive
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'C:\itab_to_pdf.pdf'
filetype = 'BIN'
TABLES
data_tab = it_pdf
Hope this helps you. -
Reg emailing the output of a concurrent program as an attachment
Hi,
Our requirement is to email the output of a concurrent program?(SQL*PLUS Report Output) as an attachment to the supplied Email Id, without using seperate Shell Script.
We have configured a printer and passed the Printer Driver argument as
uuencode $PROFILES$.FILENAME Budget_Report.csv | /bin/mailx -"Cisco AS Budget Report" $Email_id
The Problem is we are passing the Email address directly to the command.Can't we use the Parameter value to that command?
And also a junk character 'end gets displayed in the mail body.
Sometimes the concurrent Program ends with warning message as
APP-FND-00500 : AFPPRN received a return code of failure from routine FDUPRN.
An error occured while AOL tried to spawn the print process.
Please suggest some ways on getting proper output?
Thanks.Hi,
Email address can be Profile Option - create a new profile option, set value and reference like the $PROFILES$.FILENAME.
For logging pipe standard out and error to a logfile. Note I haven't tested the command below, just to give you an idea. Would be better to create a shell script then you can change without having to go to the Printer Drivers and bounce Conc Mgr.
Ie. if you profile option is XX_EMAIL_ADDRESS then
uuencode $PROFILES$.FILENAME Budget_Report.csv | /bin/mailx -"Cisco AS Budget Report" $PROFILES$.FILENAME >/mypath/myfile 2>&1
With regards to the failure, if your uuencode or mailx returns 1 (ie, can't find file or whatever) then your print job fails. This is why you should either log or create shell script to handle the error better.
Regards,
Gareth
Blog: http://garethroberts.blogspot.com/
Message was edited by:
gareth.roberts
oops, have tested changed to haven't tested! -
OAF: Creating PDF output without calling concurrent program.
Hi Everyone,
i want to Create PDF output in OAF.
I wil be having one button “Convert PDF” on my OAF page. On clicking on that button my page should generate pdf output without calling concurrent program(Because running a concurrent program may take much time sometimes.).
How can I do that?
I have never generated pdf outputs so plz help me to get out of this.
What are the possible ways to get this?
Any example?
Any suggestions wil be really useful.
Thanks.....Hi ,
Please refer to -
http://apps2fusion.com/at/85-daxesh/515-oa-framework-xml-publisher-integration
http://apps2fusion.com/at/51-ps/260-integrating-xml-publisher-and-oa-framework
Regards,
Ashish -
We can attach the concurrent program outuput to the mailID
Hai to all !!!!
While submitting the concurrent program its give any output for report/interface. thease output can we attach directly to the our mail-ID.it is possible? if yes , how?
please tell me.....
thanks
subbu...echo "----------------------------------------------"
echo "TEST iExpense Mail Sending Script"
echo "----------------------------------------------"
##Run Environment File
#. /u8/applprd/prdappl/APPSORA.env
. /u8/applpred/preprdappl/APPSORA.env
##End of running environment file
pi=$1
echo
#echo 'Input....: ' $pi
V_FCP_LOGIN=`echo $pi | cut -f3 -d' ' | cut -f2 -d'"'`
V_REQUEST_ID=`echo $pi | cut -f9 -d' ' | cut -f2 -d'"'`
V_EMAIL_DIS_LIST=`echo $pi | cut -f10 -d' ' | cut -f2 -d'"'`
V_OUTPUT_FILE_NAME=`echo $pi | cut -f11 -d' ' | cut -f2 -d'"'`
#echo "FCP LOGIN ....: $V_FCP_LOGIN"
echo "Request ID....: $V_REQUEST_ID"
echo "Mail ID....: $V_EMAIL_DIS_LIST"
echo "Output File Name....: $V_OUTPUT_FILE_NAME"
#Changes done for oracle database login/password security purpose
WHODB=$V_FCP_LOGIN
#End of changes done for oracle database login/password security purpose
####----Getting the OutFile Details----####
#Getting the OutFile Name
#VALUE='sqlplus -silent apps/[email protected] <<END
OUT_FILE_NAME=`sqlplus -silent $WHODB <<END
set pagesize 0 feedback off verify off heading off echo off
SELECT SUBSTR(FCR.OUTFILE_NAME,INSTR(FCR.OUTFILE_NAME,'/',-1)+1,(LENGTH(FCR.OUTFILE_NAME)-INSTR(FCR.OUTFILE_NAME,'/',-1)))
FROM FND_CONCURRENT_REQUESTS FCR,FND_CONCURRENT_PROGRAMS FCP
WHERE FCR.CONCURRENT_PROGRAM_ID=FCP.CONCURRENT_PROGRAM_ID
AND REQUEST_ID=$V_REQUEST_ID;
exit;
END`
echo
#Check successful execution of procedure and outfile details
echo
if [ -z "$OUT_FILE_NAME" ]; then
echo "No rows returned from database"
exit 0
else
echo "OutFile Name....: $OUT_FILE_NAME"
fi
#Output File Path
OUT_FILE_PATH=`sqlplus -silent $WHODB <<END
set pagesize 0 feedback off verify off heading off echo off
SELECT SUBSTR(FCR.OUTFILE_NAME,1,(INSTR(FCR.OUTFILE_NAME,'/',-1)-1))
FROM FND_CONCURRENT_REQUESTS FCR,FND_CONCURRENT_PROGRAMS FCP
WHERE FCR.CONCURRENT_PROGRAM_ID=FCP.CONCURRENT_PROGRAM_ID
AND REQUEST_ID=$V_REQUEST_ID;
exit;
END`
#Check successful execution of procedure and outfile details
if [ -z "$OUT_FILE_PATH" ]; then
echo "No rows returned from database"
exit 0
else
echo "OutFile File Path....: $OUT_FILE_PATH"
fi
cd $OUT_FILE_PATH
cp $OUT_FILE_NAME $V_OUTPUT_FILE_NAME.txt
#cp *$V_REQUEST_ID*.PDF $V_OUTPUT_FILE_NAME.txt
#echo "iExpense Report file name which sent to user"
V_REPORT_NM=$OUT_FILE_PATH/$V_OUTPUT_FILE_NAME.txt
echo "XML Report file name mail to user for reference : $V_REPORT_NM"
echo
echo
echo "Mail ID checking and sending mail to that ID"
echo
if test -z "$V_EMAIL_DIS_LIST"; then
echo
echo "Email List Empty....No maill to be sent."
else
echo
echo "Sending Mail...."
uuencode "$V_REPORT_NM" "$V_REPORT_NM"| mailx -s "iExpense Report" "$V_EMAIL_DIS_LIST"
echo
echo "Mail has been sent successfully...."
echo
fi
##------------------------------------------------------------------------------------End--------------------------
Use this script for sending any output.
Thanks,
Ajit -
Format changing after running the concurrent program for indentation
Hi
I have got an issue regarding indentation in rtf template. Actually in the template I have indentation or numbering in one format like david but after running the concurrent program in the temlate output I am getting the numbering in Latin letters. like
I
II
III
etc.
can anyone please send me the resolution for this issue.
Thanks and regards
kkWhat is the application release?
If you are on 11i, please make sure you have (Patch 8198363: INDENTATION PROBLEM WHILE GENERATING RTF OUTPUT USING RTF TEMPLATE) applied and check then.
Thanks,
Hussein -
How to select multiple values from the Parameters in the concurrent program
How to select multiple values from the Parameters defined in the concurrent program...and i believe multiple selection is not a direct feature of EBS, but is there any workaround solution to acheive mulitple selection?
I think there's no way to do that using standard feature.
Some workaround I use :
1. If the number of selections are fixed, you could use multiple parameters for the same valueset. For example :
Selection1 : <choose first selection>
Selection2: <choose 2nd selection>
..etc.
If you don't use it then leave it empty.
2. Use text varchar valueset and enter it manually and separate by comma (or other value) , eg : selection1,selection2,selection3....etc. -
Error: While downloading the concurrent program
I am trying to download the concurrent program using FNDLOAD command and I getting the error.
Can anyone help me to resolve this
FNDLOAD Command >
FNDLOAD apps/PASSWORD@RTCDV1 O Y DOWNLOAD $FND_TOP/patch/115/import/afcpprog.lct XXAR3006_PROCA_CP.ldt PROGRAM CONCURRENT_PROGRAM_NAME="XXAR3006_HOSTA"
ERROR Message
APP-FND-01564: ORACLE error 12154 in AFPCOA
Cause: AFPCOA failed due to Error while trying to retrieve text for error ORA-12154
The SQL statement being executed at the time of the error was: and was executed from the file .
Thanks in advance..
Regards
BSHi,
FNDLOAD apps/PASSWORD@RTCDV1 O Y DOWNLOAD $FND_TOP/patch/115/import/afcpprog.lct XXAR3006_PROCA_CP.ldt PROGRAM CONCURRENT_PROGRAM_NAME="XXAR3006_HOSTA"Try this syntax and see if it helps.
FNDLOAD apps/apps 0 Y DOWNLOAD $FND_TOP/patch/115/import/afcpprog.lct file_name.ldt PROGRAM APPLICATION_SHORT_NAME="<Application Short Name>" CONCURRENT_PROGRAM_NAME="<Concurrent Program Name>"
Note: 602267.1 - How to Export a Concurrent Program and Executable Using Fndload ?
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=602267.1
Regards,
Hussein -
Error while registering the Concurrent Program
Hi,
I am getting the following error while registering the concurrent program.
The executable is registered as shell script and this executable sends a mail with attachment. can any one of you tell me the cause of the error?
ORA-20160: ORACLE error -4091 in SUBMIT: others
Cause: SUBMIT: others failed due to ORA-04091: table APPLSYS.FND_CONCURRENT_PROGRAMS is mutating, trigger/function may not see it.
The SQL statement being executed at the time of the error was: &SQLSTMT and was executed from the file &ERRFILE.
ORA-06512: at "APPS.ALR_FND_CONCURRENT_PROGRAM_IAR", line 1
ORA-04088: error during execution of trigger 'APPS.ALR_FND_CONCURRENT_PROGRAM_IAR'
ORA-06512: at "APPS.FND_CONCURRENT_PROGRAMS_PKG", line 63
FRM-40735: ON-INSERT trigger raised unhandled exception ORA-20160.
Thanks in advanceCheck Note: 391795.1 - Frm-40735: On-Insert Trigger Raised Unhandled Exception Ora-04062 in APPS.FND_CONCURRENT_PROGRAMS_PKG
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=391795.1 -
Error while copying the concurrent program
Hi Experts,
I am working on EBS 11i and database 9i. When i am trying to copy the existing concurrent program,it's giving below error.
Error: Please enter a unique segment name, the segment name is already defined for other segment.
Could you somebody help me to get rid off this error.
Thanks.While copying the concurrent program, what is the short name and name for the new concurrent program?
Hope you are not giving the same name as the old CP.
By
Vamsi -
The Concurrent Program Error (Report)
Hi,
I am new to apps.
Here i have created the sample report,
the query is very simple
select
h.Segment1,
h.creation_date,
h.vendor_id,
h.currency_code,
s.vendor_name,
l.line_num,
l.item_id ,
l.item_description,
l.unit_meas_lookup_code,
l.quantity,
l.unit_price,
Nvl(l.quantity,0)* Nvl(l.unit_price ,0) total
from po_headers_all h,
po_lines_all l,
Ap_suppliers S
where h.PO_HEADER_ID = l.PO_HEADER_ID
and h.VENDOR_ID = s.VENDOR_ID
and h.org_id = fnd_profile.value('ORG_ID')
and H.Segment1 = :P_po_numberThe above query in report is call 'G-Segment1'. In which i add a formula column called CF_net_value,
The reason to add the formula column is that i need to format currency using fnd format_currency
so i add the following code in the formula column .
function CF_Net_valueFormula return Number is
begin
srw.reference(:Currency);
srw.reference(:total);
srw.user_exit('FND FORMAT_CURRENCY
CODE=":Currency"
DISPLAY_WIDTH="15"
AMOUNT=":TOTAL"
DISPLAY=":Cf_net_value"
Return(:cf_net_value);
end;In RTF template i am using the CF_net_value to display the Total (i think that will be formatted one).
After the report deployment and run the concurrent program i am receive the following error.
REP-1416: '': User exit 'G_Segment1'. .
REP-0069: Internal error
REP-57054: In-process job terminated:Terminated with error:
REP-1416: '': User exit 'G_Segment1'. Please help me in this struggle.
Thanks & Regards,
KanishPlease post the details of the application release, database version and OS along with the developer version you are using.
Please see if old threads help -- https://forums.oracle.com/forums/search.jspa?threadID=&q=REP-57054&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
Thanks,
Hussein -
Date lov in the concurrent program parameter field
Hi,
I have a date parameter in the concurrent program. I need to have a date calendar for the parameter, can I have the data calendar? I am not sure if we can do that.
Can anybody throw some light on this.
Thanks a million
Regards
RumaHi swati
u cannt create a multi select LOV for Apps concurrent program.
Some of the options:
-> Create different parameters. Also u cannt create parameters dynamically depending upon the number of options u want to give for that parameter, better fix the maximum no. of options say 5 .. ORG1, ORG2, ORG3, ORG4, ORG5
-> If multi select LOV are of high priority, go for Discoverer if it is a Report.
cheers
chakoo -
After Upgrading Acrobat Reader XI to Acrobat XI Pro the previewer in Outlook and Windows Explorer doesn't work. I have to set the default program for .pdf's to Acrobat Reader in order for the previewer to work.
Can anyone recommend a solution?If I set the default program for viewing PDF as Acrobat XI Pro the a PDF file will open with Acrobat XI Pro, but in Outlook I will get a white screen and the information bubble "This file cannot be previewed because there is no previewer installed for it" and in Windows Explorer I get a white screen in the preview pane.
My Acrobat version is 11.0.10
I am running Windows 7 Professional with Service Pack 1
My Internet Explorer is Version 11.0.9600.17691
Update Versions 11.0.17 (KB3032359)
I am running Microsoft Office 2013 -
Plsql query to find out the concurrent programs attaching a plsql package
I want to find all the concurrent programs attaching a particular package. Please provide me with the appropriate query to get that.
Hello,
1- First thing: we are talking about a SQL query (and not a PL/SQL query).
2- I would like to add an additional filter to the query of shazi as the query should show only PL/SQL packages
SELECT
fcp.CONCURRENT_PROGRAM_ID
,fcp.concurrent_program_name
, fcpt.user_concurrent_program_name
, DECODE(fe.execution_method_code
, 'I', 'PL/SQL'
,'P', 'Reports'
,'C', 'SQL Loader'
,'Q', 'SQL Plus'
,'K', 'Java'
,'H', 'OS executable'
,'B' , 'Req. Set Stage'
) EXECUTION_METHOD
,UPPER(EXECUTION_FILE_NAME) PACKAGE_BODY
from
fnd_concurrent_programs_tl fcpt
, fnd_executables fe
,fnd_concurrent_programs fcp
where 1=1
--and fcpt.concurrent_program_id = fcr.concurrent_program_id
and fe.executable_id = fcp.executable_id
and fcpt.concurrent_program_id = fcp.concurrent_program_id
and fe.execution_method_code = 'I' /* here's the additional filter */
--and fcpt.user_concurrent_program_name = :P_USER_CONC_PROGRAM_NAME
--fcp.concurrent_program_name = :P_CONC_PROGRAM_NAME /* using this filter would use an index */
Lalaina -
Cannot view the concurrent program.
After the user schedule for the concurrent program, there is nothing appear in the concurrent program window. Actually, the concurrent program is running, but just the users cannot see it. How to solve this problem?
I believe you can access reports run by other user if you set the profile option Concurrent:Report Access Level, and set by responsibility so that if the user has the same responsibility he/she maybe able to view all request run by user who has the same responsibility.
HTH.
Maybe you are looking for
-
No recognition of internal hard drive, USB, RAM DIMM1
Hi folks, HOPING you can help me. I fear that I've suffered a logic board failure on my 2011 15" MBP. I bought an external blu-ray drive from Amazon, hoping to rip my blu-ray collection to my network-shared home server (a Windows 7 desktop PC, in c
-
Ihave two outlook accounts...one is for my husband and that is the default one.....when looking cannot select the other "Outlook Ginny"....is ther a way two have both accounts show...both have separate passwords and separate emails
-
I've looked at much of the documentation on the web about this but I could still use a primer. The ways that src documents are referenced in both html and css style sheets is confusing. I've seen specs starting with "../" and others starting with "/"
-
Since upgrading to Yosemite I cannot get directly to Netflix. I get a to Netflix and there is a big message about having to download/install Microsoft Silverlight. I can't get that to work and don't want it anyway. I just want to open Netflix and
-
Not be able to highlight text in pdf file???
Hello there, There is an issue with Mac I guess I mean I am not able to use highlight tool in phf but pretty sure the file is ok coz I can highlight the same file on the other laptop. Have this happened to you before and how to deal with it? Thanks!