Subsequent characters of component identifier must be a letter, a digit, an
I have a great problem. What mean this exception or what should I change?
Subsequent characters of component identifier must be a letter, a digit, an underscore ('_'), or a dash ('-')! But component identifier contains "�"
Thank you.
It seems you have a funny character in an "identifier" - ie the name of a variable/class/attribute... - really any "name" in java is an identifier.
So check your declarations - are you using none letter/digit characters in your variable names? Or maybe funny characters from another alphabet?
Similar Messages
-
Subsequent characters of component identifier must be a letter and so
<t:div rendered="#{legalOrganizationBean.legalOrganizationsSearchResult.count eq 0 ||legalProfessionalBean.legalProfessionalsSearchResult.count eq 0}">
<htm:tr>
<htm:td styleClass="paddingTop paddingBottom borderBottom">
<t:selectOneMenu
id="add"
forceId="true"
style="width:17em;"
title="#{bundle.search_type_title}"
value="#{legalProfessionalBean.selectedType}">
<f:selectItems value="#{sessionUserBean.allLegalLPATypePermissions}" />
</t:selectOneMenu>
<t:outputText value=" " />
<t:commandButton
id="addLegalProfessional and legal organizations"
value="Add"
action="#{legalProfessionalBean.actionGotoAdd}">
<t:updateActionListener property="#{heavyWeightBean.entityType}" value="#{legalProfessionalBean.selectedType}" />
</t:commandButton>
</htm:td>
</htm:tr>
</t:div>this throws an exception , Can any one tell me what mistake I am doing, Its with the <t:div> renderingThe javadocs for UIComponent.setId():
# Must not be a zero-length String.
# First character must be a letter or an underscore ('_').
# Subsequent characters must be a letter, a digit, an underscore ('_'), or a dash ('-').
and you've specified: id="addLegalProfessional and legal organizations" -
Help me resolve this---- PLS-00302: component 'STRING' must be declared
Can anyone please guide me in resolving the below error
The statement below is in the package spec.
TYPE rec IS RECORD ( proj AV_ACTIVITY.proj%TYPE, act AV_ACTIVITY.act%TYPE );
TYPE object_table_type is TABLE OF rec INDEX BY BINARY_INTEGER;
temp_as_rn object_table_type;
Then i am wrting a cursor in the package body and trying to access the component...but it throws up the
PLS-00302: component 'PROJ' must be declared
The below code is in the package body
CURSOR c2_memo_attr(proj_temp varchar2,act_temp varchar2) is
select distinct
dup.proj,
dup.proj_ds as proj_ds,
dup.act,
dup.act_ds as act_ds,
initcap(to_char(ac.eid, 'fmMonth DDth, YYYY')),
initcap(to_char(ac.lid, 'fmMonth DDth, YYYY')),
initcap(to_char(ac.act_due_date, 'fmMonth DDth, YYYY')),
dup.uc03 as Study_no
from dup_resource_status dup, av_activity ac
where ( ac.proj = proj_temp
and ac.act = act_temp)
and dup.proj = ac.proj
and dup.act = ac.act
and ac.ver = 0;
for c2_memo_attr_rec in c2_memo_attr(temp_as_rn.proj,temp_as_rn.act)
loop
text := 'abcd......'
end loop;Cursor loops are obsolete technology? Hmm, not sure I agree with you there.
Yes, sometimes they are an indication of slow-by-slow processing that could be better done in one dml statement, or with bulk collections, etc, but sometimes that's not the case - unless I'm missing something.
For example, I'm writing a procedure to take care of deleting partitions on a periodic basis, and I'm taking into consideration the case where there might be more than one partition to delete. So I'm using a cursor to identify the partitions to delete, and using a cursor for loop to loop round and execute the dynamic drop partition statement.
Since there's never going to be that many partitions, this isn't going to be particularly unperformant, and so I don't see a problem with using the cursor for loop construction for it.
I'd like to hear more on why you think it's obsolete technology in reference to my specific example - and also what you think I should be using. -
I've recently upgraded my SDK to allow me encorporate other features such as the Text Layout Framework and such. To avoid issues i've had to make Flash player 10 as required, which is where the problems are occuring in my main project.
We knew the switch would cause some issues, and we now have a lovely batch of 100+ Warnings, that are all along the lines of
Type '[component name]' in CSS selector '[component name]' must be qualified with a namespace
all the warnings are on line locations that have no reference to the component they are talking about.. so i'm kinda stumped on what to do. Anybody else run into this issue before?
cheers<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo" >
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/halo";
Button
// The warning
</fx:Style>
<s:Button label="提交" textAlign="center" height="30"/>
</s:Application>
I think you have use flex4.
Please change the code to :
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo" >
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/halo";
s|Button
// ok. The is style for spark button }
mx|Button
//ok. The is style for halo button
</fx:Style>
<s:Button label="提交" textAlign="center" height="30"/>
</s:Application> -
PLS-00302: component 'SET_NO_OUTLINES' must be declared
Windows 2000 Server
Oracle 10.2.0.1 upgraded from 9.2.0.1
IMP-00058: ORACLE error 6550 encountered
ORA-06550: line 1, column 33:
PLS-00302: component 'SET_NO_OUTLINES' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
IMP-00000: Import terminated unsuccessfully
Trying to import into a 10.2.0.1 database from a 9.2.0 database export.dmp file. Yes, I have seen the thread in this forum regarding the same error when doing an export but in this situation, I am using the import utility of the destination database (10.2.0.1) $ORACLE_HOME/ora102/bin and the db_block values are the same for both source and destination databases.
I think this is caused by Oracle 10.2 want to use SET_NO_OUTLINES and 9.2 doesn't know what it is.
Would appreciate any advise in fixing this situation.
ThanksIf you export with 9i utility to export and while importing 10g utiltiy to import you will get these compatability errors..
Always use the export utility of the lower version of source and target database.
if you still have any questions, Please Refer to Basic Compatibility Section in Metalilnk Note 132904.1
Hope this helps
Click here to learn [Oracle data pump export and import with examples.|http://www.oracleracexpert.com/2009/08/oracle-data-pump-exportimport.html]
Click here for steps to [upgrade Oracle version from 10.2.0.x to 10.2.0.4|http://www.oracleracexpert.com/2009/10/oracle-version-upgrade-from-1020x-to.html]
http://www.oracleracexpert.com -
PLS-00302: component 'SET_NO_OUTLINES' must be declared on EXP
Hey all,
Not sure why I'm getting this. Any ideas where to start?
C:\>exp userid=me/me@mine owner=me file=c:\temp\me.dmp
Export: Release 10.2.0.1.0 - Production on Tue Aug 9 11:14:00 2005
Copyright (c) 1982, 2005, Oracle. All rights reserved.
EXP-00056: ORACLE error 6550 encountered
ORA-06550: line 1, column 41:
PLS-00302: component 'SET_NO_OUTLINES' must be declared
ORA-06550: line 1, column 15:
PL/SQL: Statement ignored
EXP-00000: Export terminated unsuccessfully
C:\>sqlplus me/me@mine
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Aug 9 11:16:02 2005
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - 64bit Production
With the Partitioning, OLAP and Data Mining optionsHello Everyone,
The mentioned issue is due to the fact that you already have several oracle versions installed on your system ( 8i, 9i, 10g, 11g). The issue happens basically whenever you are trying to exp where the command runs from ORACLE_HOME so if your ORACLE_HOME is set to ORACLE 10 for example and you are exporting a database on 8i the issue occurs and hence to solve it you just need to go into cmd then go to oracle 8i HOME which basically will be under c:\oracle\8i\bin and run the exp command again. It will work smoothly.
All the best
SEMOS -
PLS-00302: component 'DISABLE_OLAP_POLICY' must be declared
Database: 11.2.0.4.0
OLAP Analytic Workspace
11.2.0.4.0
Oracle OLAP API
11.2.0.4.0
OLAP Catalog
11.2.0.4.0
I am receiving the following error when trying to delete a dimension in AWM 12.1.0.1.0A.
java.sql.SQLException: ORA-06550: line 1, column 20:
PLS-00302: component 'DISABLE_OLAP_POLICY' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
at oracle.olap.awm.util.ORASUtil.reportException(ORASUtil.java:64)
at oracle.olap.awm.util.ORASUtil.disableOLAPDSP(ORASUtil.java:659)
at oracle.olap.awm.dataobject.olapi.UDimensionDO.delete(UDimensionDO.java:905)
at oracle.olap.awm.navigator.node.DeleteThread.run(DeleteThread.java:283)
I don't get this error with AWM 11.2.0.4.0A. I take it this means we shouldn't be using AWM 12 on a 11 database even though the AWM 12 login window specifies a cube type of: OLAP 11g/12c?You have encountered a known AwM bug 18616303 in AwM 12.1.0.1.0A. The workaround as you have
already determined is to use 11.2.0.4.0A patch of AwM when working against an 11.2 Oracle rdbms server when
you need to drop a dimension, cube or analytic workspace.
This bug is currently fixed in the yet unreleased AwM 12.1.0.2.0. I expect it will be fixed shortly in an
12.1.0.1.0B patch of AwM. Sorry for the inconvenience.
I will update this thread when the 12.1.0.1.0B patch of AwM is available for download off of OTN with
the link to the download. -
PLS-00302: component 'REGISTER_PROPAGATOR' must be declared
Hi,
The following error occured, while running the repadmin user creation script.
Can any one help in rectifying this?
BEGIN dbms_defer_sys.register_propagator('REPADMIN'); END;
ERROR at line 1:
ORA-06550: line 1, column 22:
PLS-00302: component 'REGISTER_PROPAGATOR' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
SQL> exit
Thnk u,
Rgds,
Maha.
nullHow were you connected to the database when you ran the DBMS_DEFER_SYS procedure? as SYSTEM?
Also, check to make sure that the DBMS_DEFER_SYS package and package body exist, are valid, and have synoyms created for them. Query DBA_OBJECTS for this information. -
Component "Item_name" must be declare
I created a cursor but showing error: at bold text
Declare
CURSOR post_item
IS
SELECT ALL SUBPOGENERAL.ITEM_CODE, SUBPOGENERAL.ITEM_DESC,
SUBPOGENERAL.QUANTITY, ITEM.ITEM_NAME, ITEM.ITEM_DESC
FROM SUBPOGENERAL, ITEM
WHERE SUBPOGENERAL.ITEM_CODE = ITEM.ITEM_CODE
and subpogeneral.poNO=:rcgeneral.PoNO ;
--select item_code,item_desc,Quantity
--from subpogeneral
-- WHERE subpogeneral.poNO=:rcgeneral.PoNO ;
kitemc subpogeneral.item_code%TYPE;
kitemd subpogeneral.item_desc%TYPE;
kqty subpogeneral.quantity%TYPE;
kitemn ITEM.ITEM_NAME%type;
BEGIN
GO_ITEM('subrcgeneral.item_code');
OPEN POST_item;
LOOP
FETCH POST_item INTO
kitemc,kitemn,kitemd,kqty;
EXIT WHEN POST_item%NOTFOUND;
GO_ITEM('subrcgeneral.item_code');
CREATE_RECORD;
:subrcgeneral.item_code := Kitemc;
:subrcgeneral.item_name := Kitemn;
:subrcgeneral.item_desc := Kitemd;
:subrcgeneral.qty := kqty;
END LOOP;
CLOSE POST_item;
end;
Error : Component "Item_name" must be declaredon't use reserved words for columnnames. That's the problem
-
Data Template - PLS-00302: component 'P_PARAMETER' must be declared
All,
I'm new to the Data Template. I'm following the User's Guide example and examples from this Forum. I can't get a parameter to work. I'm creating a Data Template because I need to execute a PL/SQL call before the report runs.
My Data Template:
<?xml version="1.0" encoding="UTF-8" ?>
<dataTemplate name="DATA_TEMPLATE" version="1.0" dataSourceRef="dev" defaultPackage="TEST_JC_PKG">
<dataTrigger name="beforeReport" source="TEST_JC_PKG.record_report_usage('beforeReport_trigger')"/>
<parameters>
<parameter name="p_parameter" datatype="character" defaultValue="X"/>
</parameters>
<dataQuery>
<sqlStatement name="ROW">
<![CDATA[SELECT dummy FROM dual WHERE :p_parameter = 'X']]>
</sqlStatement>
</dataQuery>
</dataTemplate>
I get this error when I click the "View" button in BI Pub:
ORA-06550: line 2, column 13:
PLS-00302: component 'P_PARAMETER' must be declared
ORA-06550: line 2, column 1:
PL/SQL: Statement ignored
xdo:
<?xml version = '1.0' encoding = 'utf-8'?>
<report version="1.1" xmlns="http://xmlns.oracle.com/oxp/xmlp" defaultDataSourceRef="dev">
<title>beforeReport_trigger_manual_dataTemplate</title>
<properties>
<property name="showControls" value="true"/>
<property name="online" value="true"/>
<property name="parameterColumns" value="3"/>
<property name="openLinkInNewWindow" value="true"/>
<property name="autoRun" value="true"/>
</properties>
<dataModel defaultDataSet="Q1">
<dataSet id="Q1">
<dataTemplate name="DATA_TEMPLATE" dataSourceRef="dev" defaultPackage="TEST_JC_PKG">
<dataTrigger name="beforeReport" source="TEST_JC_PKG.record_report_usage('beforeReport_trigger_manual_dataTemplate')"/>
<parameters>
<parameter name="p_parameter" datatype="character" defaultValue="X"/>
</parameters>
<dataQuery>
<sqlStatement name="ROW">
<![CDATA[SELECT dummy FROM dual WHERE :p_parameter = 'X']]>
</sqlStatement>
</dataQuery>
</dataTemplate>
</dataSet>
</dataModel>
<valueSets/>
<parameters/>
<templates default="detail">
<template label="detail" type="rtf" url="beforeReport_trigger_manual_dataTemplate.rtf"/>
</templates>
<burst enabled="false"/>
</report>Hi,
This is a known bug when using DataTemplates, but it has only just started with 10.1.3.3. You will need to put p_parameter as a global variable in you default package, and you will also need to create a parameter called p_parameter inside BIP. You can set this parameter to being hidden if you do not want Users to be able to change it.
See Tim Dexter's blog on this for more information:
http://blogs.oracle.com/xmlpublisher/2007/10/18#a614
Hope this helps you.
Regards,
Cj -
Referenced and Referencing Component Usages Must Address the Same Component
Hi,
I have a main component MC and it has two used componenents - IBLC and IVAC (interfaces for model and visual compoenents).
I get the actual model component name from a table and I instantiate it as follows:
instantiate model component
DATA: l_ref_model_usage TYPE REF TO if_wd_component_usage,
l_my_initial_usage type ref to IF_WD_COMPONENT_USAGE.
L_MY_INITIAL_USAGE = wd_this->wd_cpuse_iblc( ).
l_ref_model_usage = L_MY_INITIAL_USAGE->CREATE_COMP_USAGE_OF_SAME_TYPE(
NAME = Item_Modelcomp ).
Components VC1 and VC2 etc implement IVAC.
Since I want to use the same instance of Item_Modelcomp in VC1 and VC2, I use the set_model(and from that I call method enter_referencing_mode) method as follows in MC.
l_ref_interfacecontroller->set_model( model_usage = l_ref_model_usage ).
Now in set_model method in VC1, I am using Item_Modelcomp as used component and not IBLC because I want to use the Item_Modelcomp context, but it expects IBLC as the used component(even though Item_Modelcomp implements IBLC) and hence gives the error "Referenced and Referencing Component Usages Must Address the Same Component".
Any solution for this issue?
Thanks and Regards,
Srini.Hi Srinivasa,
>I thought model compoenents are the ideal way to share
>context across different visual components.
Yeah, we though the same in the beginning. Later on we learned that:
- it's not worth having the overhead of another WD component in most cases since you need to call the business logic nonetheless
- declaring nodes as public is like having public attributes at a class - which can be really bad thing
- there are lots of side effects regarding one component affecting the other one indirectly by having both mapped to the same model component
In general, using model components should be avoided. There might be rare cases, where it makes sense to use them, but mostly it's not worth the effort.
Best regards,
Thomas -
Adpatch fails with PLS-00302: component 'INITIALIZE_WITH_CALENDAR' must be
Hi Guru's....
This is my first post.I am a new dba.
while applying adpatch , I am getting the below error.Please help. this is on r12.
About to do IREP processing...
Attempting to process IREP files ...
AutoPatch error:
Error in adusnapRunAdPostPatch() while executing statement
AutoPatch error:
ORA-06550: line 1, column 16:
PLS-00302: component 'INITIALIZE_WITH_CALENDAR' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
ORA-06512: at "APPS.FND_GLOBAL", line 413
ORA-06512: at "APPS.FND_GLOBAL", line 2272
ORA-06512: at "APPS.FND_GLOBAL", line 2546
ORA-06512: at "APPS.FND_GLOBAL", line 2698
ORA-06512: at "APPS.FND_GLOBAL", line 2636
ORA-06512: at "APPS.FND_ADPATCH", line 53
ORA-06512: at line 3
Error while processing IREP files, continuing...
Done IREP processing.
Thank you.....Hi Ronald and Hussein,
Thank you for your response.
There are no invalids in my environment.
I am applying R12.1.X: FORMS INTEROPERABILITY PATCH FOR 10.1.2.3 -- 13001977
>>
OS:
SunOS sandebus03 5.10 Generic_147440-01 sun4v sparc SUNW,T5240
>>
RELEASE_NAME
12.1.2
DB:11.2.0.3
>>
SQL> desc fnd_date
FUNCTION ADJUST_DATETIME RETURNS DATE
Argument Name Type In/Out Default?
DATE_TIME DATE IN
FROM_TZ VARCHAR2 IN
TO_TZ VARCHAR2 IN
FUNCTION CANONICAL_TO_DATE RETURNS DATE
Argument Name Type In/Out Default?
CANONICAL VARCHAR2 IN
FUNCTION CHARDATE_TO_DATE RETURNS DATE
Argument Name Type In/Out Default?
CHARDATE VARCHAR2 IN
FUNCTION CHARDT_TO_DATE RETURNS DATE
Argument Name Type In/Out Default?
CHARDT VARCHAR2 IN
FUNCTION DATE_TO_CANONICAL RETURNS VARCHAR2
Argument Name Type In/Out Default?
DATEVAL DATE IN
FUNCTION DATE_TO_CHARDATE RETURNS VARCHAR2
Argument Name Type In/Out Default?
DATEVAL DATE IN
FUNCTION DATE_TO_CHARDT RETURNS VARCHAR2
Argument Name Type In/Out Default?
DATEVAL DATE IN
FUNCTION DATE_TO_DISPLAYDATE RETURNS VARCHAR2
Argument Name Type In/Out Default?
DATEVAL DATE IN
FUNCTION DATE_TO_DISPLAYDT RETURNS VARCHAR2
Argument Name Type In/Out Default?
DATEVAL DATE IN
FUNCTION DATE_TO_DISPLAYDT RETURNS VARCHAR2
Argument Name Type In/Out Default?
DATEVAL DATE IN
NEW_CLIENT_TZ_CODE VARCHAR2 IN
FUNCTION DISPLAYDATE_TO_DATE RETURNS DATE
Argument Name Type In/Out Default?
CHARDATE VARCHAR2 IN
FUNCTION DISPLAYDT_TO_DATE RETURNS DATE
Argument Name Type In/Out Default?
CHARDT VARCHAR2 IN
FUNCTION DISPLAYDT_TO_DATE RETURNS DATE
Argument Name Type In/Out Default?
CHARDT VARCHAR2 IN
NEW_CLIENT_TZ_CODE VARCHAR2 IN
PROCEDURE INITIALIZE
Argument Name Type In/Out Default?
P_USER_MASK VARCHAR2 IN
P_USERDT_MASK VARCHAR2 IN DEFAULT
FUNCTION STRING_TO_CANONICAL RETURNS VARCHAR2
Argument Name Type In/Out Default?
P_STRING VARCHAR2 IN
P_MASK VARCHAR2 IN
FUNCTION STRING_TO_DATE RETURNS DATE
Argument Name Type In/Out Default?
P_STRING VARCHAR2 IN
P_MASK VARCHAR2 IN
PROCEDURE TEST
SQL>
>>
SQL> column rcsid format a35 word
break on name skip 1
SQL> select name,type,substr(text,instr(text,'$Header: ')+9,
instr(text,' ',instr(text,'$Header: '),4)
SQL> 2 3 - instr(text,'$Header: ') - 9) rcsid
4 from all_source
5 where text like '%$Header: %'
6 and name like upper('%%FND_DATE%%') escape '\'
7 order by name
8 , type
9 /
undefine 1
clear breaks
NAME TYPE RCSID
FND_DATE PACKAGE AFDDATES.pls 115.11 2003/10/28
PACKAGE BODY AFDDATEB.pls 120.1 2005/07/02
FND_DATE_TZ PACKAGE AFDATTZS.pls 115.4 2003/10/28
PACKAGE BODY AFDATTZB.pls 115.4 2003/10/28
SQL> SQL> breaks cleared
SQL> -
I am locked out of my iphone. In resetting my passcode I must have hit a wrong digit, because the 4 digits I thought I used Don't work (and of course not my old passcode). I have tried the instructions both for "if you have previously synced your device with iTunes" and "If you have Never synced your device with iTunes" . Neither has worked and I'm in a vicious circle with each time after lengthy downloads it still all ends with the program, & my phone, asking for my passcode to proceed. I'm not sure if I have ever synced to my mac book (i may have) but my address book seems to automatically update on both devices without the need to plug in. Thank you for any knowledgable help that could efficiently get me out of this passcode ****!
Hi DRussell,
If you have not sync'd your device to your Mac then you will have to force the phone into recovery mode and restore as a new device. Read the information in this link and follow the instructions to recover the phone:
http://support.apple.com/kb/HT1808
Hope this helps!
Cheers,
GB -
Why doesn't list component identify grid component
Hi,
I have couple of doubts.
1. I put <grid> component inside of <List>
component . Surprise! The <List> component is not identifying
the <Grid> component. Is this bug of Flex Or it's property of
Flex <List> component.
What I have to do to make <Grid> visible even I put
inside of <List> component.
2. what is an equilanat of <Table> in Flex. Ofcourse it
may be DataGrid. Suppose If I use DataGrid I have lot of
restrictions.
These are the problems I am facing with <DataGrid>
( i ) Is this possible to put radio button / link bar as one
of column in a row. I mean how to put radio button / link bar as
row in array
( ii ) Is it possible to make columns in a row as variable
sizes i.e. suppose if DataGrid header has size=100. Is it possible
to make column of next row size as 200.
anybody help me in this regard. I am eagarly waiting for
reply.Because I have been strugling to solve this problem for last
4 days.
Regards,
Siva KumarA custom itemRenderer will be the solution to several of your
issues(1,i).
For 2., there is no exact equivalent of an html table. Look
at Grid, TileList, or consider making your own component.
for ii), no, all cells in a columns must be the same size.
Tracy -
PLS-00201 identifier must be declared
Hi All,
Can any one please help me regarding this error.
I am getting the PLS-00201 identifier tree_sorting must be declared at the line " Tree_Sorting(1, 0); ".
if i comment the " Tree_Sorting(1, 0); " at pkgfc_gi.v_cphase := '01-13'; and uncomment the " Tree_Sorting(1, 0); " at pkgfc_gi.v_cphase := '01-09' then the procedure is compiling successfully; This is my stored procedure.
Please help me in solving this.
CREATE OR REPLACE PACKAGE BODY FA_Main AS
/*-------------------------------- Calcul_FA -------------------------------*/
FUNCTION Calcul_FA (
p_client_group IN tfc_stc_client_groups.s_client_group%TYPE DEFAULT NULL,
p_admin_group IN tfc_stc_clients.c_admin_group %TYPE DEFAULT NULL,
p_client IN tfc_stc_clients.s_client %TYPE DEFAULT NULL,
p_report_group IN tfc_stc_report_groups.g_classification%TYPE DEFAULT NULL,
p_contract IN tfc_stc_contracts.s_contract %TYPE DEFAULT NULL,
p_fa_typ IN tfc_prm_fa_master.c_fa_typ %TYPE DEFAULT NULL,
p_fa IN tfc_prm_fa_master.s_fa %TYPE DEFAULT NULL,
p_beg_period IN DATE DEFAULT NULL,
p_end_period IN DATE DEFAULT NULL,
p_y_all_ok IN VARCHAR2 DEFAULT 'Y',
p_y_estimate IN VARCHAR2 DEFAULT 'N',
p_est_date IN DATE DEFAULT NULL)
RETURN NUMBER IS
----------------------------------------------------------------------- CURSEURS
-- List of FA to calculate --
CURSOR c_fa IS
SELECT pfm.s_fa s_fa, pfm.c_fa_typ c_fa_typ, sct.s_contract s_contract, srg.g_classification g_classification,
scl.s_client s_client, scl.c_admin_group c_admin_group, scg.s_client_group s_client_group
FROM tfc_prm_fa_master pfm, tfc_stc_contracts sct, tfc_stc_clients scl, tfc_stc_client_groups scg, tfc_stc_report_groups srg
WHERE pfm.c_fa_structure_typ = 'PARM'
AND ((p_fa IS NOT NULL AND pfm.s_fa = p_fa ) OR p_fa IS NULL)
AND ((p_fa_typ IS NOT NULL AND pfm.c_fa_typ = p_fa_typ ) OR p_fa_typ IS NULL)
AND ((p_contract IS NOT NULL AND sct.s_contract = p_contract ) OR p_contract IS NULL)
AND ((p_report_group IS NOT NULL AND srg.g_classification LIKE p_report_group||'%') OR p_report_group IS NULL)
AND ((p_client IS NOT NULL AND scl.s_client = p_client ) OR p_client IS NULL)
AND ((p_admin_group IS NOT NULL AND scl.c_admin_group = p_admin_group ) OR p_admin_group IS NULL)
AND ((p_client_group IS NOT NULL AND scg.s_client_group = p_client_group ) OR p_client_group IS NULL)
AND (NVL(p_client_group,NVL(p_client,NVL(p_contract, p_fa))) IS NOT NULL OR p_admin_group IS NOT NULL OR p_report_group IS NOT NULL)
AND (p_beg_period IS NULL OR ((p_beg_period IS NOT NULL AND pfm.d_first_calculation IS NOT NULL AND p_beg_period >= pfm.d_first_calculation) OR pfm.d_first_calculation IS NULL))
AND (p_end_period IS NULL OR ((p_end_period IS NOT NULL AND pfm.d_end_calculation IS NOT NULL AND p_end_period <= pfm.d_end_calculation) OR pfm.d_end_calculation IS NULL) OR (p_end_period IS NOT NULL AND sct.d_inception <= p_end_period ))
AND sct.s_contract = pfm.fk_contract
AND scl.s_client = sct.fk_client
AND scg.s_client_group (+)= scl.fk_client_group
AND srg.s_report_group (+)= sct.fk_report_group
AND pfm.y_fee_to_calculate = 'Y'
AND sct.c_contract_status = 'ACTIVE'
AND ROWNUM < 2;
BEGIN
COMMIT;
IF pkgfc_faed.v_y_estimate = 'Y' THEN
INSERT INTO tfc_log_application_master (
s_log, l_log,
d_t_begin_task,
c_application_task, c_task_status,
g_key_0, g_key_1,
g_key_2, g_key_3,
g_key_4, g_key_5,
g_key_6, g_key_7,
g_key_8, g_key_9)
VALUES (
pkgfc_faed.v_s_log, v_l_log, SysDate,
'ESTIMATE', 'RUNNING',
TRIM(TO_CHAR(p_client_group)), p_admin_group,
TRIM(TO_CHAR(p_client)), p_report_group,
TRIM(TO_CHAR(p_contract)), p_fa_typ,
TRIM(TO_CHAR(p_fa)), TO_CHAR(p_beg_period,'DD/MM/YYYY'),
TO_CHAR(p_end_period,'DD/MM/YYYY'), v_y_all_ok);
ELSE
INSERT INTO tfc_log_application_master (
s_log, l_log,
d_t_begin_task,
c_application_task, c_task_status,
g_key_0, g_key_1,
g_key_2, g_key_3,
g_key_4, g_key_5,
g_key_6, g_key_7,
g_key_8, g_key_9)
VALUES (
pkgfc_faed.v_s_log, v_l_log,
SysDate,
'CALCULATION', 'RUNNING',
TRIM(TO_CHAR(p_client_group)), p_admin_group,
TRIM(TO_CHAR(p_client)), p_report_group,
TRIM(TO_CHAR(p_contract)), p_fa_typ,
TRIM(TO_CHAR(p_fa)), TO_CHAR(p_beg_period,'DD/MM/YYYY'),
TO_CHAR(p_end_period,'DD/MM/YYYY'), v_y_all_ok);
END IF;
v_return := pkgfc_faed.v_s_log;
COMMIT;
-- Loop on all Fee/Alloc to calculate --
-- Added by Santhakumar
BEGIN
INSERT INTO tmp_prm_fa_details(
SELECT USERENV('SESSIONID') SESSION_ID,
LEVEL CUR_LEVEL,
(CASE WHEN (SELECT MAX(LEVEL)
FROM tfc_prm_fa_details fad2
WHERE fad2.fk_fa = fad1.fk_fa
START WITH fad2.s_fa_detail=fad1.s_fa_detail
CONNECT BY PRIOR fad2.s_fa_detail = fad2.fk_fa_detail_upper_level) > 1
THEN LEVEL + 1
ELSE LEVEL
END) NEXT_LEVEL,
fad1.s_fa_detail,
fad1.fk_fee_alloc_detail,
fad1.fk_fa,
fad1.l_fa_detail,
fad1.g_fa_4calculation,
fad1.fk_fa_detail_upper_level,
fad1.fk_third_party,
fad1.g_consolidation_rule,
fad1.c_fa_calculation_typ,
fad1.fk_aggregation_rule,
fad1.fk_scale,
fad1.g_scale_band_unit,
fad1.g_value,
fad1.n_detail_order,
fad1.y_ref_amount_equal_total_aum,
fad1.c_validation_status,
fad1.g_val_by,
fad1.d_t_val,
fad1.g_ins_by,
fad1.d_t_ins,
fad1.g_upd_by,
fad1.d_t_upd
FROM tfc_prm_fa_details fad1
START WITH fad1.fk_fa_detail_upper_level IS NULL
CONNECT BY PRIOR fad1.s_fa_detail = fad1.fk_fa_detail_upper_level
END;
-- Added by Santhakumar
pkgfc_gi.v_cphase := '00-02';
FOR v_fa IN c_fa LOOP
pkgfc_gi.v_cphase := '01-08';
DECLARE
-- Tree Sorting Recursive Procedure --
PROCEDURE Tree_Sorting (p_level IN NUMBER,p_fk_fa_detail_upper_level IN NUMBER) IS
-- Cursor to retrieve data at current level --
CURSOR c_tfd IS
SELECT *
FROM tfc_tmp_fa_details tfd
WHERE tfd.fk_fa = v_fa.s_fa
AND tfd.session_id = USERENV('SESSIONID')
AND tfd.cur_level = p_level
AND tfd.fk_fa_detail_upper_level = p_fk_fa_detail_upper_level
ORDER BY tfd.n_detail_order ASC;
Error_Found_in_Tree_Sorting EXCEPTION;
-------------------------------------------------------------------------- BEGIN
BEGIN
FOR v_tfd IN c_tfd LOOP
pkgfc_dts.put_nline('Level : '||TO_CHAR(v_tfd.cur_level)||' - '||v_tfd.g_fa_4calculation||' - '||TO_CHAR(p_fk_fa_detail_upper_level));
pkgfc_gi.v_cphase := '01-14';
pkgfc_faed.v_nb_fa_det := pkgfc_faed.v_nb_fa_det + 1;
pkgfc_faed.v_fa_details(pkgfc_faed.v_nb_fa_det) := v_tfd;
pkgfc_faed.v_nb_max_level := GREATEST(pkgfc_faed.v_nb_max_level,
pkgfc_faed.v_fa_details(pkgfc_faed.v_nb_fa_det).cur_level);
-- Break the link with Root Record --
IF (pkgfc_faed.v_fa_details(pkgfc_faed.v_nb_fa_det).fk_fa_detail_upper_level = 0) THEN
pkgfc_faed.v_fa_details(pkgfc_faed.v_nb_fa_det).fk_fa_detail_upper_level := NULL;
END IF;
IF (v_tfd.cur_level < v_tfd.next_level) THEN
pkgfc_gi.v_cphase := '01-15';
Tree_Sorting(v_tfd.next_level, v_tfd.s_fa_detail);
END IF;
IF (pkgfc_gi.v_cretour <> '0') THEN
RAISE Error_Found_in_Tree_Sorting;
END IF;
END LOOP;
---------------------------------------------------------------------- EXCEPTION
EXCEPTION
WHEN Error_Found_in_Tree_Sorting THEN
IF (c_tfd%ISOPEN ) THEN CLOSE c_tfd ; END IF;
WHEN OTHERS THEN
IF (c_tfd%ISOPEN ) THEN CLOSE c_tfd ; END IF;
pkgfc_gi.v_cretour := '9'; -- When Others Error
pkgfc_gi.v_cproc := 'FA_Engine_Main.Tree_Sorting';
pkgfc_gi.v_mess := SUBSTR(SQLERRM(SQLCODE), 1, 255);
pkgfc_dts.put_nline('Err : '||pkgfc_gi.v_cretour||' - '||pkgfc_gi.v_cphase||' - '||pkgfc_gi.v_cproc||' - '||pkgfc_gi.v_mess);
---------------------------------------------------------------------------- END
END Tree_Sorting;
PROCEDURE Autonomous_0108 IS
PRAGMA AUTONOMOUS_TRANSACTION; -- Permit Commit/Rollback independently of the current transaction
BEGIN
-- Clean Temporary Table --
pkgfc_gi.v_cphase := '01-09';
DELETE tfc_tmp_fa_details WHERE session_id NOT IN (SELECT DISTINCT audsid FROM all_sessions);
COMMIT;
--Tree_Sorting(1, 0);
END Autonomous_0108;
BEGIN
Autonomous_0108;
END;
-- Get FA Details from Prm_Fa_Details --
pkgfc_gi.v_cphase := '01-10';
select count(1) into v_num from tfc_tmp_fa_details;
Dbms_output.put_line('first' || v_num);
Dbms_output.put_line('Session Id --> ' || USERENV('SESSIONID'));
INSERT INTO tfc_tmp_fa_details (SELECT * FROM tmp_prm_fa_details WHERE fk_fa = v_fa.s_fa);
-- Insert a Root Record for Tree Sorting purpose --
pkgfc_gi.v_cphase := '01-11';
INSERT INTO tfc_tmp_fa_details (
session_id, cur_level, next_level,
s_fa_detail, fk_fa, fk_fa_detail_upper_level)
VALUES (
USERENV('SESSIONID'), 0, 1,
0, v_fa.s_fa, NULL);
-- Link the Level 1 with Root Level (0) --
pkgfc_gi.v_cphase := '01-12';
UPDATE tfc_tmp_fa_details
SET fk_fa_detail_upper_level = NVL(fk_fa_detail_upper_level, 0)
WHERE fk_fa = v_fa.s_fa
AND s_fa_detail > 0
AND session_id = USERENV('SESSIONID');
-- Sort FA Details Tree according n_detail_order field --
pkgfc_gi.v_cphase := '01-13';
Tree_Sorting(1, 0);
-- Clean Temporary Table --
pkgfc_gi.v_cphase := '01-16';
WHEN OTHERS THEN
dbms_output.put_line('OTHERS');
pkgfc_gi.eev_cur := v_eev_cur;
v_loop_ret := -1;
IF (c_fa%ISOPEN ) THEN CLOSE c_fa ; END IF;
IF (c_cli%ISOPEN) THEN CLOSE c_cli; END IF;
IF (c_ctr%ISOPEN) THEN CLOSE c_ctr; END IF;
IF (c_fam%ISOPEN) THEN CLOSE c_fam; END IF;
IF (c_cad%ISOPEN) THEN CLOSE c_cad; END IF;
IF (c_fad%ISOPEN) THEN CLOSE c_fad; END IF;
pkgfc_gi.v_cretour := '9'; -- When Others Error
pkgfc_gi.v_cproc := 'FA_Engine_Main.Calcul_FA';
pkgfc_gi.v_mess := SUBSTR(SQLERRM(SQLCODE), 1, 255);
pkgfc_dts.put_nline('Err : '||pkgfc_gi.v_cretour||' - '||pkgfc_gi.v_cphase||' - '||pkgfc_gi.v_cproc||' - '||pkgfc_gi.v_mess);
-------------------------------------------------------------------- END
END;
END LOOP;
return(v_return);
END Calcul_FA;
END FA_Main;
/It looks to me like procedure 'tree_sorting' is declared as a local procedure within a nested BEGIN .. END block (which spans lines 288 - 438). You cannot call this procedure outside that block, it is out of scope - you would have to move it to a higher scope.
It would help if you posted something remotely readable in future.
Maybe you are looking for
-
Edit Add New Item link in certain view of list in SharePoint Programmtically
this is my requirements i have one list called List 1 and two content types on it CT 1 and CT 2 and create two views on the list View 1 to display items of CT 1 View 2 to display items of CT 2 the creation of list and views is done via XML now i n
-
How long does a charge last?
Let's say I fully drain the battery on my ipod touch 3g, how long should i leave it charging via a wall usb adapter (not through computer usb). This isnt clear in the manual.
-
Chr(10) not working in isql *plus
Hi, Im using oracle 9i. i executed the following statement in sql * plus, select 'sankar'||chr(10)||'naraya" from dual the output is , sankar naraya but when i execute the same statement in iSQL *Plus the output is sankar naraya i need the first outp
-
Online Number still in use.
Hi. I've just brought an online number and upon calling some random guy picks up. Can I change the number? T
-
Getting error when we execute query in RSRT1
Hi Gurus, I Loaded Transaction data in "0CCA_C11" cube and also loaded master data too. but when i execute query in RSRT1 i am getting error message 1) Could not enter feature 0COSTCENTER__0PROFIT_CTR with SID 133 into table /BI0/SIOBJNM 2)System err