Error while executing a function
I had created a function F_GET_PRH_NO_QTY. While using this function in a query system is giving me error as given below :
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at "ORION_REPORTS.F_GET_PRH_NO_QTY", line 36
CREATE OR REPLACE FUNCTION F_GET_PRH_NO_QTY(P_PWH_NO NUMBER)
RETURN VARCHAR2
AS
L_RET_VAL VARCHAR2(4000);
CURSOR C1 IS
SELECT REP_NO, REP_QTY
FROM
SELECT PRH_NO REP_NO, NVL(PRSO_REP_QTY_BU/IU_CONV_FACTOR/IU_MAX_LOOSE_1,0) REP_QTY
FROM OT_PR_HEAD, OT_PWO_HEAD, OT_PR_WO_DETAIL, OT_PR_STAGE_OUTPUT, OM_ITEM, OM_ITEM_UOM
WHERE ITEM_CODE = IU_ITEM_CODE AND ITEM_UOM_CODE = IU_UOM_CODE
AND PWH_SYS_ID = PRH_REF_SYS_ID (+)
AND PRH_SYS_ID = PRWD_PRH_SYS_ID -- FROM OT_PR_WO_DETAIL TABLE
AND PRWD_SYS_ID = PRSO_PRWD_SYS_ID -- FROM OT_PR_STAGE_OUTPUT TABLE
AND PWH_NO = P_PWH_NO
M_REP_NO VARCHAR2(40);
M_REP_QTY VARCHAR2(40);
M_TEMP1 NUMBER := 0;
M_RNO_RQTY VARCHAR2(2000);
BEGIN
IF C1%ISOPEN THEN
CLOSE C1;
END IF;
OPEN C1;
LOOP
FETCH C1 INTO M_REP_NO, M_REP_QTY;
EXIT WHEN C1%NOTFOUND;
M_TEMP1 := M_TEMP1 + 1;
IF M_TEMP1 = 1 THEN
M_RNO_RQTY := M_REP_NO||'-'||M_REP_QTY;
ELSE
M_RNO_RQTY := M_RNO_RQTY||', '||M_REP_NO||' - '||M_REP_QTY;
END IF;
END LOOP;
--RETURN NVL(M_RNO_RQTY,'');
RETURN L_RET_VAL;
END;
Yogesh
you need to use pipelined function to break into small chunks...
CREATE OR REPLACE
FUNCTION F_GET_PRH_NO_QTY
P_PWH_NO NUMBER)
RETURN VARCHAR2 PIPELINED
IS
L_RET_VAL VARCHAR2(4000);
v_counter NUMBER := 1;
v_temp VARCHAR2(4000) := NULL;
CURSOR C1
IS
SELECT REP_NO,
REP_QTY
FROM
(SELECT PRH_NO REP_NO,
NVL(PRSO_REP_QTY_BU/IU_CONV_FACTOR/IU_MAX_LOOSE_1,0) REP_QTY
FROM OT_PR_HEAD ,
OT_PWO_HEAD ,
OT_PR_WO_DETAIL ,
OT_PR_STAGE_OUTPUT,
OM_ITEM ,
OM_ITEM_UOM
WHERE ITEM_CODE = IU_ITEM_CODE
AND ITEM_UOM_CODE = IU_UOM_CODE
AND PWH_SYS_ID = PRH_REF_SYS_ID
AND PRH_SYS_ID = PRWD_PRH_SYS_ID -- FROM OT_PR_WO_DETAIL TABLE
AND PRWD_SYS_ID = PRSO_PRWD_SYS_ID -- FROM OT_PR_STAGE_OUTPUT TABLE
AND PWH_NO = P_PWH_NO
M_REP_NO VARCHAR2(40);
M_REP_QTY VARCHAR2(40);
M_TEMP1 NUMBER := 0;
M_RNO_RQTY VARCHAR2(2000);
BEGIN
IF C1%ISOPEN THEN
CLOSE C1;
END IF;
OPEN C1;
LOOP
FETCH C1 INTO M_REP_NO, M_REP_QTY;
EXIT
WHEN C1%NOTFOUND;
M_TEMP1 := M_TEMP1 + 1;
IF M_TEMP1 = 1 THEN
M_RNO_RQTY := M_REP_NO||'-'||M_REP_QTY;
ELSE
M_RNO_RQTY := M_RNO_RQTY||', '||M_REP_NO||' - '||M_REP_QTY;
END IF;
END LOOP;
LOOP
v_temp := SUBSTR(v_xml, v_counter, 4000);
EXIT
WHEN v_temp IS NULL;
pipe ROW(v_temp);
v_counter := v_counter + 4000;
END LOOP;
RETURN ;
END;
/untested....
for executing above
select * from table(F_GET_PRH_NO_QTY(<your variable inside quotes>))Ravi Kumar
Similar Messages
-
Error while executing planning Function
Hi All,
I'm getting some error while executing planning function. Below are errors. Please check and provide solution.
Errors occurred when executing planning function RTFMPF01/RTFMPG01
Value 08 of chara Region does not correspond to the attrib.val MI of chara Store
Value 10 of chara Region does not correspond to the attrib.val RM of chara Store
Value 11 of chara Region does not correspond to the attrib.val NA of chara Store
Thanks,
VamsiHi,
Value 08 of chara Region does not correspond to the attrib.val MI of chara Store
Looks like there is a characteristics relationship which derives the attribute store from Region.
Check the master data for Region for attribute Store and the corresponding values.
The values that are maintained in the master data will only be allowed to enter in the cube.
Thanks
pratyush -
Macro Error while executing planning functions or saving data
Dear All,
I am getting following error in BEx Analyzer while executing planning function or pressing a save button.
Note: Excel is 2007 version.
Cannot run the macro "XXXXXX.xlsx". The macro may not be available in this workbook or all macros may be disabled.
I changed the settings in Macro Settings (Office Button -> Excel Options -> Trust Center -> Trust Center Settings-> Macro Settings) eventhough it is showing that above message.
selected ->
Enalble all macros
Trust access to VBA project object model.
If anybody faced this issue kindly reply to this.
Best Regards,
SGHello everybody,
i am facing exactlythe same issue! I am currently running GUI Patch Level 14 and BI Add on Patch Level 10.
I have also adjusted all necessary settings in Excel Options like Activate all Macros and Trust VBA Coding.
Does anybody have another Solution.
As mentioned before Gui Patch 13 and BI Add On Patch 10 obviously arent the solutiuon.
Best regards
Janos -
Error while executing the function module BAPI_RE_CN_CREATE
Dear All
I was using the the function module BAPI_RE_CN_CREATE. When I am trying to execute the function module I am getting the error message u201CBusiness transaction RECN doest existu201D. While inputting the parameters for the function module I have given RECN In the input field TRANS. Requesting you to please kindly suggest.
Regards.
VaraprasadHi Varaprasad,
please try the following.
1. Create a contract manually in the system
2. Use BAPI_RE_CN_GET_DETAIL to show how the fields and structures are filled.
3. Check and change the parameters for BAPI_RE_CN_CREATE accordingly.
Hope that helps.
Regards, Franz -
Authorization error while executing IP function in Web
Hi all,
I have an application in WAD which has a planning sequence.
The sequnece runs fine in Modeler.
But while executing the sequence in WAD, it gives me an error that I am not authorized to run the sequence.
Is there any specific authorization that I need here?
Let me know.
Thanks.
AnandWell I think you do not have the follwoing auth objects added to your role
S_RS_PLSE -->planning functions
S_RS_PLSQ-->planning sequences -
Error while executing the function
hi,
I have a table with the following data.
T_1 T_2 T_3 T_4
a.1 1 aa ff
a.1 2 ab ff
a.2 1 ba ff
a.2 2 bb ff
a.2 3 bc ff
a.2 4 bd ff
a.3 1 ca ff
a.3 3 cc ff
a.4 2 db ffi want the data in the following way.
col_1 col_2 col3
a.1 1,2 aa ,ab
a.2 1,2 ,3,4 ba,bb,bc,bd
a.3 1,3 ca,cc
a.4 2 db For this , i have written a package as shown below.
create or replace package t_emp_pkg as
type typ_emp is record
tv_t_1 t_Emp.t_1%type,
tv_t_2 varchar2(20),
tv_t_3 varchar2(20));
type typ_emp_tab is table of typ_emp;
function t_emp_func(pv_value in varchar2) return typ_emp_tab;
end t_emp_pkg;
create or replace package body t_emp_pkg as
function t_emp_func(pv_value in varchar2) return typ_emp_Tab is
cursor c1(v_value varchar2) is
select distinct t_1 from t_emp where t_4 = v_value ;
cursor c2(pv_t_1 varchar2) is
select t_2,t_3 from t_emp
where t_1 = pv_t_1;
typ_emp_table typ_emp_tab := typ_emp_tab();
t_count number := 0;
c1_cur_rec c1%rowtype;
c2_cur_rec c2%rowtype;
v_temp_value1 varchar2(30);
v_temp_value2 varchar2(30);
begin
open c1(pv_value);
loop
fetch c1 into c1_cur_rec;
exit when c1%notfound;
v_temp_value1 := null;
v_temp_value2 := null;
open c2(c1_cur_rec.t_1);
loop
fetch c2 into c2_cur_rec;
exit when c2%notfound;
v_temp_value1 := v_temp_value1||','||c2_cur_rec.t_2;
v_temp_value2 := v_temp_value2||','||c2_cur_rec.t_3;
end loop;
--close c2;
t_count := t_count+1;
typ_emp_table(t_count).tv_t_1 := c1_cur_rec.t_1;
typ_emp_table(t_count).tv_t_2 := v_temp_value1;
typ_emp_table(t_count).tv_t_3 := v_temp_value2;
--dbms_output.put_line(typ_emp_table(t_count).tv_t_1);
--dbms_output.put_line(typ_emp_table(t_count).tv_t_2);
--dbms_output.put_line(typ_emp_table(t_count).tv_t_3);
end loop;
close c1;
return typ_emp_table;
end;
end;
When i executed the function , i got the following error.
SQL> declare
2 v t_emp_pkg.typ_emp_tab := t_emp_pkg.typ_emp_tab();
3 begin
4 v := t_emp_pkg.t_emp_func('ff');
5 for i in v.first..v.last loop
6 dbms_output.put_line(v(i).tv_t_1 ||', '||v(i).tv_t_2||', '||v(i).tv_t_3);
7 end loop;
8 end;
9 /
declare
ERROR at line 1:
ORA-06533: Subscript beyond count
ORA-06512: at "SCOTT.T_EMP_PKG", line 30
ORA-06512: at line 4
but when i am running this queries in anonymous block (i.e) using declare,begin,end , i am getting the data correctly.
1 declare
2 pv_value varchar2(5) := 'ff';
3 cursor c1(v_value varchar2) is
4 select distinct t_1 from t_emp where t_4 = v_value ;
5 cursor c2(pv_t_1 varchar2) is
6 select t_2,t_3 from t_emp
7 where t_1 = pv_t_1;
8 --typ_emp_table typ_emp_tab := typ_emp_tab();
9 t_count number := 0;
10 c1_cur_rec c1%rowtype;
11 c2_cur_rec c2%rowtype;
12 v_temp_value1 varchar2(300);
13 v_temp_value2 varchar2(300);
14 begin
15 open c1(pv_value);
16 loop
17 fetch c1 into c1_cur_rec;
18 exit when c1%notfound;
19 v_temp_value1 := null;
20 v_temp_value2 := null;
21 open c2(c1_cur_rec.t_1);
22 loop
23 fetch c2 into c2_cur_rec;
24 exit when c2%notfound;
25 v_temp_value1 := v_temp_value1||','||c2_cur_rec.t_2;
26 v_temp_value2 := v_temp_value2||','||c2_cur_rec.t_3;
27 end loop;
28 close c2;
29 t_count := t_count+1;
30 --typ_emp_table(t_count).tv_t_1 := c1_cur_rec.t_1;
31 --typ_emp_table(t_count).tv_t_2 := v_temp_value1;
32 --typ_emp_table(t_count).tv_t_3 := v_temp_value2;
33 dbms_output.put_line(c1_cur_rec.t_1);
34 dbms_output.put_line(v_temp_value1);
35 dbms_output.put_line(v_temp_value2);
36 end loop;
37 close c1;
38* end;
39 /
a.2
,1,2,3,4
,ba,bb,bc,bd
a.3
,1,3
,ca,cc
a.4
,2
,db
a.1
,1,2
,aa,ab
PL/SQL procedure successfully completed.So can anybody tell me why it is not executing correctly when executing as a function.
Thanks in advance.hi devmiral,
I am not sure exactly where i am making the mistake. I have modified the package but still i am getting the error.
create or replace package body t_emp_pkg as
function t_emp_func(pv_value in varchar2) return typ_emp_Tab is
cursor c1(v_value varchar2) is
select distinct t_1 from t_emp where t_4 = v_value ;
cursor c2(pv_t_1 varchar2) is
select t_2,t_3 from t_emp
where t_1 = pv_t_1;
typ_emp_table typ_emp_tab ;
--:= typ_emp_tab();
t_count number := 0;
c1_cur_rec c1%rowtype;
c2_cur_rec c2%rowtype;
v_temp_value1 varchar2(30);
v_temp_value2 varchar2(30);
begin
open c1(pv_value);
loop
fetch c1 into c1_cur_rec;
exit when c1%notfound;
v_temp_value1 := null;
v_temp_value2 := null;
open c2(c1_cur_rec.t_1);
loop
fetch c2 into c2_cur_rec;
exit when c2%notfound;
v_temp_value1 := v_temp_value1||','||c2_cur_rec.t_2;
v_temp_value2 := v_temp_value2||','||c2_cur_rec.t_3;
end loop;
--close c2;
t_count := t_count+1;
typ_emp_table(t_count).tv_t_1 := c1_cur_rec.t_1;
typ_emp_table(t_count).tv_t_2 := v_temp_value1;
typ_emp_table(t_count).tv_t_3 := v_temp_value2;
typ_emp_table := typ_emp_tab(c1_cur_rec.t_1,v_temp_value1,v_temp_value2);
typ_emp_table.extend;
end loop;
close c1;
return typ_emp_table;
end;
end;
SQL> @t_emp_pkg_body.sql
Warning: Package Body created with compilation errors.
SQL> sho err
Errors for PACKAGE BODY T_EMP_PKG:
LINE/COL ERROR
36/1 PL/SQL: Statement ignored
36/18 PLS-00306: wrong number or types of arguments in call to
'TYP_EMP_TAB'
36/18 PLS-00306: wrong number or types of arguments in call to
'TYP_EMP_TAB'
36/18 PLS-00306: wrong number or types of arguments in call to
'TYP_EMP_TAB'Thanks in advance. -
Runtime error while executing 'CUSTOMER_CLEARING' function module
Hi Experts,
When I execute fm 'CUSTOMER_CLEARING', I get a run time error that says that there is a type mismatch with respect to
'I_MODE' parameter used. This dump occurs when there is a call to fm 'POSTING_INTERFACE_START' by this fm. I tried executing it with different values for 'I_MODE' ,such as 'A', 'S', 'E' etc but every time it gave a run time error.
Kindly suggest what might have gone wrong.
Thanks in advance,
Regards,
PujaCALL FUNCTION 'POSTING_INTERFACE_START'
EXPORTING
I_CLIENT = SY-MANDT
I_FUNCTION = 'C' "Call Transaction
I_GROUP = XT_BSSPARA-MAPPE
I_MODE = I_MODE
I_HOLDDATE = XT_BSSPARA-HOLDD
I_KEEP = XT_BSSPARA-KEEPM
I_USER = XT_BSSPARA-USERN
EXCEPTIONS
CLIENT_INCORRECT = 01
FUNCTION_INVALID = 02
GROUP_NAME_MISSING = 03
MODE_INVALID = 04
UPDATE_INVALID = 05.
IF SY-SUBRC NE 0.
break ruettgers. "/ JWE P40K041774
MESSAGE A217(68). "/ JWE P40K041774
ENDIF.
i think it is happening because of field lenghth declaration, try to find it .
try like this
Edited by: kpsgoutam on Nov 18, 2009 2:23 PM -
Error while executing planning function with reference data
Hi,
I have a two planning functions one is used to upload the file (with out reference data checkbox in planning function RSPLF1) and other planning function ('Referece data'check box is selected in custom planning function RSPLF1) to execute the logic of creating new record along with the flat file data.
Following data is uplooaded
Company code | Profit_ctr | calmonth | Amount
1000 | 50000 | 01.2011 | 150
Cube data
Field1 | Company code | Profit_ctr | calmonth | Amount
| 1000 | 50000 | 01.2011 | 150
Z1 | 1000 | 50000 | 01.2011 | 150
Now I want to change the value from 150 to 200 and when I try to execute with the following data, it is giving dump 'a row with the same key already exists'.
Company code | Profit_ctr | calmonth | Amount
1000 | 50000 | 01.2011 | 200
Ideally in the second execution it should append the new row with Amount value 50 to cube which is the delta value.
I debugged the issue and found that I_TH_REF_DATA has following data and C_TH_DATA also contains the same records.
Field1 Company code | Profit_ctr | calmonth | Amount
# 1000 | 50000 | 01.2011 | 150
Z1 1000 | 50000 | 01.2011 | -150
Z1 1000 | 50000 | 01.2011 | 150
Due to this, record which already exists in C_TH_DATA and trying to append new record with the same combination is failing.
C_TH_DATA should only contain the source data of Amount 200, but not sure why reference data is coming in C_TH_DATA.
Could anyone please guide me on how the reference data is getting populated in C_TH_DATA ?
Thanks in advance
Edited by: peppy on Aug 3, 2011 5:00 PM
Edited by: peppy on Aug 3, 2011 8:37 PMHi Peppy,
C_TH_DATA is hashed table! According to your post you are trying to append to C_TH_DATA and this results in a dump. Please take a look at the standard planning function to see how SAP is programming the planning functions. E.g. in CL_RSPLFC_REPOST method IF_RSPLFA_SRVTYPE_IMP_EXEC~EXECUTE you can find the following code:
CREATE DATA l_r_data_wa LIKE LINE OF c_th_data.
ASSIGN l_r_data_wa->* TO <s_data_wa>.
CREATE DATA l_r_new_wa LIKE LINE OF c_th_data.
ASSIGN l_r_new_wa->* TO <s_new_wa>.
LOOP AT c_th_data INTO <s_data_wa>.
<s_new_wa> = <s_data_wa>.
now the SAP code changes the values, you can do it your way here
and than write the changes back
MODIFY TABLE c_th_data FROM <s_data_wa>.
ENDLOOP:
Another option is to use the READ statement to check if the record is already in the table. If not, you can use MODIFY otherwise you use INSERT. So you get something like this:
READ C_TH_DATA from <s_data_wa> transporting no fields.
if not sy-subrc EQ 0.
INSERT <s_data_wa> into table C_TH_DATA.
else.
MODIFY TABLE c_th_data FROM <s_data_wa>.
endif.
Depending on your requirements you can also use the collect statement.
If c_th_data shows the reference data as well, you may need to adjust the filter to restrict it to the correct values.
Hope this helps.
Best regards
Matthias Nutt
SAP Consulting Switzerland -
To overcome Authorization error while executing a Function module
Hello Friends,
In my custom workflow , I need to execute a validation function module ( SAP standard ) in a dialog step - Approval step.
But the issue is approvers will not have authorization to the FM ( They have minimum authorization - Just to approver the custom workflow ) .
So , I need to know is ther a option to execute the FM using another user ID ( a BATCH user ID ) .
thanks
Raghu Vmake the validation task before the dialogue step. a general task will run in background from user WF-BATCH and that wont need to authorization issue... after completion of this validation you can go for the dialogue step i.e the approval step..
|
__u2193__
| u25BA__| Validation task
u2193
__|___
|_?u25BA_| User decision
|
u25CF_______
u2193 u2193reject
|
approve -
Error while executing Kernal function
Hi All,
We are getting error for the newly created internet users (SU05). after analysis we found that the error coming from the kernel function "XXPASSNET" with sy-subrc = 32.
Can any one let me know what causing this issue.
Thanks in advance.Hi Rob,
thanks for your reply. the note tell that we need to use standard calls. here in this case we areusing WWW_USER_AUTHORITY which was specified by SAP itself. also note that our SAP systen=m version is of 4.6c.
please let me know if you have any other notes or some thing.
Regards,
Vishal Kommera -
Error while executing function
hiii all,
hope doing welll
iam getting error while executing the function and error is
ORA-00932: inconsistent datatypes: expected NUMBER got AMPLEX_GRAND1.SYS_PLSQL_75185_9_1hii sir this is my function
create or replace
FUNCTION FnFetchEmployeesforjobsheet
v_user_id IN NUMBER
RETURN FnFetchEmployeesforjobshee_pkg.tt_v_employees_type PIPELINED
AS
--declare @manager as int
v_empid VARCHAR2(20);
v_compid VARCHAR2(20);
v_temp NUMBER(1, 0) := 0;
v_temp_1 SYS_REFCURSOR;
v_temp_2 TT_V_EMPLOYEES%ROWTYPE;
BEGIN
BEGIN
SELECT 1 INTO v_temp
FROM DUAL
WHERE EXISTS ( SELECT 1
FROM user_list
WHERE Access_level = 0
AND USER_ID = v_user_id );
EXCEPTION
WHEN OTHERS THEN
NULL;
END;
IF v_temp = 1 THEN
BEGIN
SELECT Emp_ID
INTO v_empid
FROM User_List
WHERE USER_ID = v_user_id;
SELECT Comp_ID
INTO v_compid
FROM Employee
WHERE Emp_ID = v_empid;
INSERT INTO tt_v_employees
( SELECT DISTINCT Emp_id ,
v_user_id
FROM employee
WHERE Comp_ID = v_compid );
END;
END IF;
BEGIN
SELECT 1 INTO v_temp
FROM DUAL
WHERE EXISTS ( SELECT 1
FROM user_list
WHERE Access_level = 2
AND USER_ID = v_user_id );
EXCEPTION
WHEN OTHERS THEN
NULL;
END;
IF v_temp = 1 THEN
BEGIN
INSERT INTO tt_v_employees
( SELECT e.Emp_ID ,
v_user_id
FROM employee e
JOIN user_list ul
ON ul.Emp_ID = e.Emp_ID
WHERE USER_ID = v_user_id );
END;
END IF;
BEGIN
SELECT 1 INTO v_temp
FROM DUAL
WHERE EXISTS ( SELECT 1
FROM user_list
WHERE Access_level = 1
AND USER_ID = v_user_id );
EXCEPTION
WHEN OTHERS THEN
NULL;
END;
IF v_temp = 1 THEN
DECLARE
v_Emp_id VARCHAR2(50);
BEGIN
SELECT e.Emp_id
INTO v_Emp_id
FROM employee e
JOIN user_list ul
ON ul.Emp_ID = e.Emp_ID
WHERE USER_ID = v_user_id;
--insert @employees select e.Emp_id,User_ID from employee e inner join user_list ul on ul.Emp_ID = e.Emp_ID
--where User_ID = @user_id
--insert @employees select Emp_ID from User_List where User_Id=@user_id
INSERT INTO tt_v_employees
( Emp_ID )
VALUES ( v_Emp_id );
INSERT INTO tt_v_employees
--select Emp_ID,@user_id from employee where Emp_ID = @Emp_id
--union
SELECT Emp_ID ,
v_user_id
FROM employee
WHERE Managerid = v_Emp_id
AND STATUS = 1 );
END;
END IF;
OPEN v_temp_1 FOR
SELECT *
FROM tt_v_employees;
LOOP
FETCH v_temp_1 INTO v_temp_2;
EXIT WHEN v_temp_1%NOTFOUND;
PIPE ROW ( v_temp_2 );
END LOOP;
END;
and my table is
CREATE GLOBAL TEMPORARY TABLE tt_v_employees
Emp_ID VARCHAR2(8) ,
USER_ID NUMBER(10,0)
and i am executing this function ,like this
select FnFetchEmployeesforjobshee_pkg.FnFetchEmployeesforjobsheet('1') from dual; and getting this error
SQL Error: ORA-00904: "FNFETCHEMPLOYEESFORJOBSHEE_PKG"."FNFETCHEMPLOYEESFORJOBSHEET": invalid identifier
00904. 00000 - "%s: invalid identifier" -
Error while executing C MEX S-function 'sysgen', (mdlTerminate)
Hi
We are trying to use System generator with Vivado 2014.4. We are encountering the above problem, which is causing a segmentation violation and MATLAB crach, when a simulation in sysgen is finishing up.
It seems like that there has been an equivalent problem before, in an older version of System Generator, which has been answered in AR#31095. Search results say that this AR was:
Why do I receive "Error while executing C MEX S-function 'sysgen', (mdlTerminate). Unexpected unknown exception from MEX file" when I simulate my System Generator model? How do I set up my system environment properly? See (Xilinx Answer 31095).
Unfortunately, the AR is missing in the xilinx site. What did this answer record say? Might be applicable to our case?
That is because the bpel file contains the absolute path to the xsl file instead of the relative path.
ora:doXSLTransformForDoc('file:/C:/JDeveloper/mywork/xsl/tranform_02.xsl' .....
should be
ora:doXSLTransformForDoc('xsl/tranform_02.xsl' .....
As far as I know, this is a bug in JDeveloper for putting this information here. I've removed it using the source view only to find it there again. -
Error While uploading the Function and Function_BP
Hello,
I am getting the following error while uploading the Functions and Funtions_BP using the Rule Upload functions.
com.virsa.cc.comp.Function_upload.onActionUploadFunc(Function_upload.java:302) com.virsa.cc.comp.wdp.InternalFunction_upload.wdInvokeEventHandler(InternalFunction_upload.java:150) com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87) com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67) com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420) com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132) com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335) com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143) com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321) com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713) com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666) com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250) com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149) com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62) com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53) javax.servlet.http.HttpServlet.service(HttpServlet.java:760) javax.servlet.http.HttpServlet.service(HttpServlet.java:853) com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401) com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266) com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386) com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364) com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039) com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265) com.sap.engine.services.httpserver.server.Client.handle(Client.java:95) com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175) com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) java.security.AccessController.doPrivileged(Native Method) com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104) com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
The files which i am uploading the file from the Best practises only.
What is the reason for this error?
Did any one get this error?
Regards,
Kumar Rayudu
Edited by: Kumar Rayudu on Aug 4, 2009 12:32 PMHello Kumar,
Have you uploaded the SAP text and object files? Upload them first and then try to upload functions.
Harleen
SAP GRC RIG -
Error while executing the service - The service method not defined error
Hi,
I am using Oracle UCM Content server 11g. I have created a custom service using component wizard. I have provided class name and method correct in the service declarations. The method should return manipulated Revision Label value. I am executing the service as a direct service and not subservice from a resource file using the following command.
<$executeService("servicename")$>
The serice is getting called but I am getting the following error log
Event generated by user 'weblogic' at host 'localhost:16200'. Unable to execute service Edit_Revision_Label and function generateRevLabelInfo.
The service method 'generateRevLabelInfo' is not defined. [ Details ]
An error has occurred. The stack trace below shows more information.
!csUserEventMessage,weblogic,localhost:16200!$!csServiceDataException,Edit_Revision_Label,generateRevLabelInfo!$!csMethodNotDefined,generateRevLabelInfo
intradoc.common.ServiceException: !csServiceDataException,Edit_Revision_Label,generateRevLabelInfo!$
*ScriptStack Edit_Revision_Label
Edit_Revision_Label,dDocName=3:generateRevLabelInfo,dDocName=
at intradoc.server.ServiceRequestImplementor.buildServiceException(ServiceRequestImplementor.java:2115)
at intradoc.server.Service.buildServiceException(Service.java:2260)
at intradoc.server.Service.createServiceExceptionEx(Service.java:2254)
at intradoc.server.Service.createServiceException(Service.java:2249)
at intradoc.server.ServiceRequestImplementor.handleActionException(ServiceRequestImplementor.java:1766)
at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1716)
at intradoc.server.Service.doAction(Service.java:477)
at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1458)
at intradoc.server.Service.doActions(Service.java:472)
at intradoc.server.ServiceRequestImplementor.executeSubServiceCode(ServiceRequestImplementor.java:1322)
at intradoc.server.Service.executeSubServiceCode(Service.java:3866)
at intradoc.server.ServiceRequestImplementor.executeServiceEx(ServiceRequestImplementor.java:1200)
at intradoc.server.Service.executeServiceEx(Service.java:3861)
at intradoc.server.ServiceRequestImplementor.executeSafeServiceInNewContext(ServiceRequestImplementor.java:1231)
at intradoc.server.Service.executeSafeServiceInNewContext(Service.java:3856)
at intradoc.server.script.ServiceScriptExtensions.evaluateFunction(ServiceScriptExtensions.java:269)
at intradoc.common.DynamicHtmlMerger.computeFunction(DynamicHtmlMerger.java:1430)
at intradoc.common.DynamicHtmlMerger.evaluateGrammarElement(DynamicHtmlMerger.java:908)
at intradoc.common.DynamicHtmlMerger.substituteVariable(DynamicHtmlMerger.java:623)
at intradoc.common.DynamicHtml.substituteVariable(DynamicHtml.java:1394)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1110)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtml(DynamicHtml.java:991)
at intradoc.common.DynamicHtmlMerger.outputDynamicHtmlPage(DynamicHtmlMerger.java:2007)
at intradoc.server.Service.buildResponsePage(Service.java:1267)
at intradoc.server.Service.doResponse(Service.java:2076)
at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:802)
at intradoc.server.Service.doRequest(Service.java:1890)
at intradoc.server.ServiceManager.processCommand(ServiceManager.java:435)
at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)
at intradoc.idcwls.IdcServletRequestUtils.doRequest(IdcServletRequestUtils.java:1343)
at intradoc.idcwls.IdcServletRequestUtils.processFilterEvent(IdcServletRequestUtils.java:1715)
at intradoc.idcwls.IdcIntegrateWrapper.processFilterEvent(IdcIntegrateWrapper.java:222)
at sun.reflect.GeneratedMethodAccessor1173.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at idcservlet.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:87)
at idcservlet.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:305)
at idcservlet.common.ClassHelperUtils.executeMethodWithArgs(ClassHelperUtils.java:278)
at idcservlet.ServletUtils.executeContentServerIntegrateMethodOnConfig(ServletUtils.java:1600)
at idcservlet.IdcFilter.doFilter(IdcFilter.java:352)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused by: intradoc.data.DataException: !csMethodNotDefined,generateRevLabelInfo
at intradoc.server.Service.doCodeEx(Service.java:561)
at intradoc.server.Service.doCode(Service.java:505)
at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1643)
at intradoc.server.Service.doAction(Service.java:477)
at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1458)
at intradoc.server.Service.doActions(Service.java:473)
at intradoc.server.ServiceRequestImplementor.executeSubServiceCode(ServiceRequestImplementor.java:1323)
at intradoc.server.Service.executeSubServiceCode(Service.java:3867)
at intradoc.server.ServiceRequestImplementor.executeServiceEx(ServiceRequestImplementor.java:1200)
at intradoc.server.Service.executeServiceEx(Service.java:3862)
at intradoc.server.ServiceRequestImplementor.executeSafeServiceInNewContext(ServiceRequestImplementor.java:1231)
at intradoc.server.Service.executeSafeServiceInNewContext(Service.java:3857)
at intradoc.server.script.ServiceScriptExtensions.evaluateFunction(ServiceScriptExtensions.java:269)
at intradoc.common.DynamicHtmlMerger.computeFunction(DynamicHtmlMerger.java:1430)
at intradoc.common.DynamicHtmlMerger.evaluateGrammarElement(DynamicHtmlMerger.java:908)
at intradoc.common.DynamicHtmlMerger.substituteVariable(DynamicHtmlMerger.java:623)
at intradoc.common.DynamicHtml.substituteVariable(DynamicHtml.java:1394)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1110)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
at intradoc.common.DynamicHtml.outputHtml(DynamicHtml.java:991)
at intradoc.common.DynamicHtmlMerger.outputDynamicHtmlPage(DynamicHtmlMerger.java:2007)
at intradoc.server.Service.buildResponsePage(Service.java:1267)
at intradoc.server.Service.doResponse(Service.java:2076)
at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:802)
at intradoc.server.Service.doRequest(Service.java:1890)
at intradoc.server.ServiceManager.processCommand(ServiceManager.java:435)
at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)
at intradoc.idcwls.IdcServletRequestUtils.doRequest(IdcServletRequestUtils.java:1346)
at intradoc.idcwls.IdcServletRequestUtils.processFilterEvent(IdcServletRequestUtils.java:1715)
at intradoc.idcwls.IdcIntegrateWrapper.processFilterEvent(IdcIntegrateWrapper.java:222)
at sun.reflect.GeneratedMethodAccessor1173.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at idcservlet.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:88)
at idcservlet.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:305)
at idcservlet.common.ClassHelperUtils.executeMethodWithArgs(ClassHelperUtils.java:278)
at idcservlet.ServletUtils.executeContentServerIntegrateMethodOnConfig(ServletUtils.java:1600)
at idcservlet.IdcFilter.doFilter(IdcFilter.java:352)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Please let me know the suggestions and the resolution on the above issue
Thanks in advance,
SarangHirva wrote:
Trying to get access to the sun convergence we get this error
"Error while executing the service request : : Login to Mail Service failed " after a look around we found out that the problem was that some one had deleted the msg-admin-server user from the ldap.What else was "accidentally" deleted? Do you have audit logging enabled for Directory Server?
but still doesnt work? where else should we look?Messaging Server also creates a msg-admin group ("cn=Messaging End User Administrators Group") which is used for Directory Server ACI purposes. You can see the entries that Messaging Server added during initial configuration by reviewing the *.ldif files under the following directory (MS7.0 32bit):
/var/opt/sun/comms/messaging/install/Regards,
Shane. -
Serious system error while executing the query: java.lang.OutOfMemoryError
From ALSB, we are trying to insert records in a table, by calling the ALDSP webservice. It is working fine when the xml (ie., given as input to the ALDSP webservice) is small. But facing the following error when the input xml size is large.
<ALDSP> <BEA-000000> <Product> <Serious system error while executing the query:
{ld:ABC/Test}createTest:1
java.lang.OutOfMemoryError: Java heap space
We do not want to increase the heap size. Is there any other way we can solve this problem?In logical dataservice of ALDSP we have created a procedure called createTest, which is used to insert mulitple rows in the table. We have created a webservice for that logical DataService.
Using the ALSB, we are calling the webservice -> createTest Operation and we are passing xml as input to that createTest function.
Input xml:
<ns1:createTest>
<ns1:createTemps>
<ns0:createTemp>
<ns0:field1>1</ns0:field1>
<ns0:field10>test1</ns0:field10>
</ns0:createTemp>
<ns0:createTemp>
<ns0:field1>2</ns0:field1>
<ns0:field10>test2</ns0:field10>
</ns0:createTemp>
</ns1:createTemps>
</ns1:createTest>
each ns0:createTemp represent a row that need to be inserted in the table.
When the number of ns0:createTemp is less ( when the number of rows that need to be inserted is less) then no problem occurs, it is getting inserted properly. But when there are more number of ns0:createTemp then we are getting the following error
<ALDSP> <BEA-000000> <Product> <Serious system error while executing the query:
{ld:ABC/Test}createTest:1
java.lang.OutOfMemoryError: Java heap space
Maybe you are looking for
-
Download issue on my lumia 520
Whenever i try downloading on my phone it always shows me a page that i should add m'y info.the page has a drop-down bar which doesn't drop to enable me choose my data,and i cant proceed without setting my info..pls someone should help me and proffer
-
Problem with Excel button in ALV Grid...URGENT
Hi All, I have developed a report in ALV Grid. As we all know that by default we get few buttons in ALV Grid, like summation, sorting download, etc.. In that we have one excel button. When i click that excel button the output of the report should giv
-
Hello - trying printing for the first time. Question - how do I designate a page break? I will be printing out a number of data grids (each 3 rows high) - and after printing 6, i want to create start a new page. How do I do that? Thanks Chris
-
ESS Problem ------ Under Benefits and Payments
Hi All, I am facing problem in EP under Benefits and Payments <b>Benefits and Payment -></b> Salary Statement (Needs to appear as the Landscape form instead of Portrait form). how it will be done <b>Benefits and Payment -></b> Salary Statement i need
-
OracleFRHome1ProcessManager service is not starting?
Good day to One and All, I am using following configuration on Oracle AS10g:- OS = Windows 2003 Server Application = Oracle AS10g Server version: Oracle-Application-Server-10g/10.1.2.0.2 Oracle-HTTP-Server Load balanced : hostname1, hostname2, hostna