How to pass a parameter in this procedure?
Hi all
I'm using oracle 11g.
I have it here is the procedure.
I need same procedure that accepts the name of_/ user Id of the useras a parameter and updates the infocenter reorganization for the particular user.
create or replace
PROCEDURE MS_SRA_UPDATE_USER_INFO_ORDER (p_user_id number,
o_error_code ON the NUMBER,
o_error_message OUT VARCHAR2)
as
PRAGMA AUTONOMOUS_TRANSACTION;
BEGIN
update of outdoor play of SI_USER_INFOCENTER_T (default_infocenter_flag, display_order) =)
Select case when Claude = 1 then 'Y' else ' end flag n, Claude of
(
Select user_id, infocenter_name, default_infocenter_flag,
ROW_NUMBER() over (partition by user_id stopped by)
CASE INFOCENTER_NAME
When 'A' then 1
WHEN 'B' THEN 2
WHEN 'C' THEN 3
WHEN ' THEN 4
WHEN 'E' THEN 5
When "F" then 6
When 'G' THEN 7
Of OTHER display_order
Gladys END)
OF SI_USER_INFOCENTER_T
) internal
WHERE INNER. USER_ID = EXTERNAL. USER_ID AND INNER.INFOCENTER_NAME = OUTER.INFOCENTER_NAME
)
WHEN USER_ID NOT IN (SELECT
user_id
OF MS_SRA_USER_ORG_ROLE_ACT_V
WHERE
ORG_ENTITY_ID =
(SELECT ORG_ENTITY_ID FROM SI_ORG_ENTITIES_T WHERE ORG_ENTITY_NAME = 'F'
));
O_ERROR_CODE: = 0;
O_ERROR_MESSAGE: = NULL;
COMMIT;
EXCEPTION
WHILE OTHERS THEN
O_ERROR_CODE: = SQLCODE;
O_Error_Message: = Sqlerrm;
END MS_SRA_UPDATE_USER_INFO_ORDER;
I need same procedure that accepts the user Id/username as a parameter and updates the infocenter reorganization for the particular user.
Thank you
Dale
Hello...
I do not understand your question... Something like that
CREATE OR REPLACE
PROCEDURE MS_SRA_UPDATE_USER_INFO_ORDER (p_user_id, NUMBER of)
o_error_code ON the NUMBER,
o_error_message OUT VARCHAR2)
AS
PRAGMA AUTONOMOUS_TRANSACTION;
BEGIN
UPDATE SI_USER_INFOCENTER_T outer_qry
SET (default_infocenter_flag, display_order) =
(SELECT CASE WHEN epimachos = 1 THEN 'Y')
ANOTHER "N".
Flag of END,
Claude (SELECT user_id,
infocenter_name,
-default_infocenter_flag,
ROW_NUMBER() over (PARTITION BY user_id ORDER BY
CASE INFOCENTER_NAME
WHEN 'A' THEN 1
WHEN 'B' THEN 2
WHEN 'C' THEN 3
WHEN ' THEN 4
WHEN 'E' THEN 5
WHEN "F" THEN 6
WHEN 'G' THEN 7
Of OTHER display_order
Gladys END)
OF SI_USER_INFOCENTER_T
WHEN USER_ID = p_user_id) inner_qry
WHERE inner_qry. User_id = outer_qry. USER_ID
AND inner_qry.INFOCENTER_NAME = outer_qry.INFOCENTER_NAME
)
WHERE USER_ID = p_user_id
AND NOT EXISTS (SELECT 1
MSU MS_SRA_USER_ORG_ROLE_ACT_V
WHERE ORG_ENTITY_ID = (SELECT ORG_ENTITY_ID FROM SI_ORG_ENTITIES_T WHERE ORG_ENTITY_NAME = 'F')
AND msu.user_id = outer_qry. USER_ID
AND msu.user_id = p_user_id);
O_ERROR_CODE: = 0;
O_ERROR_MESSAGE: = NULL;
COMMIT;
EXCEPTION
WHILE OTHERS THEN
O_ERROR_CODE: = SQLCODE;
O_Error_Message: = SQLERRM;
END MS_SRA_UPDATE_USER_INFO_ORDER;
Tags: Database
Similar Questions
-
How to pass the parameter to the script for interface/Package in ODI
Hello
Yesterday I asked a question how to pass a parameter to run the script interface or the procedure?
I don't know if it's possible.
Any clarification will help you.
Kind regards
Mahesh
Mahesh, why not try this in your machine? This will give you more clarity and confidence.
ODI has always check if there is any variable used inside an object regardless of the interface or procedure or package. So whenever you generate the script, you will be asked to select the boot parameters. She's. Whenever you use this scenario, make sure you that you add the variables in the additional variables section of the Properties tab.
So answer is that it is possible.
Bravo!
-
How to pass the parameter of workflow
As being new owb, I'm still trying to figure out how to pass a parameter through workflow.
I have this map with an input parameter, and I included this mapping in this workflow. I wonder how to pass a parameter value for this workflow and bind it to the mapping?
~ PrabhaPrabha,
Select the activity start then in the Explorer window (in the left upper corner of the process editor) on green sign more for adding parameter processflow.
Enter the name of the parameter and specify the type of data (perhaps by default).
Select your map, and then in the Exporer window click parameter mapping entry.
now the object details window, you can bind the input parameter to the parameter processflow with change of binding propertyKind regards
Oleg -
Passing a parameter to the procedure of employment
Hello
I want to create a job whose action is a procedure with parameters. How to pass parameters to a procedure for a job?
The message does not help. Try the same thing in a SQL or SQL worksheet * more:
BEGIN
SYS. () DBMS_SCHEDULER.set_job_argument_value
job_name => ' 'owner '. "" no "'.
argument_position-online 1
argument_value => 'good');
END;
/
PS: same comment as I posted a few minutes there is a topic in this forum. I encourage you not to use double quotes to name objects, it often leads to problems and errors.
-
How to pass the parameter of column in a table of trinidad to the next page?
Hello
In fact, we work with trinidad tables and forms on our pages snce we will deploy to mobile.
I saw a video shared by Shay, parameter passing between pages with adf components - the column was converted to create a link, then it a setProperty earphone is placed on the table to catch the parameter.
How can do us same with paintings of the Trinity? I do not see any place to convert the column link, but in vain.
I tried to use a radio button select with the table, but I do not know how to extract the value of this.
Please provide your valuable suggestions on this.
ConcerningHello
If you go to the source of table view you see something like
TR:column containing--> tr:outputText
You would simply change the tr:outputText to tr:commandLink
Frank
-
Pass a parameter to a procedure of inserting the order...?
Hi all
I have a requirement where I need to pass the input parameter of the procedure for the insert inside the procedure command...
My procedure continues like that...
PROCEDURE pmproc_1)
A IN VARCHAR2,
B IN VARCHAR2,
C IN VARCHAR2
)
AS
BEGIN
INSERT INTO my_table
(number , activity, fact )
SELECT the number , activity, fact
Of abcd_actv_tbl
Activity WHERE =
AND > = B
AND number = C;
COMMIT;
NULL;
END pmproc_1;
My requirement is that I need to pass the input parameter C to a column in my table which is my_table
so that it becomes...
INSERT INTO my_table (number , activity, , (HERE I NEED to GET THE VALUE of 'C' ) )
SELECT the number , activity, fact
Of abcd_actv_tbl
Activity WHERE =
AND > = B
AND number = C;
Please let me know if I'm unclear...
Thanks in advance...
DEV
Based on what you have provided, I would say that something as simple as:
INSERT INTO my_table (number activity ,c_column )
SELECT the number is, c
Of abcd_actv_tbl
Activity WHERE =
AND > = B
AND number = C;
-
How to pass the parameter DATE to a DBMS_JOB package
create or replace procedure proc_day as
number of l_job;
Start
dbms_job. Submit (l_job,'pro_duration_alarms_daily(''05/09/2012'') ;');)
dbms_job. Submit (l_job,'pro_duration_alarms_daily(''05/10/2012'') ;');)
dbms_job. Submit (l_job,'pro_duration_alarms_daily(''05/11/2012'') ;');)
COMMIT;
end;
When calling the above procedure, it gives the following error message, what's not here
ERROR on line 1:
ORA-06550: line 1, column 93:
PLS-00306: wrong number or types of arguments in the call to
'PRO_DURATION_ALARMS_DAILY '.
ORA-06550: line 1, column 93:
PL/SQL: Statement ignored
ORA-06512: at "SYS." Dbms_job", line 82
ORA-06512: at "SYS." Dbms_job", line 140
ORA-06512: at "ORPHEUSNZ. PROC_DAY', line 4
ORA-06512: at line 1
What's not here.. ? in case of normal use, I'll call the procedure as below
exec pro_duration_alarms_daily('05/09/2012');Describe exactly "does not work".
Now maybe YYY YYYY not for example?
Show us the arguments to this procedure if there is a procedure.
In addition, you must wrap a procedure with a call "begin... end; ' when calling DBMS_JOB.
that is assuming that pro_duration_alarms_daily is a procedure that accepts a single parameter DATE so
dbms_job.submit(l_job,' begin pro_duration_alarms_daily(to_date(''05/09/2012'',''MM/DD/YYYY'')) ; end;');
Is what version?
No reason DBMS_JOB not DBMS_SCHEDULER that offers more flexibility?You can test this out DBMS_JOB quite easily.
It work?
begin pro_duration_alarms_daily(to_date('05/09/2012','MM/DD/YYYY')) ; end;
If this isn't the case, then you can understand why without DBMS_JOB being in the picture.
Published by: Dom Brooks on July 19, 2012 11:55
-
How to pass the parameter one form to another form?
Hello
I want to pass the parameter one form to another form called.
What are the steps I want to do.
Please guide me
Iqbal
Published by: Sabrina on July 21, 2010 23:38You want to see this link...
sheikyerbouti.developpez.com/forms/Forms_Parameters.doc
-
I have one of my Macbookpros that has a broken screen. How to pass the program Adobe of it ti that I have Mac?
Download/install the desktop application, connect and install applications subscription.
https://helpx.Adobe.com/creative-cloud/help/download-install-app.html
-
How to pass the variable in a procedure as parameter
CREATE OR REPLACE PROCEDURE APPS. "" QFJS_LMO_TIMESLOT_PROC ".
(
a_std IN VARCHAR2,
TYPE str_table IS TABLE OF CLOB directory INDEX;
timeStr OUT str_table;
)
It's in error!
Help, please!That's what you're looking for? (you can also create the type of your database)
CREATE OR REPLACE PACKAGE APPS.MY_PACKAGE AS PRAGMA SERIALLY_REUSABLE; TYPE str_table IS TABLE OF CLOB INDEX BY BINARY_INTEGER; PROCEDURE "QFJS_LMO_TIMESLOT_PROC"(a_std IN VARCHAR2, post_std IN VARCHAR2, a_time IN VARCHAR2, post_hc IN NUMBER, pre_hc IN NUMBER, ods_schedule_date IN DATE, timeStr IN OUT str_table); END MY_PACKAGE; / CREATE OR REPLACE PACKAGE BODY APPS.MY_PACKAGE IS PRAGMA SERIALLY_REUSABLE; PROCEDURE "QFJS_LMO_TIMESLOT_PROC"(a_std IN VARCHAR2, post_std IN VARCHAR2, a_time IN VARCHAR2, post_hc IN NUMBER, pre_hc IN NUMBER, ods_schedule_date IN DATE, timeStr IN OUT str_table) IS v_clob clob; BEGIN FOR i IN 1 .. timeStr.COUNT LOOP v_clob := timeStr(i); -- ... END LOOP; END "QFJS_LMO_TIMESLOT_PROC"; BEGIN NULL; END MY_PACKAGE; / BEGIN APPS.MY_PACKAGE.QFJS_LMO_TIMESLOT_PROC('1','2','3',4,5,sysdate,APPS.MY_PACKAGE.str_table('clob1', 'clob2', 'clob3')); END; / -- Hugs, Philips
-
How to pass a parameter of a flex component to a view
Hey guys,.
I have a program that has a main file and views. The file of the sector said "firstView = draw.mxml", and therefore it executes the first view.
In the draw.mxml (the firstView file), I have a mxml component which is a titlewindow.
Titlewindow is an inputbox and a button.
When this button is pressed I need text in the inputbox to be passed to a parameter in the draw.mxml file and I need also to run a function in the draw.mxml file
What is the easiest way to do this
Thank you
Chris
You can use Application.application to retrieve any MXML property
-
How to pass the parameter of type array of ADF
12.1.2 jdev
I want to call a stored procedure with parameters of type Table entry in the oracle database. Please let me have an example about that.
create or replace type forecast_rec as object ( pYear varchar2(4), pQtr varchar2(1), pAmount number(17,2)); create or replace TYPE FORECAST_TABLE AS TABLE OF forecast_rec; create or replace PROCEDURE FORECAST_INSERT_TEST(p_iorec IN FORECAST_TABLE) AS BEGIN if p_iorec is null or p_iorec.count = 0 then return; end if; FOR i IN 1..p_iorec.count LOOP --get p_iorec(i).EMP_NAME insert into forecast_rec_test values(p_iorec(i).pYear, p_iorec(i).pQtr, p_iorec(i).pAmount); END LOOP; END;
Thank you
Sanjay Chatterji
Please see:
Thank you
-
How to pass the parameter in where clause contained in the custom file?
I have the tracking query
Blue are the parameters
I paste this to a custom folder
and
Select last_update_date, creation_date
of ra_customer_trx_all
"where trunc (last_update_date) = 29-SEP-2012."
and customer_trx_id = 1109
in another folder custom return 1 row only and create a different worksheet in the same workbook and create
3 setting and 2 of them pointing to the 1 row to query and create a calcualtion
SET_CONTEXT ("Date_From", TO_CHAR(:Date From)) and SET_CONTEXT ('Date_TO', TO_CHAR(:Date To))
and 1 condition 1 = SET_PARAM3(:Period)
but this does not work for me, no data back please help
Select m.party_name TENANT_NAME
b.interface_line_attribute10 lease_num
-, b.interface_line_attribute12 «PPS Number.
b.interface_line_attribute2 LOCATION_CODE
flexv.description property_name
INVOICE_NUMBER a2.trx_number
-, t.nom "Type of Transaction".
-, e.attribute15 "AS400 Key."
, b2.description 'BILL_ITEM_INVOCIE_DESCRIPTION '.
, case when gcc.segment5 like 6% ' then ' P/L '.
When gcc.segment5 like 7% ' then ' P/L '.
When gcc.segment5 as 8% ' then ' P/L '.
When gcc.segment5 like 9% ' then ' P/L '.
else "B/S".
end as account_nature
-, gcc.concatenated_segments as 'account of burden '.
gcc.segment1 company_code
gcc.segment2 department_code
gcc.segment3 property_code
gcc.segment4 business_segment
gcc.segment5 account_code
gcc.segment6 project_code
gcc.segment7 intercom_code
gcc.segment8 spare1
gcc.segment9 spare2
b2.extended_amount BILL_ITEM_INVOICE_AMOUNT
to_char (substr(ps.gl_date,4,8)) gl_period
b.interface_line_attribute11 bill_start_date
b.interface_line_attribute14 bill_end_date
decode (a2.invoicing_rule_id, '-2',
DECODE (TO_CHAR ("b.RULE_START_DATE, ' YYYYMM"), to_char (to_date (to_char (TRUNC (to_date (SETPARAM.) GET_PARAM3, "YYYYMM"), 'Month')-1), "MON-DD-YYYY"), "YYYYMM"), "Current", "Forward").
'In progress' Bill_nature)
, to_char (a2.trx_date, ' MON-DD-YYYY "") invoice_date
pal.lease_commencement_date
pal.lease_termination_date
h.user_name created_by
-, NULL as remarks
of ra_customer_trx_all one
ra_customer_trx_lines_all b
pn_leases_all d
e pn_tenancies_all
hz_cust_accounts l
hz_parties m
fnd_user h
ar_payment_schedules_all ps
RA_CUST_TRX_LINE_GL_DIST_ALL dist
gl_code_combinations_kfv gcc
AR_RECEIVABLE_APPLICATIONS_all app
ra_customer_trx_all a2
ra_customer_trx_lines_all b2
RA_CUST_TRX_TYPES_all t
fnd_flex_values_vl flexv
pn_lease_details_all pal
where
App. APPLICATION_TYPE = "CM".
and flexv.flex_value = gcc.segment3
and flexv. FLEX_VALUE_SET_ID = 1014916
and pal.lease_id = d.lease_id
and app.applied_customer_trx_id = a.customer_trx_id
and app.customer_trx_id = a2.customer_trx_id
and a2.cust_trx_type_id = t.cust_trx_type_id (+)
and a2.org_id = t.org_id (+)
and b.customer_trx_line_id = b2.previous_customer_trx_line_id
and dist. CUSTOMER_TRX_LINE_ID = b2. CUSTOMER_TRX_LINE_ID
and dist.account_class = 'REV '.
and dist.account_set_flag = DECODE (NVL(a2.invoicing_rule_id,1)-2, 'Y', 'n')
and gcc. CODE_COMBINATION_ID (+) is Dist. CODE_COMBINATION_ID
and b.interface_line_attribute10 = d.lease_num
and d.lease_id = e.lease_id
and e.primary_flag = 'Y '.
and b2.customer_trx_id = a2.customer_trx_id
and a2.bill_to_customer_id = l.cust_account_id
and l.party_id = m.party_id
and a2.created_by = h.user_id
and ps.customer_trx_id = app.customer_trx_id
and ps.gl_date between trunc (trunc (TO_DATE (SYS_CONTEXT ('DISCO_CONTEXT', 'Date_From')), 'MM')-1, 'MM') and trunc (TO_DATE (SYS_CONTEXT ('DISCO_CONTEXT', 'Date_To')), 'MM')-1
What exactly is the problem with the results? Can you do the report include the gl_date, so that you can see exactly what is included?
The only way to solve this is back to basics. You must be certain that the setting and calculations for the date work 100%. You have granted the Execute permission on the function to your landlord EUL - Yes? I did create the function in a package belonged to EUL_US, then I got no problem with permissions or grant.
Also, gl_date is a DATE string and not a right? I ask because if it is not a date, but a string then a few dates could be left out.
Assuming that you are 100% some of the building blocks, you should start by including only the gl_date and the primary key of the table you are using. Once you are sure you have found the right data, you can start adding in addition to fields.
I note that you use the E-Business Suite objects. I copied the code in my system where I don't use rental. So I put comment references to tables 3 PN. I had 150 lines of data when I asked for it by using the parameter, and then when I hard coded the BETWEEN operator for the gl_date. You don't have to make sure that your landlord EUL got right SELECT all tables and views used in your code and, if you want to share this code with someone else, you must also have LICENSING rights.
Try your code in a SQL like TOAD tool and see what happens. Are you absolutely sure that each of your transactions has an entry in the tables PN? Maybe it's why you don't get the results you expect. You can try, as I did, to comment these lines out and then see what happens.
Hopefully this has given you enough to solve your problem
Michael
PS. It would be nice to know your name. You have not used once it in your thread.
-
How to pass the parameter between two adapplications (remote application)
Hi friendz,.
Please help me...
I use JDEV 11.1.2.2.0 version.
My problem is the following,
When I have two applications of mapping through the jar files.
It works well, but I want to continue setting an application to another application...
How can I do this?
Thank you...
-Rude-
Edited by: Harsh1 December 10, 2012 19:10Hello
Check this: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/52-taskflow-in-lib-169195.pdf
Arun-
-
How can pass us parameter to a URL using plugins?
Hi all
I'm having a plug-in that calls a url, I want to move the pointer to the active document (the setting) to that particular url.
Is this possible?
Thanks in advance
Farida kaid
I guess you would just need to some library able to encode a string to string 'secure url', then that stick on the end of the URL target in the usual way. No doubt if it is all done right, pass to this method of Adobe (either, OpenURL? I forgot) should work.
Maybe you are looking for
-
Synchronize book samples IBook?
I can sync iBooks purchased on all my devices but iBook samples does not synchronize. It is built in iBooks property or a mistake on my part. Indicators are defined the same as those purchased books.
-
Hello I am a new user of Veristand 2010 and I am trying to build my first project. I noticed that LabView is necessary to create the custom devices. LabView must use Veristand? There are other applications that can be used instead of LabView?
-
Is there a change of leading event?
Is there an event that will tell me when the VI loses most? I would like to make a sort of deadman's trigger that fires when the front is no more. If it comes to it, I'll ask FP.isfrontmost.
-
a 1722 error occur when I installed the driver of hotutility buttons
-
I don't have bluetooth and I want to install. How?
How to install bluetooth on my desk?