PLSQL Query modification
Following query is returning the records as below:
SELECT
A.CHEQUE_CODE AS COL1,
A.ACC_ADD_REF AS COL2
FROM CTSCHEQUEBOOK A, BRANCHES B, CTSCHEQUEBOOK_DESIGN C
WHERE A.COMP_CODE = 1
AND A.COMP_CODE = B.COMP_CODE
AND A.BRANCH_CODE = B.BRANCH_CODE
AND A.COMP_CODE = C.COMP_CODE
AND A.CHEQUE_CODE = C.CODE
ORDER BY 1
COL1 COL2
1 01616005034001
1 01616005034001
1 01616005128001
2 01616005197001
2 01616005197001
3 01616005144001
3 01616005144001
3 01616005144001I want to display the records like only in column but group on COL1:
1
01616005034001
01616005034001
01616005128001
2
01616005197001
01616005197001
3
01616005144001
01616005144001
01616005144001How can I do this with my query?
I tried your query :
WITH DATA AS
(SELECT TO_CHAR(A.CHEQUE_CODE) AS COL1,
A.ACC_ADD_REF AS COL2
FROM CTSCHEQUEBOOK A,
BRANCHES B,
CTSCHEQUEBOOK_DESIGN C
WHERE A.COMP_CODE = 1
AND A.COMP_CODE = B.COMP_CODE
AND A.BRANCH_CODE = B.BRANCH_CODE
AND A.COMP_CODE = C.COMP_CODE
AND A.CHEQUE_CODE = C.CODE
ORDER BY 1
SELECT (
CASE
WHEN RN IS NULL
THEN COL1
ELSE COL2
END) COL1
FROM
(SELECT ROWNUM RN,
COL1,
COL2,
COUNT(COL2)
FROM DATA
GROUP BY CUBE(ROWNUM),
COL1,
COL2
);But it is repeating values like following:
1
01616005034001
01616005034001
01616005034001
01616005034001
01616005034001
1
01616005128001
01616005128001
01616005128001
01616005128001
01616005128001
01616005128001
01616005128001
2
01616005197001
01616005197001
3
01616005089001
3
01616005144001
01616005144001
01616005144001
Similar Messages
-
hi
I need oracle plsql query for this concept , which itemcode present in four month
Eliminate less than 4 month itemcode
Itemcode month id
1000 144
1000 148
1000 152
1000 156
so on
---------- eliminate this types of items
2000 144
3000 148
3000 156
Note : please dont use Procedures785143 wrote:
hi
I need oracle plsql query for this concept , which itemcode present in four month
Eliminate less than 4 month itemcode
Itemcode month id
1000 144
1000 148
1000 152
1000 156
so on
---------- eliminate this types of items
2000 144
3000 148
3000 156
Note : please dont use ProceduresAre you saying that the same itemcode has to be related to 4 (or more) different months?
Here's one way to do that:
WITH got_cnt AS
SELECT itemcode
, month_id
, COUNT (DISTINCT month_id) OVER (PARTITION BY itemcode) AS cnt
FROM table_x
SELECT itemcode
, month_id
FROM got_cnt
WHERE cnt >= 4
;If you mean something else (such as all the monthids have to be in a series, with a difference of 4 between successive monthids), then explain more clearly. -
How to link a non-linkable query and a plsql query in the datamodel
Hi,
I am creating a matrix group....
Where in I get my
1) Column values from a non-linkable query - Period (Jan, Feb....)
2) Row values from a plsql query (ref cursor). Group is also from this query
3) Cross product is on the above two queries.
4) Cell info comes from a plsql query (refcursor).
I created a group link from the cross product group (3) to the cell info query (4)
I prepared the layout and executed the report... I am getting redundant data....
The reason being the (4) and (1) are not linked properly.
From google, About non-linkable queries column.... I understood that to link two non-linkable queries, we need to create a group link and then add a where clause in the child query referring the parent query column.
But my case is a non-linkable query (which is a parent ) and a plsql query which is the cell.
Any help...?
Thanks in advance.
KKHello Sam,
>
I was wondering if you could have any link or examples to show how to make a form with report and an insert form in the same page, these two forms are related to the same table. Our customer wants a user can add new row to the table in a form and see all of rows created by this user in a report, this report should provide edit link as well. the problem is: whenever I inserted a new row or edit a row or delete a row, and submitted, and return to this page, all of hidden items lost their values, so report is blank, and some display only items also lost their values. Could anyone give me suggestions?
>
This will help:
http://www.grassroots-oracle.com/2011/09/apex-tutorial-form-report-sharing-same.html
Hope it helps!
Regards,
Kiran -
Query modification problem after Business Content upgrade
Hi,
We have upgraded two systems from Business Content 3.1 to BC3.3. After the upgrade we have a problem when opening queries for modification: a dialogue window is opened and system says:
"<i>AUTOMATIC CORRECTION
The following objects were not found when accessing server
Press 'Repair' to correct the problem (incorrect parts of the query are automatically deleted)
Press 'Cancel' to undo the last action
Missing objects:
- InfoObjects
| |- InfoObject 0HIER_VERS
- Affected Items
|- Hierarchy version</i>"
Strange thing is that the problem cannot be reproduced on consultants' laptops, only on clients' PC-s, so we believe there must be something about Windows/Excel security that produces the error message.
Have you ever experienced this (kind of) problem before? Do you have any idea what I should check?
I checked
- Macro security settings in MS Excel,
- logged on to the PC's as Administrator
- logged on to BW with clients'/consultants' user ID's on clients'/consultants' PC's, problem appeared only on client PC-s
- SAP GUI version (it is the same)
- MS Excel, MS Windows version (the same)
I have also checked InfoObject 0HIER_VERS, it really does not exist in the system. But it does not exist in our Production system either, while the query is completely the same in both systems.
0HIER_VERS is a "technical attribute" (as I read in an SAP documentation - however, I don't really understand this term), it is attached to 0CS_GROUP (Consolidation group).
Thanks,
CsabaHi,
Before checking that did u acvtivate and update all the datasources at the source system level.
Thanks
sampath -
Metadata Extraction query modification
Hi,
I have extracted metadata in Parent child format by doing some modifications through the query provided on following link
http://camerons-blog-for-essbase-hackers.blogspot.com/2011/09/stupid-planning-queries-5-dimension.html
Now i want output in form:
In 1st column gen1, in second column its children(means gen2).
Gen1 Gen2 Gen3 Gen4 Alias Operator
Region-Fm +
Can-Reg +
A +
A1 +
A2 +
A3
A4 -
A5 -
B
B1 +
B2 -
B3 +
B4 -
Nam-Reg
C
C1
C2
I want Each generation in seperate column.
Can you please help me in modifying the same query as m unable to do it.
Edited by: 962794 on 24 Oct, 2012 8:23 PMCheck out Gary Crisci's blog post on this very subject:
http://garycris.blogspot.com/2011/02/sql-queries-for-essbase-developers.html
Search for "Using a basic Parent/Child table going to Generations would look like this" in his post.
Regards,
Cameron Lackpour -
I am new to plsql and want to do following in plsql code:
code start select max(col1) from table1;
-- and save the max value in variable VAR1
select COL1, case COL2 when VAR1 THEN 'VALUE ONE'
ELSE 'VALUE ELSE'
END
from table1
-- I want to see the o/p of second select on the screen
code ends how can i write the above plsql code.No, its not working... see the below..
create table test5 as select owner, object_name, subobject_name, object_type from all_objects;
create unique index test5_i5 on test5 (owner, object_name, subobject_name, object_type);
select * from test5 where owner like 'SCOTT' AND OBJECT_NAME LIKE 'EMP';
INDEX RANGE SCAN| TEST5_I5 | 4 | 248 | 1 (0)| 00:00:01 |
but when i use
select * from test5 where UPPER(OWNER) LIKE 'SCOTT%' AND UPPER(OBJECT_NAME) LIKE 'EMP%';
TABLE ACCESS FULL| TEST5 | 3 | 186 | 65 (5)| 00:00:01 |
i know it goes to full scan, i want to know is there any other way to make index used .. without using functional based indx...
the reason is user can search any one of the column data and data is mixed case in table columns and/or conditions specified in query..
.. any help...
not sure how to use 'NLS_SORT=BINARY_CI' on multicolumn index and enable index used in search operation.. ANY OTHER WAY OF DOING THIS...
requirements is
mixed (lower,upper) data stored in db columns and mixed case data searched, 5 columns specified in where condition, data may be provided in search conditon to one or two or to all 5 columns in mixed case... matching records need to be returned.. suggest a good way of doing this... thnx -
InfoSet Query modification error
Hi,
I am trying to modify a InfoSet Query in SQ01 developed by a SD consultant last time. I already assigned my user ID in the User Group (in SQ03) which is referred by this Query. At the same time, I also assigned the Change Authorization to my ID.
After that, I modified this InfoSet in the SQ02 to add on 1 table and the Save is successful. Then I try to modify the display layout of the Query in SQ01. When I save it, it give me a message "The query is locked for changes by SDUSER". The ID SDUSER is used by the SD consultant last time. Then the modification is not saved.
I already checked in AL08 and also SM04, and found that this user is not log in at that time.
I already done whatever I know to try to solve this problem but I still can't settle it. Can anyone please help me on this? Why can this happen? How can I unlock it?
Thank you.Hi,
the lock was made by SDUSER when he created the querie. It's an option in the first screen "Title, Format" (specials attributes). When this option is select, only the specific user can change the query (sometimes some modifications are allowed by other user's in specific conditions).
The only way of resolving the problem, is the SDUSER to disable that option from there. After that you will be able to change it.
If that user doesn't exists, you must call the Basis team to create the user again, log on, and change the option.
Regards, -
Need to do Query Modifications
Hi
I am doing one report daywise production in that i am getting different values in below cases.
1. if i comment transaction date in group by getting quantity is differ.
2. when i commented or uncommented there is no diff. in quantity
--and bd.department_code<>'OSP'
3. if i use and bd.department_code='OSP' only this
i am getting some quantity..
select sum(a.Quantity_LLST/1000)--,to_char(a.transaction_date,'DD')
from
(select nvl((mmt.primary_quantity),0) Quantity_LLST
, trunc(mmt.transaction_date) transaction_date
from mtl_material_transactions mmt
, mtl_system_items_b msi
, wip_discrete_jobs wd
, wip_operations wo
, bom_departments bd
where 1=1
and mmt.organization_id=nvl(:P_ORG_ID,mmt.organization_id)
and mmt.transaction_type_id=44
and msi.inventory_item_id=wd.primary_item_id
and msi.organization_id=wd.organization_id
and wd.wip_entity_id=wo.wip_entity_id
and wd.organization_id=wo.organization_id
and wo.department_id=bd.department_id
and wo.organization_id=bd.organization_id
--and bd.department_code!='OSP'
and msi.segment1 like 'FG%LL%'
and mmt.inventory_item_id=msi.inventory_item_id
and mmt.organization_id=msi.organization_id
and trunc(mmt.transaction_date) between nvl(:P_FROM_DATE, trunc(mmt.transaction_date)) and nvl(:P_TO_DATE, trunc(mmt.transaction_date))
group by mmt.primary_quantity,trunc(mmt.transaction_date) )a
--group by to_char(a.transaction_date,'DD')You really didn't say what you want. If you get different results when you remove different parts of your original query, it is not unusual.
What do you want in the first place? Your subject says you need to modify the query, what is the modification you want us to suggest when you have already commented out many parts of your code.
Cheers
Sarma. -
Plsql query converts numeric value or currency(rupees) to English words
Hi,
I Need a plsql procedure/function query that converts numeric value or currency(rupees) to English words.
Please help .that is very very important and urgent for me.
Thanks in advance.
Regards,
Karthik Tthat is very very important and urgent for me. Then help yourself by looking on all over internet :
http://www.google.nl/search?hl=nl&q=oracle+numeric+word&meta=
Or by using the search feature against the forum :
http://forums.oracle.com/forums/search.jspa?threadID=&q=%2Bnumber+%2Bword&objID=f75&dateRange=all&userID=&numResults=15
That would be faster.
Nicolas. -
Infoset Query Modification Suggestion
I'm new to ABAP Infoset and logical database, and need your help.
I have a query running based on Infoset Z_FI_CHILE_XX(same copy from /SAPQUERY/FI_CHILE_PERU) and logical database SDF. Now I'm trying to modify the selection screen, for example: get rid of 'Fiscal year' and 'Period', and adding 'Posting data' criteria.
As I can see so far, 'Fiscal year' critieria is from logical database SDF, and 'Period' was adding in Infoset. Please give me some suggestion, should we modified logical database, or you have better solution?
Also do you have better documentation on how to modify the selection criteria in infoset rather than SAP library?
Thanks a lot!Thanks for all help from you.
I realised that my problem actually can not be just simply solved by modify the selection screen, since I need selection some periods from one fiscal year, then get some periods from another fiscal year, which two part of periods are not the same. Also I need the sum the total from all the periods that I selected, instead of list them in report.
My solution is modified the code behind the infoset to control selection in different periods for different fiscal year, then adding the subtotal total section in infoset Query, finally use a menu function(total drilldown) to leave only subtotal sections in report.
Thanks anyway, if you think there has better solution, please feel free to let me know. I would like to learn from you. -
Main Query modification result Report builder crash [Solved]
Hi,
I want to modify main Query of report builder because (it shows two columns which are not generated by query and when I run report it raises error that columns not found) but when I modify the query it result in report builder crash, plz give me any solution, I had experience same issue a month ago and I created new query with all formula columns but this time I have too much CF and CP columns is there any way to drop it from one group to another.
Thanks and Regards, Khawar.
Details:
OS windows XP/2000
Report Builder 10.1.2.0.2
ORACLE Server Release 10.1.0.4.2
Oracle Procedure Builder 10.1.2.0.2
Oracle ORACLE PL/SQL V10.1.0.4.2 - Production
Oracle CORE 10.1.0.4.0 Production
Oracle Tools Integration Services 10.1.2.0.2
Oracle Tools Common Area 10.1.2.0.2
Oracle Toolkit 2 for Windows 32-bit platforms 10.1.2.0.2
Resource Object Store 10.1.2.0.2
Oracle Help 10.1.2.0.2
Oracle Sqlmgr 10.1.2.0.2
Oracle Query Builder 10.1.2.0.2 - Production
PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
Oracle ZRC 10.1.2.0.2
Oracle XML Developers Kit 10.1.0.4.2 - Production
Oracle Virtual Graphics System 10.1.2.0.2
Oracle Image 10.1.2.0.2
Oracle Multimedia Widget 10.1.2.0.2
Oracle Tools GUI Utilities 10.1.2.0.2
Message was edited by:
S. KhawarHi,
I saved the report in JSP format and did the required change and it works great.
Regards, Khawar. -
HI I see that by the use of exists clause while joining
1) oralce provides a better execution plan ... and 2) it eliminates duplicates automatically
but my question is how to access the columns of the inner tables in the select clause ?
EG:
select a.sno, b.course_name
from a,b
where a.cid=b.cid
----------------------in the below query How do i access b.course_name in the select clause? similarly even if it contains more tables nested, i should be able to access the column of the inner tables from the select clause . How to do this . hope i am clear
select a.sno from a where exists ( select 1 from b where b.cid=a.cid)You cannot access columns from tables in an EXISTS (or NOT EXISTS) clause outside of that clause. You can only select data from tables (and other objects) that you are actually selecting from.
Justin -
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 -
step-1 select * from t1 --has one column c1 number
step-2 select * from t2 --has two columns c1 number, c2 number (FK of t1.c1), c3 number (FK of t3.c1)
step-3 select * from t3 --has two columns c1 number, c2 varchar2
step-4 SELECT t1.*,t2.*,t3.*,
ROW_NUMBER() OVER ( ORDER BY t3.c2 ASC
) RowNumber
FROM t1
LEFT JOIN t2 ON t2.c2=t1.c1
LEFT JOIN t3 ON t3.c1 = t2.c3
step-1
c1
101
102
103
104
105
step-2
c1 c2 c3
1 101 1
2 102 2
3 103 0
step-3
c1 c2
0 c
1 b
2 a
step-4
c1 c1 c2 c3 c1 c2 RowNumber
104 NULL NULL NULL NULL NULL 1
105 NULL NULL NULL NULL NULL 2
102 2 102 2 2 a 3
101 1 101 1 1 b 4
103 3 103 0 0 c 5
--In above step-4 you will notice that column c2(near RowNumber column) has NULL value. This is because that the record is present in t1 table but it is missing in detail(t2) table. Here I am trying to sort the records on c2 column of t3 table, which is of varchar type. I want to set the default value of column c2 (near RowNumber column) to 'c' and then perform the sorting.
--the expected output is:
c1 c1 c2 c3 c1 c2 RowNumber
102 2 102 2 2 a 1
101 1 101 1 1 b 2
103 3 103 0 0 c 3
104 NULL NULL NULL NULL c<-- 4
105 NULL NULL NULL NULL c<-- 5
--notice the last two row having '<--'
--how can i achieve this by modifying above step-4 query?Please find the below given script.
CREATE TABLE T1
C1 NUMBER NOT NULL
CREATE TABLE T2
C1 NUMBER NOT NULL,
C2 NUMBER NOT NULL,
C3 NUMBER NOT NULL
CREATE TABLE T3
C1 NUMBER NOT NULL,
C2 VARCHAR2(20) NOT NULL
INSERT INTO T1 (C1) VALUES ('101');
INSERT INTO T1 (C1) VALUES ('102');
INSERT INTO T1 (C1) VALUES ('103');
INSERT INTO T1 (C1) VALUES ('104');
INSERT INTO T1 (C1) VALUES ('105');
INSERT INTO T2 (C1, C2, C3) VALUES ('1', '101', '1');
INSERT INTO T2 (C1, C2, C3) VALUES ('2', '102', '2');
INSERT INTO T2 (C1, C2, C3) VALUES ('3', '103', '0');
INSERT INTO T3 (C1, C2) VALUES ('0', 'c');
INSERT INTO T3 (C1, C2) VALUES ('1', 'b');
INSERT INTO T3 (C1, C2) VALUES ('2', 'a');--for simplicity i have not created constraints.
Thanks,
Jigs -
hi
i have this query taken from the data model of report named "prepayment status report"
the rdf is APXINPSR.rdf
the query
SELECT AID.invoice_id C_prepay_inv_id,
AID.distribution_line_number C_prepay_dist_number,
nvl(AID.prepay_amount_remaining,AID.amount) C_prepay_amount_remaining,
AP_UTILITIES_PKG.Get_Charge_Account( AID.dist_code_combination_id,
:P_chart_of_accounts_id, 'APXINPSR') c_prepay_charge_account,
PH.segment1 C_prepay_po_number,
RSH.receipt_num C_prepay_receipt_number
FROM AP_INVOICES AI,
AP_INVOICE_DISTRIBUTIONS AID,
PO_DISTRIBUTIONS PD,
PO_HEADERS PH,
PO_LINES PL,
PO_LINE_LOCATIONS PLL,
RCV_TRANSACTIONS RTXNS,
RCV_SHIPMENT_HEADERS RSH,
RCV_SHIPMENT_LINES RSL
WHERE AI.INVOICE_ID = AID.INVOICE_ID
AND AID.LINE_TYPE_LOOKUP_CODE = 'ITEM'
AND AI.INVOICE_TYPE_LOOKUP_CODE = 'PREPAYMENT'
AND AI.PAYMENT_STATUS_FLAG||'' = 'Y'
AND nvl(AID.PREPAY_AMOUNT_REMAINING,AID.AMOUNT) > 0
AND nvl(AID.REVERSAL_FLAG,'N') != 'Y'
AND AID.PO_DISTRIBUTION_ID = PD.PO_DISTRIBUTION_ID (+)
AND PD.PO_HEADER_ID = PH.PO_HEADER_ID (+)
AND PD.LINE_LOCATION_ID = PLL.LINE_LOCATION_ID (+)
AND PLL.PO_LINE_ID = PL.PO_LINE_ID (+)
AND AID.RCV_TRANSACTION_ID = RTXNS.TRANSACTION_ID (+)
AND RTXNS.SHIPMENT_LINE_ID = RSL.SHIPMENT_LINE_ID (+)
AND RSL.SHIPMENT_HEADER_ID = RSH.SHIPMENT_HEADER_ID (+)
AND :P_prepayment_dist_flag = 'Y'can some on eguide me on
how to modify the c_prepay_charge_account in the query so output doesnt get affected , i need it in olap report so i have to get rid of the bind parameters
what do i replace :P_chart_of_accounts_id with
if i comment AND :P_prepayment_dist_flag = 'Y' will the output differ or what do i have to relace it with
both the bind parametes are specified in user parameters but no values mentioned
the code of the function
FUNCTION get_charge_account
( p_ccid IN NUMBER,
p_chart_of_accounts_id IN NUMBER,
p_calling_sequence IN VARCHAR2)
RETURN VARCHAR2 IS
current_calling_sequence VARCHAR2(2000);
debug_info VARCHAR2(500);
l_return_val VARCHAR2(2000);
BEGIN
-- Update the calling sequence
current_calling_sequence := 'AP_UTILITIES_PKG.get_charge_account<-'||p_calling_sequence;
debug_info := 'Calling fnd function to validate ccid';
if p_ccid <> -1 then
l_return_val := FND_FLEX_EXT.GET_SEGS(
APPLICATION_SHORT_NAME => 'SQLGL',
KEY_FLEX_CODE => 'GL#',
STRUCTURE_NUMBER => P_CHART_OF_ACCOUNTS_ID,
COMBINATION_ID => P_CCID);
else
l_return_val := null;
end if;
return (l_return_val);
EXCEPTION
WHEN OTHERS THEN
if (SQLCODE <> -20001) then
FND_MESSAGE.SET_NAME('SQLAP', 'AP_DEBUG');
FND_MESSAGE.SET_TOKEN('ERROR', SQLERRM);
FND_MESSAGE.SET_TOKEN('CALLING_SEQUENCE', current_calling_sequence);
FND_MESSAGE.SET_TOKEN('DEBUG_INFO', debug_info);
end if;
return NULL;
END get_charge_account;kindly guide me
kindly help me
Edited by: makdutakdu on Jul 4, 2010 2:19 PMhi
for get_segments
FUNCTION get_segments(application_short_name IN VARCHAR2,
key_flex_code IN VARCHAR2,
structure_number IN NUMBER,
combination_id IN NUMBER,
concat_segment_values OUT VARCHAR2)
RETURN BOOLEAN IS
n_segs_out NUMBER;
segs_out SegmentArray;
catvals_out VARCHAR2(2000);
BEGIN
init_message;
-- Call version that returns segments in array, then concatenate them.
if(get_segments(application_short_name, key_flex_code, structure_number,
combination_id, n_segs_out, segs_out) and
concat_segs(n_segs_out, segs_out, delim, catvals_out)) then
return(output_string(catvals_out, concat_segment_values));
end if;
set_failed;
return(FALSE);
EXCEPTION
WHEN OTHERS then
FND_MESSAGE.set_name('FND', 'FLEX-SSV EXCEPTION');
FND_MESSAGE.set_token('MSG', 'get_segments() exception: ' || SQLERRM);
set_failed;
return(FALSE);
END get_segments;set_name and set_Token
procedure SET_NAME(APPLICATION in varchar2, NAME in varchar2) is
begin
MSGAPP := APPLICATION;
MSGNAME := NAME;
MSGDATA := '';
FND_LOG_MODULE := DEFAULT_FND_LOG_MODULE;
MSGSET := TRUE;
end;
** ### OVERLOADED (new private version) ###
** SET_TOKEN - define a message token with a value
** Private: This procedure is only to be called by the ATG
** not for external use
** Arguments:
** token - message token
** value - value to substitute for token
** ttype - type of token substitution:
** 'Y' translated, or "Yes, translated"
** 'N' constant, or "No, not translated"
** 'S' SQL query
procedure SET_TOKEN(TOKEN in varchar2,
VALUE in varchar2,
TTYPE in varchar2 default 'N') is
tok_type varchar2(1);
begin
if ( TTYPE not in ('Y','N','S')) then
tok_type := 'N';
else
tok_type := TTYPE;
end if;
/* Note that we are intentionally using chr(0) rather than */
/* FND_GLOBAL.LOCAL_CHR() for a performance bug (982909) */
/* 3722358 - replace chr(0) in VALUE with spaces */
MSGDATA := MSGDATA||tok_type||chr(0)||TOKEN||chr(0)||
replace(VALUE,chr(0),' ')||chr(0);
end set_token;
** ### OVERLOADED (original version) ###
** SET_TOKEN - define a message token with a value,
** either constant or translated
** Public: This procedure to be used by all
procedure SET_TOKEN(TOKEN in varchar2,
VALUE in varchar2,
TRANSLATE in boolean default false) is
TTYPE varchar2(1);
begin
if TRANSLATE then
TTYPE := 'Y';
else
TTYPE := 'N';
end if;
SET_TOKEN(TOKEN, VALUE, TTYPE);
end set_token;
** SET_TOKEN_SQL - define a message token with a SQL query value
** Description:
** Like SET_TOKEN, except here the value is a SQL statement which
** returns a single varchar2 value. (e.g. A translated concurrent
** manager name.) This statement is run when the message text is
** resolved, and the result is used in the token substitution.
** Arguments:
** token - Token name
** value - Token value. A SQL statement
procedure SET_TOKEN_SQL (TOKEN in varchar2,
VALUE in varchar2) is
TTYPE varchar2(1) := 'S'; -- SQL Query
begin
SET_TOKEN(TOKEN, VALUE, TTYPE );
end set_token_sql;kindly guide
Maybe you are looking for
-
How to solve this problem javax.mail.AuthenticationFailedException
i was used in this progrm my labtop means working correctly but instead of labtop i am using the desktop means following error is occuered can any one tell to me how to solve this problem.The erroe is **javax.mail.AuthenticationFailedException** The
-
Overridding PO terms in the invoice
Hi, Request clarification on defaulting of terms on payable invoice in Oracle Payables R12. When we create an invoice based on a PO, the payment terms are defaulted from the PO. For example, the PO terms is Net45 but at the Vendor site level it is se
-
Calendar doesn't handle exceptions on recurring items
There are several cases where exceptions are not handled for recurring items: 1) If the Host makes an exception (room change / time change / cancellation) that is not reflected in the iPhone 2) If a participant wishes to decline from one particular i
-
Refund on OSX Mountain Lion?
Hello! Help! I just (10 mins ago) bought OSX Mountain Lion from the app store, and I only bought my Macbook air a few days ago, so I assumed that it would just be free - with the up to date program. I then checked my bank and the $20.99 has come out,
-
Friends can't see im online on ichat