How to generate conc_request_id?
Hi friends,
Apps R12.
I want to call a package from my PL code that normally is called from a Concurrent...
It needs FND_GLOBAL.conc_request_id so.. is there any method to generate a concurrent_request_id whithout exectuing a request? I suppose there must be a sequence or similar..
I've tried to trace it as this way :
FND_GLOBAL.conc_request_id :
function conc_request_id return number is
begin
return get_i(FND_CONST.CONC_REQUEST_ID);
end conc_request_id;
get_i:
function get_i(name varchar2, def number) return number
as
begin
return nvl(to_number(get(name)),def);
end get_i;
get:
function get(name varchar2) return varchar2
is
begin
if not z_context.exists(name) then
return null;
end if;
return z_context(name);
end get;
FND_CONST ---> CONC_REQUEST_ID constant varchar2(15) := 'CONC_REQUEST_ID';
but... how is the value get ?? Where is get the process request number ?
To generate the number ... I suppose It's just simple doing a FND_CONCURRENT_REQUESTS_S.next_val
But.. how to pass it or how to do FND_GLOBAL.conc_request_id returns this value.
In.ex:
I want to call Import Suppliers Interface concurrent request...
it would just only call:
DECLARE
l_return_status varchar2(1);
l_msg_count number;
l_msg_data varchar2(2000);
BEGIN
-- here i need to stablish value for FND_GLOBAL.conc_request_id
-- This function is called in Import_vendors procedure....
AP_VENDOR_PUB_PKG.Import_Vendors(
p_api_version => 1.0,
p_source => 'IMPORT',
p_what_to_import => 'ALL',
p_commit_size => 1000,
x_return_status => l_return_status,
x_msg_count => l_msg_count
x_msg_data => l_msg_data);
END;
Thanks!
Edited by: oadeveloper on May 22, 2009 12:13 PM
Edited by: oadeveloper on May 22, 2009 12:14 PM
See MOS Doc 601851.1 (R12 Supplier: Other FAQs) - using this package as an API is not supported
HTH
Srini
Similar Messages
-
How to generate jasper report in pdf format using swing
hi all,
im new to swing and jasper.. can anybody provide me some example on how to generate the jasper report in pdf format? i will call the reportManager from sessionBean.. below is my code:
1)delegate:
public GenerateReportDto generateIntoPdfReport(String fileName, String outputFileName, Map parameters){
GenerateReportDto generateReportDto = getAuditTrailServiceRemote().generateIntoPdfReport(fileName, outputFileName, parameters);
return generateReportDto;
2)sessionBean:
public GenerateReportDto generateIntoPdfReport(String fileName, String outputFileName, Map parameters){
//Map parameters = new HashMap();
ReportManager reportManager = new ReportManager();
3)ReportManager()
public void generateIntoPdfReport(String fileName, String outputFileName, Map parameters) {
Connection conn = null;
try {
conn = dataSource.getConnection();
//Generate the report to bytes
File reportFile = new File(fileName);
byte[] bytes =
JasperRunManager.runReportToPdf(
reportFile.getPath(),
parameters,
conn
//conn.close();
//Write the bytes to a file
ByteBuffer buf = ByteBuffer.wrap(bytes);
File file = new File(outputFileName);
// (if the file exists)
boolean append = false;
// Create a writable file channel
FileChannel wChannel = new FileOutputStream(file, append).getChannel();
// Write the ByteBuffer contents; the bytes between the ByteBuffer's
// position and the limit is written to the file
wChannel.write(buf);
// Close the file
wChannel.close();
} finally {
if (conn != null) {
conn.close();
Any help would be highly appreciated. Thanks in advanceHi ,
One 'simple' way is by using the DBMS_SCHEDULER db package and the procedure CREATE_JOB(....) using as job_type the value 'EXECUTABLE'...
Read for further info in 'PL/SQL Packages and Types Reference'.
If you have access to OEM ... you can configure this there using wizard.....
Other way is to use the External Procedure call capabiblity of Oracle DB Server...:
http://www.oracle.com/pls/db102/ranked?word=external+procedure+call&remark=federated_search
My greetings,
Sim -
Best Practices:: How to generate XML file from a ResultSet
Hi all,
Could someone please suggest the best practices of how to generate an XML file from a resultset? I am developing a web application in Java with Oracle database and one of my tasks is to generate an XML file when the user, for example, click a "download as XML" button on the JSP. The application is basically like an Order with line items. I am using Struts and my first thought has been to have an action class which will extend struts's DownloadAction and through StAX's Iterator API to create an XML file. I intend to have a POJO which will have properties of all columns of my order and line items tables so that for each order I get all line items and:
1. Write order details then
2. Through an iterator write line items of that order to an XML file.
I will greatly appreciate for comments or suggestions on the best way to do this through any pointers on the Web.
alexUse a OracleWebRowSet in which an XML representation of the result set may be obtained.
http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/files/oracle10g/webrowset/Readme.html
http://download.oracle.com/docs/cd/B28359_01/java.111/b31224/jcrowset.htm -
How to Generate Statistic Graph in Report??
Hi, i am developing an questionnaire program together with 19 question... i am able to get value for each value..
Now my problem is how to generate a statistic graph whenever user can check their report ??
Can anyone help?? Thank you very much......
from bscsThe easy way is to use your values to set the width or height of an image dynamically in HTML, but you can only do bar charts using this method.
For real reports and measures have a look at
http://www.jfree.org/jfreechart/index.php
http://www.jfree.org/jfreereport/index.php -
How to generate multiple output pdf's from one oracle reports
how to generate multiple output pdf's from one oracle reports.
I have a report where I have to generate more than one output files from the same report based on a parameter.
Each output file is for each parameter.
Is this possible in oracle reports, is so how ?You can better post your question in the reports forum instead of this pl/sql forum.
-
How to generate a row in report to compute total?
Hi:
I need help to generate a report. In an accounting report, I need to make sum for each client regarding outstanding balance. The format of report is following:
invoice#, invoice date, invoice amount, paid amount paid date, write off, outstanding balance
Client Name: Baker Express / Debtor Name: Kurt Weiss inc.
137308001, 04/18/2012, 438.07, 537.07, 06/05/2012, , (99)
137308002, 04/18/2012, 100, 90, 06/05/2012, 10,
client Total: total payment:627.07, total outstanding balance: (99)
another client and debtor pair
My question is how to generate total payment and total outstanding balancefor every pair of client and debtor. And there are multiple pairs. I tried to use group by, but how can I display every invoice tuple as well in the report?
Any help would be appreciated.
SamOne method would be to use ROLLUP in your SQL
http://www.oracle-base.com/articles/misc/rollup-cube-grouping-functions-and-grouping-sets.php -
How to generate a report direct in PDF with oracle developer 6i
hi all
Please help me about this issue.
THAT How to generate a report directly in PDF using oracle developer 6i.
Regards
Yousuf Ahmed SiddiquiHi,
You can create the Report directly in PDF by setting some of the Report Parameters
i.e. DESTYPE, DESNAME AND DESFORMAT as follows before calling the Report.
DECLARE
PL_ID PARAMLIST;
PL_NAME VARCHAR2(10) := 'param_list';
BEGIN
PL_ID := GET_PARAMETER_LIST (PL_NAME);
IF NOT ID_NULL (PL_ID) THEN
Destroy_Parameter_List(PL_ID);
END IF;
PL_ID := Create_Parameter_List(PL_NAME);
Add_Parameter (PL_ID, 'DESTYPE', TEXT_PARAMETER, 'FILE');
Add_Parameter (PL_ID, 'DESNAME', TEXT_PARAMETER, 'c:\test.pdf');
Add_Parameter (PL_ID, 'DESFORMAT', TEXT_PARAMETER, 'PDF');
RUN_PRODUCT (REPORTS, 'REPORT_NAME', ASYNCHRONOUS, RUNTIME, FILESYSTEM, PL_ID, NULL);
END;Hope this helps.
Best Regards
Arif Khadas
Edited by: Arif Khadas on Apr 22, 2010 9:24 AM -
How to generate pdf report in swing
Hello,
can you help me?
i want to generate pdf report in my swing based project but i don't know about any idea of this report generating
procedure . Please help me.shesh_07 wrote:
Hello,
can you help me?Can you help yourself? Two suggestions I have for posting to a technical forum are:
1) Add an upper case letter to the start of each sentence. This helps the reader to scan the text quickly, looking for the important parts. It also helps to dispel the impression that the writer is just lazy.
2) Try to do some research on your own, summarise it and state any conclusions you have reached. Ask a specific question and generally, try not to sound so pathetic.
i want to generate pdf report ..Search for [Java PDF|http://lmgtfy.com/?q=java+pdf] *(<- link).*
Figure how to generate a PDF report in a class used from the command line, then..
..in my swing based project .....wrap a GUI around that class. For details on the latter, see the [Swing tutorial|http://java.sun.com/docs/books/tutorial/uiswing/] *(<- link).*
..but i don't know about any idea of this report generating
procedure . Please help me.Please help yourself. -
How to generate interactive report in alv
hi,
how to generate interactive report in alv,for this what are the requirements,
give me one sample report.
thankyou.Hi,
Chk these helpful links..
ALV
http://www.geocities.com/mpioud/Abap_programs.html
http://www.sapdevelopment.co.uk/reporting/reportinghome.htm
Simple ALV report
http://www.sapgenie.com/abap/controls/alvgrid.htm
http://wiki.ittoolbox.com/index.php/Code:Ultimate_ALV_table_toolbox
ALV
1. Please give me general info on ALV.
http://www.sapfans.com/forums/viewtopic.php?t=58286
http://www.sapfans.com/forums/viewtopic.php?t=76490
http://www.sapfans.com/forums/viewtopic.php?t=20591
http://www.sapfans.com/forums/viewtopic.php?t=66305 - this one discusses which way should you use - ABAP Objects calls or simple function modules.
2. How do I program double click in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=11601
http://www.sapfans.com/forums/viewtopic.php?t=23010
3. How do I add subtotals (I have problem to add them)...
http://www.sapfans.com/forums/viewtopic.php?t=20386
http://www.sapfans.com/forums/viewtopic.php?t=85191
http://www.sapfans.com/forums/viewtopic.php?t=88401
http://www.sapfans.com/forums/viewtopic.php?t=17335
4. How to add list heading like top-of-page in ABAP lists?
http://www.sapfans.com/forums/viewtopic.php?t=58775
http://www.sapfans.com/forums/viewtopic.php?t=60550
http://www.sapfans.com/forums/viewtopic.php?t=16629
5. How to print page number / total number of pages X/XX in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=29597 (no direct solution)
6. ALV printing problems. The favourite is: The first page shows the number of records selected but I don't need this.
http://www.sapfans.com/forums/viewtopic.php?t=64320
http://www.sapfans.com/forums/viewtopic.php?t=44477
7. How can I set the cell color in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=52107
8. How do I print a logo/graphics in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=81149
http://www.sapfans.com/forums/viewtopic.php?t=35498
http://www.sapfans.com/forums/viewtopic.php?t=5013
9. How do I create and use input-enabled fields in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=84933
http://www.sapfans.com/forums/viewtopic.php?t=69878
10. How can I use ALV for reports that are going to be run in background?
http://www.sapfans.com/forums/viewtopic.php?t=83243
http://www.sapfans.com/forums/viewtopic.php?t=19224
11. How can I display an icon in ALV? (Common requirement is traffic light icon).
http://www.sapfans.com/forums/viewtopic.php?t=79424
http://www.sapfans.com/forums/viewtopic.php?t=24512
12. How can I display a checkbox in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=88376
http://www.sapfans.com/forums/viewtopic.php?t=40968
http://www.sapfans.com/forums/viewtopic.php?t=6919
Go thru these programs they may help u to try on some hands on
ALV Demo program
BCALV_DEMO_HTML
BCALV_FULLSCREEN_DEMO ALV Demo: Fullscreen Mode
BCALV_FULLSCREEN_DEMO_CLASSIC ALV demo: Fullscreen mode
BCALV_GRID_DEMO Simple ALV Control Call Demo Program
BCALV_TREE_DEMO Demo for ALV tree control
BCALV_TREE_SIMPLE_DEMO
BC_ALV_DEMO_HTML_D0100
Regards
Anversha -
How to generate a report in pdf from a stored proc
Hi, i need guidance on how to generate a report in pdf from an oracle stored proc.
The environment is oracle 10gas + 10gdb.
On a specific event, a PL/SQL stored procedure is called to do some processing and at the end of the processing to generate report which has to be sent to the printer (and optionally previewed by the user).
Can anyone assist me with this?Hi ,
One 'simple' way is by using the DBMS_SCHEDULER db package and the procedure CREATE_JOB(....) using as job_type the value 'EXECUTABLE'...
Read for further info in 'PL/SQL Packages and Types Reference'.
If you have access to OEM ... you can configure this there using wizard.....
Other way is to use the External Procedure call capabiblity of Oracle DB Server...:
http://www.oracle.com/pls/db102/ranked?word=external+procedure+call&remark=federated_search
My greetings,
Sim -
How to generate a report in Excel with multiple sheets using oracle10g
Hi,
I need a small help...
we are using Oracle 10g...
How to generate a report in Excel with multiple sheets.
Thanks in advance.
Regards,
RamThanks Denis.
I am using Oraclereports 10g version, i know desformat=spreadsheet will create single worksheet with out pagination, but my requirment is like the output should be generated in .xls file, and each worksheet will have both data and graphs.
rdf paperlayout format will not workout for generating multiple worksheets.
Is it possible to create multiple worksheets by using .jsp weblayout(web source) in oracle reports10g. If possible please provide me some examples
Regards,
Ram -
How to generate my report in HTML format
Hi
I am using Forms and reports 6i . How to generate a report in Html format.
Please explain what are the option available in reports and the way to do
thanks in advance
prasanth a.s.*specify desformat=html in cmd line
refer
* Forms Reports integration 6i
http://otn.oracle.com/products/forms/pdf/277282.pdf
[ All Docs for all versions ]
http://otn.oracle.com/documentation/reports.html
[ Publishing reports to web - 10G ]
http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
[ Building reports - 10G ]
http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
[ Forms Reports Integration whitepaper 9i ]
http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
--------------------------------------------------------------------------------- -
How to generate a report based on account description
Hi Experts,
How to generate the report based on account description, that means
i want to generate a report on G/L account and which account numbers are having 'CASH' description.
for Ex: G/L a/c no: 25010026-Cash and Bank balance(des)
G/L a/c no: 101000-Cash-freight
like this.
please help to do this,
good answer will be appreciated with points,
Thanks in advance
VenkatHi shana,
my requirement is
I have G/L account numbers, that account numbers having some descriptions, in these some descriptions are belongs to cash transactions, i want to generate the report on these cash transactions, and the report is " G/L account, debit cash, credit cash, balance".
is it possible or not,
thanks in advance,
Venkat -
How to generate MT100 file in XML ?
How to generate MT100 file in XML ?
Dear All,
Base: We are working on ECC 6.0 version and developing B2B with bank.
Requirement: For B2B bank requires payment orders in MT100 format wrapped in XML.
At Present: I am using PMW format MT100(standard) in payment method. With the use of this format system is generating MT100 text file.
In this standard PMW format MT100, check box for u201Dmapping using DME engineu201D is not selected.
My Try: I change in format output from file to XML in Payment Media Format (T. Code OBPM1), but it doesnu2019t work.
In data medium display (T. Code FDTA) system is showing the following error.
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
XML document must have a top level element. Error processing resource 'file:///C:/Users/888881/AppData/Local/Microsoft/Wind...
In view source system is showing only this,
<?xml version="1.0" encoding="utf-8"?>
My Question: How to generate MT100 file in XML ?
Should I have to create DME Format Tree in ( T. Code DMEE ) and create new Payment Media Format (T. Code OBPM1), with the mapping using DME engine ?
Please give your valuable suggesions,
Thank you,
RonyHi Prabhu,
The program SAPFPAYM generates the payment Medium on the basis of your configuration and background settings, this program does not bydefault give the output in the XML.
Varient creation for the PMW in T. Code OBPM4, use the same program, which i already done it, even without this it is not be possible to create any payment Medium.
Regards,
Rony -
How to generate a SSL certificate for Adobe Connect?
My organization uses adobe connect across the internet and we
would like to enable SSL on the server. I have instructions for
enabling SSL once a CSR is generated, but I do not know how to
actually generate the CSR using Adobe Connect.
Any info on how to generate a SSL CSR would be great,
thanks.There is no 'built-in' method in Connect to do this. We used
a open-source product called OpenSSL to generate our CSR file for
Connect. Just Google OpenSSL and download/install it (it's free).
Then use something like this command for creating a cert:
openssl
req -new -key <exisiting private key file> -out <csr
file you want to make>
Example:
OpenSSL> req -new -key privatekey.pem -out connectcert.csr
After you get the new certificate from the CA, put in
d:\breeze directory. Then update the adaptor.xml file with the new
cert name (make sure backup the existing file).
Make sure you REBOOT the server to enable changes! Simply
restarting services will not work.
Hope this helps!
Maybe you are looking for
-
How do I get AirPlay on my iPhone 4s and my new apple tv?
-
Need to add horsepower to Power PC G5 (can't afford an Intel one yet)
Hello all. In the ideal world I would buy a new Intel based Mac. Right now I can't afford it nor the cost of replacing all the software. So I must make do with what I have. However, I would like to get the most out of it and so I'm wondering of the g
-
Hyper-V Live Migration Compatibility with Hyper-V Replica/Hyper-V Recovery Manager
Hi, Is Hyper-V Live Migration compatible with Hyper-V Replica/Hyper-V Recovery Manager? I have 2 Hyper-V clusters in my datacenter - both using CSVs on Fibre Channel arrays. These clusters where created and are managed using the same "System Center 2
-
Using Local EJB obect in web container that installed in on the same Web AS
we can use the local ejb object in the application that runs in same JVM. The Web Container and EJB Container run in the same JVM when Web AS installed as Minimum Cluster Installation(one cluster node). But, what happened if we install the Web AS as
-
Hi, As part of an automated Oracle 10g installation I call dbca with a response file using the following switches: dbca -progress_only -sysPassword xxx -systemPassword yyy -responseFile somefile.rsp When I use the option -progress_only I get, at the