Query for Journal Entry as Incoming/Outgoing Payment
Hi all,
I need a query that returns all journal entries that are incoming/outgoing payments.
I have not found anything in the journal entries tables that marks it as a payment.
thanks,
Lucas.
Hi Lucas,
I am afraid 2 queries could be more meaningful. That might be more convenient:
Incoming:
SELECT T0.TransId as [Journal Entry#],
T0.RefDate as [Posting Date],
T0.BaseRef as [Incoming Payment #],
Isnull(T1.AcctName,T0.ShortName) as [GL Account Name/Vendor Code],
T0.Credit
from JDT1 T0
Left JOIN OACT T1 ON T1.AcctCode= T0.ShortName
where T0.TransType=24 AND
T0.Credit > 0
Order By T0.RefDate
Outgoing:
SELECT T0.TransId as [Journal Entry#],
T0.RefDate as [Posting Date],
T0.BaseRef as [Outgoing Payment #],
Isnull(T1.AcctName,T0.ShortName) as [GL Account Name/Vendor Code],
T0.debit
from JDT1 T0
Left JOIN OACT T1 ON T1.AcctCode= T0.ShortName
where T0.TransType=46 AND
T0.debit > 0
Order By T0.RefDate
Thanks,
Gordon
Similar Messages
-
Adding Journal Entry throgh Incoming Payments,
Hi Friend,
I need Help ....
I need to create a journal entry using incoming payment. I have different types of deduction Accounts. All deductions need to display in journal entry and also its reflect in Invoice.Then only invoice going to close.
Dim junEntry As SAPbobsCOM.JournalEntries
Ex :-
:::::Journal Entry::::::
*Account Code/BpName* *AccountName* *DR* *CR*
620005 Deduction1 10
620006 Deduction2 100
620007 Deduction3 100
620008 Deduction4 115
620009 Deduction5 10
6200010 Deduction6 10
6200011 Cash Recived 655 1000
1000 1000
Dim decDebi As Decimal = 0
Dim dtCount As Integer = dtDataTable.Rows.Count - 1
junEntry = objAddOnCentral.objCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)
junEntry.Memo = strBpCode
junEntry.ReferenceDate = Now.Date
For intLoop = 0 To dtDataTable.Rows.Count - 1
junEntry.Lines.AccountCode = dtDataTable.Rows(intLoop)("Account").ToString()
junEntry.Lines.Debit = dtDataTable.Rows(intLoop)("Amount").ToString()
decDebi += CDec(dtDataTable.Rows(intLoop)("Amount").ToString())
junEntry.Lines.Add()
Next
junEntry.Lines.ShortName = strBpCode.Replace("Incoming Payments", "")
junEntry.Lines.Credit = decDebi
junEntry.Lines.Add()
intErrCode = junEntry.Add()
If intErrCode <> 0 Then
objAddOnCentral.objApplication.StatusBar.SetText("" & objAddOnCentral.objCompany.GetLastErrorCode & " " & objAddOnCentral.objCompany.GetLastErrorDescription & "", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
Return False
End IfHi,
I thing no need addon once u add incoming payment automatically invoice will close and JE also will pass.
Regards,
Siva -
Payment on Account in Incoming/Outgoing Payments
Please tell me what is the purpose of Payment on Account in Incoming/Outgoing Payments forms and also in what all combinations I can use this feature.
Hello,
Basically it is used to accept the payment not based on certain invoice (open invoices) if you tick the field (tick box field). You must manually reconcile the payment to the invoices using automatic internal reconciliation or link invoice to payment feature that is available in banking module --> bank statements and reconciliations --> link invoices to payment. If you use the reconciliation option, you will also must create balancing journal before reconcile the transaction (i.e. open transaction in debit and credit side reconciliation balancing journal).
let me know if you need further explanation.
Rgds, -
Creating a file to be used by report ROIUH_LOAD_JEINTF for journal entry
Hello everyone,
My doubt is related to the PRA module -
I have to create a file to be used by program ROiUH_LOAD_JEINTF for journal entry creation. There are other programs also creating a similar file to what I am expected to create.
When I observe the existing programs, they have not used OPEN DATASET statement, instead directly used the TRANSFER dataset and then CLOSE DATASET.
What that does is it creates a file on the app server in a different format with only 1 line even if there may be like 10 lines of journal entry. The file mainly contains # which seems like some internal coding by the system.
When I tried using the OPEN DATASET statement, it wrote all the lines to the app server that were there in my internal table.
However, when I do not use the OPEN DATASET statement, it creates a file with just one line and maily # instead of the actual data from internal table.
Can any one explain what difference does it make to the system when we do not use the OPEN DATASET statement.
You help would be highly appreciated.
Thanks and Regards,
Shipra.Hello Satish,
Thank you for your response.
I think I was not clear enough about my doubt. I do not have any confusion about what OPEN DATASET would do.
In my case, there is a file being written to the app server without using an OPEN DATASET for OUTPUT statement. The Z program directly calls a TRANSFER statement.
The file that is created on the app server looks like:
7042008-11-01 000200100840 ######RD##################203 #### #####10012888 #####RI01 MC3
This file is used by the program ROIUH_LOAD_JEINTF. There are several lines in the internal table for Journal Entry creation but only 1 line shows in the file. However, when you debug the program ROIUH_LOAD_JEINTF with the above filename, you would see that it takes up all the JE lines that were passed from the previous program (the Z program) which created this file.
However, when I changed the Z program to have an OPEN DATASET statement, it had all the lines displayed in the file, the file was very readable.
I just wanted to know how does the system write to app server when no OPEN DATASET statement is written in the program.
Hope I am clear this time. Thanks again.
Regards,
Shipra. -
Series not defined for journal entry
Hello Sir
I have defined two series namely "SCPL" and "New1"
Start No Last No
SCPL 10001 3000
New1 3001 30000
Now i have made "SCPL" series as default for A/R Invoices and "New1" series as default for rest of the documents like A/R Credit memo,Journal Entry etc...
Now when I try to add an A/R Invoice , it gives me error message "Series not defined for journal entry"..?? But i have defined New1 series as default for Journal EntryHi,
In the series defined for journal entry,set document series as default for which default journal entries will be posted automatically.
Ex.For delivey,return,invoice journal entry will be generated automatically,so if you a series like JESYS08 indicating system automated journal entry.This series should be set as default.
If you have further issue let me know. -
DTW - Series not deifned for Journal Entry
2007B
Importing AP invoices thru DTW.
using Document Series
The document series assigned for AP Invoice is "APINV" and the same document series is selected for JE also.
The code for APINV is "7"
The field in DTW to define the document series is "Series" and the series code is given (eg : "7")
DTW gives error "series not defined for Journal Entry Application defined or object defined.."
where as when tried to create an AP Invoice manually, it was successful.
what could be the issue?
vijayI managed to find the issue.
IN the DTW template,
the field, "handwritten' was tYES, which I changed to tNO as we follow document series and numbering series.
nothing is entered in the 'docnum' field.
now I get the error " to generate this document, first define document series'
vijay -
Approval Process For Journal Entries
We are increasingly being asked to configure approval process for Journal Entries, especially from our larger customers. A move in the right direction was the addition of Stock. However no such addition was mode for journals. Has anyone developed such a solution or can Development give some indication as to where or if this requirement is on the consideration list.
Responses would be appreciated.
EarlNo replies to closed.
-
Hello,
Here's some setup:
/* This object contains a Map that ties a
* Company (key) to a String ID (value).
public class MyObject {
private Map company2id = new HashMap();
Example Data:
MyObject1 map:
Key[Company1], Value["ID1"]
Key[Company2], Value["ID2"]
MyObject2 map:
Key[Company1], Value["ID2"]
Key[Company2], Value["ID1"]
Now I want to query for the MyObject instance that has an entry in that
map
with a key of Company1 and a value of "ID1". How do I do that?
I can't query for a map that has a key of Company1 and a value of "ID1"
because that would return both MyObject instances. Instead, I have to
query
for the entry that has those values as both key and value. I hope that
sentence made sense.
So this doesn't work: "company2id.containsKey(myCompany) &&
company2id.containsValue(myId)"
What I need is something like:
"company2id.containsEntry(myCompany, myId)" or
"company2id.containsKey(myCompany) && entry.value == myId"
What would you recommend I do? Is there a custom extension I can use?
Use
SQL?
It seems like this might be a common need.
thanks,
daveWhat would you recommend I do? Is there a custom extension I can use?
Use
SQL?
It seems like this might be a common need.You can use a pure SQL query, SQL embedded in the JDOQL query (with our
ext:sql extension in 3.2b2, or ext:sqlVal/ext:sqlExp for 3.1.x), or
write your own JDOQL extension that emits the right SQL. Our reference
guide has a section on query extensions you'll want to check out.
I agree, though, that it's a fairly common need, and we'd like to
include a standard Map.get() extension in the future (it may even become
a standard supported method in JDO 2). -
Different no range/doc. type for cash journal incoming/outgoing payment
Hi all,
I am going to set up cash journal for a customer and they want separate number range for incoming and outgoing payments.
I have read on this forum and actually don´t understand if that´s possible.
If I set up two different cash journals (one for outgoing payments and one for incoming payments) the problem is that I can call all transaction type (C, B, R, E, set in transaction FBCJC2) from both. I have a cash journal for outgoing payments where I have set a separate document type and number range for G/L accounts in transaction FBCJC0 and the same for vendor outgoing payment and customer outgoing payment, but no document type for incoming payments from vendor/customer.
When I then start to use this cash journal for outgoing payments I can´t make outgoing payments if I don´t have any money in my cash journal. Then I have to take money from my housebank by business transaction type C (receipt from bank) set in transaction FBCJC2. This becomes an incoming payment, but I got the same number range as for outgoing payments because I am in that cash journal and that number range is set per G/L account transaction per cash journal. .
How can I come around this problem?
Thanks in advance!
Best regards LisaHi Pravin,
Sorry for late answer. I created three document types, one for customer, one for vendor and a third for G/L postings. It was not possible to do in another way, sorry.
Best regards Lisa -
Query print layout on Incoming/Outgoing Payment
Hi, i'm working on the QPL, and i've done doing the incoming and outgoing payment for customer/vendor... but when i have the 'payment on account' it doesn't show anything...
i check the query, everything is alright... the layout works fine with other outgoing payment which is not payment on account. It just doesn't work at all using the same query and layout for document which has payment on account...
what should i do?
Thnx for help...
MartinSELECT T0.DocNum, T0.DocDate, T0.DocCur, T0.NumAtCard,
T0.DocTotal, T0.DocTotalFC,T1.DocNum, T1.CardCode,
T1.CardName, T1.DocDate, T1.Comments,
T1.TrsfrRef as 'Cheque No', T2.BankCode' '
T2.AcctNum as 'Bank Code', T2.CheckSum, T0.Address,
T2.CheckNum, T2.Currency , T3.Phone1, T3.CntctPrsn, T0.PaidSum, T0.PaidSumFc, T1.DocTotal, T1.DocTotalFc,
T4.SumApplied, T4.AppliedFC
FROM OVPM T1 LEFT OUTER JOIN VPM1 T2 ON
(T2.DocNum = T1.DocNum)
LEFT OUTER JOIN VPM2 T4 ON
(T4.DocNum = T1.DocNum)
LEFT OUTER JOIN OPCH T0 ON
(T0.DocNum = T4.DocEntry)
LEFT OUTER JOIN OCRD T3 ON
(T3.CardCode = T0.CardCode)
WHERE T1.DocNum = [%0] AND T4.Invtype = '18'
Union
SELECT T0.DocNum, T0.DocDate, T0.DocCur, T0.NumAtCard,
-(T0.DocTotal), -(T0.DocTotalFC),T1.DocNum, T1.CardCode,
T1.CardName, T1.DocDate, T1.Comments,
T1.TrsfrRef as 'Cheque No', T2.BankCode' '
T2.AcctNum as 'Bank Code', T2.CheckSum, T0.Address,
T2.CheckNum, T2.Currency , T3.Phone1, T3.CntctPrsn, T0.PaidSum, T0.PaidSumFc, T1.DocTotal, T1.DocTotalFc,
T4.SumApplied, T4.AppliedFC
FROM OVPM T1 LEFT OUTER JOIN VPM1 T2 ON
(T2.DocNum = T1.DocNum)
LEFT OUTER JOIN VPM2 T4 ON
(T4.DocNum = T1.DocNum)
LEFT OUTER JOIN ORPC T0 ON
(T0.DocNum = T4.DocEntry)
LEFT OUTER JOIN OCRD T3 ON
(T3.CardCode = T0.CardCode)
WHERE T1.DocNum = [%0] AND T4.Invtype = '19'
Yea, it doesn't show me anything...except the free text document field in the layout... others like formula, database and variable didn't appear...
i suspect that there's something goes wrong when i do ' payment on account'
thnx for response... -
Different LC amount for same exchange rate at Incoming & Outgoing payment
Hi
I have created an incoming and outgoing payment separately. One of the amount is the same between Incoming and Outgoing payment with same currency and same exchange rate, but system generated LC amount with a rounding difference of SGD 0.01. Example, in incoming payment, the double entry is:
Dr AP/AR Contra account USD $ 294,318.00 __*SGD $ 442,065.64*__
Cr Customer USD $ 294,318.00 SGD $ 440,289.64
Cr Exchange Gain/Loss SGD $ 1,776.00
For outgoing payment, if the exchange is the same as 1.512, the system generated double entry below:
Dr Supplier USD $ 864,624.53 SGD $ 1,271,084.52
Dr Exchange Gain/Loss SGD $ 27,581.52
Cr Cash At Bank USD $ 570,306.53 SGD $ 856,600.41
Cr AR/AP Contra A/C USD $ 294,318.00 __*SGD $ 442,065.63*__
As you can see from the sample above, AP/AR Contra account is generated as 442,065.64 in Incoming payment whereas for the same rate and same posting date, the system generated different LC amount in Outgoing payment to 442,065.63, there is a 0.01 difference.
Why is that so? Why same exchange rate and FC amount will resulted in different SGD amount? Anybody know whether there is any workaround to solve this problem? Thanks.
Regards,
MHHi Gordon,
I don't really get what you mean. I have tried on my own database and it doesn't happen even though patch level, decimal places and document settings are the same. But it just happen on customer database with exactly the same transactions. So not sure how SAP calculate the amount. Thanks.
Regards,
MH -
Approval for Incoming,Outgoing Payments and Deposits
Hi guys,
I need to set an approval whenever the user wants to close or cancel Incoming Payments,OutGoing Payments and Deposits(Just Right Click on the Document and Close/Cancel).
I tried to get approval when adding the above documents but not able to set for cancel/Close.
Pls tell me how to achieve this..
Thanks,
VamsHi Vams,
As suggested by Gordon, you won't be ab;e to trigger an approval for this. SP may only block if some one tries to cancel or close the document. You can block the same by using authorizations. So why don't you directly use authorizations??
Thanks,
Joseph -
Incoming / Outgoing payments bank charges
It is common for bank charges to be applied to both incoming and outgoing payments.
It would be good to be able to deal with these at document level in the incoming and outgoing payments, using an account determination, rather than have to create a journal entry when reconciling the bank or the business partner account.Hi I agree, as we have several foreign currency adjustments that we would prefer to do at the payment time rather than at the reconciliation time against the vendor/customer.
-
Incoming/Outgoing Payment Reports
Hi Friends
My Cleint Need The outgoing/Incoming Payment report and they r asking the following selection creteria
Incoming payment/Out going Payment -
Bank Transfer Payment means wise,
Check payment means wise
Cash payment means wise
Crdit card Payment Means wise
Wat i have to do tell me the solution
SankarHI Sankar,
Basically you want all those information in one selection criteria window?
If you use XLR, it will be one selection criteria at a time.
If you user Query you can combine them in one selection criteria using survey variables. Since you will be accessing the Incoming Payment and Outgoing Payment as one of the selection criteria option, I would suggest that you use t-sql and not just ordinary select statement.
Laurence Resubal -
Duplicate rows on Query with journal entries and AP documents
Hi Experts,
I ahve the below query allowing me to have some information from journal entries and retrieve some other from AP docuements and PO.
The thing is the query duplicates rows because the AP docuements have several rows but i don t know how to do to remove them (i guess this has to do with JOIN function...)
SELECT
T2.[GroupMask] as 'Account Family',
T2.[FatherNum] as 'Parent Account',
T2.[AcctCode] AS 'Account Code',
T2.[AcctName] AS 'Account Name',
T0.[TaxDate] AS 'Document Date',
T0.[Number] AS 'Number',
T0.[DocSeries] AS 'Document Series',
T0.[BaseRef] AS 'Base Reference',
T0.[TransId] AS 'Transaction Number',
T0.[Ref2] AS 'Reference 2',
T1.[ContraAct] AS 'Offset Account',
T4.[BaseRef] AS 'PO code',
T1.[Project] AS 'Project Code',
T1.[ProfitCode] AS 'Distribution Rule',
T1.[OcrCode2] AS 'Costing Code 2',
T1.[OcrCode3] AS 'Costing Code 3',
T1.[OcrCode4] AS 'Costing Code 4',
(T1.[SYSdeb]-T1.[SYSCred]) AS 'Total Amount EUR',
(T1.[FCDebit]- T1.[FCCredit]) AS 'Total Amount (FC)',
T5.[DocTotalSy] AS 'PO Amount (EUR)'
FROM [dbo].[OJDT] T0
INNER JOIN [dbo].[JDT1] T1 ON T1.[TransId] = T0.[TransId]
INNER JOIN [dbo].[OACT] T2 ON T2.[AcctCode] = T1.[Account] AND T2.[AcctCode] = T1.[Account]
INNER JOIN [dbo].[OPCH] T3 ON T3.[DocNum] = T0.[BaseRef]
INNER JOIN [dbo].[PCH1] T4 ON T3.[DocEntry] = T4.[DocEntry]
LEFT JOIN [dbo].[OPOR] T5 ON T5.[DocNum] = T4.[BaseRef]
WHERE
(T2.[AcctCode] > (N'599999' ) ) AND (T2.[AcctCode] < (N'799999' ) )
AND (T0.[TaxDate]>= [%0] ) AND (T0.[TaxDate]<= [%1])Try This
SELECT T2.[GroupMask] AS 'Account Family',
T2.[FatherNum] AS 'Parent Account',
T2.[AcctCode] AS 'Account Code',
T2.[AcctName] AS 'Account Name',
T0.[TaxDate] AS 'Document Date',
T0.[Number] AS 'Number',
T0.[DocSeries] AS 'Document Series',
T0.[BaseRef] AS 'Base Reference',
T0.[TransId] AS 'Transaction Number',
T0.[Ref2] AS 'Reference 2',
T1.[ContraAct] AS 'Offset Account',
T4.[BaseRef] AS 'PO code',
T1.[Project] AS 'Project Code',
T1.[ProfitCode] AS 'Distribution Rule',
T1.[OcrCode2] AS 'Costing Code 2',
T1.[OcrCode3] AS 'Costing Code 3',
T1.[OcrCode4] AS 'Costing Code 4',
sum(T1.[SYSdeb]-T1.[SYSCred]) AS 'Total Amount EUR',
sum(T1.[FCDebit]- T1.[FCCredit]) AS 'Total Amount (FC)',
T6.[DocTotalSy] AS 'PO Amount (EUR)'
FROM OJDT T0
INNER JOIN JDT1 T1 ON T0.TransId = T1.TransId
INNER JOIN OACT T2 ON T1.Account = T2.AcctCode
INNER JOIN OPCH T3 ON T0.TransId = T3.TransId
INNER JOIN PCH1 T4 ON T3.DocEntry = T4.DocEntry
INNER JOIN POR1 T5 ON T4.[BaseEntry] = T5.[DocEntry]
AND T4.[BaseLine] = T5.[LineNum]
INNER JOIN OPOR T6 ON T5.DocEntry = T6.DocEntry
GROUP BY T2.[GroupMask],
T2.[FatherNum],
T2.[AcctCode],
T2.[AcctName],
T0.[TaxDate],
T0.[Number],
T0.[DocSeries],
T0.[BaseRef],
T0.[TransId],
T0.[Ref2],
T1.[ContraAct],
T4.[BaseRef],
T1.[Project],
T1.[ProfitCode],
T1.[OcrCode2],
T1.[OcrCode3],
T1.[OcrCode4],
T6.[DocTotalSy]
Regards,
Kennedy
Maybe you are looking for
-
Siri was working on my 4s this morning and now reads message uh oh something wrong
I was just using Siri this afternoon and now it is giving me an error message uh oh there;'s somethingwrong. would you like to try again? any ideas?
-
Demo for SAP ERP 6.0 EhP 3.0 BAIO with 2 clients
Hi! I successfully configured SAP PI and have a SAP ERP 6.0 EhP 3.0 BAIO with 2 clients. ERP: 100 (Business System A) ERP: 200 (Business System B) Which scenarios can I start with (ABAP Proxy, RFC-to-File, etc.) and where can I find the appropriate d
-
Give me some examples of syntax of object oriented concept in abap
pls let me know
-
Screen to Screen - View to View??
Hi, I could use a bit of assistance in determining how to go from view to view. I have this file called login.mxml it is basically the default application and it gets loaded when you first hit my app. Once authenticated i want to send the user to mai
-
Remove java paramters using config tool
Hi All, What is the benefits from the following parameters? because i want to delete it from java settings of EP 7.0 with ESS -Dorg.xml.sax.driver=com.sap.engine.lib.xml.parser.SAXParser -Dorg.w3c.www.protocol.http.connections.max=100 -Dorg.w3c.www.