Partially Paying AR Invoices using DTW

I am trying to add a cash payment for $500 against a $1000 invoice using DTW by filling in the below fields. However, it is closing the invoice even though it hasn't been fully paid.
Are there additional fields that I need to fill in to specify that I want to keep the invoice open?
Thanks,
Mike
Payments Object:
Recordkey = 1
CardCode = "5AGRIL1"
CashAccount = "_SYS000000000951"
CashSum = 500.00
DocDate = 20050701
Payments_Invoices Object:
Recordkey = 1
DocEntry = 5
SumApplied = 500.00

Hi Mike,
Here's a cleaned up snippet that makes the payment partial if the payment sum is less than the open total for the invoice. It's written in VB6 (sorry for that).
Henry
Public Function CreateIncomingPaymentForInvoice(inv As Documents, invoiceDocEntry As Long, inBankAccount As String, sumApplied As Double, paymentDate As Date, strGLAccount As String) As String
    Dim pay As SAPbobsCOM.Payments
    Dim lRetCode, lErrCode As Long
    Dim sErrMsg As String   
On Error GoTo PayFailed   
    Set pay = vCmp.GetBusinessObject(oIncomingPayments)
    'The following line enables partial payment
    pay.Invoices.sumApplied = sumApplied
    pay.cardCode = inv.cardCode
    pay.cardname = inv.cardname
    pay.BankAccount = inBankAccount
    pay.docDate = paymentDate
    pay.TaxDate = paymentDate
    pay.TransferDate = paymentDate
    pay.docCurrency = "EUR"
    pay.ApplyVAT = tYES
    pay.TransferAccount = strGLAccount
    pay.TransferSum = sumApplied
    pay.Invoices.docEntry = invoiceDocEntry
    pay.Invoices.DocLine = 1
    pay.Invoices.InvoiceType = it_Invoice
    lRetCode = pay.Add     
    If lRetCode = 0 Then
        CreateIncomingPaymentForInvoice = "" ' no error
        Exit Function
    End If
PayFailed:
    vCmp.GetLastError lErrCode, sErrMsg
    CreateIncomingPaymentForInvoice = "" & lErrCode & ", " & sErrMsg
End Function

Similar Messages

  • Unable to add AP Invoice using DTW

    Unable to add AP Invoice using dtw. Customer is trying to upload negative values,Both in the line and header.
    We get the following error :Invalid Total [OPDN.doctotal]

    Hi,
    Depending on the SBO version, you cannot do negative AP invoices; as Gordon mentioned, you want to import those as AP credit memos. I believe it's in 8.8 that you can have negative AP/AR transactions.
    Heather

  • How to upload "Pay to" address using DTW

    hi all,
    I have a doubt. Pls help me. Can any one tell me how to upload the pay to address using the DTW, because if we use the BP addresses template the ship to address is getting uploaded by default. how to upload the pay to address using DTW
    regards,
    Yeshwanth

    hi  Gordon Du         
    thanks for your idea.
    please tell me what is the exact text to be filled in the address type field for the ship to and bill to addresses.
    regards,
    Yeshwanth

  • Importing Legacy A/R and A/P Invoices using DTW

    Hi All,
    I have in interesteing situation which I need some help for.
    We started using SAP B1 begining of 2008. We used DTW to import the open A/P and A/R invoices from last year (legacy data). We didn't want the legacy data to have any impact on P&L, only to be able to receive and make payments for these invoices in B1. Therefore we used a service inovice without posting to the revenue and COS accounts. Since it is not possible to post directly to a control account I created a new G/L account for Accounts Payable and Accounts Receivable (I called them AP Migrated and AR Migrated), which is not a control account.
    When preparing the DTW files, In the lines file I specfied the AccountCode as this AR and AP Migrated G/L accounts.
    Since the BP to whom these invoices relate to, have the A/P and A/R control account defined in the BP master data, each of these migrated invoices posted to the AP Migrated account with the Offset Account being the original A/P Control Account.
    Now that I am recording payments, the AP and AR accounts are being updated but not the AP and AR Migrated accounts. To illustrate: Let's suppose I migrated an AP invoice for $100. It posted to the AP Migrated account and the Offset Account being the AP Control Account. Now the balance on the AP Migrated Account shows $100, and the balance on the AP Control Account shows -$100. Now after I record the payment for this invoice the AP Control Account balance is $0, but the AP Migrated account still shows $100.
    How can this be rectified, and  is this the correct way of doing this?
    Many thanks,
    Myran

    >
    Suda Sampath wrote:
    > For anything to balance the debits and the credits must be equal.  If your AR Migrated account total matches the AP Migrated account, then you can balance them through Internal reconciliation or JE.
    >
    > The best way to balance this opening balance account is only when you import all the balances not just AR & AP.  If the AR and AP account do not balance, then the Internal Recon balacing account would be one of the P&L Accounts which would show in your P&L statement.
    >
    > Suda
    Hi Suda,
    Once again, many thanks for your good and speedy replies.
    I am only importing the AR & AP transactions which I need to process payments in the new fiscal year. I am not importing all the other PL stuff.
    Am I better off using then a seperate GL account for the AP and a seperate one for AR?
    BR,
    Myran

  • Invoice using dtw

    I used DTW to invoice 100,000 serial numbers it worked perfectly. But the AR-Invoice status shows open and printed how can i close that invoice.
    Sri

    ignore my question i already fround the result.

  • Uploading A/R Service Invoices using DTW.

    HI ALL,
          I need to upload A/R service invoices for our customer using DTW. I tried using the templates Documents and Document Lines in Invoices for the same, but I am getting an error "Location Is Missing". Where do I put the location..?? I tried using the warehouse code column but the error persists.... am i using the correct templates..?? How do i Upload these Service Invoices...??
    Thanks and Regards,
    Pritesh.

    Hi Pritesh......
    Sometimes in SAP Default templates Location code fields does not come. You have to create another template from DTW.
    Just login to DTW  and go to templates. Click on Maintain Interface and select the Sales and Choose AR invoice. There Click on Document_Lines first again go to Tools and click on create template and save it somewher.
    In this template you get the location code field then put the location code here. And then try to upload.......
    Regards,
    Rahul

  • Turning Open items which are partially payed into Close items.. How?

    Hello,
    In our company we use partial payment to Vendors using transaction F-59 and also automatic paymant of full amounts. Everything is working correctly but since we use very offen partial way of paymant, on transaction FBL1N I have a lot of open items and most of the time I don't know exactly how much do I own to vendor(s).
    To explain it easier I will show one simple example:
    1. I own to one of my vendors amount Eur 10.000
    2. Using transaction F-59 (partial payment) I pay him Eur 3.000
    3. When I open transaction FBL1N for that vendor and if I choose to show only Open items
    total amount shows me that I own him Eur 10.000 instead of due amount 7.000
    I understand that total amount of Eur 10.000 instead of Eur 7.000 is shown because we use partial instead of residual way of paymant but I would like to know is there any way I could manually turn these Eur 3.000 into close item because they are already payed?
    Searching through Internet I found that transaction F-44 could be used for similar but I am not sure it can do exactly what I need: to turn all partial payed open items to close items so for each vendor then I could see exact amount I own them.
    I hope someone can help me with this because I must solve it ASAP and it's slowing me down at my workplace and it would be great if I could manually close some open items, because they are already payed.
    Greetings,
    Adi
    Moderator: Please, try searching before posting a new thread. Clearing issues are well described on these forums
    Edited by: samnovice on Jul 30, 2011 3:50 PM

    Hi:
         Knocking off invoices against partial payments in F-44 is a standard procedure that is used to clear open item outstanding in Vendor ledger FBL1N. You should ideally clear partial payment in Residual Tab of F-44 and for remaining amount e.g 7 in your case you should double click in residual item column next to amount. By doing so system will also copy the original invoice reference to the partial document AB (with 7 amount) as per setting defined in OBA0 for residual item clearing.
    Line item 10 and its payment line item 3 are standing open in ledger because you did not apply them in F-44. You could have also directly apply them in F-59 of F-53. Partial document will be generated with document type as per setting you have defined in OBXH. Hope this will clear your understanding.
    Regards

  • Importing Sales orders and Invoices thru DTW

    Hi every one,
    I am facing a unique problem when using DTW to import sales orders and invoices through DTW.
    I am using the two templates- Documents and Document Lines. But the imported Invoice or the sales order(In both cases) the dicount field in the row is taking a negetive discount value. Let me elaborate....
    1. I am taking a BP which has been alloted a Particular pricelistcode in the BP Master.( say it be Purchase price).
    2. Now In the Doc_lines Template I have put the value in the price column- (eg. Rs. 500).
    3. Now the itemcode used in the template is already having a masters and the prices are also defined in SAP B1. Say the Purchase price defined for the item is Rs.400
    4.When I am importing the order/nvoice then the discount field in the row automatically takes a value of -25%, the unit price has the value Rs.400 and the Total Field shows Rs.500.
    ( this Implies that the price I have suggested to Import i.e. Rs500 is some how not taken by the system. The system takes the price defined for the BP and then adjusts it with the price suggested by the user during import) So a negetive discount is taken.
    On the other hand if the same procedure is followed for an item where the prices are not updated in the master data then there is no such problem. the unit price field reflects the price which is given in yhe template.
    please suggest a way to get out of this problem.

    Hi Debraj,
    Try the following..
    In Admin > System init > Document Settings > General Tab ..Calculate the Row total using Unit price ....... leave this  unchecked
    Also, at the Document_lines template fill the discount column with 0
    Suda

  • F110: how to pay an invoice with Withholding Tax and a credit memo?

    Hi All,
    in my SAP I've defined a Withholding Tax type for Payment Posting.
    I've posted a vendor invoice with with Withholding Tax.
    Later I've posted a credit memo with Withholding Tax which must compensate the prevuois invoice.
    When I launch t.code F110, SAP, in the right manner,  proposes to pay the invoice less the amount of the credit memo. 
    But the calculation of the Withholding Tax (that it should post al the payment time) is wrong: SAP proposes to post the amount of the Withholding Tax recorded in the table WITH_ITEM at the moment of the posting of the invoice. Instead, from it, SAP should detract the amount of the Withholding Tax recorded in the table WITH_ITEM at the moment of the posting of the credit memo.
    Why does SAP doesn't consider the amount of the Withholding Tax of the credit memo?
    Could anyone help me?
    Thanks

    Dear Rossi,
    if You defined the WT TYPE at the payment time this means that the WT amount will be calculated at posted during the F110 run as per the invoice as per the credit memo.
    If they are the same amounts and refer to the same wt type and code, when You run F110, they should match even for the WT calculation. It is clear that if You inserted manually the WT base amount or the WT amount into the invoice, the system will not do any automatic calculation but it will use these amounts that can be different from the one auto matically calculated by the system for the credit memo.
    I hope this can help You.
    Mauri

  • Partial Payment (with invoice reference) for Invoice-based items

    Hi Gurus,
    I'd like to make partial payments to credit memos while "Include partial payment" is activated.  However, if i activate "Include partial payment, partial payments for invoice-based items are no longer possible (partial payment amount is displayed only, and full amount is automatically applied).
    My credit memos were posted via BAPI_ACC_DOCUMENT_POST.  I've read that when using BAPI, invoice reference field is automatically populated with "V".   
    Can you please enlighten me what is SAP's logic behind this.  How does SAP determine invoice-based items?  And is there a workaround so I could still make partial payment while it is activated?  Thank you.
    Regards,

    Hai Dianne,
    Check it once OBA4 & OBA4 t.codes both are Tolerance Group
    Regards
    Madhu I

  • Partial payment for invoice

    Hi
    what settings needs to be done to activate partial payment of invoice ?
    During MIRO, where we can maintain the invoice for partail payment?
    Thanks
    Manoj

    Hi
    Payment will depend on the Payment terms.During MIRO, you will verify the invoice.If due date is crossed the line item will become open fopr payment.
    While running the payment program, system will generate the payment based on payment method of vendor.
    The program processes open items in three steps (see the figure Processing Open Items):
    1.It determines the open items to be paid and creates a proposal list. You can process the proposal list on-line. Among other things, you can change payment methods or banks, block items, or cancel payment blocks.
    2.The payment program carries out payment using the proposal list. The payment run includes only the open items contained in the proposal list. The payment program posts documents and provides the data for the form printout and for creating the data carriers, the payment advice notes and the payment summaries.
    3.It uses the print program to print the forms and create the data carriers.
    For further information please have interaction with FI consultant.
    Regards
    Ramakrishna.

  • Wire Payment Format Problem when payed through invoice screen

    Hi,
    I created a new payment format for wires and when I use this payment format throgh payment batches screen and select invoices and do formatting it works fine.
    But, If I create a invoice and select
    Actions -> Pay in full then give this bank account and document of the payment format and then click actions and say Format it formats and the status in ap_inv_selection_criteria_all for tha will be in formatted.
    Now I cannot cancel or confirm this payment format.
    If I say Void the payment, the payment gets voided but the document will not be released.
    That is If I try to use the above document for paying new invoice it says the documnet is still in use. How to cancel or confirm the payment made for a invoice.
    Any Help will be appreciated

    HI I got this,
    Quick payments have no confirm or cancel options for payment format.
    So we should not update the program to formatted if it a quickcheck.

  • Import invoice through DTW

    Hi All
    I want to know that while i'm importing Invoices through DTW of Excisable Items do i have to import corresponding payments  also. if yes then what are corresponding templates for payments.
    Thanks

    Thanks for reply,
    The scenario is : When i import A/P invoice through(DTW) tempate it show me error that "Can not create Standalone A/P Invoice and A/R Invoice" because we are using exciable item in A/P invoice template.
    i just want to know the required template for incomming and outgoing excisable item .
    Thanks

  • Import Invoice via DTW - DocDate

    Dear Experts,
    I tried to import Invoice via DTW. I filled the 'DocDate' column in the oInvoice template with '20080102'. But when I checked the invoice from the A/R Invoice module the result was 20080504. Why DTW uses my system date instead of the date I put in 'docdate'? How to import this date correctly?
    Thank you in advance.

    I am running SAP 2005a PL39
    Header
    RecordKey...DocDate..DocDueDate..TaxDate..DocNum..DocType..CardCode..DocCurrency
    1..20080102..20080202..20080102     1..dDocument_Service..CPPON001..IDR
    Lines
    RecordKey..LineNum..AccountCode..VatGroup..Currency..PriceAfterVAT
    1..0..41010..O10..IDR..1244496
    Thank you

  • Can't log onto Admin console, Can't pay overdue invoice, website deactivated - No Support possible!!

    Hello there!
    As the title says, I basically can't do anything right now, and BC support hasn't really been able to help me when I asked about this previously here in the forums (when the website was still active, which it now no longer is). When trying to log onto the Admin console all I get is: "ERROR: This site is currently unavailable. For more information please contact: (My name)." And yes, I'm the administrator. I created the website using Adobe Muse and published it using that. There has been no other party involved, except for Godaddy.com where I bought the domain.
    Unlike I've been told it should be, I do not get and never got a form to fill in my payment details upon logging onto the admin console.
    I also get and did get that exact above error message when trying to submit a support ticket, so the only place I've been able to ask at is here.
    As I mentioned in my earlier post, I wasn't able to correct my credit card details when the card was no longer valid because I was on vacation, and somehow didn't manage to access that menu on mobile. A week later, I got another email, telling me that all admin services have been disabled until I pay the invoice. At this point I started getting the above error message. Now, another few weeks later the website itself has been deactivated - I still can't pay the invoice.
    As I'm not very used to doing the whole setup of a website, I definitely don't want to spend that time again, but simply just want to pay the overdue invoice!
    Help is very much appreciated!
    -Alex W.

    Hi Alex,
    Please submit a ticket via the following form and we will escalate it to the accounts team: http://www.businesscatalyst.com/contact
    However, I can see that the site you may be referring to is set to bill the partner directly. Therefore you will need to log into the admin console of this site as the partner user, and you will then be prompted with a payment form to pay the outstanding invoice. It appears that [email protected] is the partner user assigned to this portal, so please try logging in as that user.
    Thanks.

Maybe you are looking for