Adding parameter to conc. progs by PLSQL
HI,
I have a requirement where I have to add a date parameter to more than 50 conc. progs. I have details for the conc. progs as they all are calling the same executable. As of now i know that it could be only done manually.
Is there any way of doing it by PLSQL? Any inputs would be appreciable.
So, the (plsql) stored procedure that is being called has a newly added (date) parameter and you plan to modify all the concurrent programs which invoke this procedure, is it ?
In that case, rewriting my previous question : Are these concurrent programs in PL/SQL, if so, are they stored procedures or packages or functions ?
Similar Messages
-
How to give a value in Token when Conc prog method registered as pl/sql typ
Hi
We have a report which will generate invoices for a given Operating Unit at one time.i.e Conc Prog1
We have a customised pl/sql package which submits the above report conc prog for all Operating Units with the required parameters for the report.i.e Conc Prog2
When i saw the conc prog2 somehow values has been entered TOKEN field eventhough the conc prog method is pl/sql.this was done earlier than me who developed this intially.
Now i need to include one parameter to this concprog2.when i try to include a parameter to it the TOKEN filed is grayed out(not updatable/eneterable a value).
So could anyone please tell me how i can add a parameter with token value for pl/sql type method conc progs.
Thanks,
MallaHi parag,
You mean to say i have to write like this :--
if (pageContext.getParameter("apply")!=null)
OAApplicationModule am = pageContext.getApplicationModule(webBean);
OAViewObject accountsViewObject =
(OAViewObject)am.findViewObject("ArBusPurAllVO");
if (accountsViewObject!=null)
OARow row = (OARow) accountsViewObject.getCurrentRow();
if (row.getAttribute("GlIdRev") == null || row.getAttribute("GlIdRev").equals(""))
//call your function here and say row.setaatribbute= revenue_acct_id from your function.
if(s8.equalsIgnoreCase("BILL_TO")) {
try {
Connection conn = pageContext.getApplicationModule(webBean).getOADBTransaction().getJdbcConnection();
String Query = "select SDS_CUST_BILL_INFO(:1,2) from dual";
PreparedStatement stmt = conn.prepareStatement(Query);
stmt.setInt(1, orgid);
ResultSet resultset = stmt.executeQuery();
if(resultset.next()) {
String revenuenum = resultset.getString(1);
row.setaatribbute(revenuenum) ;
} catch(SQLException se) {
se.printStackTrace();
throw new OAException("Error in Staffing Query"+se, OAException.ERROR);
if (row.getAttribute("GlIdRec") == null || row.getAttribute("GlIdRec").equals(""))
//call your function here and say row.setaatribbute=rec_acct_id from your function.
if(s8.equalsIgnoreCase("BILL_TO")) {
try {
Connection conn = pageContext.getApplicationModule(webBean).getOADBTransaction().getJdbcConnection();
String Query = "select SDS_CUST_BILL_INFO(:1,2) from dual";
PreparedStatement stmt = conn.prepareStatement(Query);
stmt.setInt(1, orgid);
ResultSet resultset = stmt.executeQuery();
if(resultset.next()) {
String receivablenum = resultset.getString(1);
row.setaatribbute(receivablenum) ;
} catch(SQLException se) {
se.printStackTrace();
throw new OAException("Error in Staffing Query"+se, OAException.ERROR);
super.processFormRequest(pageContext, webBean);
Am I, correct parag please tell me, if this works i will send u mail again that it is working fine .
my mail id is [email protected] -
No parameter view when running "Format Payment Instructions" conc prog
Hello everyone. When submitting the Format Payment Instructions program (when making a payment) I am not asked for any parameters. Previously the program would ask for parameters. Does anyone have any idea why this is happening and what to do about it? Please help.
ThanksHi,
It is a memory or buffer related problem. Contact your BASIS.
Looks like there is a shortage of space. Analyse the dump in ST22 and look for its proposals.
OSS note 965351 might be applicable (if you are on 640/ unix).
regards,
NR -
Syntax error when adding parameter to Subroutine
Hi .
i have added one parameter to perform statement like below.
PERFORM VBAP-POSNR_PRUEFEN(SAPFV45P). (this is previous statement)
PERFORM VBAP-POSNR_PRUEFEN(SAPFV45P) USING SPACE.(thsi is new
statement which i added)
(this is form)
FORM VBAP-POSNR_PRUEFEN USING US_BAPI.
DATA: DA_HIGH_POS LIKE VBAP-POSNR VALUE '900000',
VP_MINPOSNR LIKE VBAP-POSNR VALUE '999999',
VP_MAXPOSNR LIKE VBAP-POSNR.
ENDFORM..
when I trying to activate the fallowing error is giving. Please advise me how to do it.
Function Module Z_SD_SALES_ITEM_MAINTAIN_CRS_1
Parameter error with PERFORM VBAP-POSNR_PRUEFEN(SAPFV45P). The number
of parameters (1) is not the same as the number of parameters in the
first use of this form (0).Hi,
The Perform statement syntax:
PERFORM <subr>
| <subr>(<prog>) [IF FOUND]
|(<fsubr>)[IN PROGRAM (<fprog>)][IF FOUND]
[USING ... <pi>... ]
[CHANGING... <pi>... ]
[ON COMMIT].
Calls an internal or external subroutine <subr> or the subroutine whose name occurs in the <fsubr> field. The external program is <prog> or the name contained in <fprog>. The IF FOUND addition prevents a runtime error from occurring if the subroutine does not exist. The USING and CHANGING additions fill the subroutines parameter interface. The ON COMMIT addition delays the execution of the subroutine until the next COMMIT WORK statement.
Ex:
PROGRAM DEMO.
TABLES SBOOK.
SBOOK-FLDATE = SY-DATUM.
PERFORM FORM1(MYFORMS1).
and two other programs:
PROGRAM MYFORMS1.
FORM FORM1.
PERFORM FORM2(MYFORMS2).
ENDFORM.
and
PROGRAM MYFORMS2.
FORM FORM2.
DATA NAME(20) VALUE 'SBOOK-FLDATE'.
FIELD-SYMBOLS <FS>.
ASSIGN (NAME) TO <FS>.
IF SY-SUBRC EQ 0.
WRITE / <FS>.
ENDIF.
ENDFORM.
The output is:
02.06.1998
Regards,
Bhaskar -
Adding parameter to existing CR report
Hi everybody,
I created a CR report based on a SAP query. Then I changed this query by adding a variable. This variable appeared as a new parameter in Crystal but I can't get values from the master data for this parameter. When I select the InfoObject in the Value Field and try to append database values I get the screen Enter Values where I should enter values not only for the parameter I need but also other parameters. Based on the value entry I'm getting an "Error in file UNKNOWN.RPT; Failed to logon to CR Object Repository; (rptcontrollers.dll)" or sometimes another error "(datadefmodel.dll)".
On the other side, if I try to create new report based on this query everything works fine, values for all parameters are loaded automatically but I don't want to do that if it's not necessary.
I'm using CR 2008 with SP2, Query Designer 7.0.
Thanks,
IvanInfact, The LOV's in the parameters in CR is from infoprovider level , not directly from master data.
what is that you are expecting now? -
Problem when register parameter for conc program through backend
Hi all,
i register the executable and corresponding conc program through backend.
But when i tried to register the parameter from backend using fnd_program.paramter procedure i got many error.
So can any of u guys help me out to find my ways ,how to successfully register parameter thoregh backend.
below mentioned the code i taken
begin
fnd_program.parameter( program_short_name=>'BACK_END_TEST1_CONC_PRO',
application=>'SQLXXXUSER2',
sequence=>1,
parameter=>'DEPTNO',
value_set=>'V11',
required=>'Y',
display_size=>2,
description_size=>50,
concatenated_description_size=>25,
prompt=>'DEPTNO',
token=>'DEPTNO'
END;
please help guys
Thanks,
Tune_to_ursThe fnd_program.parameter call that you have is passing values for all of the necessary procedure parameters. To me, that means that the errors you are getting are related to the data that you are passing into the call.
Possible errors with the values you are passing (I cannot tell because I don't know what data you have in your environment) are:
- invalid program short name
- invalid application name (needs to be the full application name rather than the short name)
- parameter with same sequence already exists
- value set does not exist
- you can only specify tokens for certain types of concurrent programs (ie Oracle Reports)
Just running the anonymous PL/SQL block like you have shown, the errors that are preventing it being saved should be displayed. -
Problem in adding parameter in selection screen
Hi,
I am trying to add a parameter on the selection screen of a standard transaction(EG90 in ISU system).I added it through enhancement point but i am not getting how to maintain text for that parameter.As it is a standard transaction when i am going to goto->selection text and trying to maintain it,it is asking for the access code.Do i have any option for it or i should go for zcreation of the transaction.
Mukesh KumarHi,
unfortanly you need to enter an access code if you want to change somethink in standard without user-exit.
So....you need to create a z-transaction, if you want to add it.
Regards
Nicole -
How pass a parameter with forward slash to plsql script
Hi,
I am trying pass a parameter to plsql script from command line using sqlplus, and the parameter is a file directory and has '/'. Seems the system couldn't recognize the value.
here is my code in DECLARE:
l_FileDir VARCHAR2(200) := &&FileDir ;
I pass value '/usr/tmp' (with the single quote in the string)
Can someone tell me how I do it?
Thanks,
Kate
Edited by: user12100435 on Feb 25, 2010 8:31 AMuser12100435 wrote:
I think you are right. The issue is not file-separator character issue. because the exact same script run in another envoironment. And it's not file directory or permission issue because if I use hardcoded value, the code works fine.
The error message is invalid File directory.
Here is the related part of the code.
-- open file handler
IF UTL_FILE.IS_OPEN(l_FileHandler) THEN
UTL_FILE.FCLOSE(l_FileHandler);
ELSE
l_FileHandler := UTL_FILE.FOPEN ( location => l_FileDir,
filename => l_FileName,
open_mode => 'W',
max_linesize => 32767 );
END IF;Ok, based on your input so far, I have cooked up a simple testcase.
Make sure you are doing something similar to this -
test@XE>
test@XE> -- show the contents of the anonymous PL/SQL script
test@XE> -- You are probably passing two parameters - the file location and the file name
test@XE> --
test@XE> ! cat test5.sql
DECLARE
l_FileHandler UTL_FILE.FILE_TYPE;
l_FileDir VARCHAR2(200) := '&1' ;
l_FileName VARCHAR2(200) := '&2' ;
BEGIN
-- open file handler
IF UTL_FILE.IS_OPEN(l_FileHandler) THEN
UTL_FILE.FCLOSE(l_FileHandler);
ELSE
l_FileHandler := UTL_FILE.FOPEN ( location => l_FileDir,
filename => l_FileName,
open_mode => 'W',
max_linesize => 32767 );
UTL_FILE.PUT_LINE(file => l_FileHandler, buffer => 'Hello, World!');
UTL_FILE.FCLOSE(file => l_FileHandler);
END IF;
END;
test@XE>
test@XE> -- execute it
test@XE> @test5.sql '/usr/tmp' 'first.txt'
old 3: l_FileDir VARCHAR2(200) := '&1' ;
new 3: l_FileDir VARCHAR2(200) := '/usr/tmp' ;
old 4: l_FileName VARCHAR2(200) := '&2' ;
new 4: l_FileName VARCHAR2(200) := 'first.txt' ;
DECLARE
ERROR at line 1:
ORA-29280: invalid directory path
ORA-06512: at "SYS.UTL_FILE", line 33
ORA-06512: at "SYS.UTL_FILE", line 436
ORA-06512: at line 10
test@XE>
test@XE> -- Create a directory object that points to "/usr/tmp"
test@XE> create directory log_dir as '/usr/tmp';
Directory created.
test@XE>
test@XE> -- now invoke the script
test@XE> -- Note - I pass the value "LOG_DIR" in uppercase. That's the name of my directory object.
test@XE> --
test@XE> @test5.sql 'LOG_DIR' 'first.txt'
old 3: l_FileDir VARCHAR2(200) := '&1' ;
new 3: l_FileDir VARCHAR2(200) := 'LOG_DIR' ;
old 4: l_FileName VARCHAR2(200) := '&2' ;
new 4: l_FileName VARCHAR2(200) := 'first.txt' ;
PL/SQL procedure successfully completed.
test@XE>
test@XE> -- Since my Oracle client is on the same machine as the Oracle server, I can check
test@XE> -- this file "/usr/tmp/first.txt" quite easily
test@XE>
test@XE> ! cat /usr/tmp/first.txt
Hello, World!
test@XE>
test@XE> isotope -
Hi adding code in standard prog
hi
i am adding code in standard program J_1IEWT_CERT. in that there is include
J_1IEWT_CERT_F01.
there is standard prog internal table printtab.
i am trying to pass printtab data into wa_printtab, but it not going into wa_printtab.
i writing following code:
loop at PRINTTAB into itab_printtab.
move ITAB_BKTXT-BKTXT to itab_PRINTTAB-cheque_no.
modify printtab from itab_printtab index 1.
endloop.
first data is not going into itab_printtab by loop syntax and it is not modifying as well.
pl help me as soon as possible.
thanx
rockyHi,
try this its working for me.
REPORT ZKEERTHITEST.
tables: mara.
DATA: BEGIN OF IT_MARA occurs 0,
MATNR TYPE MARA-MATNR,
ERSDA TYPE MARA-ERSDA,
ERNAM TYPE MARA-ERNAM,
MTART TYPE MARA-MTART,
END OF IT_MARA.
data: wa_mara like line of it_mara.
select matnr ersda ernam into corresponding
fields of table it_mara up to 5 rows from mara.
loop at it_mara into wa_mara.
wa_mara-mtart = 'FERT'.
modify it_mara from wa_mara index 1.
endloop.
regards,
keerthi -
Error while opening conc prog output
Hi,
I installed R12 on windows xp. i want to check whether conc programs are working fine or not. so i submitted Active users program using sys admin resp
program got errored out and when i try to check log of the program i got an error saying that
Oracle error -600: ORA-00600:internal error code,
arguments: [13310],[],[],[],[],[],[],[],[],[]
has been detected in find_webfile.create_id
then when i click ok i am getting error saying that
500 internal server error
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, ohs_admin@com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Please help me
Thansk
BalaBala,
What is OS? Is it XP Professional edition or Home edition?
Can you find any errors in the database log file?
Are the concurrent manager and the application listener up and running?
Do you have any Antivirus software installed on the same machine? If yes, disable it and see if you get the same message or not.
Check the status of find_webfile and make sure it is valid. Also, review the following document and see if it helps.
Note: 153788.1 - Troubleshoot an ORA-600 or ORA-7445 Error Using the Error Lookup Tool
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=153788.1
Regards,
Hussein -
Error while adding Parameter Field to CrossTab report in CR 2008
Hello Experts,
I'm getting an error - "Not supported" while I'm trying to add a paremeter to the Crosstab report. It is a simple report with no further complications.
Is there any special way to add a parameter field to Crosstab? Any help appreciated.
TIA
arjunHi,
What version of Crystal Report are you using?
Kindly refer SAP Note 1376117 & 1454192 and verify if you are on the approriate patch.
Regards,
Nakul -
Invalid filename from Format Payment Instruction with Text Output conc prog
hi there
we are using EBS 12.1.3 and when producing an EFT file using the Format Payment Instruction with Test Output concurrent program, we are getting a file with an extra ".out" extension
for exampe DE_CE_o81527.out.out.
Seems like the IBY Payments Engine is using the concurrent program output file name and appending it to the prefix we have given.
Anybody know of bug or patch for this. I have looked and looked in Meta-link without success. Its geting urgent now. Any help will be appreciated.
here is an extract of logfile:
length of the output - baos::488
After formatting, periodicSeq is null or empty.{}Timestamp: Tue Mar 12 14:21:15 EST 2013
length of the output - baos::488
Exit: iby.scheduler.FDFormatProgramUtils.doExtractAndFormatCommon()Timestamp: Tue Mar 12 14:21:15 EST 2013
Saving format output.
Enter: iby.scheduler.FDExtractAndFormatting.queryFileSysAttributes
Querying file system output attributes
ppDir: null
ppExt: null
ppPre: null
File system output settings that override the concurrent program default: {}
Exit: iby.scheduler.FDExtractAndFormatting.queryFileSysAttributes
Enter: iby.scheduler.FDFormatProgramUtils.saveToFileSystem()
Concurrent request output file name: /u02/oracfg/EZCFGEBS/inst/apps/EZCFGEBS_ezi-cfg-ebs-001/logs/appl/conc/out/o881527.out
Opened file in append mode: /u02/oracfg/EZCFGEBS/inst/apps/EZCFGEBS_ezi-cfg-ebs-001/logs/appl/conc/out/o881527.out
Exit: iby.scheduler.FDFormatProgramUtils.saveToFileSystem()
While savingoutput - m_instructionID : 11362
Enter: iby.scheduler.FDExtractAndFormatting.saveFormatOutput()
Mar 12, 2013 2:21:15 PM oracle.adf.share.config.ADFConfigFactory findOrCreateADFConfig
INFO: oracle.adf.share.config.ADFConfigFactory No META-INF/adf-config.xml found
ENTER
Getting attached document ID
Parameters passed ...
pkValues[0] : 11362
Returned values ...
attachedDocId : -99
Format output not exist. Saving it.
Before savingoutput - m_instructionID : 11362
ENTER
Saving document as attachment
Parameters passed ...
pkValues[0] : 11362
fileName : o881527.out
Returned values ...
attachedDocId : 60328
EXIT
After savingoutput - m_instructionID : 11362
Saved attachment doc id: 60328
Exit: iby.scheduler.FDExtractAndFormatting.saveFormatOutput()
After buildingoutput - m_instructionID : 11362
End Timestamp::Tue Mar 12 14:21:16 EST 2013
Exit: iby.scheduler.FDExtractAndFormatting.doExtractAndFormat()
Instruction status was CREATED, the instruction is set to transmit immediately and the transmission configuration is available. Starting transmission.
Enter: iby.scheduler.FDExtractAndFormatting.doTransmission()
Enter: iby.scheduler.FDFormatProgramUtils.getCPFilename()
got CP outfile_name: /u02/oracfg/EZCFGEBS/inst/apps/EZCFGEBS_ezi-cfg-ebs-001/logs/appl/conc/out/o881527.out
Exit: iby.scheduler.FDFormatProgramUtils.getCPFilename()
Enter: iby.scheduler.FDFormatProgramUtils.doTransmission()
Created ByteArrayInputStream containing the format output.iby.scheduler.FDFormatProgramUtils.doTransmission()
Start transmission.iby.scheduler.FDFormatProgramUtils.doTransmission()
Exit: iby.scheduler.FDFormatProgramUtils.doTransmission()
Transmission successful. So setting result status to TRANSMITTED
Enter: iby.scheduler.FDExtractAndFormatting.postResults()
Executing BEGIN IBY_FD_POST_PICP_PROGS_PVT.post_results(:1, :2, :3, :4); END;
Successfully executed PL/SQL.
Exit: iby.scheduler.FDExtractAndFormatting.postResults()
Exit: iby.scheduler.FDExtractAndFormatting.doTransmission()
Exit: iby.scheduler.FDExtractAndFormatting.runMainLogic()
End of Main logic: Tue Mar 12 14:21:16 EST 2013I had logged an SR on this, Oracle was able to reproduce and created bug 17483136 . It's still being worked on my development.
-
Adding parameter to a MySQL query in MS SQL Server Report Builder
So I have a MySQL DB connected to MS SQL Server Report Builder via ODBC connector. Everything is fine, I can execute queries and put the fields into report.
But I can't add an parameter to the query.
Example query:
SELECT column1, column2 FROM table WHERE column3 = (@parameter1)
The result set is just empty. I think the problem is that I'm using MySQL and not MS SQL. Any suggestion?Hello Alan,
Named parameters like @param works with SQL Server / .NET data provider, but not for OleDB, here you have to use the question mark instead
SELECT column1, column2
FROM table
WHERE column3 = ? and column9 = ?
When you assign the report parameter to query parameter you have to take care about the order of used ? in query
Olaf Helper
[ Blog] [ Xing] [ MVP] -
Workflow Issue - Adding parameter to my decision step.
Hi
I am working on workflow and in decision step there are 4 parameters that I can use for Title. I have a requirement of 6 parameters. Is there any way in which I can add another parameter to my Decision step.
Himanshu Verma.
Patni Knowledge Park, India.Would it be possible for you to concatenate the values of two parameters into one in a previous step?
Or even having only one parameter and a previous step that generates the full title you want to display...
Data element is SWD_PARAM1 which is CHAR255, long enough for holding a custom title.
Hope that helps,
Andres. -
Post Author: scd07
CA Forum: Formula
Hi, I'm trying to add my "first ever" paramter field. I want to add Customer ID so users can select the appropriate Customer ID. If I add a static parameter, and insert into the report without selecting anything else, I can manually type in any Customer ID and it will come up. However, if I try to "Append all database values" to create a drop-down, I only get the first 1/3 of our customers. Is this a limitation in the number of values? I wanted to be able to allow users to select multiple customers, and the drop down would make it much easier than having to look up Customer IDs.
Any and all help is GREATLY appreciated! Thanks,
SCD07Post Author: SKodidine
CA Forum: Formula
see this kbase article:
http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2006602&sliceId=&dialogID=596571&stateId=1%200%20598247
Maybe you are looking for
-
HD-DVD created with DVDSP will not use more than one subtitle track
I have made an HD-DVD with DVD Studio Pro 4.1.2, and added 4 subtitle tracks. When I play the dvd on a Toshiba A1, Apples DVD player and in the emulator I can change the subtitle track in the way that I can see the country code is changing, but no ma
-
after assigning sum to a column, I cannot find a way to disable or delete the function.
-
Oracle XML vaidation causes database connection lost.
Schema document: <?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xsd:annotation>
-
firefox won't run
-
I downloaded Yosemite and now I have lots of pop ups and my safari isn't working correctly. How do I remove Yosemite?