Distribution Rule in Incoming Payment of Invoice
Hello Experts,
I'm running SAP B1 8.81 PL05 and I have the following problem.
I issue an A/R Invoice + Payment and I have in the "Payment Means" a discount. The final result is an issue of two different journal entries - one for the invoice and another for the payment discount.
The problem is that I want to have a Distribution Rule associated with the Incoming Payment discount and I can't find a way to associate it - the solution of associating a distribution rule to the account is not possible because the Distribution Rule changes according to the sales employee.
Help would be very appreciated.
Hi Thomas,
From the SAP help, you can know what is the use of this rule.
Defining Distribution Rules
Use
For cost accounting, this setting is mandatory.
Use this procedure to define distribution rules to distribute amounts between different profit centers.
Prerequisites
You have defined profit centers.
Note: If you delete a distribution rule for one profit center (100%) this does not automatically delete the profit center.
You can also look up this key word to find more info. For examle, you can find SAP note 1236348 to see if it fits you.
Thanks,
Gordon
Similar Messages
-
Distribution rules in Incoming payment and Outgoing payment
Hi,
Did anyone know the purpose of having distribution rules in all the outstanding invoices in both Incoming and Outgoing payment.
I try to attach the distribution rules to specific invoice and post incoming payment but it did not appear in the bank journal entry row.
I also try to attach profit center in AR Invoice row but after posting and do Incoming payment, the distribution rules also never show for that particular invoice.
Really wonder how the distribution rule works?
Regards
ThomasHi Thomas,
From the SAP help, you can know what is the use of this rule.
Defining Distribution Rules
Use
For cost accounting, this setting is mandatory.
Use this procedure to define distribution rules to distribute amounts between different profit centers.
Prerequisites
You have defined profit centers.
Note: If you delete a distribution rule for one profit center (100%) this does not automatically delete the profit center.
You can also look up this key word to find more info. For examle, you can find SAP note 1236348 to see if it fits you.
Thanks,
Gordon -
Selection of Distribution Rule in Incoming and Outgoing Payment
There is an option of selecting the distribution rule in Incoming and Outgoing Payment having transaction of Account type but the requirement is of having the selection of distribution rule having transaction of Customer and Vendor (Invoice wise and Payment on Account)
What is the purpose for distribution rules in Outstanding invoice list in incoming payment? I try to attach the analysis there and post incoming payment but it will not appear in Journal entries which defeat the main purpose.
The problem face by customer is that they had many outlets and finance department in HQ needs to monitor daily collection from each outlets.
The desired outcome by customer is:
Dr Bank [profit center=Outlet A] XXX
Cr Customer XXX
Eventually print out reports in XLR as
Outlet A Outlet B Outlet C
Bank XXX XXX XXX
Regards
Thomas
Edited by: Rui Pereira on Dec 4, 2008 2:15 PM -
Different Distribution Rule on Outgoing Payment cannot be split on Journal
Hi All,
I created an Outgoing Payment for Vendor for several invoices. Each invoice was assigned to different Distribution Rule. But the journal created summarized all the invoices (only one row for debit AP), and no distribution rule was assigned. Is this a bug? Anybody ever experienced the same problem?
Thanks in advance for your help.
Regards,
MariniHi Gordon,
I am working with version 2007 A PL 42.
I found that Distribution Rule on Outgoing Payment is for Discount purpose. When we fill Discount then it will be posted to Discount Account with Distribution Rule defined.
Thanks,
Marini -
How to Insert Incoming Payments without Invoice?
Hi,
Please help me how to insert incoming payments without invoice or those Incoming Payments that is paid to account. I have created code for this but error pops up: "Cannot perform transaction in controlling type account [ThankJDT1.Account][Line: 2]"
Thanks...Hello,
you may try this:
Dim oPymt As SAPbobsCOM.Payments
Dim sum As Decimal = 0 ' Forget double 4ever
oPymt = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments)
oPymt.DocDate = Date.Today()
oPymt.CardCode = "CB0001"
oPymt.CashSum = 1200
oPymt.CashAccount = "38110000" ' here you enter your the account where you record the payment
If oPymt.Add = 0 Then
MsgBox(oCompany.GetNewObjectKey())
Else
MsgBox(oCompany.GetLastErrorDescription)
End If
Regards
János -
Query to view no of incoming payments for invoices.
HI Experts,
I want a query to see all the incoming payments(like payment1 and its cancellation and payment2 and its cancellation due to Bounce of cheque and subsequent new cheque, like that) for particular Invoices.
For Instances.
Like customer name,code, payment type, due date,cheque amount,check no ,status and such for all payments for the particular Invoice.
Can anyone help me out in this ground.
Thanks in advance,
Regards,
Dwarak.Hi Expert,
You are almost near to my Requirement.
Actually my Client Scenario is,
there are few Customers who will give PDC(Post Dated Cheque) to the Invoice. and that cheque either will be asked to HOLD or Bounce from Bank during maturity.(this is usual with few customers)
and again he will give new cheque1 and again that new cheque might also be bounced and another new cheque2 will be issued.
So, here i want to see a quick list , where i can see Related Payment and its status for that Particular Invoice.This will give the related old cheques and its corresponding new Cheque.
Examples:
By Giving Invoice NO: 222666(Our Invoice no)
Its Should List out,
Customer Code - Customer Name - Payment1(with its due date, status, chq no, chq amount)- if its has payment2(and its due date, status, chq no, chq amount)- its should continue with the N number of payments to that Invoice.
Thanks in Advance, -:)
Regards,
Dwarak. -
Posting incoming payments by invoice/line item or BOL number
Hi all. We have some customers who no longer pay us by full invoice number. They are paying by individual piece number received. The A/R line item layout for posting payments includes mahy choices, but I cannot find the invoice ITEM number, only the invoice number. Further, if the customer pays by BOL number, I do not know how to get the corresponding BOL number to show on the A/R line item layout for posting payments. This has become a critical situation and taking much time for our A/R clerk to match up and clear invoices. Any help would be greatly appreciated.
Thanks
Janet KuckHi
Posting in AR happens for the individual Document and not by individual line item and hence you were not able to locate line item wise details for clearing purpose. If you can have the BOL number copied to the text field and include the text field in the clearing screen, this will resolve to some extent.
Regards,
Lakshmanan Krishnan -
Invoice details in Incoming Payment
Dear All,
we are making incoming payment against invoice. In Pld for incoming payments i want details of invoice (Invoice Number and Invoice Amount) against which receipt entry is made.
Ex:
Account Code...........Account Name......................................................Amount
A0001.....................ABC
..............................Invoice Number 12..................................................1000
.....................................................13..................................................1500
and so on ...
I have tried in PLD but not able to get the OINV table in PLD. Is there any other option to get this details.
Swapnil
Edited by: SWAPNIL PATIL on Mar 20, 2009 9:50 AMDear Friend,
Which query u sended that working fine for Incomeing Payments. But ih this ur matching
T1.DocEntry = T2.DocEntry. Means suppose in Income Payment entry there is no Invoice entry then it is not showing. But i want to show that entry also. Please refer the following formatt.
SELECT T0.DocNum, T0.DocDate, T0.CardCode,T2.DocNum, T1.SumApplied FROM [dbo].[ORCT] T0 INNER JOIN RCT2 T1 ON T0.DocNum = T1.DocNum INNER JOIN OINV T2 ON T1.DocEntry = T2.DocEntry
Formatt:
Account Code...........Account Name......................................................Amount
A0001.....................ABC
..............................Invoice Number 12..................................................1000
.....................................................13..................................................1500
and so on ...
.................................................................................Total...................2500
In that suppose Invoice not available in that then Total is not showing. But i want to show Total for Incomeing Payment. Can u plz tell me how to solve that proble.
Swapnil -
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 -
Dear All,
Business scenario:
We have 6 branches .And branch users will enter the incoming payments received from their location customers.But the issue is in incoming payments they shouldn't be able to choose the vendor / they shouldn't be able to view the invoices due to vendors / they shouldn't be able to view the amounts of each invoice.
How we can made it possible in B1 ???
Regards,
Suresh kannanHi,
I agree with suda that you cannot prevent anybodey to click vendor button unless you create new menu for payment process using sdk.
Btw Suda, in some region (local settings) if we select vendor button in incoming payment the invoices will be display. So, in what version (local settings) that if we click vendor in incoming payment menu the invoice will not be shown?
Regards -
Error on creating Incoming Payment that links to another Incoming Payment
Hi Experts,
I am trying to create an Incoming Payment to pay an Invoice, as well as to use another Incoming Payment with an open balance (with Payment On Account box checked) to offset part of this payment.
Conceptually...
Incoming Payment A (-$75)
--- link to Invoice B ($85)
--- link to Incoming Payment C (-$10)
This can be done manually, but by using DI API, I am facing this error:
"-10: Base document card and target document card do not match. (RCT2.DocLine)(line: 2)"
Here is the source code:
Dim oPayments As Payments = DirectCast(oCompany.GetBusinessObject(BoObjectTypes.oIncomingPayments), Payments)
' [HEADER]
oPayments.CardCode = "C0001"
oPayments.DocDate = Today
oPayments.DocType = BoRcptTypes.rCustomer
oPayments.CashSum = 0
oPayments.BankChargeAmount = 0
oPayments.TransferAccount = "12180208"
oPayments.TransferDate = Today
oPayments.TransferSum = 75
oPayments.LocalCurrency = BoYesNoEnum.tYES
' [LINE 1 - AR Invoice B.]
oPayments.Invoices.InvoiceType = BoRcptInvTypes.it_Invoice
oPayments.Invoices.DocEntry = 16949
oPayments.Invoices.SumApplied = 85
' [LINE 2 - Incoming Payment C with Open Balance.]
oPayments.Invoices.Add()
oPayments.Invoices.InvoiceType = BoRcptInvTypes.it_Receipt
oPayments.Invoices.DocEntry = 20338 ' Journal Entry Number of the Incoming Payment
oPayments.Invoices.SumApplied = -10
If oPayments.Add() <> 0 Then
oCompany.GetLastError(errCode, errMessage)
BarError(String.Format("{0}: {1}", errCode, errMessage))
Else
BarSuccess("Success.")
End If
Initially I tried to set
oPayments.Invoices.DocEntry
with the Incoming Payment's DocEntry, but after trial and error, I realized I should be using the Incoming Payment's Journal Entry's Number instead. So this field should be correct. (If I were to use the Incoming Payment's DocEntry for this field, I get the "-2028: No matching records found (ODBC -2028)" error.)
I have ensured that the Incoming Payment C's CardCode is the same as the one I set in
oPayments.CardCode
, so I'm not sure why it gives an error saying the document cards do not match. I would appreciate any form of help on this! Thanks!Hi,
I am not trying to Pay to Account (you are referring to the top left radio button of the Incoming Payment right?). I am trying to create an Incoming Payment that uses another over-paid Incoming Payment (i.e. Open Balance > 0) to offset its Amount Due.
Anyway I have found the solution to my problem. It seems that I need to also set the
oPayments.Invoices.DocLine
value to the over-paid Incoming Payment's Journal Entry's document line which contains the same business partner as my Incoming Payments. This DocLine value is usually 1 (0-based), as SAP usually creates the Journal Entry with the BP row in the second row. -
Incoming payments thorugh different tender types
Hi All
I have a business scenario here need your expertise
We are using IS retail ECC 06 version.
Our customer has retail stores accross the country..for accessory sale and other articles they are going through point of sale(POS) and for furniture sale they use normal sap r/3 transaction code for incoming payment that is F-28.
My query is if a customer makes payments with different tender types how that can be captured.
For example: Article worth 10000/- 5000/- he wants to pay by cash and 5000/- he was to settle through Credit Card but they want it to settle the same with one document number.
As far my understanding we have to do the transaction twice one for credit card and one for cash payment .and it will generate two document numbers
Please advise..Hi,
I thing no need addon once u add incoming payment automatically invoice will close and JE also will pass.
Regards,
Siva -
Incoming Payment Dist.Rule
I'm using SAP B1.9.0 PL 4 for SAP HANA,
when I create Incoming payment and input the Dist.Rule everything fine BUT those dist.Rule do not relate to Journal Entry so I have to open journal entry menu on every incoming payment then input the dist.rule,
I think this is strange why the dist.rule not automaticaly relate to journal entry ? Is it normal or Bugs ?
ThanksHi Ivan,
This is the defualt system fuction. Cost center and distribution rule is only for P&L Accounts not relate with balance sheet accounts. If you choose expense or revenue account (Indian localization) it will
automatically fill in the journal entry. Other wise you have to open JE and need to be fill for other than P&L accounts.
Regards
Sridharan -
Sample for A/R invoice and Incoming Payment
Hi,
Have any samples for create A/R invoice and incoming payment by SDK?
Which related tables are used?
Thanks!
Regards,
OnOn,
If you look at the SDK Help Documentation, specifically at the Documents, Document_Lines and Payments Objects for the DI API, the help discusses the tables involved as well as gives samples of common documents.
Eddy -
Create A/R Invoice and Its Incoming Payment using DI Server
Hi Everyone,
I need to create an A/R Invoice and its payment in a sigle transaction using DI Server. The problem is that I don't know the DocEntry that will be assigned to the invoice in order to set it in the SOP message for creating the incoming payment.
I guess the SOAP message should look like:
<?xml version="1.0" encoding="UTF-16"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header>
<SessionID>F46EDCE6-3F79-1F9F-1D1E-DC6226D04FA7</SessionID>
</env:Header>
<env:Body>
<dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS" CommandID="Add invoice">
<BOM>
<BO>
<AdmInfo>
<Object>oInvoices</Object>
</AdmInfo>
<Documents>
<row>
<DocDate>20040707</DocDate>
<DocDueDate>20040707</DocDueDate>
<CardCode>BP</CardCode>
</row>
</Documents>
<Document_Lines>
<row>
<ItemCode>Item1</ItemCode>
<Quantity>3</Quantity>
<TaxCode>My Tax</TaxCode>
</row>
</Document_Lines>
</BO>
</BOM>
</dis:AddObject>
<dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS" CommandID="Add Incoming Payment">
<BOM>
<BO>
<AdmInfo>
<Object>oIncomingPayments</Object>
</AdmInfo>
<Payments>
<row>
<CardCode>BP</CardCode>
<DocTypte>rCustomer</DocTypte>
</row>
<Payments>
<Payments_Invoices>
<row>
<DocEntry>???</DocEntry> <---- ???
<InvoiceType>it_Invoice</InvoiceType>
<SumApplied>100</SumApplied>
</row>
</Payments_Invoices>
</BO>
</BOM>
</dis:AddObject>
</env:Body>
</env:Envelope>
Any help?Dear Hugo Moreno,
You could use the GetNewObjectCode Method of the Company Object to retrieves the key of the last added record.
Please refer to SDK DI API help for this method.
Best Regards
Jane Jing
SAP Business One Forums team
Maybe you are looking for
-
Macbook to Tv problem! Please Help!
Ok so i've been back and forth to best buy a few times today and nothings working so I need some help. I have a later 2008 MacBook Pro and I'm trying to hook it up to my Samsung TV which is like 48in. First I tried VGA but apparently that doesn't wor
-
prompted to update iTunes today and now it does not work. tried reinstalling and caanot successfully reinstall.
-
Hard Disk verifies OK but wont boot. Can't re-install or erase.
I have a problem with my Powerbook (Tibook) G4 667. It won't boot. After the initial grey screen, it gets as far as a completely blue screen and eventually resorts to the Darwin console (?). I'm running OS X 10.4.? (sorry - can't remember when I last
-
My internet isn't working although my wi-fi says it's connected and on full signal?
I've tried restoring it to factory settings, rebooting the wi-fi, turning the router off and on again, using different IP addresses, turning the actual iPod off and on again, updated iTunes and the software to iOS 4.3.1 and still nothing. Any suggest
-
Using Universe Desing Tool COM SDK with Powershell
Hello, I would like to use Universe Design Tool COM SDK in Powershell (instead of Excel and VBA). I was trying to import Designer.dll in Powershell but getting error: PS C:\Windows\system32> [Reflection.Assembly]::LoadFrom("C:\Program Files (x86)\SAP