Error in compling flex field.
Hi,
I have receiving the following ERROR, when compile flex fields using adadmin.
FYI, I have been also applied CPU-Jan-2010 patch(8317778).
where I can see that what is the issue?
Enter your choice [5] : 3
Connecting to APPS......Connected successfully.
Connecting to APPLSYS......Connected successfully.
Deleting existing compiled flexfield information.
TRUNCATE TABLE FND_COMPILED_ID_FLEXS REUSE STORAGE
TRUNCATE TABLE FND_COMPILED_ID_FLEX_STRUCTS REUSE STORAGE
TRUNCATE TABLE FND_COMPILED_DESCRIPTIVE_FLEXS REUSE STORAGE
Compiling all application flexfields.
/backup/backups/by_fayaz/DBA_APPS/SILP15/apps/apps_st/appl/fnd/12.0.0/bin/fdfcmp APPS/***** 0 Y
Log filename : /backup/backups/by_fayaz/DBA_APPS/SILP15/apps/apps_st/appl/admin/SILP15/log/l2666384.req
Report filename : /backup/backups/by_fayaz/DBA_APPS/SILP15/apps/apps_st/appl/admin/SILP15/out/o2666384.out
An error occurred while compiling application flexfields.
Continue as if it were successful [No] : No
Time is: Mon Jan 18 2010 15:44:47
Backing up restart files, if any......Done.
You should check the file
/backup/backups/by_fayaz/DBA_APPS/SILP15/apps/apps_st/appl/admin/SILP15/log/adadmin.log
for errors.
Thx.
Hi,
Here is the output:
First out:
Time is: Mon Jan 18 2010 15:57:56
Backing up restart files, if any......Done.
Time is: Mon Jan 18 2010 15:57:56
There is no timing information available for the current session.
AD Administration is complete.
Errors and warnings are listed in the log file
/backup/backups/by_fayaz/DBA_APPS/SILP15/apps/apps_st/appl/admin/SILP15/log/adadmin.log
and in other log files in the same directory.
second Output:
tail -100 /backup/backups/by_fayaz/DBA_APPS/SILP15/apps/apps_st/appl/admin/SILP15/log/l2666384.req
Application Id: 8901
Short Name: FV
Name: Federal Financials
Flexfield Name: $SRS$.RXFVFTXR
Title: $SRS$.RXFVFTXR
Compilation was successful for current descriptive flexfield.
Application Id: 8901
Short Name: FV
Name: Federal Financials
Flexfield Name: $SRS$.RXFVTBTS
Title: $SRS$.RXFVTBTS
Compilation was successful for current descriptive flexfield.
Flex compilation process complete ...
Flex compilation process complete ...
=====================================
Number of successful key flex compilations : 134
Number of failed key flex compilations : 0
Number of successful descriptive flex compilations : 8697
Number of failed descriptive flex compilations : 11
=====================================
Tip: To find failed flexfield compilations, please search for following string in this log file:
'Compilation aborted for current'
Concurrent request completed
Current system time is 18-JAN-2010 15:43:40
[oracle@erpapps SILP15]$
thx.
Similar Messages
-
Error in compiling Flex fields
Hi,
I am facing flex field complilation errors.
Deleting existing compiled flexfield information.
Compiling all application flexfields.
/backup/backups/db/SILP15/apps/apps_st/appl/fnd/12.0.0/bin/fdfcmp APPS/***** 0 Y
An error occurred while compiling application flexfields.
Continue as if it were successful [No] :
Backing up restart files, if any......Done.
You should check the file
/backup/backups/db/SILP15/apps/apps_st/appl/admin/SILP15/log/adadmin.log
for errors.
[oracle@erpapps bin]$
Application Id: 702
Short Name: BOM
Name: Bills of Material
Flexfield Name: $SRS$.CSTJELINESRPT
Title: $SRS$.CSTJELINESRPT
Compilation aborted for current descriptive flexfield...
APP-FND-00798: Invalid reference XLA_SRS_SUBLEDGERS in value set attached to segment Ledger/Ledger Set
Please check the WHERE clauses of your table validated value sets.
Continuing...
Application Id: 7003
Short Name: JG
Name: Regional Localizations
Flexfield Name: $SRS$.JGSLADJNL
Title: $SRS$.JGSLADJNL
Compilation aborted for current descriptive flexfield...
APP-FND-00798: Invalid reference XLA_SRS_SUBLEDGERS in value set attached to segment Journal Entry Source
Please check the WHERE clauses of your table validated value sets.
Continuing...
Application Id: 7003
Short Name: JG
Name: Regional Localizations
Flexfield Name: $SRS$.JGSLAJNLLG
Title: $SRS$.JGSLAJNLLG
Compilation aborted for current descriptive flexfield...
APP-FND-00798: Invalid reference XLA_SRS_SUBLEDGERS in value set attached to segment Journal Entry Source
Please check the WHERE clauses of your table validated value sets.
Continuing...
Application Id: 7003
Short Name: JG
Name: Regional Localizations
Flexfield Name: $SRS$.JGSLAJNLTP
Title: $SRS$.JGSLAJNLTP
Compilation aborted for current descriptive flexfield...
APP-FND-00798: Invalid reference XLA_SRS_SUBLEDGERS in value set attached to segment Journal Entry Source
Please check the WHERE clauses of your table validated value sets.
Continuing...
Application Id: 7003
Short Name: JG
Name: Regional Localizations
Flexfield Name: $SRS$.JGSLASDJNL
Title: $SRS$.JGSLASDJNL
Compilation aborted for current descriptive flexfield...
APP-FND-00798: Invalid reference XLA_SRS_SUBLEDGERS in value set attached to segment Journal Entry Source
Please check the WHERE clauses of your table validated value sets.
Continuing...
Application Id: 7003
Short Name: JG
Name: Regional Localizations
Flexfield Name: $SRS$.JGSLATPABL
Title: $SRS$.JGSLATPABL
Compilation aborted for current descriptive flexfield...
APP-FND-00798: Invalid reference XLA_SRS_SUBLEDGERS in value set attached to segment Journal Entry Source
Please check the WHERE clauses of your table validated value sets.
Continuing...
Application Id: 7003
Short Name: JG
Name: Regional Localizations
Flexfield Name: $SRS$.JGSLATPDBL
Title: $SRS$.JGSLATPDBL
Compilation aborted for current descriptive flexfield...
APP-FND-00798: Invalid reference XLA_SRS_SUBLEDGERS in value set attached to segment Journal Entry Source
Please check the WHERE clauses of your table validated value sets.
Continuing...
Application Id: 7003
Short Name: JG
Name: Regional Localizations
Flexfield Name: $SRS$.JGSLATPSBL
Title: $SRS$.JGSLATPSBL
Compilation aborted for current descriptive flexfield...
APP-FND-00798: Invalid reference XLA_SRS_SUBLEDGERS in value set attached to segment Journal Entry Source
Please check the WHERE clauses of your table validated value sets.
Continuing...
Flex compilation process complete ...
=====================================
Number of successful key flex compilations : 134
Number of failed key flex compilations : 0
Number of successful descriptive flex compilations : 8744
Number of failed descriptive flex compilations : 8
=====================================
Tip: To find failed flexfield compilations, please search for following string in this log file:
'Compilation aborted for current'
Concurrent request completed
Current system time is 04-MAR-2010 13:09:51
thx
Edited by: user12007410 on Mar 4, 2010 1:13 AMHi Helios,
We are using R12.0.6 and db is 10.2.0.3, Linux OS.
I have checked this Doc ID, which contains following:(below is my checking please)
Solution
1. Follow the Note.877352.1 instructions carefully;
2. Apply the patch 8626820:R12.JG.A;
3. For packages OKL_... and ICX_ ... please now follow Note.754340.1;
4. For the FV_... and FUN_.... please follow Note.758497.1;
5. For the GR_MIGRATE_TO_12 now follow the Note.733646.1;
(for note's step 5 about patch 6997324 open an SR with Support if you require a password)
6. Finally, to drop the view called ICX_PO_VENDOR_SITES_V, just execute in a SQL*plus (user APPS) session: drop view ICX_PO_VENDOR_SITES_V;
My Checking: (I have checked the file version mentioned in below patches also, having same versions of already applied patches)
1: I have check the patch# 8348599 mentioned in 877352.1 not already applied, so should I apply it?
2: I have check the patch# 8626820 mentioned in step#2 not already applied, so should I apply it?
3: I have check the doc id 754340.1 which containg the following patches:
- 7641584 -------> Already appled
- 8201911 -------> Already Not appled ----------> Should apply this?
- 7659470 -------> Already appled
- 6708042 -------> Already appled
- 7662017 -------> Already appled
4: I have check the doc id 758497.1 which containg the following patches already appled:
- 7376249 -------> Already appled
- 7372270 -------> Already appled
- 7372268 -------> Already appled
5: I have check the patch# 6997324 mentioned in step#5 already applied.
6: I have checked this view ( ICX_PO_VENDOR_SITES_V) is not exist. what should I do?
Thanks,
fazijee -
Getting error in Trail Balance Report's accounting flex field values
Hi guys,
whenever run the Trail Balance program I am getting some error in Accountng Flex Field value for particular account or transaction.Actually I am not able to find excat error in report why it came. plz tell me how to identify and how to check from backend table's link. I just share some transaction data plz see it :
ACCOUNTS Description Accounting Flexfield Beginning Balance Period Activity Ending Balance
155000 STOCK-SERVICE CENTRE 01.004.000.0014.155000.0000000.050.000 - 4,514.98 4,514.98
155000 STOCK-SERVICE CENTRE ** CODE=GL#, NUM=50249 : invalid segment - 4,155.00 4,155.00
162212 STAFF - IMPREST 01.019.000.0000.162212.S900034.000.000 10,293.00 - 10,293.00
162212 STAFF - IMPREST ** CODE=GL#, NUM=50249 : invalid segment (2,530.00) - (2,530.00)
162212 STAFF - IMPREST 01.019.000.0000.162212.S900035.000.000 950.00 - 950.00
plz look under line value and give me solution............it's urgent
Thanks
Edited by: 811373 on Jul 22, 2011 9:42 AMPlease see if these docs help.
GLXRBUDA flexfield displays** CODE=GL#, NUM=101 : invalid Segment ** [ID 139400.1]
AXXGRSLR: Customer Subledger By Account Shows "Invalid Segment" Row [ID 444717.1]
If you still have the same issue, please log a SR.
Thanks,
Hussein -
Error While validation segments of Key flex fields in OAF Programmatically
I have requirement to validation particular segments of Key Flex fields.
I tried to handle it as below, But I am facing one issue and not able to fix. Please help me as soon as possible.
public void processFormRequest( OAPageContext paramOAPageContex, OAWebBean paramOAWebBean)
if(Function_name.equalsIgnoreCase("NWC_TICKET_REQ_HR_SIT_SS"))
/* OAMessageTextInputBean TicketClass=(OAMessageTextInputBean)key.findChildRecursive("HrSitKeyFlex23");
OAMessageTextInputBean CompanyShare=(OAMessageTextInputBean)key.findChildRecursive("HrSitKeyFlex16");
OAMessageTextInputBean TSO=(OAMessageTextInputBean)key.findChildRecursive("HrSitKeyFlex14");
OAMessageTextInputBean Flight_Reservation =(OAMessageTextInputBean)key.findChildRecursive("HrSitKeyFlex13");
// OAMessageDateFieldBean Traveldate=(OAMessageDateFieldBean)key.findChildRecursive("HrSitKeyFlex11");
paramOAPageContext.writeDiagnostics(this,"Flex Segment value is : "+TicketClass.toString()+":"+TicketClass.getAttributeMap() +" ,"+TicketClass.getValue(paramOAPageContext)+",",1);
paramOAPageContext.writeDiagnostics(this,"Flex Segment value is : "+CompanyShare.toString()+":"+CompanyShare.getAttributeMap() +" ,"+CompanyShare.getValue(paramOAPageContext)+",",1);
paramOAPageContext.writeDiagnostics(this,"Flex Segment value is : "+Flight_Reservation.toString()+":"+Flight_Reservation.getAttributeMap() +" ,"+Flight_Reservation.getValue(paramOAPageContext)+",",1);
paramOAPageContext.writeDiagnostics(this,"Flex Segment value is : "+TSO.toString()+":"+TSO.getAttributeMap() +" ,"+TSO.getValue(paramOAPageContext)+",",1);
if(TicketClass.getValue(paramOAPageContext)!=null || CompanyShare.getValue(paramOAPageContext)!=null || TSO.getValue(paramOAPageContext)!=null)
throw new OAException("TravelServiceOrder , p_flight_no ,p_ticket_class,p_ticket_amount can not be left Blank. Please enter value");
Now after first validation I could see the below error:
Error
Program error: Please inform your support representative that: FLEXFIELDS SERVER-SIDE VALIDATION package reports error: call_userval() exception: ORA-06508: PL/SQL: could not find program unit being called
Please suggest me how can I avoid this. This is taking place only during validation. Its urgent for code fix.Hi Helios,
We are using R12.0.6 and db is 10.2.0.3, Linux OS.
I have checked this Doc ID, which contains following:(below is my checking please)
Solution
1. Follow the Note.877352.1 instructions carefully;
2. Apply the patch 8626820:R12.JG.A;
3. For packages OKL_... and ICX_ ... please now follow Note.754340.1;
4. For the FV_... and FUN_.... please follow Note.758497.1;
5. For the GR_MIGRATE_TO_12 now follow the Note.733646.1;
(for note's step 5 about patch 6997324 open an SR with Support if you require a password)
6. Finally, to drop the view called ICX_PO_VENDOR_SITES_V, just execute in a SQL*plus (user APPS) session: drop view ICX_PO_VENDOR_SITES_V;
My Checking: (I have checked the file version mentioned in below patches also, having same versions of already applied patches)
1: I have check the patch# 8348599 mentioned in 877352.1 not already applied, so should I apply it?
2: I have check the patch# 8626820 mentioned in step#2 not already applied, so should I apply it?
3: I have check the doc id 754340.1 which containg the following patches:
- 7641584 -------> Already appled
- 8201911 -------> Already Not appled ----------> Should apply this?
- 7659470 -------> Already appled
- 6708042 -------> Already appled
- 7662017 -------> Already appled
4: I have check the doc id 758497.1 which containg the following patches already appled:
- 7376249 -------> Already appled
- 7372270 -------> Already appled
- 7372268 -------> Already appled
5: I have check the patch# 6997324 mentioned in step#5 already applied.
6: I have checked this view ( ICX_PO_VENDOR_SITES_V) is not exist. what should I do?
Thanks,
fazijee -
Error in compiling Flex application: 64K byte limit
Hi experts ,
While deploying the VC model , i m getting this error :
Error in compiling Flex application: Error: A function in the code exceeds the 64K byte limit (actual size = '65557'). Since the problem occurs in the compiler-generated deferred instantiation code, please refactor/componentize portions of this document.
(/usr/sap/NW2/JC00/j2ee/cluster/server0/GUIMachine_Business_Packages/Contribution_Margin_36461/FLEX_COMPILATION_FOLEDR/AAD15VY.mxml:19)
Failed to compile AAD15VY.mxml
Could any one help me out in solving this issue ..its urgent ...
Your suggestions will be rewarded.
Thanks,
PratimaYou have to remove few components from your model to decrease the compiler generated LOC.
Check the following link for detailed solution:
https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=936390
Taken from SAP Notes:
<i>Solution
Doing the following may help:
1.Divide problematic iViews into a number of nested iViews.
2.Optimize each model to reduce the number of elements that it
contains:
a.Reduce the number of signals by merging signals of the same name.
b.When your application updates forms with read-only fields, use
expression boxes and a data store instead of signals.
c.Minimize the use of animations in your models, including form
sliding and chart animation effects
d.Use a data store to store variables, instead of invisible forms.
To display messages, use a simple text rather than a static dynamic
expression.
3.For on-the-spot, temporary workarounds, you can try dragging an empty
layer onto the Design board. This sometimes solves the problem ad
hoc, but is not recommended as a best practice.
</i> -
Need help with adding a Key flex field to a seeded OAF page
We have a seeded OAF page on which we already have Account Key Flex Field.
Properties of this flex field are:
The ApplShortName - SQLGL
Name - GL#
Type - Key
As per the client requirement, in the KFF screen, we have disabled the seeded structure for Accounting Flexfield and created a custom structure.
Our custom structure for the KFF is displayed correctly on the OAF page.
But now the requirement is to add a new KFF on the OAF page which is duplicate of the existing KFF, along with the existing KFF field; the structure and segments are same. Only difference being the display name of the existing KFF field is Account; the new one needs to be Tax structure.
Using personalization we added a new flex item and added the properties same as the existing KFF.
ApplShortName - SQLGL
Name - GL#
Type - Key
But the page is giving following error:
The data that defines the flexfield on this field may be inconsistent. Inform your system administrator that the function: KeyFlexfieldDefinitionFactory.getStructureNumber could not find the structure definition for the flexfield specified by Application = SQLGL, Code = GL# and Structure number =
We tried options like compiling the flexfield definition, but the error persists.
Any help in this regard is highly appreciated.
Regards,
Kiranmayi.Hi,
Please check whether your key flex structure is frozen or not. If now please freeze it and re compile and try.
This may helps too
error while developing KFF in oaf
Thanks
Bharat
Edited by: Bharat on May 10, 2013 4:51 AM -
Using Flex Fields in BPM worklist
Hi,
Am trying to use flexfileds in BPM worklist so that I can have additional attributes from the payload associated from the humantask type , in the task header that appears in home page.
Am able to create new label and then tried following steps :-
1. Clicked Edit mappings by task type and selected my task type whose payload attributes are required to be mapped with the flex fields.
2. The value "default/sampleta!1.0*soa_b4396581-d005-4374-be29-5cd725c3e134/Humantask" gets populated in the fields "Edit mappings by task type".
3. However , it shows the message "There are no simple Payload Attributes associated with this TaskType".
I thought that I need to make use of Mapped Attributes section in the Data tab found in humanworkflow task . However when I tried adding attribute there it showed me following error message :-
Error in workflow service Web service operation invocation.
Error in workflow service Web service operation invocation. The error is ORA-30501:Error in authenticating user.
Error in authenticating and creating a workflow context for user jazn.com/dev_soa_admin.
Verify that the user credentials and identity service configurations are correct.
Verify that the SOAP connection information for the server is correct.
at oracle.bpel.services.workflow.query.client.TaskQueryServiceSOAPClient.convertSOAPFaultException(TaskQueryServiceSOAPClient.java:242)
at oracle.bpel.services.workflow.query.client.TaskQueryServiceSOAPClient.invoke(TaskQueryServiceSOAPClient.java:203)
at oracle.bpel.services.workflow.query.client.TaskQueryServiceSOAPClient.authenticate(TaskQueryServiceSOAPClient.java:253)
at oracle.bpel.services.workflow.query.client.AbstractDOMTaskQueryServiceClient.authenticate(AbstractDOMTaskQueryServiceClient.java:167)
at oracle.bpel.services.workflow.query.client.AbstractDOMTaskQueryServiceClient.authenticate(AbstractDOMTaskQueryServiceClient.java:185)
at oracle.tip.tools.ide.pm.modules.humanworkflow.task.taskflow.wizard.lookup.LookupUtil.listAttributeLabels(LookupUtil.java:436)
at oracle.tip.tools.ide.pm.modules.humanworkflow.task.taskflow.wizard.lookup.LookupUtil.listProtectedAttributeLabels(LookupUtil.java:406)
at oracle.tip.tools.ide.pm.modules.humanworkflow.task.taskflow.wizard.lookup.LookupDataProviderImpl.handleFlex(LookupDataProviderImpl.java:105)
at oracle.tip.tools.ide.pm.modules.humanworkflow.task.taskflow.wizard.lookup.LookupDataProviderImpl.getResult(LookupDataProviderImpl.java:38)
at oracle.tip.tools.ide.workflow.api.FlexFieldDetailsPanel.initializeAttributeCombo(FlexFieldDetailsPanel.java:175)
at oracle.tip.tools.ide.workflow.api.ConnectionComponent._applicationServerChanged(ConnectionComponent.java:350)
at oracle.tip.tools.ide.workflow.api.ConnectionComponent.access$1000(ConnectionComponent.java:60)
at oracle.tip.tools.ide.workflow.api.ConnectionComponent$1.run(ConnectionComponent.java:361)
at java.lang.Thread.run(Thread.java:619)
ORABPEL-30044
I have couple of questions :-
1. For the payload attribute to appear in the BPM worklist sreen while mapping for the flex field , I understand that it should be of simple type . My payload looks like this :-
<ns:employees>
<ns:employee>
<ns:name>John</ns:name>
<ns:age>37</ns:initiator>
<ns:salary>20000</ns:salary>
</ns:employee>
</ns:employees>
I expected name , age , salary to appear in BPM worklist for mapping after I select task type against "Edit mappings by task type" while doing flex field mapping however it is showing me : There are no simple Payload Attributes associated with this TaskType
2. Please advise if I need to anything extra like adding mapped attributes (in Data section of Humantask) or Collections in Task parameter window .
Can anyone please help me on this .
Thanks in advance !Are you sure the xml is correct here:
<ns:employee>
<ns:name>John</ns:name>
<ns:age>37</ns:initiator>
<ns:salary>20000</ns:salary>
</ns:employee>
It should be <ns:age>37</ns:age>, I believe.
I have a xsd definition like this:
<element name="loanApplication">
<complexType>
<sequence>
<element name="SSN" type="string"/>
<element name="email" type="string"/>
<element name="customerName" type="string"/>
<element name="customerAge" type="int"/>
<element name="customerAnnualIncome" type="double"/>
<element name="city" type="string"/>
<element name="state" type="string"/>
<element name="country" type="string"/>
<element name="loanAmount" type="double"/>
<element name="carMake" type="string"/>
<element name="carModel" type="string"/>
<element name="carYear" type="string"/>
<element name="creditRating" type="int"/>
<element name="creditRisk" type="string"/>
<element name="creditMaxAmount" type="double"/>
</sequence>
</complexType>
</element>
And I am able to do the mapping without any issues. -
Unable to place a value in Flex Field in OAF page
Hi all,
I am unable to place this flex value in the flex field, but i can do this same thing in a normal "Text Field" am able to reterive that number and place in that text field .
Problem is placing the same in Flex field , please suggest me how to do this .
I have one Function Standard one that i am calling here and making use of that i can call that function and am able to get that value and place in a "Text Field" but the same thing i couldn't place in the "Flex Field" how to do this any idea am thank full to them. Its a very urgent issue i have to solve this.
MY Controller Code:
OAKeyFlexBean revenue = null;
String s8 = pageContext.getParameter("Purpose");
revenue = (OAKeyFlexBean)webBean.findIndexedChildRecursive("reveFF"); ------------------- this is the Flex Field where i have to place the output
revenue.useCodeCombinationLOV(true);
if(s8.equalsIgnoreCase("BILL_TO")) {
try {
Connection conn = pageContext.getApplicationModule(webBean).getOADBTransaction().getJdbcConnection();
String Query = "select SDS_CUST_BILL_INFO(:1,2) from dual";
PreparedStatement stmt = conn.prepareStatement(Query);
stmt.setInt(1, orgid);
ResultSet resultset = stmt.executeQuery();
if(resultset.next()) {
String revenuenum = resultset.getString(1);
revenue.mergeSegmentsWithParent(pageContext);
revenue.setStructureCode( ); ---------------------- What i have to give here
revenue.setCCIDAttributeName("GlIdRev"); ---------------------- Attribute Name
revenue.useCodeCombinationLOV(false);
revenue.setAttributeValue(FLEXFIELD_SEGMENT_LIST, revenuenum); ------------- How to use this FLEXFIELD_SEGMENT_LIST (unable to retrieve anything)
revenue.setText(revenuenum);
} catch(SQLException se) {
se.printStackTrace();
throw new OAException("Error in Staffing Query"+se, OAException.ERROR);
Standard function i have:
create or replace FUNCTION SDS_CUST_BILL_INFO(P_ORG_ID IN NUMBER,P_ACC_TYPE IN NUMBER) RETURN VARCHAR2
AS
*- Purpose: This PL/Sql program that will return GL_ID_RECEIVING_ACCOUNT or GL_ID_REVENUE_ACCOUNT
*- information for new Customer BIll_TO site
V_ACCOUNT VARCHAR2(2000);
BEGIN
BEGIN
SELECT TRUNC(SEGMENT1)||'-'||TRUNC(SEGMENT2)||'-'||SEGMENT3||'-'||TRUNC(SEGMENT4)||'-'||SEGMENT5||'-'||SEGMENT6||'-'||SEGMENT7
INTO V_ACCOUNT
FROM GL_CODE_COMBINATIONS GCC
,HR_ORGANIZATION_UNITS HOU
,RA_CUST_TRX_TYPES_ALL RCTA
WHERE HOU.ORGANIZATION_ID = RCTA.ORG_ID
AND HOU.ORGANIZATION_ID = P_ORG_ID
AND GCC.CODE_COMBINATION_ID = DECODE(P_ACC_TYPE,1,RCTA.GL_ID_REC,2,RCTA.GL_ID_REV)
AND UPPER(RCTA.NAME) = 'INVOICE'
AND HOU.ATTRIBUTE3 = 'Y';
EXCEPTION
WHEN NO_DATA_FOUND THEN
V_ACCOUNT := NULL;
WHEN OTHERS THEN
V_ACCOUNT := NULL;
END;
RETURN(V_ACCOUNT);
END;Hi parag,
You mean to say i have to write like this :--
if (pageContext.getParameter("apply")!=null)
OAApplicationModule am = pageContext.getApplicationModule(webBean);
OAViewObject accountsViewObject =
(OAViewObject)am.findViewObject("ArBusPurAllVO");
if (accountsViewObject!=null)
OARow row = (OARow) accountsViewObject.getCurrentRow();
if (row.getAttribute("GlIdRev") == null || row.getAttribute("GlIdRev").equals(""))
//call your function here and say row.setaatribbute= revenue_acct_id from your function.
if(s8.equalsIgnoreCase("BILL_TO")) {
try {
Connection conn = pageContext.getApplicationModule(webBean).getOADBTransaction().getJdbcConnection();
String Query = "select SDS_CUST_BILL_INFO(:1,2) from dual";
PreparedStatement stmt = conn.prepareStatement(Query);
stmt.setInt(1, orgid);
ResultSet resultset = stmt.executeQuery();
if(resultset.next()) {
String revenuenum = resultset.getString(1);
row.setaatribbute(revenuenum) ;
} catch(SQLException se) {
se.printStackTrace();
throw new OAException("Error in Staffing Query"+se, OAException.ERROR);
if (row.getAttribute("GlIdRec") == null || row.getAttribute("GlIdRec").equals(""))
//call your function here and say row.setaatribbute=rec_acct_id from your function.
if(s8.equalsIgnoreCase("BILL_TO")) {
try {
Connection conn = pageContext.getApplicationModule(webBean).getOADBTransaction().getJdbcConnection();
String Query = "select SDS_CUST_BILL_INFO(:1,2) from dual";
PreparedStatement stmt = conn.prepareStatement(Query);
stmt.setInt(1, orgid);
ResultSet resultset = stmt.executeQuery();
if(resultset.next()) {
String receivablenum = resultset.getString(1);
row.setaatribbute(receivablenum) ;
} catch(SQLException se) {
se.printStackTrace();
throw new OAException("Error in Staffing Query"+se, OAException.ERROR);
super.processFormRequest(pageContext, webBean);
Am I, correct parag please tell me, if this works i will send u mail again that it is working fine .
my mail id is [email protected] -
Defaulting the mandatory field to space in a flex field - Urgent...
Hi ,
I have a flex field which is used to render address based on the country selected ( Country is an LOV..)
The flex field details are.
Appl Short Name: AR
Name: Remit Address HZ
Type: descriptive
Address Line 1 is mandatory in the flex field configuration.
My requirement is to default the Address Line 1 with space which I am doing by setting the vo.setAddressLine1(" ")
once the VO is initialized and in the screen Address Line 1 is getting defaulted to space.
But if the user removes the space in it and tabs out, even then I have to default the Address Line 1 with space.
(i.e. if Address Line 1 is null then I have to default it to space)
But as it is a flex field it does not have any Action Type. How can I default it if the user makes the field null..
I tried in the VORowImpl to set the value to space if it is null but it is not working...
public String getAddress1() {
String value = (String) getAttributeInternal(ADDRESS1);
if ( value == null || "".equals(value ) )
return " ";
return (String) getAttributeInternal(ADDRESS1);
When the user makes this field as null and clicks on Apply button, the form validation appears saying the field
is mandatory.( I cannot set the Disable Client Side validation to True for the Apply Button..)
Is there a way
1. To set the value of the VO attribute to space if it is made null
or
To set the VO attribute to a space before the form validation error appears?Hi Friends,
I got the answer. The following link gives the details.
http://www.oraclearea51.com/oracle-technical-articles/oa-framework-articles/184-set-dff-segment-required-in-oaf.html -
Hi ,
I am using ODI 10.1.3.5.4 with Oracle to Oracle data transfer. I tried to create Flex Field. I have followed following steps:
1. In security Manager, Objects Tab, I selected Data Server and added a Flex field as SOURCE_DATABASE_LINK_NAME.
2. In Topology managaer, Physical Architecture, I have opend a data server and gone to Flex field and put the value 'xyz'
3. In Designer, Project tab, I had gone to LKM. Inside it, I am giving like this :
<%=odiRef.getSrcTablesList("", "[SCHEMA].[RES_NAME]@[SOURCE_DATABASE_LINK_NAME]", ", ", "")%>
OR
<%=odiRef.getInfo("SOURCE_DATABASE_LINK_NAME")%>
OR
<%=odiRef.getFlexFieldValue("SOURCE_DATABASE_LINK_NAME")%>
I am getting errors with all options. None of the options work.
If I use getFlexFieldValue(), it says [PROPERTY: "SOURCE_DATABASE_LINK_NAME" not found.]
If I use other 2, I get Unknown flexfield code.
Here what I want to get is the value xyz, so that I can read the DB Link name so that I can refer in my code.
Can someone help me to figure out where I am doing wrong.
Thanks
Arun
Edited by: Tayalarun on Feb 4, 2010 1:11 AMThanks to both of you of taking time to help me
I have tried you the Siddharth option first.
I used the TRY block in my LKM with Technology as Oracle. I have put the following code:
create or replace view <%=odiRef.getObjectNameDefaultPSchema("L", "" , "W")%><%=odiRef.getInfo("COLL_NAME")%>
<%=odiRef.getColList("", "[CX_COL_NAME]", ",\n\t", "", "")%>
as select <%=odiRef.getPop("DISTINCT_ROWS")%>
<%=odiRef.getColList("", "[EXPRESSION]", ",\n\t", "", "")%>
from
<%
try
String [] strTableNames = odiRef.getSrcTablesList("","[SCHEMA].[RES_NAME]", "~", "").split("~");
String [] strTableAlias = odiRef.getSrcTablesList("","[ALIAS]", "~", "").split("~");
String strDbLink = odiRef.getInfo("SRC_DSERV_NAME");
int loopCount;
for (loopCount=0; loopCount<strTableNames.length; loopCount++)
if(loopCount>0)
out.print(",");
out.print(strTableNames[loopCount] + "@" + strDbLink + " " + strTableAlias[loopCount]);
catch(Exception e)
out.print("Error here:"+e.getMessage());
%>
where (1=1)
<%=odiRef.getFilter()%>
<%=odiRef.getJrnFilter()%>
<%=odiRef.getJoin()%>
<%=odiRef.getGrpBy()%>
<%=odiRef.getHaving()%>
On execution, I get the message in my From Clause:
Error:Unknown flexfield code.
I have tried other option also:
<% v_java3=odiRef.getInfo("SRC_DSERV_NAME");%>
<%=odiRef.getSrcTablesList("", "[SCHEMA].[RES_NAME]out.print(v_java3);", ", ", "")%>
On execution, I get:
WMC.ACCOUNTout.print(v_java3);, WMC.ACCT_GROUPout.print(v_java3);
Here it didn't resolve the v_java3.
Can you help me in getting some resolution.
Thanks
Arun -
Cfc error when using Flex and RemoteObject (cross post)
I have Flex 3.0.214193 and CF 8,0,0,176276 and Oracle
10.2.0.3.
I've been search for several days for an answer to this one.
There is very little out there about this type of error, but then
there is very little about any problems with Flex and ColdFusion.
In Flex, I have two comment fields. the .cfc has two update
functions that update the comments, because they are in two
different tables. The first update works like a champ. The second
one consistantly shows this error in the CF application log: The
NEWENGREMARK parameter to the updateEng function is required but
was not passed in. I've used the Alert.Show to verify that Flex
does have a value in that variable when it calls the .cfc. I've
even tried passing the first variable that worked in the first
update, and even a litteral value. Everything yields the same
cryptic error message. I must be looking at the wrong thing.
The only things I've found on the web about this, say the
variables should have a scope (is that a scope in Flex or in the
.cfc) and the column names should be in upper case (because it's
Oracle).
Here's the .cfc code (is that where the error is, or is it in
Flex?). The UpdateDescription function works, but the UpdateEng
doesn't.
Thanks for any help, or spelling errors you can point out.
ScottIan,
I also heard about the case thing. So I tried everything in
upper case and lower case - same thing. In my experimenting, I
tried adding the newENGRemark parameter to the descriptionUpdate
function call, I didn't do anything with it is the .cfc just
declared it as required. In that case the parameter exists and
everything is fine. But in the call to the UpdateEng, it doesn't
exist.
I changed the .cfc so that the newENGRemark was not required
or had a default. In both cases the .cfc just skipped to the next
parameter and said it didn't exist. But I was passing a litteral,
it wasn't even a variable.
I created a .cfm page that did a cfinvoke on the .cfc, and
passed it two litterals. That worked fine. So that makes it look
like some sort of syntax error in the Flex. So I deleted the call
to the UpdateENG, copied the UpdateDescription call (because it
works), changed just the minimum to make it work, but it didn't
work.
I think I am going to restructure the database so that I can
do what I need to with just one update function, that seems to
work.
It still doesn't make any sense.
Scott (Flex code is attached) -
Range based Flex field validation based on a Lookup table
Hi all,
I am trying to create a validation in one of the flex field under HRMS Application. Table: PAY_ELEMENT_ENTRIES_F
Validation is pretty simple - but i am struggling to implement.
Assume there exists two flex fields;
Field1 contains State Information
Field2 contains Percentage Information
The above two values would be entered by the user.
the validation should be like this.
Field1 - State code entered by User
Field2 - We have a seperate Lookup where we have setup lots of State specific information. Assume ATTRIBUTE3 and ATTRIBUTE4 defines the Min and Max range which would be configured during the Setup. User should be entering any percentage value between the ATTRIBUTE3 and ATTRIBUTE4.
I have created a Table Validaiton with select 1 from dual with the following where clause.
exists ( select null from fnd_common_lookups l, fnd_sessions sess
where
l.lookup_type like 'CUSTOM_US_STATE_RULES'
and sess.session_id= userenv('sessionid')
and sess.effective_date between l.start_date_active
and NVL(l.end_date_active, sess.effective_date)
*and l.attribute1 ='01' -- consider 01 state alone for the time being*
and :$FLEX$.ENTRY_INFORMATION4 between to_number(l.attribute4) and to_number(l.attribute5)
When i compile the flexfileld, it errors out stating invalid reference to ENTRY_INFORMATION4.
ENTRY_INFORMATION4 is the field where i am going to attach this validation
How do i validate a value of the flexfield against the range of values available in another table(in this case a lookup table) ?
Any ideas on how to implement this.
Edited by: vaibhav468 on Sep 29, 2008 3:05 PMThanks so much for the reply. apparently the solution which you have suggested may not work 100% as the data entry also happens via API. Its mentioned in the doc that the special validations happen only via Forms.
But I implemented it in a crude way. But it works though !!!!
Based on the value which i enter in the first Field1, the value set which i am using it in second Field2(its a table based value set)
I generated all possible percentages and displaying it.
My table is: (select trim(to_char(rownum/100,'990D99')) pct from fnd_columns a where rownum<=10000) a, fnd_common_lookups l
My Where clause:
where l.lookup_type='CUSTOM_US_STATE_RULES'
and l.attribute1=substr(:ENTRY.USER_ENTRY4,1,2)
and a.pct between l.attribute4 and l.attribute5
I generated the set of sequence numbers with the help of rownum from a table which definitely contains more than 10000 rows.
I was so glad that FND allowed me to use a INLINE view in the Validation Table not restricting the tables available for that application alone.
thanks again. -
Error in updating ALV field catalog in selection tool for Planning Book
Hi ,
I am Implementing BADI '/SAPAPO/SDP_SELECTOR' to upload Custom Fields Data in Planning Book Selection Window under APO Location Product. These Custom Fields are maintained in Custom Table.So from Table whatever Custom Fields are availabe all the fields needs to be available in for selection. Once selection is done the same data to be uploaded into Planning Book.
This BADI is working Fine upto 4 fields but if any extra fields are added in the table 'Error in updating ALV field catalog in selection tool' error Pop Up is coming. Here i am using Folloowing Methods
1). INIT_OBJECT_LIST
2). F4
3). LOC_PROD_VALUE_LIST
Please help on the same if u have any idea or clue.
Thanks.Hi Srinivas!
Where did you get your implementation from?
It would be nice if you could debug your code!
For the F4 method, have you seen this note?
Note 544904 - Sample source code f.BAdI /SAPAPO/SDP_SELECTOR ('F4'method)
Also check this note. It contains selection modifications in the BAdI:
Note 376902 - SDP selector: Basis corrections for BADI
I do not know your release and support package in your SCM, but you can find a lot of notes related to this BAdI.
Thank you!
Will
SCM Support Consultant -
Error in updating ALV field catalog in selection
Dear all,
I'm trying to use the standard transaction /SAPAPO/TSKEYFMAIN in order to check the TS values.
After filling the selection variant, the system shows the following error:
'Error in updating ALV field catalog in selection'
Could you please provide me with further details about the error? What could be the possible solution to avoid it?
Many thanks,
SMHi Marius,
thanks for your answer.
I would like to use the /SAPAPO/TSKEYFMAIN transaction to check massively the values in the time series KFs and not just the consistency of them.
So do you know any other transaction to do it or do you have an idea about the error of /SAPAPO/TSKEYFMAIN?
Thanks for your help!
SM -
Please refer to the below post for Flex Field Mappings in HR using the file hr_file_flex_kff_dff_user_config_map.csv
http://download.oracle.com/docs/cd/E20490_01/bia.7963/e19039/anyimp_configworkforce.htm#CIADDICF
I follow the example of W_JOB_D:
Job Dimension:
JOB_CODE
JOB_NAME
JOB_FAMILY I think this is typo as the OBAW field is JOB_FAMILY_CODE and not JOB_FAMILY
Anyways, I need to map other flex fields from EBS, is there any other document that explains it further than in the url I have posted.
If any of you have carried out this flex mapping for HR analytics using EBS R12, please let me know.good question...I have no idea...i looked into this briefly and I am wondering if it has anything to do with the following flexfield limitation..I dont think this is the reason but thought I would mention it. If you find out why this limitation is there, let me know..I would be interested. Also..CHAR datatype has a limitation of 2000 but that doesnt seem to be the problem. I think its a EBS side limitation..not a BI side one.
Here is the exerpt on hidden flexfields and the link for flexfields:
"Normally, Oracle Application Object Library can create new code combinations (dynamic insertion) from your form with a foreign key reference using only the concatenated segment values field. However, if you expect the concatenated length of your flexfield to be defined to be larger than 2000 (the sum of the defined segments' value set maximum sizes plus segment separators), then you should create these non-database fields to support the dynamic creation of new combinations from your form.
*If you do not have these fields and your users define a long flexfield (> 2000 characters), your users can experience truncation of key flexfield data when trying to create new combinations*."
URL: http://download.oracle.com/docs/cd/E18727_01/doc.121/e12897/T302934T457085.htm
Maybe you are looking for
-
I have a macbook air and I can't cut and paste in itunes. The right clic does not work. How can I work this out?
-
How can I move an image/file around inside a document with text already in it?
I'm learning In Design on the job, and it's a real challenge. One big problem I'm having is, after I've placed an image inside a document with text in it, how do I place it precisely where I want it? Sometimes I need the image flush to the left, an
-
How do u use Adobe to write on documents when there is no edit bar that apprears.....Need to fill out a release form and questionaire and send back
-
Axis 1.3 webservices exception gives problem
I am creating webservices using AXIS 1.3. While throw the exception, we are using the "org.w3c.dom.Element" to set the error message into the exception. But when the control reaches the following line of code I am getting NullpointerException. detail
-
SQLException thrown by the physical connection
Hi all, I am trying to connect to my Oracle database system from Portal system. I followed the below steps 1. Downloaded the oracle jdbc drivers and installed using Visual administrator 2. Created the new datasource from Visual administrator (I have