JOURNAL 이 2번 POST 되어 BALANCE 와 JOURNAL TABLE 상에 금액 차이가 발생했을 경우
제품 : FIN_GL
작성날짜 : 2003-05-13
JOURNAL 이 2번 POST 되어 BALANCE 와 JOURNAL TABLE 상에 금액 차이가 발생했을 경우
==============================================================
PURPOSE
gl_balances 와 gl_je_lines table 상의 금액이 차이가 날 경우 data fix 방법을 제공한다.
Problem Description
gl_balances 와 gl_je_lines table의 금액 차이가 나서 조사해 본 결과 일부 journal 이 2번 post 되었음을 발견하였다.
Workaround
Solution Description
1. 해당하는journal batch를 Reverse 처리한 다음 Posting 까지 완료한다.
2. delete 해야 할 data를 다시 한번 아래 문장으로 확인한다.
set heading off
set linesize 79
column je_batch_id format a79 trunc
column je_header_id format a79 trunc
column je_line_num format a79 trunc
column batch format a79 trunc
column header format a79 trunc
column entered_cr format a79 trunc
column entered_dr format a79 trunc
column code_combination_id format a79 trunc
select
'gjb.je_batch_id :'||' '|| gjb.je_batch_id je_batch_id,
'gjh.je_header_i :'||' '|| gjh.je_header_id je_header_id,
'gjb.name :'||' '|| gjb.name batch,
'gjh.name header :'||' '|| gjh.name header,
'gjl.je_line_num :'||' '|| gjl.je_line_num je_line_num,
'gjl.entered_cr :'||' '|| gjl.entered_cr entered_cr,
'gjl.entered_dr :'||' '|| gjl.entered_dr entered_dr,
'gjl.code_combination_id :'||' '|| gjl.code_combination_id
code_combination_id
from gl_je_lines gjl, gl_je_batches gjb, gl_je_headers gjh
where gjb.je_batch_id = gjh.je_batch_id
and gjh.je_header_id = gjl.je_header_id
and gjb.set_of_books_id = &set_of_books
and gjb.name like '%Reversed_Batch_Name%';
3. 위의 문장으로 delete 해야할 batch_id와 je_header_id 를 확인 한 후 아래 문장으로 data를 backup 해둔다. (만약의 경우를 대비해 반드시 backup한다.)
create table gl_batch_temp as
(select * from gl_je_batches
where set_of_books_id=&set_of_books
and je_batch_id=&batch_id);
create table gl_header_temp as
(select * from gl_je_headers
where set_of_books_id=&set_of_books
and je_header_id=&header_id);
create table gl_line_temp as
(select * from gl_je_lines
where set_of_books_id=&set_of_books
and je_header_id=&header_id);
4. 아래 문장으로 해당 데이타를 gl_je_batches와 gl_je_headers, gl_je_lines 테이블에서 delete한다.
delete from gl_je_batches where
set_of_books_id = &set_of_books
and je_batch_id= &batch_id;
delete from gl_je_headers where
set_of_books_id = &set_of_books
and je_header_id= %je_header_id;
delete from gl_je_lines where
set_of_books_id = &set_of_books
and je_header_id= &je_header_id;
모든 작업 완료후에는 balance table과 gl_je_liens 테이블의 data가 일치하는지 다시 한번 확인해주세요.
Reference Documents
Note 132003.1
Similar Messages
-
URGENT NEED HELP : JOURNALING TABLES AND TRIGGERS GENERATION
Hi
I need generate journaling tables for any tables to audit the update, delete statements executed for the users. I captured an existant schema, then and I change the derfiniton of the target tables, setting the value of Journaling to "Server".
But, when I generate the DDL statements, the triggers of the journaling tables don't appears in the sql file.
¿What is the error?
I thing that Designer generates the triggers and the journal tables, ¿It's true?
Thanks in advance.
XaviYou have to use the "Generate Table API" menu option. This will generate the "journalling" triggers.
HTH
Roel -
Journal tables in SQL Developer Data Modeler
In my database I use journal tables, which can be generated automatically by Oracle Designer.
Now that I'm trying to start using SQL Developer Data Modeler, I can't find how to make journal tables with it.
Does anyone know whether Data Modeler supports journal tables or not? And if it does, how can I generate one?No automatic generation you have to create them manually - use copy/paste to speed up the process.
Philip -
How to handle journal table using JPA+TopLink
Hi,
I am using JDev10.1.3.3 with Swing and EJB + JPA + TopLink using Oracle database. Every business table has a journal table. Does TopLink have any journal features or do I have to write my own code to insert data into the journal table.
Thanks,
JimDepends what's in your journal table? TopLink does have support for historization (see HistoryPolicy or docs).
Otherwise you could use TopLink events to insert into the table, or use database triggers.
-- James : http://www.eclipselink.org -
Is there a link between the Journal tables and the Marketing Document tables?
Hi Everyone,
Is there a link back from the Journal Tables (e.g.: OJDT and / or JDT1) to the Marketing Documents tables (e.g.: OINV and / or INV1)?
If there is a link can you please let me know what it is?
Kind Regards,
DavidDavid..
Try This
Select T1.RefDate,
Case
When T1.TransType=13 Then 'Invoice'
When T1.TransType=14 Then 'A/R Credit Memo'
When T1.TransType=15 Then 'Delivery Note'
When T1.TransType=16 Then 'Delivery Return'
When T1.TransType=162 Then 'Stock Revaluation'
When T1.TransType=18 Then 'Purchase Bill'
When T1.TransType=19 Then 'A/P Credit Memo'
When T1.TransType=20 Then 'GRPO'
When T1.TransType=202 Then 'Work Order'
When T1.TransType=21 Then 'Goods Return'
When T1.TransType=24 Then 'Incoming Payment'
When T1.TransType=30 Then 'Journal'
When T1.TransType=46 Then 'Outgoing Payment'
When T1.TransType=59 Then 'Goods Receipt'
When T1.TransType=60 Then 'Goods Issue'
When T1.TransType=67 Then 'Stock Transfer'
Else T1.TransType
End [TransType],
T1.TransId,
Case
-- Sales A/R
When T1.TransType = 13 Then (Select isnull(Comments, '') From OINV Where DocNum = T1.BaseRef and CardCode = T1.ShortName) -- Invoice
When T1.TransType = 14 Then (Select isnull(Comments, '') From ORIN Where DocNum = T1.BaseRef and CardCode = T1.ShortName) -- A/R Credit Memo
When T1.TransType = 15 Then (Select isnull(Comments, '') From ODLN Where DocNum = T1.BaseRef and CardCode = T1.ShortName) -- Delivery
When T1.TransType = 16 Then (Select isnull(Comments, '') From ORDN Where DocNum = T1.BaseRef and CardCode = T1.ShortName) -- Delivery Return
-- Purchase A/P
When T1.TransType = 18 Then (Select isnull(Comments, '') From OPCH Where DocNum = T1.BaseRef and CardCode = T1.ShortName) -- Purchase Bill
When T1.TransType = 19 Then (Select isnull(Comments, '') From ORPC Where DocNum = T1.BaseRef and CardCode = T1.ShortName) -- A/P Credit Memo
When T1.TransType = 20 Then (Select isnull(Comments, '') From OPDN Where DocNum = T1.BaseRef and CardCode = T1.ShortName) -- GRPO
When T1.TransType = 21 Then (Select isnull(Comments, '') From ORPD Where DocNum = T1.BaseRef and CardCode = T1.ShortName) -- Goods Return
-- Production
When T1.TransType = 202 Then (Select isnull(Comments,'') From OWOR Where DocNum = T1.BaseRef and PostDate = T1.RefDate) -- Work Order
-- Banking
When T1.TransType = 24 Then (Select isnull(Comments, '') From ORCT Where DocNum = T1.BaseRef and CardCode = T1.ShortName) -- Incoming Payment
When T1.TransType = 46 Then (Select isnull(Comments, '') From OVPM Where DocNum = T1.BaseRef and CardCode = T1.ShortName) -- Outgoing Payment
When T1.TransType = 30 Then (Select ISNULL(LineMemo, '') From JDT1 Where Ref1 = T1.Ref1 and ShortName = T1.ShortName) -- Journal
-- Inventory
When T1.TransType = 59 Then (Select ISNULL(Comments, '') From OIGE Where DocNum = T1.Ref1 and DocDate = T1.RefDate) -- Goods Receipt
When T1.TransType = 60 Then (Select ISNULL(Comments, '') From OIGN Where DocNum = T1.Ref1 and DocDate = T1.RefDate) -- Goods Issue
When T1.TransType = 67 Then (Select ISNULL(Comments, '') From OWTR Where DocNum = T1.Ref1 and DocDate = T1.RefDate) -- Stock Transfer
When T1.TransType = 162 Then (Select ISNULL(Comments, '') From OMRV Where DocNum = T1.Ref1 and DocDate = T1.RefDate) -- Stock Revaluation
Else ''
End [Remarks],
T1.LineMemo,
Case
When exists (Select AcctCode From OACT Where AcctCode = T1.ContraAct)
Then (Select AcctName From OACT Where AcctCode = T1.ContraAct)
else (Select CardName From OCRD Where CardCode = T1.ContraAct)
End [Account],
Case
When T1.Debit=0.0
Then 0.0
Else T1.Debit
End Debit,
Case
When T1.Credit=0.0
Then 0.0
Else T1.Credit
End Credit
From JDT1 T1
Where T1.TransType <> -3
And T1.RefDate Between @FromDate and @ToDate
And T1.ShortName = @Account
Order By T1.RefDate,
T1.TransId
Regards
Kennedy -
We have a package in the database in which we use the TAPI INS procedure to insert data into a table.
How should we open an close the transaction so that for every insert record a record in the journal table is created.
We have created journalling business rules. A normal INSERT INTO statement works (because we also use the TAPI triggers). But if we use a cursor loop and within the loop the TAPI INS statement, only 1 record is created in the journal table (the first record that was inserted).
Should we place the openening and closing of the transaction inside or outside of the cursor loop?
The current code is outside the loop, like this:
qms_transaction_mgt.open_transaction
( p_trans_opened_by => 'myprocedure'
for r_import in c_import
loop
l_rec.id := Null;
l_rec.code := r_import.code;
l_rec.description := r_import.description;
l_ind.id := False;
l_ind.code := True;
l_ind.description := True;
cg$my_table.ins(l_rec, l_ind);
end loop;
qms_transaction_mgt.close_transaction
( p_trans_opened_by => 'myprocedure'
commit;
Anyone have a suggestion how solve this?The only way we can circumvent this problem is by not using the TAPI procedure, but use normal DML (INSERT, UPDATE).
-
Hello !!!
I intend to build a module where an authorized end-user can see the content of a journal table and run some queries on it (history of a specific file or actions performed by a given user). So, I would like to know if implementing indexes on a journal table is acceptable (both for performance and maintainance of the application). What could be the associated problems and do you know a more standard or better approach ?
I thank you very much,
Denis.What you want is to join the 2 tables to return a single resultset:
http://en.wikipedia.org/wiki/Join_(SQL)
http://www.w3schools.com/Sql/sql_join.asp
SELECT profilePic, firstname, surname, eventName
FROM clients
INNER JOIN events ON events.clientID = clients.clientID
WHERE clients.clientID = #URL.clientID#
Mack -
Migration V4 to V7 -- journal tables
Dear all,
I got a problem during the migration of the journal tables.
I could succesfully migrate
Jrndeptable
Jrndtll
JrnTrans
JrnMemberset
But I have a problem with the JrnApplication table:
he gives following error during transfer on the server:
Validating (Error)
Messages
Error 0xc0202049: Data Flow Task 1: Failure inserting into the read-only column "IDJ".
(SQL Server Import and Export Wizard)
Does someone knows a solution?
ThanksHi,
IDJ is an identity field, you should insert the other columns, IDJ will be generated automatically. So, you have to run something like:
insert into jrn<application> (column1, column2, ccolumn3, ...)
Select column1, column2, column3, .... from jrn<applicationv4.2>
Hope this can help you,
Mihaela -
CDC Journal Tables in a differenct location
Is it possible to setup the journalizing tables in a different location than the source system, even a different schema in the database? I am not allowed to alter the structure of the source schema.
Thanks.Another option would be to connect to the source schema through a db link, but not sure how to set that up through Topology manager or where the journal tables would be setup?
Thanks -
Journal tables for Oracle Objects
Hi.
How can I create Journal tables for database tables including columns with datatype being a Nested table. I am trying to this in Oracle Designer.
Thanks.Hi,
check this table <b>TADIR</b> .
Enter OBJECT = PROG
and see in SE16.
follow this link for sample program.
http://abap4.tripod.com/Upload_and_Download_ABAP_Source_Code.html
regards,
Ashok Reddy -
Posting balance is not cleared (Period 06 / 2011 A) error
Mates
I'm trying to do a Test run; no documents are created .system throws a the error message.I realize its a common error but hoping to fix this.
"Posting balance is not cleared (Period 06 / 2011 A)
Message no. 3G103
Diagnosis
The employee has been rejected because the balance of the generated posting items has not been balanced.
Procedure
Check the Customizing steps for the posting characteristics for the wage types that exist in the corresponding payroll result."
it seems to point us to T52EZ -posting charcteristics of wagetype.
i have mapped the cost centre in 27inftp and position is default one in 1inftp.
my symboli accounts are d001,d002,d003,d004,d005
account assignemtn type is c-posting to expense account
posting characteristic i have mapped wagetypes to above symbolic accounts
say 8000-d001
8010-d002
for ex
Plus/Minus Sign for Posting-+ve amounts as debot and -ve as credtit
generated posting date for payroll periods
in the activitws in ac system
have assigned the symbolic accounts to expense acocunts
i have mapped the costcentre for that employee in 27 ,im using default position in 0001.
there is a wagtype say food allowance that hasnt been mapped to G/l ?payroll result has an amount for that say 2000.
i have created a symbolic account but when it comes to mapping to G/L ,i have excluded one.
would that have an impact?
kindly share your expert views.
No Worries
KGMates,
infact im doing this in sandbox client ...i deleted the payroll results tcd pu00....i once again checked the g/l mapping ,,im still getting the posting error ..im not sure if im missing anything here ..
payresults are like below
Payroll Results
Personnel No. 811 mustafa mohaammed - Other Countries
Seq. number 00001 - accounted on 02.07.2011 - current result
For-Period 06.2011 (01.06.2011 - 30.06.2011)
In-Period 06.2011 (Fin.: 30.06.2011)
Table RT - Results Table
PCRlGr Wage Salary type WC C1 C2 C3 Assign: AltPa CA BT Abs.
Var ss gn Un t Rate Number Amount
/101 Total gross amount
6,075.00
/203 Average basis 03
450.00
/550 Statutory net
6,075.00
/559 Payment 01
6,075.00
/560 Payment Amount
6,075.00
/700 Wage/salary + ER contr.
6,075.00
/840 Diff. to avg. month 01
13.50
3 /001 Valuation basis 1 01
26.61
3 8000 Monthly salary 01
4,500.00
3 8010 Housing Allowance(25% Bas 01
1,125.00
3 8030 Transport Allowance 01
450.00
i have maintained 0027 for that employee...kndly advice if im missing anything here ,....
No Worries
KG -
Hi,
I will appreciate if someone could give me some information about Posting balance not cleared.
after Run Payroll, I run for posting through PC00_m40_CIPE,
Here,
Salary ( earning ) 104.600,00
Balance Sheet account ( deduction) 32.028,00
Expense account 136.628,00 it shows wrong (added earning + deduction )
How to make correct like - salary 104.600,00
deduction 32.028,00
Expense a/c 72.572,00Prabu,
Shortly i Will explain you the logic of postings. All components which are earnings for an employee should be your expence a/c i.e. C a/c's and the complonents which are deductions for an employee are balance sheet a/c's i.e. F or FC a/c based on your FI configs which you define these in table V_T52EK thru SM30 tcode.
The problem you have mentioned in your V_T52EZ & V_T52EL tables i.e. Maintain WT charecteristics table.
Check all your a/c's again and check that all "F" a/c's should be with indicator sign and all "C" a/c's should be with indicator sign in table V_T52EL for your information and remember one more point while maintaining characteristics for each WT's.
IT0014 deduction WT's components should be in "F" a/c's only but with indicator sign as per the concept of finance.
Let us knw any more clarifications needed.
All the best.
Regards,
TATA
Edited by: Prashantkumar Tata on Jun 18, 2011 8:29 AM -
Payroll's Error message: Posting balance is not cleared (period 02 / 2014 a)
Dear Experts,
I am new to SAP HR. And would like get help for this issue
After EHP 6 upgarde, when process the payroll, system prompt this error message: Posting balance is not cleared (period 02 / 2014 a).
Checked the RT and it showed that the tax employee deduction was RM90.93. But when it comes to payslip display the tax amount showed different figure of RM90.94 which might be the cause for “posting balance is not cleared” messageHi,
ChecK Manoj Shakya's response in the thread.
Posting to FI-err :3G103, posting balance is not cleared
Cheers,
Manoj. -
Posting balance is not cleared (period 01/2007 A) - showing as ERROR
Hi SDN's,
When am doing simulation for posting, showing error as
"Posting balance is not cleared (period 01/2007 A)".
Plz need your valuable suggestions to solve my issue.
Thanks for your timings,
Kind regards,
Saisree.SHi Sai,
check the amounts for Balance sheet accounts and Expanses account. find the difference for both the accounts. the difference might be some wage type or wage types amount.
find the wage types and assign the accounts. then your problem will get solved.
If the difference amoun is net payment you have to maintain the bank account number. then it will get solved.
Kumar -
POSTING ERROR-MESSAGE POSTING BALANCE NOT CLEARED FOR THE PERIOD 2/2008A
Hi
I have a problem in payroll posting. While posting for one employee's persn number rejected and gave a message as Posting Balance not cleared for the period 2/2008A. To come out of the problem I changed the Payroll status record using pu03 changed the Erliest Retro date as 01.06.2008. Again tried to post but not posted again same Message displayed. After changing the Erliest Retro record I have not run the payroll for the particular employee. Is it required to run the payroll for the employee after changing the status in PU03. Request to guide on this
Thanks
EKP YadavHi there
The posting may be out of balance for the employee because their credits dont equal their debits...
Do a test posting for the employee with the log on, this will tell you what amounts are being posted - and should give you an inidcation of where the balance is not cleared...
Yes, you would have to re-run the employee if you'd changed the retro date in PU03, but I dont think that will fix your posting problem....Should the employee have retroe'd?
From what I have seen, just changing the control record doesn't usually fix an out-of balance..there is usually another reason....eg wagetype incorrectly posting to the wrong number of accounts....or a missing wagetype on the employee (eg bank details...no /559 for the net pay to go to).
Cheers
Mary
Maybe you are looking for
-
HP Officejet Pro 8500 Wireless Won't Scan Under Snow Leopard
After installing Snow Leopard, my new HP Officejet Pro Wireless 8500 all-in-one printer won't scan. It delivers the following error message: "No Scan Options - refer to device documentation". Also, when I attempted to check and adjust scan settings u
-
Is there an app i can use to listen or record conversations from i5s to i6plus ?
is there an app i can use to listen or record txts and conversations from i6plus to i5s ?
-
Upgrade to Oracle 9i release 2
Hi, I have oracle 9i 9.0.1 enterprise edition. how do I upgrade it to 9i release to (9.2) ? help me please.
-
I need to make a flash banner with three images, with a simple "cover left" or "reveal to right" type transition between them with maybe a 7 second delay and then repeat infinitely. I have been trying for days to do it in various programs, and have r
-
I am very new to MAC & Pages from the Microsoft Office world. Is there any way to import borders for a page on Pages? I am thinking of something I did on Publisher; find a picture suitable for a border, download the picture, import it to publisher/bo