Using a StoredProcedure with OUT parameters in CrystalReports
Hi All,
I am creating a report using CrystalReport Designer 2008.I have a StoredProcedure which takes 2 input parameters,2 output parameters and a cursor.I am not able to add this SP directly using the DatabaseExpert. if I use
'call SP1(input1,input2,input3,input4,@output1,@output2)' from AddCommand option then it gets added as a Command but the tree under Command does not expand and it does not allow me to use the output parameters in my reports.
Hence,can anyone please help me here such that how should I use this SP with out parameters in my CrystalReports.Also note that I am able to use StoredProcedure with only input parameters,with input parameters and cursor in my CrystalReports.Should I do something extra to add this StoredProcedure in my CrystalReports?
Any help for this issue would be highly appreciated.
Regards.
Ajit
Ajit,
If you are using a Command, you execute a SP in CR with the same syntax that you would in the databases native environment.The only difference is that you'll need to add CR parameters so that the inputs can be added to the SP's input parameters.
So, using your example... 'call SP1({?input1}, {?input2}, {?input3} , {?input4}, output1, output2)'
I'm not familiar with this particular syntax but hopefully you get the idea.
If you want to hard code the input parameters (and not have them prompt in CR), just hard code them in the command.
HTH,
Jason
Edited by: Jason Long on Aug 25, 2010 2:15 PM
Similar Messages
-
Can T420 use 3 display with out a dock.
Can T420 use 3 displays with out a dock.
One on a laptop display, one via VGA port and another one via DISPLAY port.
I use T420 4178-BYT with Intel HD Graphic 3000 (no nvidia).You have to re-activate it with the original sim card, or one from the same carrier it's locked to (unless it's not locked, then any GSM sim card will do). The sim card itself doesn't have to be activated, it just has to be the correct one and be inserted. After that you can use it as an iPod Touch. See http://support.apple.com/kb/HT3406.
-
How to use NODIM func with out it's values being rounded
I created a new calculated key figure in Query Designer 3.x, and used the function NODIM() - Value with out dimensions. When I use this function, the values are rounding off to the nearest value.
For example, I have a value 0.000075 US$, when I use NODIM function the value is displayed as 0.000080. Value is getting rounded to nearest value.
I tried using absolute value it did not work.
Can any one tell me how to use NODIM function with out it's value being rounded to nearest value.
Thanks,Hi,
According to your description, you might want that "Notice" field has a default value when form is created and users can be able to change the value of that
field.
As a workaround, you can add an action rule in “Name” field via InfoPath to fill the default value in “Notice” field only when “Name” field is not blank and “Notice”
field is blank.
Settings of the rule are as below, you can modify it based on your need:
Here is a link about how to add an action rule in InfoPath form, you can use it as a reference:
https://support.office.microsoft.com/en-us/article/Add-rules-for-performing-other-actions-5322d726-b787-4e5f-8d37-ba6db68b451d?CorrelationId=8a64c12f-aa60-4d90-b1f9-a44fcc4e74b5&ui=en-US&rs=en-US&ad=US
Best regards
Patrick Liang
TechNet Community Support -
Is it possible to retrieve data using RFC alone with out using BAPI ?
Hi ,
Is it possible to connect SAP to Non-SAP systems to retrieve data using RFC alone with out using BAPI ?
thanks
RamaHello Nelson,
Could you please explain how this can be done. Because my understanding is that only BAPI can be used to connect Non SAP and SAP system not RFC function module.
Regards
Farzan -
I am unable to use my keyboard with out a delay, how do I fix this
I am unable to use my keaboard with out a delay. How do I fix this?
when just using safari to watch streaming television, my computer gets really slow, and locks up, and the dock appears blank
Please read this whole message before doing anything.
This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, or by a peripheral device.
Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output andWi-Fi on certain iMacs. The next normal boot may also be somewhat slow.
The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test. -
Can i use 2D API with out using JRE.
hi,
can i use 2d API with out using JRE 1.3 .
please reply
raviYes, it was (still is?) supported in Java 1.2 - but no
earlier.How is it done.can u please give some sample code.
Thanks and regards,
Ravikumar -
Can i use photoshop touch with out internet photoshop in off line
can i use photoshop touch with out internet photoshop in off line
If the question was if you could use PS Touch without Internet access, yes. I do it all the time.
-
Executing procedures with OUT parameters using Named notation
I have a procedure with two out parameters (p_errortext and p_returncode) and i want to execute this proc in SQL*plus using named notation(using association operator ' => '). For position based execution i usually declare variables to hold the OUT parameter's value. But how can i do this while executing using named notation (using => )
begin
packagename.generate_ref_record(p_userid => 'THELMA',
p_ref_code => '9A',
p_item_id => '9990000011163',
p_shipno => '0PH',
p_errortext => ??
p_returncode => ??);
end;SQL>variable x varchar2(30);
SQL>variable y varchar2(30);
SQL>exec packagename.generate_ref_record(p_userid => 'THELMA',
p_ref_code => '9A',
p_item_id => '9990000011163',
p_shipno => '0PH',
p_errortext => :x
p_returncode => :y); -
Executing sql server procedure from oracle via db link with out parameters
HI
we have successfully created the link between oracle and sql server via DB LINK also able to access table from the
sqlserver via dblink
Can any one tell me how to execute procedure with 1 input and 4 out parameters from pl\sql
is it possible using
dbms_hs_passthroughYou should be able to call it like you would any other procedure:
dbo.procedure_name@dblink(parameter_list); -
Procedure with OUT Parameters - Creating A Report
I have the following procedure that is used in our internal (non-APEX) apps:
PROCEDURE SelIssueActivityPublic (
p_results OUT SYS_REFCURSOR,
p_IssueID IN ems.issue.issue_id%TYPE,
p_TransactionID OUT VARCHAR2
) The body of the procedure does a bunch of processing, and inserts data into a staging table. The cursor OUT parameter then returns a SELECT statement from the staging table. Since it's possible for this procedure to be hit multiple times (multiple users), the transaction ID is used to match the data in the staging table to the correct request. The procedure then deletes the data from the staging table. (I'll post it if necessary, but it's quite long, and since it's used in other applications successfully, I don't believe it's relevant to my issue.)
I have been asked to create an APEX report of the data generated by the procedure. I've never used a procedure with an OUT parameter to set up a report. I was hoping to assign the transaction ID to a hidden variable on page load, and then using it to poplulate the report. I'm not interested in the cursor OUT parameter, I've written my own SELECT statement to grab data from the staging table.
I tried to create a page computation that did this - item :H_P19_TRANSID, Before Header, computation = EMS.EMS_READER.SelIssueActivityPublic(:H_P19_CURSOR, 454551, :H_P19_TRANSID) [454551 is a test issue id], but I get the following error: ORA-06550: line 1, column 43: PLS-00222: no function with name 'SELISSUEACTIVITYPUBLIC' exists in this scope ORA-06550: line 1, column 7: PL/SQL: Statement ignored flowComp=H_P19_TRANSID
Error ERR-1030 Error executing computation expression. It seems to be thinking that SelIssueActivityPublic is a function, and I'm not sure why.
Basically I need to know how to use this existing procedure to set up my report. Once I can get the transaction ID into a page item, I'll be set.I never got a chance to finish this report, as I was shuffled to something else with a higher priority. Now that I'm coming back to it, I still have a few issues.
I created a new function that does all the processing (inserting into the staging table etc.), and returns the transaction id. I then tried to set up a page computation on a hidden item to run this function and store the transaction id.
In the computation, if I put
reader.SelIssueActivityPubnocursor(:H_P19_ISSUEID); as the computation, I get ORA-06503: PL/SQL: Function returned without value flowComp=H_P19_TRANSACTIONID as an error. If I put return return reader.SelIssueActivityPubnocursor(:H_P19_ISSUEID); as the computation, I get ORA-06550: line 1, column 50: PLS-00103: Encountered the symbol "EMS" when expecting one of the following: . ( * @ % & = - + ; < / > at in is mod remainder not rem <> or != or ~= >= <= <> and or like like2 like4 likec between || multiset member submultiset The symbol "." was substituted for "EMS" to continue. flowComp=H_P19_TRANSACTIONID as the error. Can someone tell me what's going wrong? -
Error when using Analytic view with Input Parameters
Hi,
I am trying to create an info space based on my Analytic view which has input parameters. The infospace is validated and indexed without any issue. However when I ran the view, I get an error (50011) as it is unable to fetch any results. I tried using an infospace based on Calculation view with input parameters and the explorer view works without any issue.
Has anyone faced similar issues?
We are using HANA SP 6 rev 67 and BI 4.0 SP 4.
Also is there a way to enable input prompts for the users when they refresh the BO Explorer view? If not currently available is there any work around ?
ThanksHello George,
I don't have any personalization set on the info space. Also I am using mapped Account in BI to connect to HANA. The confusing part is that it is able to validate the infospace with the input parameters and index it. However query does not return any results. I even tried running the same query which explorer sends to HANA in the SQL editor and there too the same results,the query does not return anything. The model does return data when I do a data preview and if accessed from other tools like AAO.
Also when I use SSO connection to HANA, indexing of the infospace fails. Where can I see the error log?
Thanks, -
How to poll a blob using db adapter, with outer joins condition
Hi All,
We are trying to poll tables which contain column types as long and blob, we are using relationships in adapter and kept outer joins. by this we got select distinct t1.document .....etc
distinct keyword cannot be used for blobs.
is there any way to poll these tables having blob column types with outer joins.
thanks a lot in advance,
RRHi,
Procedure will be an explicit Invoke not Polling. If you can alter you design such that your BPEL process instead of polling gets triggered by some external entity (Java, PL/SQL, Scheduler, another BPEL etc.), you can put the data fetching logic in the procedure and call this procedure from your BPEL process to get the data. And your BPEL process is called periodically at an interval by an external entity.
Also see if you can restrict the duplicate records at the database level itself. Polling, AFAIK, is limited in terms of customization and wouldn't be easy to customize. However, would like to learn a way if someone has.
Regards,
Neeraj Sehgal -
Time Zone Conversion with out using function and with out alter
Hi All,
I am able to see 1Hr difference in my date fields of SQL output because in UI (User Interface) date field was stored in BST format but DB time zone is in GMT format so can any one help me to find a solution for 1 hr difference, here i don't have Privileges to alter DB time zone and i couldn't use function as i have so many SQL's and can't apply that function manually. SO is there any other option to change the DB time zone with out alter it and with out using function.
Thank you Very Much.Hi,
you need to set time zone in your session, let's do an example :
alter session set nls_date_format='DD/MM/YYYY HH24:MI:SS';
CREATE TABLE USERA.T
SDATE DATE DEFAULT sysdate,
WITHOUT_TZ TIMESTAMP(6) DEFAULT sysdate,
WITH_TZ TIMESTAMP(6) WITH TIME ZONE DEFAULT sysdate,
WITH_LZ TIMESTAMP(6) WITH LOCAL TIME ZONE DEFAULT sysdate
insert into USERA.T(sdate) values(sysdate);
commit;
select * from USERA.T;
SQL> select * from system.t;
SDATE
WITHOUT_TZ
WITH_TZ
WITH_LZ
26/09/2013 11:04:23
2013-09-26-11.04.23.000000
26/09/13 11:04:23,000000 +00:00
2013-09-26-11.04.23.000000
SQL> alter session set TIME_ZONE ='-7:0';
Session altered.
SQL> select * from system.t;
SDATE
WITHOUT_TZ
WITH_TZ
WITH_LZ
26/09/2013 11:04:23
2013-09-26-11.04.23.000000
26/09/13 11:04:23,000000 +00:00
2013-09-26-04.04.23.000000 -
How to use i cloude with out wifi
How to use icloude with out wifi. I never backed my contacts up in iclode, and now my wifi does not work.
icloud is on the internet to be able to use it one have to have an Internet connection over wifi or over 3g
-
I have four email addresses and would like to be able to have them available with out having to sign in and sign out each time I want to use a different one. I tried Windos live but found it cumbersome and not efficient or without errors. I was told Fire Fox allows this for this - does it?
Jon WhanFirefox doesn't allow multiple simultaneous logons to the same server due to cookies. Try one of these extensions for multiple cookie sessions.
Multifox: <br />
http://br.mozdev.org/multifox/ <br />
Cookie Swap extension: <br />
https://addons.mozilla.org/firefox/3255/ <br />
Cookie Pie extension: <br />
http://www.nektra.com/oss/firefox/extensions/cookiepie/
Maybe you are looking for
-
Can I have one apple ID and two iCloud accounts for different devices.
can I have one apple I'd and numerous iCloud accounts for different devices?
-
Runtime error RFC_NO_AUTHORITY has occurred in SM58
Hi Guys, We are posting some IDocs from SAP R/3 ECC to XI and they get stuck in SM58 with error: "Runtime error RFC_NO_AUTHORITY has occurred" Do you have any ideas what this might be ? Does this have to do with the user that executes the program to
-
OK, stupid move -- I didn't have a backup of my apps and the iOS upgrade process failed (I think because it was upgrading iTunes at the same time). So all my apps are gone and I have to redownload and reinstall them. They're in my app purchase hist
-
Just recently got a new hard drive because old one friend within 8 months and ordered the 15$ recovery disk and every time I go to restore the files onto the new hard drive it stops on 47% and then pops up with a copy file fails then it says to retry
-
For many years my office has used Chronos Systems Group Organizer to share a calendar which can be viewed and annotated by all members. It is no longer supported on all of our machines/systems and I have not yet found anything that will easily replac