Host Conc Pgm Parameter Mystery w/fndcpesr
Stumbled across a strange issue with the parameter list passed to HOST concurrent programs dependent on how the symbholic link is established.
When the link is made to fndcpesr there fewer arguments and they are Not associated with key words.
Example:
ArtCostInfoUpld -> /u01/envs/PROD/app/appl/fnd/11.5.0/bin/fndcpesr
Arg list
APPS/APPS 1885 KENF 7114040
A co-worker mistakenly created a symbolic link to the .prog file (as opposed to fndcpesr). Surprisingly, not only does it run; but the argument list passed to the program is longer and is keyword oriented.
Example:
ArtCostInfoUpld -> ArtCostInfoUpld.prog
Arg list
ArtCostInfoUpld FCP_REQID=7115252 FCP_LOGIN="APPS/APPS"
FCP_USERID=1885 FCP_USERNAME="KENF" FCP_PRINTER="noprint" FCP_SAVE_OUT=Y FCP_NUM_COPIES=0
This isn't a big deal for us (now that we figured it out).
Obviously fndcpesr is filtering the parameter list in some fashion.
But we are curious as to 1) how the non-standard link still works 2) if anyone can point to more detailed info on what fndcpesr does (metalink appears lite on the details).
We're running 11.5.9 on Solaris 2.6.
Ken
This page mentions that the permissions of /dev/vboxdrvu should be 0666, but that they may erroneously be set to 0600:
Linux installers: Move the udev rule execution order from 10 to 60. The reason for having it at 10 was to allow other rules to overwrite these rules, mainly permissions of the USB devices. This is not longer necessary (we are using /dev/vboxusb for a long time now) and we need to take care that certain systems like EL6 don't reset the permissions of /dev/vboxdrvu -- the unrestricted device -- back to 0600 (we want 0666 here).
And sure enough:
matt@localhost ~ $ ls -Al /dev | grep vbox
crw------- 1 root root 10, 59 Nov 8 11:46 vboxdrv
crw------- 1 root root 10, 58 Nov 8 11:46 vboxdrvu
drwxr-x--- 3 root vboxusers 60 Nov 8 11:46 vboxusb/
I've changed the permissions on /dev/vboxdrvu to 0666, and the VirtuaBox log is not longer getting filled with the
Failed to open "/dev/vboxdrvu", errno=13, rc=VERR_VM_DRIVER_NOT_ACCESSIBLE
error message. I'll check back in here once I've had enough time to assess my Windows 7 guest's stability.
Similar Messages
-
Conc Pgm Track...
Hi,
We want to track a user who cancelled a particular concurrent request.When we queried the fnd_concurrent_requests table ,its showing no rows selected for the conc pgm id we are giving....Its not showing even whether the request is completed or not...The Last_updated_by column we are getting a junk value..
Anyone have any idea how to get the user who submitted the particular conc pgm and the one who cancelled it...
Thanks,
PraveenRun ANALYZEREQ.SQL script, it should tell you who submitted/cancelled the request.
Note: 134035.1 - ANALYZEREQ.SQL - Detailed Analysis of One Concurrent Request (Release 11 and up)
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=134035.1 -
Disabling tokens in conc.pgm parameters
Hi all,
Kindly tell me how to disable a token in a concurrent program parameter. It says token is mandatory for oracle report parameters.
Regards,
SSKQuery the concurrent Program in sysadmin Resp. and click on parameters.
Then go to the particular parameter and disable the Mandatory check box and save.
Try to run the program again. -
Mail the BI Publisher genereted Conc Pgm out put as attachment.
Hi All,
I have a requirement...
I need to send the output of a concurrent program to particular mail id. The Concurrent program output is in pdf format which is generated from BI Publisher.
I have written a procedure to execute the desired concurrent program. But I don know how to capture the out put and send as attachment.How can I send the pdf out put as attachment.
Waiting for the better solution in PL/SQL
Regards,
TarunI don't know how BI publisher creates the PDF, whether it's created as a file on the server or whatever...
but if you search google or these forums for "oracle pl sql send email attachment" you should get plenty of ideas how to do this using packages such as UTL_MAIL...
http://www.google.co.uk/#hl=en&output=search&sclient=psy-ab&q=oracle+pl+sql+send+email+attachment -
Hello,
I'm at a loss as to why both of these SQL statements return the same thing:
select * from sys.databases where CHARINDEX(name, 'master')>0
select * from sys.databases where CHARINDEX('master', name)>0
Assuming you have a master database, both statements return the same record. Why is that?Because 'master' found in 'master' in position 1.
select * from sys.databases where CHARINDEX(name, 'master')>0
name database_id
master 1
select * from sys.databases where CHARINDEX('master', name)>0
name database_id
master 1
select 'master' WHERE CHARINDEX('master', 'master') >0
-- master
If you create a database MasterX, the two queries would return different results.
Kalman Toth Database & OLAP Architect
SQL Server 2014 Database Design
New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014 -
How can I insert a parameter to the layout template?
How can I insert a parameter defined in report to the layout template? just like insert a field. I wanna display the parameter in the output.
If its Ebiz, concurrent program.
Put this in your template in the starting,
where the P_BUSINESS_GROUP_ID is one of the concurrent program parameters,
<?param@begin:P_BUSINESS_GROUP_ID?>
and then you can access the parameter in your rtf like <?$P_BUSINESS_GROUP_ID?>
Upload the rtf template back into apps.
and then rerun the conc pgm :) -
Trying to use lexical parameter in ORDER BY
I'm using BIP in EBS and I have a report that needs to be sorted based on parameters selected in conc. pgm. I'm trying to use lexical parameters to accomplish this, however, it's not working. I have defined my lexical parameter in Package Spec and I'm setting it accordingly in Package Body(BeforeReport trigger). In my data template (dataQuery section) I have the following SQL
SELECT 'AP_BANK_ACCOUNTS_ALL' as "table_audit2",
a.bank_account_id,
to_char(a.audit_timestamp,'DD-MON-YYYY HH:MI P.M.'),
a.audit_transaction_type ,
a.audit_user_name,
a.bank_account_name,
a.bank_account_num,
a.account_type,
a.org_id,
a.bank_branch_id,
a.xxap_field_changed,
a.xxap_new_value,
a.xxap_old_value,
b.bank_name,
d.short_name
FROM xxap_bank_accounts_all_gtmp a,
ap_bank_branches b,
hr_organization_information c,
gl_sets_of_books d
WHERE a.bank_branch_id = b.bank_branch_id
AND a.org_id = c.organization_id
AND c.org_information_context = 'Operating Unit Information'
AND c.org_information3 = d.set_of_books_id
ORDER BY &lv_order_by
The IF statments below are being used in package to set lexical parameter
note: p_order_by_1 & 2 are from conc.pgm
IF p_order_by_1 IS NOT NULL
THEN
lv_order_by := to_char(p_order_by_1);
lv_order_1 := 'Y';
END IF;
IF p_order_by_2 IS NOT NULL
THEN
IF lv_order_1 = 'Y'
THEN
lv_order_by :=lv_order_by||','||to_char (p_order_by_2);
lv_order_2 := 'Y';
ELSE
lv_order_by := to_char(p_order_by_2);
lv_order_2 := 'Y';
END IF;
END IF;
Any help will be greatly appreciated!!!! I'm a newbie to EBS and BIP so you can probably imagine how frustrated I am.
Message was edited by:
user631051The conc. pgm completes successfully but my report is not sorted. Data Template below:
<properties>
<property name="include_parameters" value="true" />
<property name="include_null_Element" value="true" />
<property name="xml_tag_case" value="upper" />
<property name="db_fetch_size" value="500" />
<property name="scalable_mode" value="off" />
<property name="include_rowsettag" value="false" />
<property name="debug_mode" value="off" />
</properties>
<parameters>
<parameter name="p_start_date" dataType="date"/>
<parameter name="p_end_date" dataType="date"/>
<parameter name="p_org_id" dataType="number"/>
<parameter name="p_data_priority" dataType="character"/>
<parameter name="p_include" dataType="character"/>
<parameter name="p_account_type" dataType="character"/>
<parameter name="p_order_by_1" dataType="character"/>
<parameter name="p_order_by_2" dataType="character"/>
<parameter name="p_order_by_3" dataType="character"/>
</parameters>
<dataQuery>
<sqlStatement name="Q1">
<![CDATA[SELECT 'AP_BANK_BRANCHES' as "table_audit1", a.bank_branch_id as "bank_branch_id",
to_char(a.audit_timestamp,'DD-MON-YYYY HH:MI P.M.') as "audit_timestamp",
a.audit_transaction_type as "audit_transaction_type", a.audit_user_name as "audit_user_name",
b.bank_name as "bank_name", b.bank_branch_name as "bank_branch_name",
to_char(b.bank_number) as "bank_number", a.active_date as "active_date", a.xxap_field_changed,
a.xxap_new_value, a.xxap_old_value
FROM xxap_bank_branch_gtmp a,
ap_bank_branches b
WHERE a.bank_branch_id = b.bank_branch_id
]]>
</sqlStatement
<sqlStatement name="Q2">
<![CDATA[SELECT 'AP_BANK_ACCOUNTS_ALL' as "table_audit2",
a.bank_account_id as "bank_account_id",
to_char(a.audit_timestamp,'DD-MON-YYYY HH:MI P.M.') as "audit_timestamp",
a.audit_transaction_type as "audit_transaction_type",
a.audit_user_name as "audit_user_name",
b.bank_name as "bank_name",
a.bank_account_name,
a.bank_account_num as "bank_account_num",
a.account_type as "account_type",
to_char(a.org_id) as "org_id",
a.bank_branch_id as "bank_branch_id",
a.xxap_field_changed,
a.xxap_new_value,
a.xxap_old_value,
d.short_name as "short_name"
FROM xxap_bank_accounts_all_gtmp a,
ap_bank_branches b,
hr_organization_information c,
gl_sets_of_books d
WHERE a.bank_branch_id = b.bank_branch_id
AND a.org_id = c.organization_id
AND c.org_information_context = 'Operating Unit Information'
AND c.org_information3 = d.set_of_books_id
ORDER BY &lv_order_by
]]>
</sqlStatement>
</dataQuery>
<dataTrigger name="beforeReportTrigger" source="XXAP_RPT_BANK_AUDIT_EXT_PKG.BeforeReport"/>
<dataStructure>
<group name="G_Bank_Branches" source="Q1">
<element name="table_audit1" value="table_audit1"/>
<element name="bank_branch_id" value="bank_branch_id"/>
<element name="audit_timestamp" value="audit_timestamp"/>
<element name="audit_transaction_type" value="audit_transaction_type"/>
<element name="audit_user_name" value="audit_user_name"/>
<element name="bank_name" value="bank_name"/>
<element name="bank_branch_name" value="bank_branch_name"/>
<element name="bank_number" value="bank_number"/>
<element name="active_date" value="active_date"/>
<element name="xxap_field_changed" value="xxap_field_changed"/>
<element name="xxap_new_value" value="xxap_new_value"/>
<element name="xxap_old_value" value="xxap_old_value"/>
</group>
<group name="G_Bank_Accounts_All" source="Q2">
<element name="table_audit2" value="table_audit2"/>
<element name="account_type" value="account_type"/>
<element name="bank_account_id" value="bank_account_id"/>
<element name="audit_timestamp" value="audit_timestamp"/>
<element name="audit_transaction_type" value="audit_transaction_type"/>
<element name="audit_user_name" value="audit_user_name"/>
<element name="bank_name" value="bank_name"/>
<element name="bank_account_name" value="bank_account_name"/>
<element name="bank_account_num" value="bank_account_num"/>
<element name="org_id" value="org_id"/>
<element name="xxap_field_changed" value="xxap_field_changed"/>
<element name="xxap_new_value" value="xxap_new_value"/>
<element name="xxap_old_value" value="xxap_old_value"/>
<element name="short_name" value="short_name"/>
</group>
</dataStructure>
</dataTemplate> -
How to pass file name as parameter into url: or fo:external-graphic src
Hello gurus,
In my rtf I want to dynamically get the name of the image file and display the image in the report. If use hard coded image file name it works but if I try to get the name into a variable and pass that variable it is not working.
Basically my client is having different logos for each operating unit. in the OA_MEDIA directory there are separate logos for each OU. during run time based on OU name we need to display the corresponding image. If I can get this entire path($OA_MEDIA/logo.jpg') in XML field<?CF_OU_LOGO?> then I'm able to print the logo using url:{CF_OU_LOGO}
But I'm using seeded data source and I cant modify the data source, I need to handle this in RTF only. I could able to get the file name into a variable but not sure how to pass to url.
could some one help me on this. I tried the following options
<fo:external-graphic src="url($ln)" />
url:{$ln} in web etc...
here 'ln' is the variable which holds '$OA_MEDIA/logo.jpg'. ln is defined as <xsl:variable name="ln" select=".//CF_OPERATING_UNIT" />
later I set the values as <?xdoxslt:set_variable($_XDOCTX, 'ln',translate( concat('${OA_MEDIA}/','Logo',.//CF_OPERATING_UNIT,'.jpg'),' ',''))?><?xdoxslt:get_variable($_XDOCTX, 'ln')?>
thanks,
VijayVijay
What version of EBS is the customer running? I read somewhere that in R12 all of the concurrent parameters are passed to the XMLP template. I have not tried this but if true. You could create a conc program parameter that would hold the location of the image. You could either have the user pick the image or maybe derive it from the other parameter choices.
Lets assume the token name is DLOGO you can reference that in your template.
<?param:DLOGO?>
this needs to be at the top of the template. Then where you need to embed the image just reference the value using
$DLOGO
You can embed this in the external graphic field
As I mentioned I have not tested it yet, hopefully its there, if not there are ways around it. Try it first.
Tim -
The question about parameter in ECC 6.0 system.
hi
T-code RZ10 , I checked the parameters about DEFAULT.
but there are one error and three Warns.
---one error
there is [E:j2ee/dbname changes not permitted] below the parameter of j2ee/dbname.
PS: the background is red.
---three warns
j2ee/scs/host
W: Unknown parameter j2ee/scs/host , a check cannot be performed
j2ee/scs/system
W: Unknown parameter j2ee/scs/system , a check cannot be performed
j2ee/ms/port
W: Unknown parameter j2ee/ms/port , a check cannot be performed
PS: the three parameters are not in T-code RZ11.
could you help me solution these question.
thanks and regardshi,MIchael
---one error
there is E:j2ee/dbname changes not permitted below the parameter of j2ee/dbname.
solution:
the value of j2ee/dbname was BS2. just now, i deleted the value of j2ee/dbname.
the error message does not come out,now.
---three warns
j2ee/scs/host
j2ee/scs/system
j2ee/ms/port
solution:
there is not the scs in the system. but there is the ms in system.
why they are specified , i dont konw.
if those parameter doesn't exist, would i be going to delete those parameter.
thanks and regards.
chu -
I am creating a Oracle 10g dataguard configuration within the same linux host. since DB_NAME parameter should be the same and DB_UNIQUE_NAME parameter should be different for both Primary and Standby databases, I am configuring the following things.
Primary
DB_NAME = ABC
DB_UNIQUE_NAME = ABC
INSTANCE_NAME = ABC
when connecting to primary database,
export ORACLE_SID = ABC
In Standby,
DB_NAME = ABC
DB_UNIQUE_NAME = XYZ
INSTANCE_NAME = XYZ
when connecting to standby database,
export ORACLE_SID = XYZ
Is this correct ? will this work for configuration within a single host ? or is there any problem with the above parameters ?
Oracle documentation tells about configuring dataguard in two hosts. But not within a single host.Is this correct ? will this work for configuration within a single host ? or is there any problem with the above parameters ?
yes its correct there is no different steps for DG implementation within the same node or diffrent node,excpet in 9i there you have to specify lock_name_space parameter when you want to open a copy database with the same DB_NAME on the same machine as the source database.
but in 10g new DB_UNIQUE_NAME attribute is introduced to clearly identify the relationship between a primary and standby databases.
Khurram -
Not Waiting after invoking Oracle Conc Program
Hi,
My Scenario is for PO Interface iinto oracle is,
Inside BPEL Process,
Activity 1 is Invoking DB Adapter to Insert the records into Temporary Table.
Activity 2 is invoking DB Adapter to call an Custom API to which picks the records from Temp table, validate and Insert the records into Interface Tables.
Activity 3 is Invoking DB Adapter to Submit concurrent program , but that concurrent program is taking 1 minute.
BPEL is not waiting for 1 minute for the program to complete.
So I am putting WAIT activity so that Conc program finishes completely and creates the PO numbers in Oracle base tables.
Activity 4 is Invoking DB Adapter Package.Procedure, which picks the PO number from oracle base tables and update them in Temporary tables send the PO creation/failure status , and email id of buyer through out variables.
Activity 5 sends the email to the respective buyer with PO Status.
We are seeing that Wait activity is not waiting for the conc program to finish completely and BPEL is executing till ACTIVITY 3 above, after wait activity its coming out.
When I remove wait it executes all the steps in sequence without waiting for ACTIVITY 3 to complete successfully.
Can some body validate my sceanrio and suggest the desired solution.
Regards
ManishManish,
I'm also currently in a similar project. To invoke a conc.prgm I did the following
- wrote a pl/sql api where in I call the conc.pgm using fnd_request.submit_request and then I used FND_CONCURRENT.WAIT_FOR_REQUEST to wait for until the conc.pgm finishes.
To get the status's back also, I did this part inside the same api. This way I achieved the desired result.
Let me know if you need additional info.
Thanks,
Sen -
XML Parsing Error: not well-formed Help!
Hello Everyone,
I followed this link "http://quest4apps.wordpress.com/2010/07/31/xmlp_report/" to create data template and RTF to generate a report. I have done exactly the same. But when i run the concurrent program i get "Completed" with "Warning" and on View Log i see ".....One or more post-processing actions failed...". And when i view XML i get
XML Parsing Error: not well-formed
Location: ********
Line Number 3, Column 2:
<>
-^This is my data template:
<?xml version="1.0" encoding="WINDOWS-1252" ?>
<dataTemplate description="Invoice Data" Version="1.0">
<parameters>
<parameter name="p_OrgId" dataType="number" />
<parameter name="p_VendorId" dataType="number" />
</parameters>
<dataQuery>
<sqlStatement name="Q1">
<![CDATA[
SELECT invoice_num,invoice_currency_code,invoice_amount
FROM ap_invoices_all
WHERE org_id = :p_OrgId
AND vendor_id = :p_VendorId
]]>
</sqlStatement>
</dataQuery>
<dataStructure>
<group name="G_INV" source="Q1">
<element name="INV_NUMBER" value="invoice_num" />
<element name="INV_CUR_CODE" value="invoice_currency_code" />
<element name="AMOUNT" value="invoice_amount"/>
</group>
</dataStructure>
</dataTemplate>And also when i run run other RDF reports it works fine. Please help me on this..
Thanks & Regards
John.Are you sure the parameters are passed correctly to data template?
Can you try hardcoding the org and vendor details in query and try running the conc pgm again?
Also validate if that query return records... -
'expression is of wrong type' - but which and where..?
hello.
Hopefully this will be clear as day to someone.. Please could someone tell me why I'm getting the following error message..
[061010_042222995][][EXCEPTION] SQLException encounter while executing data trigger....
java.sql.SQLException: ORA-06550: line 4, column 20:
PLS-00382: expression is of wrong type
ORA-06550: line 4, column 1:
PL/SQL: Statement ignoreddata template where trigger is called..
<?xml version="1.0" encoding="utf-8" ?>
- <dataTemplate name="UofS_OutstandngExpenses_Report" defaultPackage="SUBIXCLT" dataSourceRef="FINDEV" version="1.0">
- <properties>
<property name="xml_tag_case" value="upper" />
<property name="include_parameters" value="true" />
<property name="debug_mode" value="on" />
</properties>
- <parameters>
<parameter name="p_claimant" dataType="character" defaultValue="" />
<parameter name="p_expense_date_from" dataType="date" defaultValue="" />
<parameter name="p_expense_date_to" dataType="date" defaultValue="" />
<parameter name="p_raisedby" dataType="character" defaultValue="" />
<parameter name="p_status" dataType="character" defaultValue="" />
<parameter name="p_ordered_by" dataType="varchar2" defaultValue="" />
</parameters>
- <dataQuery>
- <sqlStatement name="Q1">
- <![CDATA[
SELECT DISTINCT
erh.invoice_num,
pap.full_name EMP_CLAIMING,
DECODE(NVL(erh.expense_status_code, 'Not yet Submitted (NULL)'), 'CANCELLED', 'CANCELLED',
'EMPAPPR', 'Pending Individuals Approval', 'ERROR', 'Pending System Administrator Action',
'HOLD_PENDING_RECEIPTS ', 'Hold Pending Receipts', 'INPROGRESS', 'In Progress', 'INVOICED', 'Ready for Payment',
'MGRAPPR', 'Pending Payables Approval', 'MGRPAYAPPR', 'Ready for Invoicing', 'PAID', 'Paid',
'PARPAID', 'Partially Paid', 'PAYAPPR', 'Payables Approved', 'PENDMGR', 'Pending Manager Approval',
'PEND_HOLDS_CLEARANCE', 'Pending Payment Verification', 'REJECTED', 'Rejected', 'RESOLUTN', 'Pending Your Resolution',
'RETURNED', 'Returned', 'SAVED', 'Saved', 'SUBMITTED', 'Submitted', 'UNUSED', 'UNUSED',
'WITHDRAWN','Withdrawn', 'Not yet Submitted (NULL)') "EXPENSE_STATUS" ,
NVL(TO_CHAR(erh.report_submitted_date,'dd-MON-yyyy'),'NULL') SUBMIT_DATE,
NVL(TO_CHAR(erh.expense_last_status_date,'dd-MON-yyyy'),'NULL') LAST_UPDATE,
erh.override_approver_name ER_Approver,
fu.description EXP_ADMIN,
erh.total,
erh.description
FROM
AP_EXPENSE_REPORT_HEADERS_all erh,
per_all_people_f pap, fnd_user fu
WHERE erh.employee_id = pap.person_id
AND fu.user_id = erh.created_by
AND NVL(erh.expense_status_code, 'Not yet Submitted') NOT IN ('MGRAPPR', 'INVOICED', 'PAID', 'PARPAID')
AND pap.full_name = NVL(:p_claimant, pap.full_name)
AND TRUNC(erh.report_submitted_date) BETWEEN NVL(:p_expense_date_from, '01-JAN-1999') AND NVL(:p_expense_date_to,'31-DEC-2299')
AND fu.description = NVL(:p_raisedby,fu.description)
AND erh.expense_status_code = NVL(:p_status,erh.expense_status_code) &L_ORDERED_BY
]]>
</sqlStatement>
</dataQuery>
<dataTrigger name="beforeReport" source="SUBIXCLT.beforeReportTrigger" />
- <dataStructure>
- <group name="G_XP_CLM_TRACKNG" source="Q1">
<element name="INVOICE_NUM" value="INVOICE_NUM" />
<element name="EMP_CLAIMING" value="EMP_CLAIMING" />
<element name="EXPENSE_STATUS" value="EXPENSE_STATUS" />
<element name="SUBMIT_DATE" value="SUBMIT_DATE" />
<element name="LAST_UPDATE" value="LAST_UPDATE" />
</group>
</dataStructure>
</dataTemplate>and the package spec & body..
--THE SPEC...
CREATE OR REPLACE PACKAGE Subixclt IS
FUNCTION beforeReportTrigger RETURN VARCHAR2;
p_order_by VARCHAR2(50);
l_ordered_by VARCHAR2(350);
p_claimant VARCHAR2(80);
expense_date_from DATE;
expense_date_to DATE;
p_raisedby VARCHAR2(80);
p_status VARCHAR2(80);
p_ordered_by VARCHAR2(80);
--RETURN VARCHAR2;
END;
--THE BODY...
REATE OR REPLACE PACKAGE BODY Subixclt IS
FUNCTION BeforeReportTrigger RETURN VARCHAR2 IS
BEGIN
Fnd_File.PUT_LINE(Fnd_File.LOG,'L_ORDERED_by'||L_ORDERED_BY);
DECLARE
L_ORDERED_BY VARCHAR2(50);
P_ORDERED_BY VARCHAR2(50);
P_RAISEDBY VARCHAR2(50);
P_STATUS VARCHAR2(50);
P_CLAIMANT VARCHAR2(100);
P_EXPENSE_DATE_FROM DATE;
--P_EXPENSE_DATE_FROM VARCHAR2(50);
--P_EXPENSE_DATE_TO VARCHAR2(50);
P_EXPENSE_DATE_TO DATE;
BEGIN
IF (P_ORDERED_BY='Expense Report Number') THEN
L_ORDERED_BY :='order by 1 asc;';
ELSIF (P_ORDERED_BY='Person Claiming') THEN
L_ORDERED_BY :='order by 2 asc;';
ELSIF (P_ORDERED_BY='Submit Date') THEN
L_ORDERED_BY :='order by 4 asc;';
END IF;
RETURN(L_ORDERED_BY);
--RETURN NULL;
END;
END;
END;Many thanks for looking..
DThanks for the suggestion. I initially didnt have the RETURN TRUE after every IF statement and have since removed the 'WHEN OTHERS' section but I'm still getting the same error message. If its to be believed, doesn't it sound like its not finding any of the 3 possible parameter entries available? This can't be so, I've checked the ConC Program parameter name is correct, and the value set linked to it only has available the 3 options where I make the choice..
Body now reads:
CREATE OR REPLACE PACKAGE BODY Subixclt
AS
FUNCTION BEFOREREP (P_ORDERED_BY IN VARCHAR2)RETURN BOOLEAN IS
BEGIN
--FND_FILE.PUT_LINE(FND_FILE.LOG,'L_ORDERED_by'||L_ORDERED_BY);
DECLARE
L_ORDERED_BY VARCHAR2(50);
--P_RAISEDBY VARCHAR2(50);
--P_STATUS VARCHAR2(50);
--P_CLAIMANT VARCHAR2(100);
--P_EXPENSE_DATE_FROM DATE;
--P_EXPENSE_DATE_TO DATE;
BEGIN
IF (P_ORDERED_BY='Expense Report Number') THEN
L_ORDERED_BY :='order by 1 asc;';
ELSIF (P_ORDERED_BY='Person Claiming') THEN
L_ORDERED_BY :='order by 2 asc;';
ELSIF (P_ORDERED_BY='Submit Date') THEN
L_ORDERED_BY :='order by 4 asc;';
RETURN TRUE;
END IF;
-- EXCEPTION WHEN OTHERS THEN RETURN FALSE;
--RETURN(L_ORDERED_BY);
END;
END;
END;error log reads:
XDO Data Engine Version No: 5.6.3
Resp: 20707
Org ID : 102
Request ID: 2484872
All Parameters: p_raisedby=SUSAN HOLLIDAY:p_status=:p_claimant=:p_expense_date_from=:p_expense_date_to=:P_ORDERED_BY=Person Claiming
Data Template Code: SUBIXCLT
Data Template Application Short Name: PO
Debug Flag: N
{p_claimant=, p_expense_date_to=, p_status=, p_raisedby=SUSAN HOLLIDAY, p_expense_date_from=, P_ORDERED_BY=Person Claiming}
Calling XDO Data Engine...
[061110_114425280][][STATEMENT] Start process Data
[061110_114425282][][STATEMENT] Process Data ...
[061110_114425284][][STATEMENT] Executing data triggers...
[061110_114425284][][STATEMENT] BEGIN
SUBIXCLT.p_claimant := :p_claimant ;
SUBIXCLT.p_expense_date_from := :p_expense_date_from ;
SUBIXCLT.p_expense_date_to := :p_expense_date_to ;
SUBIXCLT.p_raisedby := :p_raisedby ;
SUBIXCLT.p_status := :p_status ;
SUBIXCLT.p_ordered_by := :p_ordered_by ;
:XDO_OUT_PARAMETER := 1;
END;
[061110_114425287][][STATEMENT] 1: :
[061110_114425287][][STATEMENT] 2:null :
[061110_114425287][][STATEMENT] 3:null :
[061110_114425288][][STATEMENT] 4:SUSAN HOLLIDAY :
[061110_114425288][][STATEMENT] 5: :
[061110_114425288][][STATEMENT] 6:null :
[061110_114425291][][STATEMENT] Executing data triggers...
[061110_114425292][][STATEMENT] Declare
l_flag Boolean;
BEGIN
l_flag := SUBIXCLT.beforerep(:p_ordered_by) ;
if (l_flag) then
:XDO_OUT_PARAMETER := 1;
end if;
end;
[061110_114425293][][STATEMENT] 1:null :
[061110_114425302][][EXCEPTION] SQLException encounter while executing data trigger....
java.sql.SQLException: ORA-06503: PL/SQL: Function returned without value
ORA-06512: at "APPS.SUBIXCLT", line 27
ORA-06512: at line 4Many thanks for staying with this..
S -
OPM Accounting Pre-Processor - Error while Submitting the Program
In R12 Vision Instance, I am trying to submit the OPM Accounting Pre-Processor Program and it is giving the error as per below
Open Period not found for Legal Entity PRU-Vision Process Industries (US), Cost Type STND, Stard Date 01-JAN-2010 00:00:00 and End Date 31-JAN-2010 23:59:59.
I checked the GL Periods, the GL Period are open.
I checked the Costing Calendar, I have created a Costing Calendar for 2011 and STND Cost Type and the Periods are also open.
Is it something I am missing here ?
Tried searching on MOS, couldn't find much.We were able to find it.If such error comes just check the data template and layout template.Try to run it in Template Builder and if its without any error then try it by submitting the conc pgm.
Thanks. -
Different scenario to run Former XML Publisher report
Hi All.
I have some different kind of scenario to run the XML Publisher report. Please look into the following scenario and requirements:
In my current project we are implementing 22 languages like Chinese, Japanese, Spanish etc. Out of these 22 languages, 8 languages will be installed and 14 will be uninstalled. We are defining the language on 2 places: OU level and Address level. For those reports that need to be translated, we are using XML Publisher to achieve this, but we have different scenario to pass the language, in order to select the corresponding template.
Scenario: As i mentioned we are defining the languages on address level, it is considered that the language defined at the address level will be customer's preferred language and he would like to see the output in that language only. there are 2 possible conditions while running the report: 1. User may select the language in which he want the report to be displayed in. 2. User may not select any language. The 1st scenario can be fulfilled by standard functionality. but in case of second scenario when user does not select any language then we need to display the report in language defined on address level for that customer. For Ex: if the Invoice report is running for 4 invoices and have 2 different customers and their preferred language is different, suppose for 1 customer it is Chinese and for another one it is Japanese. Then we need to display the output in customer's preferred language only i.e for Japanese customer it should be in Japanese and for Chinese customer it should be in Chinese i.e 2 different templates will be applicable.
So as per this while submitting the concurrent request we need to check whether user has selected the language or not? And after making all the conditions check we will have to submit the xml publisher report using API. Do you have any suggestion how can we achieve this task?
Please suggest.
Thanks,
ASHi AS,
How about using a conc prog parameter for User selected language, and XML element data at customer level, then call a subtemplate (or multiple embedded regions in the same template) in the required language based on if or case logic in the template.
Regards,
Gareth
Maybe you are looking for
-
Hard Drive not showing in Disk Utility (but showing fine on PC)
I have been using an 1TB USB powered Hard Drive with my MBP for a year or so. I got a new 2 TB drive and loaded it and installed the seagate dashboard software. At that point, it appears something may have happened to my HP and it no longer appears o
-
HT1338 garage band is quitting on me constantly, what could it be the problem?
Have enough memory, extra seagate memory, enough storage...what else?
-
hi i have an array of date and i have to sort it .is it possible?how can i sort date? ok it's urgent. kamlesh solanki
-
Why am I not getting Disney XD or Jr after update?
I've checked on the FW and it's at 6.0 but I don't see the Disney XD or Jr. Are the channels just limited to America like Netflix?
-
Getting an error when trying to save files in excel: "Someone lese is working in 'Network path' right now please try again later. All PC's are Windows 7 and Office 2013. I can confirm that the file is not open by anyone else. This is becoming very fr