|
|
Re: How to define Package Name in Reports Builder [message #630474 is a reply to message #630473] |
Mon, 29 December 2014 02:33 |
isteri143
Messages: 11 Registered: December 2014 Location: World wide web
|
Junior Member |
|
|
Hi LittileFoot,
1) How to Re-Write expression.My Code is like this ,please guide me for this, I am New to Reports Builder actually.
function AfterPForm return boolean is
led varchar2(4);
/*cursor a is
select ledger_id from gl_ledgers where name=:led_des;*/
begin
/*for rec in a loop
led:=rec.ledger_id;
end loop;
close a;*/
IF :LED_DES = 'MBB PRIMARY LEDGER' THEN
LED:= '2021' ;
ELSE
LED:='2023';
END IF;
/*DELETE FROM XXMBB_NOSVOS_TMP_VO_NO WHERE EFFECTIVE_DATE BETWEEN
'01'
|| '-'
|| TO_CHAR(to_date(:N_Date,'DD-MM-YY'),'MON-YY')
AND to_date(:N_Date,'DD-MM-YY')
AND LEDGER_ID = LED and name_rdf='NOSVOS';
COMMIT;
DELETE FROM XXMBB_NOSVOS_BAL_TMP_VO_NO WHERE
PERIOD_NAME = TO_CHAR(add_months(to_date(:N_Date,'DD-MM-YY'),-1),'MON-YY')
and ledger_id = LED and name_rdf='NOSVOS';
COMMIT;*/
--/* sumathi commented on 19-12-2014-- temp
SRW.DO_SQL('TRUNCATE TABLE XXMBB_NOSVOS_TMP_VO_NO');
SRW.DO_SQL('TRUNCATE TABLE XXMBB_NOSVOS_BAL_TMP_VO_NO');
-- */
insert /*+ APPEND */ into XXMBB_NOSVOS_TMP_VO_NO
SELECT code_combination_id,
(accounted_dr) AS accounted_dr,
(accounted_cr) AS accounted_cr,
EFFECTIVE_DATE AS EFFECTIVE_DATE,
LEDGER_ID LEDGER_ID,
'NOSVOS'
FROM gl_je_lines
WHERE LEDGER_ID = LED
AND effective_date BETWEEN '01'
|| '-'
|| TO_CHAR(to_date(:N_Date,'DD-MM-YY'),'MON-YY')
AND to_date(:N_Date,'DD-MM-YY')
AND status ='P'
;
commit;
insert /*+ APPEND */ into XXMBB_NOSVOS_BAL_TMP_VO_NO
select
code_combination_id
,begin_balance_dr
,begin_balance_cr
,period_net_dr
,period_net_cr
,period_name
,ledger_id
,'NOSVOS'
from gl_balances
where
period_name = TO_CHAR(add_months(to_date(:N_Date,'DD-MM-YY'),-1),'MON-YY')
AND ledger_id = LED
and currency_code = 'MYR'
and actual_flag = 'A';
COMMIT;
return (TRUE);
end;
: Re-write your expression using fewer operands.
Option #2: Make sure that your expression does not evaluate to infinity.
[EDITED by LF: applied [code] tags]
[Updated on: Mon, 29 December 2014 03:45] by Moderator Report message to a moderator
|
|
|
|
|
|
Re: How to define Package Name in Reports Builder [message #630529 is a reply to message #630483] |
Mon, 29 December 2014 19:02 |
isteri143
Messages: 11 Registered: December 2014 Location: World wide web
|
Junior Member |
|
|
Hi Foot,
I am using the Database is Oracle SQL Developer, here the Requirement is like Before insert the values in Database I need to remove the Database table and insert new values. Here i have provided the code below.Please suggest me to resolve this issue. I am new to Reports Builder ,Please assist me Step by Step.Which one is suggested to impliment for this issue.
-----------------------------------------------------------------------------
DELETE FROM XXMBB_NOSVOS_TMP_VO_NO WHERE EFFECTIVE_DATE BETWEEN
'01'
|| '-'
|| TO_CHAR(to_date(:N_Date,'DD-MM-YY'),'MON-YY')
AND to_date(:N_Date,'DD-MM-YY')
AND LEDGER_ID = LED and name_rdf='NOSVOS';
COMMIT;
DELETE FROM XXMBB_NOSVOS_BAL_TMP_VO_NO WHERE
PERIOD_NAME = TO_CHAR(add_months(to_date(:N_Date,'DD-MM-YY'),-1),'MON-YY')
and ledger_id = LED and name_rdf='NOSVOS';
COMMIT;
----------------------------------------------------------------------------------------
SRW.DO_SQL('TRUNCATE TABLE XXMBB_NOSVOS_TMP_VO_NO');
SRW.DO_SQL('TRUNCATE TABLE XXMBB_NOSVOS_BAL_TMP_VO_NO');
When I am Using Delete the following error is came.
REP-0069: Internal Error
REP-57054: In-Process job terminated:Executed successfully but there were some errors when distribute the output.
REP-50159: Executed successfully but there were some errors when distribute the output.
When I am Using Truncate the following error is came.
REP-1425:'afterform':Error Running DO_SQL Package,'Error Parsing the SQL Statement.
ORA-01426: numeric overflow
Please suggest me for this issue.
Thanks
Naveen
[Updated on: Mon, 29 December 2014 20:06] Report message to a moderator
|
|
|
|
REP-0069 : Internal Error,REP-57054: In process Job Terminated [message #630595 is a reply to message #630472] |
Wed, 31 December 2014 00:18 |
isteri143
Messages: 11 Registered: December 2014 Location: World wide web
|
Junior Member |
|
|
Hi All,
How to resolve this issue in Production Environment.
REP-0069: Internal Error.
REP-57054: In-process job terminated:Executed successfully but there were some errors when distribute the Output
REP-50159: Executed successfully but there were some errors when distribute the output.
Thanks
Isteri
|
|
|
|
Re: REP-0069 : Internal Error,REP-57054: In process Job Terminated [message #630599 is a reply to message #630598] |
Wed, 31 December 2014 00:38 |
isteri143
Messages: 11 Registered: December 2014 Location: World wide web
|
Junior Member |
|
|
Hi Foot,
I am using Reports Builder I need to Delete the Table data and Insert the values but when i was trying to compile the code its getting that kind of error. Please assist me to resolve the issue.
069: Internal Error.
REP-57054: In-process job terminated:Executed successfully but there were some errors when distribute the Output
REP-50159: Executed successfully but there were some errors when distribute the output.
Thanks
Isteri
|
|
|
Re: REP-0069 : Internal Error,REP-57054: In process Job Terminated [message #630600 is a reply to message #630599] |
Wed, 31 December 2014 00:42 |
|
Littlefoot
Messages: 21808 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
Ah, we are continuing the old discussion; didn't realize that earlier. I've merged these two topics. Next time, please, don't open a new one, just post a new message in the old topic.
I bet you didn't do what I suggested previously, did you? Create a stored procedure which will do the job? How about doing it now?
|
|
|