Payments - Payments_Invoices - DiscountPercent property

Hello experts,
I'm using DI API to transport invoices, payments, credit notes, etc. from my DB to SB1.
In the payments I need to do a discount to the invoice been paid, but I need to subtract the net amount not a percentage.
I only see this property on DI API: DiscountPercent but this is not working for a couple of decimals, so thats why I need to subtract the exact amount.
I know I cannot subtract the amount of the PaidSum property because SB1 will take the payment as a partial payment.
Thanks for the help.
Gab.

Hi Gabriel,
oPay.TotalDiscount
You do have the TotalDiscount property, but it's read-only...
Haven't found a property you can use. Sorry.
Regards,
Vítor Vieira

Similar Messages

  • 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

  • Outgoing cash payments on creditnotes

    Hi there.
    Does anyone know how to make outgoing payments linked to a creditnote in DI Server? (or at the very least in DI Api?)
    oIncomingPayments has the Payments_Invoices, that is great for registering payments on an invoice, but I haven't found a way to do the same for a creditnote.
    And I cannot use the oVendorPayments, because the customers in question are not vendors.
    I should think that pay out cash on a creditnote should be a simple thing to do,
    but I am at a loss here.
    I'm writing a cash counter application, so the users don't have access to the SAP UI.

    Thanx a lot, it always worked like a dream!
    However, it didn't work as it should.
    What I want to do, is create a creditnote, and pay the sum out to the customer in cash, eg when something he bought was defect.
    If I create a creditnote, say with a doctotal of 1000, the customers balance is then increased to 1000. I then add payment as you said. The creditnote is now closed, its Paid/Credited field is set to the total amount, and the Credit Balance is zero. Everything looks great. Until I have a look at the customer balance. It is now increased to 2000! Instead of being done with the customer after paying him, it looks like we owe him twice as much!
    I've tried reversing the amounts, but just get the "Amount must be positive" error message etc.
    And setting SumApplied to positive gives the 'Payment amount is greater than invoice amount'
    Here is the xml:
    <?xml version="1.0" encoding="UTF-16"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header>
    <SessionID>B57AA457-10AA-19B8-8F3B-ABE41D6325C5</SessionID>
    </env:Header>
    <env:Body>
    <dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS">
    <BOM>
    <BO>
    <AdmInfo>
    <Object>oIncomingPayments</Object>
    </AdmInfo>
    <Payments>
    <row>
    <CardCode>100000</CardCode>
    <CashSum>2331.0</CashSum>
    </row>
    </Payments>
    <Payments_Invoices>
    <row>
    <DocEntry>29</DocEntry>
    <SumApplied>-2331.0</SumApplied>
    <InvoiceType>it_CredItnote</InvoiceType>
    </row>
    </Payments_Invoices>
    </BO>
    </BOM>
    </dis:AddObject>
    </env:Body>
    </env:Envelope>
    I also tried adding <DocObjectCode>bopot_OutgoingPayments</DocObjectCode> to signal that this is an <b>outgoing</b> payment, but then I only got
    '46' is not a valid value for field 'ObjType'. The valid values are: '24' - 'Incoming Payment'
    [edit]
    Hm, I think maybe the trick is to use oVendorPayments instead of oIncomingPayments, but havent' found out how to signal that it is a customer, and not a vendor, so I only get 'Busines partner type does not match document.'
    [/edit]
    Message was edited by:
            Runar Holen

  • How to post the credit card payment Transaction in incoming payment screen?

    Dear All,
    I post the incoming payment for credit card transaction.The Following errors is  occur  
    Failed to Post Incoming Payments:Credit card code does not exist  [RCT3.CreditCard]   how to  solve this error..

    Hi,
    The Payments.CreditCards object contains a CreditCard property which must be defined before adding the payment. This property should contains the code of one of the credit cards defined in the system (OCRC table).
    You can handle this table under Administration --> Setup --> Banking --> Credit Cards.
    Beni.

  • Incoming payments DTW

    I am trying to import payments transferred to our bank account by business partners against our down payment requests.
    As described in several threads in this forum I should be using 3 tables to do it:
    Payments
    Payments_invoices
    Payments_accounts
    For me this configuration is however not working. I get: "Cannot pay to account when the payment is to a business partner".
    I managed to import the incoming payments with only 2 tables, without using Payments_accounts, having our bank account's G/L account number in the TransferAccount field of the Payments table.
    1) Is there any problem doing so, and has anyone really managed to use dtw with all of the 3 recomended tables to import incoming payments?
    2) My process is working until currency is not a foreign one. As soon as it is, I am not able to avoid the following error: "Cannot pay the document partially Application-defined or object-defined error65171"
    Thanks in advance for any idea/comment.
    Peter

    Suda,
    Thanks for your answer.
    No problem on that, of course the invoices and customers are referenced with the right codes.
    It is working perfectly with local currency, the problem I described (in point 2) is coming out only (and always) when foreign currency is used.
    Peter

  • Unable to Change Withholding Tax Base Amount while creating Service AP Invoice through DI API?

    Dear All,
    I am trying to create Service AP Invoice through DI API.
    If I post the document without changing SAPPurchaseInvoice.WithholdingTaxData.TaxableAmount the dount ocument is created in SAP without any problem.
    But if I change amount in above field then DI API throws error Unbalanced Transaction.
    If I post same document in SAP with changed base amount it got posted in SAP without any Issue.
    Where I am doing wrong?
    please guide.
    Using:
    SAP B1 version 9 Patch Level 11
    Location : India.
    Thanks.

    Hi ,
    maybe you can find solution to these note 1812344
    1846344  - Overview Note for SAP Business One 8.82 PL12
    Symptom
    This SAP Note contains collective information related to upgrades to SAP Business One 8.82 Patch Level 12 (B1 8.82 PL12) from previous SAP Business One releases.
    In order to receive information about delivered patches via email or RSS, please use the upper right subscription options on http://service.sap.com/~sapidp/011000358700001458732008E
    Solution
    Patch installation options:
    SAP Business One 8.82 PL12 can be installed directly on previous patches of SAP Business One 8.82
    You can upgrade your SAP Business One to 8.82PL12 from all patches of the following versions:8.81; 8.8; 2007 A SP01; 2007 A SP00; 2007 B SP00; 2005 A SP01; 2005 B
    Patch content:
    SAP Business One 8.82 PL12 includes all corrections from previous patches for releases 8.82, 8.81, 8.8, 2007, and 2005.
    For details about the contained corrections, please see the SAP Notes listed in the References section.
    Notes: SAP Business One 8.82 PL12 contains B1if version 1.17.5
    Patch download:
    Open http://service.sap.com/sbo-swcenter -> SAP Business One Products -> Updates -> SAP Business One 8.8 -> SAP BUSINESS ONE 8.82 -> Comprised Software Component Versions -> SAP BUSINESS ONE 8.82 -> Win32 -> Downloads tab
    Header Data
    Released On
    02.05.2013 02:34:18  
    Release Status
    Released for Customer  
    Component
    SBO-BC-UPG Upgrade  
    Priority
      Recommendations/additional info  
    Category
      Upgrade information  
    References
    This document refers to:
      SAP Business One Notes
    1482452
    IN_Wrong tax amount was created for some items in the invoice with Excisable BOM item involves
    1650289
    Printing Inventory Posting List for huge amount of data
    1678528
    Withholding amount in the first row is zeroed.
    1754529
    Error Message When Running Pick and Pack Manager
    1756263
    Open Items List shuts down on out of memory
    1757641
    Year-end closing
    1757690
    SEPA File Formats - New Pain Versions
    1757898
    Incoming Bank File Format
    1757904
    Outgoing Bank File Format
    1762860
    Incorrect weight calculation when Automatic Availability Check is on
    1770690
    Pro Forma Invoice
    1776948
    Calendar columns are wrong when working with Group View
    1780460
    OINM column description is not translated
    1780486
    UI_System crash when you set extreme value of double type to DataTable column
    1788256
    Incorrect User-Defined Field displayed in a Stock Transfer Request
    1788372
    ZH: 'Unacceptable Field' when export document to word
    1788818
    RU loc: No freight in the Tax Invoice layout
    1790404
    Cash Flow Inconsistency when Canceling Payment
    1791295
    B1info property of UI API AddonsInstaller object returns NULL value
    1791416
    Adding a new item to BoM is slow
    1794111
    Text is overlapping in specific localization
    1795595
    Change log for item group shows current system date in all the "Created" fields
    1797292
    Queries in alerts should support more query results
    1800055
    B1if_ Line break issue in inbound retrieval using JDBC
    1802580
    Add Journal Voucher to General Ledger report
    1803586
    Not realized payment is exported via Payment Engine using 'SAPBPDEOPBT_DTAUS' file format
    1803751
    Period indicator of document series can be changed although it has been used
    1804340
    LOC_BR_Cannot update Nota Fiscal Model
    1805554
    G/L Account displayed in a wrong position when unticking the checkbox "Account with Balance of Zero"
    1806576
    Payment Cannot Be Reconciled Internally
    1807611
    Cannot update UDF in Distribution Rule used in transactions
    1807654
    Serial No./Batch inconsistency by canceled Inventory Transfer
    1808694
    BR: Business Partner Code cannot be updated with CNPJ CPF error
    1809398
    CR_Cannot Display Related Multi-Value Parameters
    1809758
    Arrow key not work for Batch/Serial Number Transactions Report
    1810099
    Tax Amount is Recalculated Even if Tax Code Is Not Changed
    1811270
    Upgrade fails on Serial And Batches object with error code -10
    1811846
    Cannot run Exchange Rate Differences when multi branch is activated
    1812344
    Withholding Tax Amount Is Not Updated in Payment Once Witholding Tax Code Is Changed in Document through DI API
    1812740
    DI:"Operation Code" show wrong value when add "A/P Tax Invoice" based on "A/P Invoice"
    1813029
    US_Vendor address on 1099 Summary by Form/Box Report is not updated according to the latest Invoice
    1813835
    Wrong amounts of Goods Return in Open Item List
    1814207
    Preliminary page prints setting does not keep after upgrade
    1814860
    Value "Zero" cannot be imported to "Minimum Inventory Level" field via Excel file
    1815535
    RFQ: Web front end not displayed in supplier language
    1815810
    GT: Adding Incoming Payment for Some Cash Flow Relevant Accounts Fails
    1816191
    BR:System Crashes While Working with Tax Code Determination Window
    1816611
    CR_Crystal Report Displayed Incorrectly Afte

  • Invalid characters displayed in java-based tool

    I'm having problems with a java applet that works fine on the vast majority of PCs, with 1 exception. The one in question runs Windows 7 32 bit professional, IE8. Java versions 27,29, and 31 have been tried, with the same results.
    There are several fields, each of which has a title and a default value. On a working PC, the field names are:
    Mortgage amount:
    Term:
    Interest rate:
    Monthly payment (PI):
    Annual property taxes:
    Annual home insurance:
    Monthly payment (PITI):
    On a PC that its not working:
    Kn` mHmendl `shmm9
    Lnqsf` fd `l nt ms9
    Hmsdqdrsq` sd9
    Lnmaglx o` xl dms` OH(9
    @mt ` koqnodqsx s wdr 9
    @mt ` kgnl d hmtq` mbd9
    L nmaglx o`xl dms ' OHSH(9#371-1/
    There are more fields, but that's an example. it may not be exactly correct, since the spacing and character overlap makes it hard to differentiate some characters.
    All the browser troubleshooting has been done (reset, cleared temps, deleted active X objects etc.)
    Cleared all local cache, java cache and ran ccleaner
    Checked Windows region, language, currency etc settings
    Tried to reinstall java, tried 3 different versions (27, 29, 31)
    Tried the local Admin profile and problem persists across multiple profiles.
    If anyone has any ideas about which settings could possibly cause this character translation, I would be very appreciative. There appers to be a 1:1 correlation of characters, for example:
    # = $
    / = 0
    : = 9
    R = S
    Could it be some kind of java / unicode setting?

    If I could post a picture it might help explain...
    http://postimage.org/image/qtl15mdoz/
    Uploaded, hopefully you can view it.
    We've reset the browser, even tried IE9, with the same result. There's no toolbars installed and machine tested clean for adware. With no java installed, the webpage displays sans mortgage calculator. What seems strange is that some of the text displays properly, as you can see in the picture, so that's why I wonder if its just one particular font that's not being displayed properly? The entire rest of the web page, and everything else that uses java works fine, it seems like it's just this one particular calculator.
    It's at the point where the OS may just need to be reinstalled, though it seems like a small, petty thing to reinstall the OS for... but without a solution i don't really have any other options.

  • Cfloop and insert statement

    I have a form that lists property addresses. For each address
    you want to post a payment for, you select the checkbox next to the
    address (value=property_id), you fill out the form filed for Amount
    Paid (value=paid_num) and you can put something in the notes form
    field as well(value=notes_txt)
    I also have single form fields that relate to all properties:
    month (month_id), year (year_id), pay date (paid_dt).
    My action page uses a cfloop using property_id. I need to
    insert a payment record for each property address that was selected
    using the data in the formfields. After the payment record is
    inserted, then I need to update the property's balance to reflect
    the new payment. ex: a property's new balance would be current
    balance - payment amount
    The loop seems to be working properly, but... if I have more
    than one property selected, it's trying to insert all the payment
    amounts (paid_num) for a single address (so i get error saying the
    number of values in the form don't match up agains the insert
    statement.). I hope this is clear - see my attached code.
    If anyone can figure out what I'm doing wrong I would really
    appreciate it.

    Thanks web-spinner. I tried your first bit since i don't want
    to insert a payment record if no payment is made... but I got this
    error. I believe it's having a problem with this bit of code in the
    INSERT statement
    #evaluate(form.paid_num#ListElement#)#
    see error message below...

  • Error When Add Payment to SAP!

    Hi All !
    I have function to Add Invoice and payment as follows:
    Private Function Add_Invoice_Payment(ByVal TransCode As Double) As Boolean
    Dim strShop As String = "C570004"
    Dim oInv As SAPbobsCOM.Documents
    oInv = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
    oInv.CardCode = strShop
    oInv.DocDate = Now.Date
    oInv.DocDueDate = Now.Date
    oInv.Comments = "From POS System - With Transaction Code " & TransCode
    Dim disc As Double = 0
    Dim WarehouseCode As String = "HCI001"
    Dim VATGroup As String = "S10_CM"
    For i_row As Integer = 0 To jsgxDetails.RowCount - 1
    jsgxDetails.Row = i_row
    oInv.Lines.SetCurrentLine(i_row)
    oInv.Lines.ItemCode = jsgxDetails.GetValue("Item_Code")
    oInv.Lines.ItemDescription = jsgxDetails.GetValue("Item_Name")
    oInv.Lines.UnitPrice = jsgxDetails.GetValue("Item_Price")
    oInv.Lines.Quantity = jsgxDetails.GetValue("Item_Quantity")
    oInv.Lines.DiscountPercent = disc
    oInv.Lines.WarehouseCode = WarehouseCode
    oInv.Lines.VatGroup = VATGroup
    oInv.Lines.Add()
    Next
    lRetCode = oInv.Add()
    If lRetCode = 0 Then
    oCompany.GetLastError(lErrCode, sErrMsg)
    MessageBox.Show(sErrMsg)
    Return False
    else
    '''''''''''''''''Add Payment from Invoice have Added
    Dim oPayment As SAPbobsCOM.Payments
    oPayment = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments)
    oPayment.CardCode = strShop
    oPayment.DocDate = Now.Date
    oPayment.DocCurrency = "VND"
    oPayment.CashAccount = "111100"
    oPayment.CashSum = oInv.DocTotal
    oPayment.Series = 0
    oPayment.Remarks = "Remarks"
    oPayment.Invoices.DocEntry = oInv.DocEntry
    oPayment.Invoices.DocLine = 0
    oPayment.Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_Invoice
    oPayment.Invoices.SumApplied = oInv.DocTotal
    lRetCode = oPayment.Add
    If lRetCode 0 Then
    oCompany.GetLastError(lErrCode, sErrMsg)
    MessageBox.Show(sErrMsg)
    Return False
    End If
    end if
    end function
    Add Invoice is OK! but when Add Payment it appears Error: "No matching records found (ODBC -2028)" . Help me to fix it. Thanks

    Dear Tao lao,
    The error "No matching records found (ODBC -2028)" can mean any property's value are invalid.
    Do you get more detailed error like
    "No matching record found 'G/L Accounts' [ODBC 2028]" ?
    If you suspect the issue is due to the DocEntry is incorrect, then you can try
    1. use DocNum
    oPayment.Invoices.DocEntry = oInv.DocNum
    2. check the value of DocNum after the invoice added, then assign the value to oPayment.Invoices.DocEntry.
    Best Regards
    Jane Jing
    SAP Business One Forums team

  • Adding payment through DI API referring to Correction Invoice/Down Payment

    Dear All,
    In SBO 2004C (PL 72) I have to add incoming payment referring to correction invoices and down payment invoices.
    In Payments_Invoices Object there is and InvoiceType Property which should be set to the object type of the referred document. Having set this to it_Invoice, it_CredItnote and it_JournalEntry it works fine, but I cannot find a working value for  Correction invoices and Downpayments.
    In BoRcptInvTypes Enumeration there is a it_CorrectionInvoice member, but it does not work. DownPayment member does not exist at all.
    Instead of Enumerations members DI API acepts numeric object type values 13, 14, 30 which works just as the above it_Invoice etc. does, but Correction invoice's object type 165  just does not work
    Has anyone experience with this?
    Is is really not possible to add invoice type payments referring to these documents through DI?
    Any ideas are welcome.
    Thanks a lot.
    Regards.
    Bálint

    Hi
    It is possible in 2005 Clusters But i am not sure in 2004 C.
    In 2005 DI API accepts Enumerations members ,In Which Both it_CorrectionInvoice,DownPayment  Exists and i hope these works fine 2005.

  • Tables for vendor invoice and payment

    Hi Gurus.
    I want to know from which tables i can get the information for folllowing points.
    1.       Vendor Invoices  - Complete (Header and Item)
    2.       Vendor Payments Details – Detail about payment method (check, wire, etc)
    Please tell me tje table names.

    There is no specific table for header/item data for vendor invoice. Various information regarding vendor invoice (FB60) are stored in the following tables( note: Ignore the structures in the list ).
    |Table Name               |Table Description                                           |
    |/BEV3/CHKOMPAZVV         |Append Structure CH -> CO PA                                |
    |/CWM/ACCIT               |Append Structure for Enhancement of Structure ACCIT in CWM  |
    |/CWM/KOMP                |Catch Weight Management Enhancement                         |
    |/DSD/TAXJURCD            |Ship From Tax Jurisdiction Code: for Header Prc Comm Str    |
    |/SAPNEA/J_SC_LFA1        |Subcontractor Information                                   |
    |/SAPNEA/J_SC_LFB1        |Subcontracting Management                                   |
    |/SAPPSPRO/A_FI2_LONGNUM  |IBU-PS:  Append structure for structure NONBSEG             |
    |/SAPPSPRO/A_LONGNUMBER   |additional fields for SPIIN number                          |
    |/SAPPSPRO/EADD           |Purchasing Document Header: Additional Data                 |
    |/SAPPSPRO/EADD_DATA      |Purchasing Document Header: Data Part Additional Information|
    |/VSO/R_KNA1_A            |Append to KNA1 for Vehicle Space Optimization               |
    |/VSO/R_KNA1_I            |Additional Data for Vehicle Space Optimization for KNA1     |
    |AACCHD_FMFG              |US federal fields                                           |
    |AACCHD_PSO               |IS-PS: ACCHD Append Structure for Payment Requests          |
    |AACCIT_GM                |Append for Grants Management                                |
    |AACCIT_PSO               |IS-PS: ACCIT Append Structure for Payment Requests          |
    |AACCIT_SSP               |Append for Payment Statistical Sampling Process             |
    |AACCIT_USFG              |Append structure for US federal government                  |
    |AAUSZ_CLR_USFG           |Clearing information for US Fed (Tresury Confirmation)      |
    |ABKPF_PSO                |IS-PS: BKPF Append Structure for Payment Requests           |
    |ABKPF_UMB                |IS-PS: Append Structure for Transfer Transaction FMITPO     |
    |ABSID_PSO                |IS-PS: Data appendix of open items customers                |
    |ABSIK_PSO                |IS-PS: Data appendix of open items vendors                  |
    |ABSIS_PSO                |Local Authorities                                           |
    |ABUZ                     |Help Structure for Line Items to be Generated Automatically |
    |ACCCR                    |Accounting Interface: Currency Information                  |
    |ACCCR_FKEY               |Key: Acctg Currency Data for Line Item Including Currency   |
    |ACCCR_KEY                |Key: Accounting Currency Data for Line Item                 |
    |ACCFI                    |Interface to Accounting: Financial Acctg One-Time Accts     |
    |ACCHD                    |Interface to Accounting: Header Information                 |
    |ACCHD_KEY                |Key: FI/CO Document Header                                  |
    |ACCIT                    |Accounting Interface: Item Information                      |
    |ACCIT_EXTENSION          |ACC Document: Additional Item Information                   |
    |ACCIT_JV                 |Joint Venture Accounting                                    |
    |ACCIT_KEY                |Key: FI/CO Line Item                                        |
    |ACCIT_WT                 |Withholding tax information for FI Interface                |
    |ACCRDF                   |Fields for Posting Small Differences: Preparation           |
    |ACC_DOCUMENT             |Accounting document                                         |
    |ACC_KONTEXT              |Context Info for FI Single Screen Transactions FB50 and FB60|
    |ACERRLOG                 |Return Parameter                                            |
    |ACGL_HEAD                |Fields for Document Header Entry Screen                     |
    |ACGL_ITEM                |Structure for Table Control: G/L Account Entry              |
    |ACSCR                    |Communication Structure for Field Modification SAPLFDCB     |
    |ACSPLT                   |Carrier for Split Information re: Current Account Line Items|
    |ACSPLT_WTNEW             |Proportion of New Withholding Tax                           |
    |ACSPLT_WTOLD             |Proportion of Old Withholding Tax                           |
    |ADDR1_SEL                |Address selection parameter                                 |
    |AEBPP_KNBK               |Additional Fields Bank Data Biller Direct                   |
    |AEBPP_LFBK               |Additional Fields Bank Data Biller Direct                   |
    |AFMIOI                   |Append for new fields ECC50/ERP                             |
    |AFMIOI_USFG              | SD order needs quantity                                    |
    |AFMISPS                  |Additional Fields for Table FMISPS                          |
    |AFM_ACCIT_EXTENSION      |Extension for FM Payment Update                             |
    |AFM_FAGL_GLT0_ACCIT_EXT  |Extension FM Account Assignments                            |
    |AFM_FI_BKPF_SUBST        |Append to Structure BKPF_SUBST                              |
    |AFM_FMFCTF               |Append for Fund Center substrings                           |
    |AFM_FMFINCODE            |Append for Fund substrings                                  |
    |AIFM01D                  |Append for IFM01D                                           |
    |AKNA1_FMFG               |US Federal Government Customer Master Data Additional Fields|
    |AKNA1_PSO                |Local Authority Additional Fields                           |
    |AKNB1_PSO                |IS-PS: Customer Master Record, Additional Data (Co.Code)    |
    |AKNBK_PSO                |Bank Details Dependent on Time and Account Holder           |
    |ALFA1_FMFG               |US Federal Government Vendor Master Data Additional Fields  |
    |ALFA1_PSO                |Local Authority Additional Fields (Address)                 |
    |ALFB1_FMFG               |PS fields for company code-specific master data field       |
    |ALFB1_PSO                |IS-PS: Data Appendix Vendor Master Record (Company Code)    |
    |ALFBK_PSO                |Bank Details Dependent on Time and Account Holder           |
    |ALVDYNP                  |ALV dialog screen fields                                    |
    |ALV_S_FCAT               |Field Catalog (for LVC and for KKBLO)                       |
    |ALV_S_FILT               |Filter Criteria (for LVC and for KKBLO)                     |
    |ALV_S_GRPL               |Group Levels (for LVC and for KKBLO)                        |
    |ALV_S_LAYO               |Layout (for LVC and for KKBLO)                              |
    |ALV_S_PCTL               |Structure for Checking Print in ALV                         |
    |ALV_S_PRNT               |Print settings (for LVC and KKBLO)                          |
    |ALV_S_QINF               |Structure for Quickinfos of Exceptions                      |
    |ALV_S_SGRP               |Field Groups (for LVC and for KKBLO)                        |
    |ALV_S_SORT               |Sort Criteria (for LVC and for KKBLO)                       |
    |ANBZ                     |Help structure for asset line item                          |
    |ANLZACCOUNT              |Additional Account Assignment Objects in Asset Accounting   |
    |ANLZACCOUNT_FKBER        |Account Assignment Objects: ANLZACCOUNT with Function Added |
    |ARC_PARAMS               |ImageLink structure                                         |
    |AT003_XBLNR2             |Append structure for US federal government                  |
    |AUSZ1                    |Clearing Table 1                                            |
    |AUSZ2                    |Clearing Table 2                                            |
    |AUSZ_CLR                 |Assign Clearing Item to Cleared Items                       |
    |AUSZ_CLR_ASGMT           |Assgt of Clrg Items - Cleared Items with Acct Assignment    |
    |AUSZ_INFO                |Open item data for clearing transactions                    |
    |AVBKPF_FMFG              |US federal                                                  |
    |AVBKPF_PSO               |IS-PS: Append Structure VBKPF for Payment Requests          |
    |AVBSEGDPSO               |IS-PS: Append Structure VBSEGD for Payment Requests         |
    |AVBSEGKPSO               |IS-PS: Append Structure VBSEGK for Payment Requests         |
    |AVIK                     |Payment Advice Header                                       |
    |AVIP                     |Payment Advice Line Item                                    |
    |BALHDR                   |Application log: log header                                 |
    |BALMT                    |Application Log: Structure for a formatted message          |
    |BAL_S_CLBK               |Application Log: Return routine definition                  |
    |BAL_S_CONT               |Application Log: Context                                    |
    |BAL_S_MSG                |Application Log: Message Data                               |
    |BAL_S_PAR                |Application Log: Parameter Name and Value                   |
    |BAL_S_PARM               |Application log: Parameters                                 |
    |BAPIASCONT               |Business Document Service: File Content ASCII               |
    |BAPIBDS01                |Business Document Service: Reference Structure for BAPIs    |
    |BAPICOMFIL               |BDS: Command File for Transport Entries                     |
    |BAPICOMPO2               |SBDS: Enhanced Component Information                        |
    |BAPICOMPO3               |SBDS: Enhanced Component Information                        |
    |BAPICOMPON               |Business Document Service: Component Table                  |
    |BAPICONNEC               |BDS: Structure for BDS Links                                |
    |BAPICONTEN               |Business Document Service: File Content                     |
    |BAPIDPROPT               |BDS: Structure for Properties                               |
    |BAPIFILES                |Business Document Services: Transfer Table for File Names   |
    |BAPIPROPER               |BDS: Structure for Properties                               |
    |BAPIPROPTL               |BDS: Structure for KPRO Properties                          |
    |BAPIQUERY                |BDS Structure for Query Table                               |
    |BAPIRELAT                |Business Document Service: Relations                        |
    |BAPIRET1                 |Return Parameter                                            |
    |BAPIRETURN               |Return Parameter                                            |
    |BAPISIGNAT               |Business Document Service: Signature Table                  |
    |BAPISRELAT               |Business Document Service: Relationship Table with Signature|
    |BAPIURI                  |Business Document Service: URI Table                        |
    |BDCMSGCOLL               |Collecting messages in the SAP System                       |
    |BDCRUN                   |Batch input: Runtime analysis                               |
    |BDIDOCSTAT               |ALE IDoc status (subset of all IDoc status fields)          |
    |BDI_SER                  |Serialization objects for one/several IDocs                 |
    |BDN_FKT                  |Business Document Navigator: Functions to be Excluded       |
    |BDWFAP_PAR               |Parameters for application function module - IDoc inbound   |
    |BDWFRETVAR               |Assignment of IDoc or document no. to method parameter      |
    |BDWF_PARAM               |Parameters for workflow methods for IDoc inbound processing |
    |BKDF                     |Document Header Supplement for Recurring Entry              |
    |BKDF_SUBST               |Process Interfaces: Substitutable fields during posting     |
    |BKORM                    |Accounting Correspondence Requests                          |
    |BKP1                     |Document Header Supplement for Update                       |
    |BKPF                     |Accounting Document Header                                  |
    |BKPFBU_ALV               |Document Overview: Display Document Headers in ALV Grid Ctrl|
    |BKPF_CARD                |Credit Card: Append for BKPF                                |
    |BKPF_LINE                |Item Category for XBKPF_TAB                                 |
    |BKPF_SUBST               |Process Interfaces: Substitutable Fields During Posting     |
    |BKPF_USFED               |Append structure for US federal government                  |
    |BLNTAB                   |Document Number Table for Financial Accounting              |
    |BNKA                     |Bank master record                                          |
    |BNKAAPP                  |Appendix to Table BNKA                                      |
    |BNKT                     |Conversion of temporary to internal bank keys               |
    |BOOLE                    |Boolean variable                                            |
    |BSEC                     |One-Time Account Data Document Segment                      |
    |BSEC_LINE                |Item Category for XBSEC_TAB                                 |
    |BSED                     |Bill of Exchange Fields Document Segment                    |
    |BSEE                     |Changeable Fields in the Line Item                          |
    |BSEG                     |Accounting Document Segment                                 |
    |BSEGL                    |Document Segment: Fields Derived for Line Layout Variant    |
    |BSEGS                    |G/L Item Transfer Structure for Single Screen Transactions  |
    |BSEGT                    |Transfer Table for the Tax Postings to be Generated         |
    |BSEGZ                    |Financial Acctg Doc.Segment: Extras and Temp. Storage Fields|
    |BSEG_ALV                 |Document Overview: Document Item Display in ALV Grid Control|
    |BSEG_LINE                |Item Category for XBSEG_TAB                                 |
    |BSEG_SUBST               |Process Interfaces: Substitutable Fields During Posting     |
    |BSET                     |Tax Data Document Segment                                   |
    |BSEU                     |Line Item Additional Information (Update)                   |
    |BSEZ                     |Line Item Additional Information (Online)                   |
    |BSEZ_LINE                |Line Item Category for XBSEZ_TAB                            |
    |BSID                     |Accounting: Secondary Index for Customers                   |
    |BSIK                     |Accounting: Secondary Index for Vendors                     |
    |BSIP                     |Index for Vendor Validation of Double Documents             |
    |BSIS                     |Accounting: Secondary Index for G/L Accounts                |
    |BSIX                     |Index table for customer bills of exchange used             |
    |BTXKDF                   |Fields for Exch.Rate Difference Posting for Taxes           |
    |BVOR                     |Intercompany posting procedures                             |
    |CACS_A_CRM_SALES_COND    |Additional CRM Fields (Construction) From Sales Order Area  |
    |CACS_A_CUST_COND         |Commissions: Customer Fields Condition Technique            |
    |CACS_A_FIELDSPRICING     |Append for Condition Technique Fields from Commission System|
    |CACS_S_CRM_SALES_COND    |Additional CRM Fields (Construction) From Sales Order Area  |
    |CACS_S_CUST_COND         |Condition Attributes                                        |
    |CACS_S_FIELDSPRICING     |Comm.: All Condition Technique-Relevant Commission Fields   |
    |CACS_S_FSINS             |Customer Fields for Condition Technique of Insurances       |
    |CCDATA                   |Payment cards: Database fields relevant to both SD and FI   |
    |CFW_LINK                 |CFW: Link Info of a Container                               |
    |CI_COBL                  |Extension                                                   |
    |CKI_ACCIT_ML             |Transfer from MM to ML in accit-structure                   |
    |CNTLSTRLIS               |Control stream list                                         |
    |COBK                     |CO Object: Document Header                                  |
    |COBK_ONLY                |Non-key fields only in COBK (INCLUDE structure)             |
    |COBL                     |Coding Block                                                |
    |COBLF                    |Coding block: Tax table structure                           |
    |COBL_COKZ                |Assignment types for CO account assignments                 |
    |COBL_DB_INCLUDE          |Include with Additional Account Assignments for DB Tables   |
    |COBL_EX                  |Coding Block for External Applications (Not CO/FI)          |
    |COBL_FI                  |Fields from COBL that Must not Be Overwritten in FI         |
    |COBL_FM                  |Additional Fields for FM                                    |
    |D010SINF                 |Generated Table for View D010SINF                           |
    |D020S                    |System table D020S (screen sources)                         |
    |D020T                    |Screen Short Description                                    |
    |DBSEG                    |Dialog Supplementation BSEG (Taxes)                         |
    |DD02L                    |SAP Tables                                                  |
    |DD03P                    |Structure                                                   |
    |DD03V                    |Table fields view                                           |
    |DD07V                    |Generated Table for View DD07V                              |
    |DD23L                    |Matchcode ID                                                |
    |DD32P                    |Interface structure for search help parameters              |
    |DDSHDEFLT                |Description of a default value for search help fields       |
    |DDSHDESCR                |Interface: elementary search helps of a search help         |
    |DDSHFPROP                |Characteristics of search help parameters                   |
    |DDSHIFACE                |Interface description of a F4 help method                   |
    |DDSHRETVAL               |Interface Structure Search Help <-> Help System             |
    |DDSHSELOPT               |Selection options for value selection with search help      |
    |DDSUX030L                |Nametab Header, Database Structure DDNTT                    |
    |DDSUX031L                |Nametab Structure, Database Structure DDNTF                 |
    |DDTYPES                  |Table of all Dictionary types and classes                   |
    |DFIES                    |DD Interface: Table Fields for DDIF_FIELDINFO_GET           |
    |DISVARIANT               |Layout (External Use)                                       |
    |DOKHL                    |Documentation: Headers                                      |
    |DPPROPS                  |General property structure for data provider                |
    |DTC_S_LAYO               |Structure for Design of Double Table Control                |
    |DTC_S_TC                 |Structure for table controls in the double table dialog box |
    |DTC_S_TS                 |Tab Title Structure                                         |
    |DYNPREAD                 |Fields of the current screen (with values)                  |
    |E071                     |Change & Transport System: Object Entries of Requests/Tasks |
    |E071K                    |Change & Transport System: Key Entries of Requests/Tasks    |
    |EAPS_20                  |Field Enhancements for EA-PS 2.0                            |
    |EDIDC                    |Control record (IDoc)                                       |
    |EDIDS                    |Status Record (IDoc)                                        |
    |EDIFCT                   |IDoc: Assignment of FM to log. message and IDoc type        |
    |EDIMESSAGE               |Transfer Structure with all Sy Fields for T100              |
    |EDI_DS                   |Status record for interface to EDI subsystem                |
    |EDI_HELP                 |Help Structure for Reference Fields in EDI Function Groups  |
    |EK05A                    |Communication Area Purchasing - Financial Accounting        |
    |ESKN                     |Account Assignment in Service Package                       |
    |EUDB                     |Development Environment Objects                             |
    |EUOBJ                    |Workbench: Development Objects                              |
    |EXCLTAB_LINE             |Lines of EXCLTAB with OK Code to be Deactivated             |
    |EXISTING_DOC             |Original Document                                           |
    |F05ACTRL                 |Control Fields for SAPMF05A and Subprograms                 |
    |FAGLBSEGL_S              |Additional Sender Flds from General Ledger for Doc. Overview|
    |FAGL_GLT0_ACCIT_EXT      |Line Information for Document Splitting                     |
    |FAGL_MIG_S_BUKRS_LEDGER  |Combination of Company Code and Assigned Ledgers            |
    |FAGL_SPLIT_FLD_S         |Characteristics Permitted for Split                         |
    |FAGL_S_APPLICATION       |Application and Subapplication                              |
    |FAGL_S_BALDIM            |G/L Characteristics of Document Split in New General Ledger |
    |FAGL_S_BUKRS             |Structure with Company Code                                 |
    |FAGL_S_BUKRS_EXT         |Structure: Company Codes --> Ledgers                        |
    |FAGL_S_CURTYPES          |Currency Types of a Ledger                                  |
    |FAGL_S_MIG_001           |Structure for Table FAGL_MIG_001 & FAGL_MIG_001_S           |
    |FAGL_S_MIG_MGPLN_EXT     |Structure: Extended Migration Plan Information              |
    |FAGL_S_T8G40_BS          |Split Fields with Characteristic "Balance Sheet"            |
    |FCRD_VBKPF               |Credit Card: Include for Appends for BKPF, VBKPF            |
    |FCRD_VBSEG               |Include for Appends for VBSE*                               |
    |FDM_AR_CASE_ATTR_1       |FSCM DM:                                                    |
    |FDM_AR_LINE_ITEM         |FSCM: DM                                                    |
    |FDM_AR_RFPOS             |FSCM-DM: Enhancemt of Line Item Disp. with Dispute Case Flds|
    |FELD                     |Screen Painter fields (internal)                            |
    |FICCO                    |Adjustment Values for External Document Items               |
    |FICCT                    |Totals Information for Interclient Posting                  |
    |FICTX                    |Tax Information for ICT                                     |
    |FIELDINFO                |Field attributes for a specific field                       |
    |FIN1_PARAM               |OBNG: Trans. structure for official doc. numbering (global) |
    |FIN1_PARAM_FI            |OBNG: FI parameters                                         |
    |FIN1_PARAM_MM            |OBNG: MM Parameters                                         |
    |FIPEX_STRUC              |Subfields Commitment Item                                   |
    |FIPOEXT                  |Help structure for line items to be generated automatically |
    |FIREVDOC                 |Transfer Structure for Dialog Module FI_DOCUMENT_REVERS     |
    |FISTL_STRUC              |Substructure Fund Center                                    |
    |FM01                     |Financial Management Areas                                  |
    |FMBLSTRING_COMPONENTS    |Component of the BL String                                  |
    |FMCI                     |Commitment items master data                                |
    |FMDY                     |FIFM: Screen Fields                                         |
    |FMFCTR                   |Funds Center Master Record                                  |
    |FMFG_ACCIT_EXTENSION     |Extention for all fields that have to be transfered into BL |
    |FMFINCODE                |FIFM: Financing code                                        |
    |FMFPO                    |FIFM: Commitment Item                                       |
    |FMHRBA_NEG_DOC_TYPES     |HR Integration: Doc. Types for Negative Funds Commitments   |
    |FMHRBA_SETTINGS          |Integration with HR: Settings                               |
    |FMHRBA_VAD_SETTINGS      |HR Integration: Generate Value Adjustment Docs for Changes  |
    |FMICCN                   |FM: Append Structure for FMIOI (CCN Fields)                 |
    |FMIDATA                  |Common Data for Funds Management Actual Data                |
    |FMIDATAFI                |Clean FI Data for Funds Management Actual Data              |
    |FMIDATAOI                |Clean Open Item Data for Funds Management Actual Data       |
    |FMIFIIT                  |FI Line Item Table in Funds Management                      |
    |FMIKEY                   |Common Key for Funds Management Actual Data                 |
    |FMIKEYFI                 |FI - Key for Funds Management Actual Data                   |
    |FMIKEYOI                 |Common Key for Funds Management Actual Data                 |
    |FMIOI                    |Commitment Documents Funds Management                       |
    |FMIOIKEY                 |Key for Table FMIOI                                         |
    |FMIOI_USFG               | SD order needs quantity                                    |
    |FMIREF                   |Ref. Funds Management Actual Data to Preceding Document     |
    |FMISPS                   |General Parameters for Funds Management                     |
    |FMIT                     |Totals Table for Funds Management                           |
    |FMMRESERV                |Include for the Reduction of Funds Reservations (FM)        |
    |FMRFC                    |Function Modules and their RFC Destinations                 |
    |FMSP_SPLIT_FIELDS        |PSM Fields used in multiple account splitting               |
    |FMT001                   |Additional Customizing for Funds Management                 |
    |FMUP00T                  |Update Profiles                                             |
    |FMUP01                   |Update Control with Value Type Dependency                   |
    |FMUP_INV_KEY             |Extension for FM Update: FI Key of Invoice                  |
    |FMUP_PAY_KEY             |Extension for FM Update: FI Key of Payment                  |
    |FS006                    |Fields for Optical Archiving                                |
    |FTCHECK                  |Foreign Trade: Import Simulation - Ctrl Fields for Pricing  |
    |FTEXTS                   |Communication Structure for Additional Components           |
    |FTGENERAL                |Foreign Trade: General Fields Item                          |
    |FUND_STRUC               |Substructure Fonds                                          |
    |FVD_TZB0A                |Append to TZBOA: Loans Fields                               |
    |GLACCOUNT_CCODE          |G/L Account Master Record: Company Code                     |
    |GLACCOUNT_CCODE_DATA     |G/L Account Master Record: Company Code - Data              |
    |GLACCOUNT_CCODE_INFO     |G/L Account Master Record: Company Code - Information       |
    |GLACCOUNT_CCODE_KEY      |G/L Account Master Record: Company Code - Key               |
    |GLX_ORG_INFO             |Organizational Assignment                                   |
    |GMBSEGZ                  |Grants Management Add-on                                    |
    |GXXLT_H                  |XXL interface: horizontal features                          |
    |GXXLT_O                  |XXL_interface: texts for online display                     |
    |GXXLT_S                  |XXL interface: structure of the semantics table             |
    |GXXLT_V                  |XXL interface: vertical features                            |
    |HELPVAL                  |Restrict Value Range - Transfer Table                       |
    |HELP_INFO                |Transfer Values for the Help Processor                      |
    |HELP_VALUE               |Structure or Function Module HELP_VALUE_GET_FOR_TABLE       |
    |HHM_COBL                 |Include for COBL from FM                                    |
    |IADDR_PSO                |Local Authority Additional Fields (Address)                 |
    |IBKPF_PSO                |IS-PS: Include Structure BKPF Payment Request Doc.Header    |
    |ICDIND                   |Structures for generating change document update programs   |
    |ICON                     |Icons table                                                 |
    |ICONS                    |Icons                                                       |
    |ICURR                    |Interface for Currency Translation                  

  • Cancel/reverse a partial payment document / check

    Issue is:
    There is 1 payment doc for 2 checks issued.
    Check 1: Encashed by the vendor
    Check 2: Issued but not encashed and we want to cancel the check 2 and reverse the payment doc partially and then move the AP cr to u201Cunclaimed property liability accountu201D.
    How could this be doneu2026 Following tcodes  give errors as below..
    1.     FBRA or FB08 gives..
    Document includes already cleared items - reversal not possible
    Message no. F5308
    2.     FCH8 for check 2 gives..
    Document BRN1 4200023157 is not purely a clearing document
    Message no. FS601
    Diagnosis
    Payment document 4200023157 in company code BRN1 also contains the clearing document number 4200024802 in addition to its own clearing document number in line item 001. As a result, the document cannot be reversed after resetting the cleared items.

    Hi,
      As only one doument got generated for two open transaction, now indivual reversal is not possible. Only you can do manual transafer posting.
    Abhi

  • Make the Payment Terms field only editable by a user

    In the customization, itu2019s possible to make Payment Terms of a Purchase Order as display only field (Delivery/InvoiceTab - Header of a PO). This configuration applies for every user who creates or updates the purchase order. It is possible to make that only one user can edit this field as optional entry?
    Iu2019ve checked on security and thereu2019s not an authorization object for this configuration. Is there any other way to do this?
    Thank you.
    Best Regards.

    Hello,
    You cannot change property of field selections at user level. One way you can accomplish this requirement is by using transaction variant (Transaction SHD0).
    Thanks,
    Venu

  • A/R Invoice - Create two outgoing payments

    Hi,
    We have issue here regading A/R Invoice Payment.
    The A/R Invoice is $100, the payment is $200 with Interact card (Direct account payment) with $100 cash return.
    The present does not work in B1; but will be developed in future release.
    The present can be solved according to Peter Dominik, B1 Solution Management as follow:
    Create two outgoing payments:
    - payment to vendor (payment for his bill)
    - payment on account reposting balance from Bank Account to some
    PettyCash account (cash
    withdrawal from bank account)
    Now I need to source code for the present solution; because all SDK is 1 A/R Invoice and 1 Payment. Now we have to do 2 outgoing payments. We need your help for this solution.
    Please find the code for one transaction below; we need 2 payment transactions.
    Thank you,
    Rune
    oPayments = (SAPbobsCOM.Payments)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments);
    oPayments.Invoices.DiscountPercent = 0;
    oPayments.Invoices.DocEntry = vmp_DocEntry_Int32;
    oPayments.Invoices.DocLine = 0;
    oPayments.Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_Invoice;//13;
    oPayments.Invoices.SumApplied = vmp_Amount_double;
    oPayments.Invoices.Add();
    oPayments.CardCode = vmp_CardCode_string;
    oPayments.DocDate = DateTime.Now;
    oPayments.JournalRemarks = "Incoming - Payment Bank Transfer";
    oPayments.TaxDate = DateTime.Now;
    oPayments.TransferAccount = vmp_BankAccount_string;// "_SYS00000000343";
    oPayments.TransferDate = DateTime.Now;
    oPayments.TransferReference = vmp_CardCode_string;
    oPayments.TransferSum = vmp_Amount_double;
    vc_Message_Result_Int32 = oPayments.Add();
    if (vc_Message_Result_Int32 != 0)

    hi Vitor,
    I need a code sample for Peter's suggestion using the code I provided:
    Create two outgoing payments:
    - payment to vendor (payment for his bill)
    - payment on account reposting balance from Bank Account to some
    PettyCash account (cash
    withdrawal from bank account)
    Thank you,
    Rune

  • Add Document (invoice),  linked with payment (DI API)

    Hi experts.
    I am using SAP 9, PL 11.
    DI API is returning the "Invoice receipt & must be paid exactly [OINV.GroupNum]" error when I am adding a document (invoice).
    This is because the "Open Incoming Payment" has the value assigned "Bill Of Exchange".
    My code is simple, I insert one document (invoice) and then add the payment of that document. The error occurs when I am inserting the document.
                    oInv.CardCode = "C40000";
    oInv.Lines.ItemCode = "A00005";
                    oInv.Lines.Usage = "9";
                    oInv.Lines.Quantity = 1;
                    oInv.Lines.Add();
    oInv.PaymentMethod = "Boleto-Itau";
    if (oInv.Add() != 0)
                        throw new Exception(oCmp.GetLastErrorDescription());

    Hi Brian,
    The problem is that the "Invoice + Payment" transaction is a specific kind of the "Invoice" one, which uses the OINV.IsICT value to differentiate both kinds ; and luckily for us, this value is not visible (so nor updatable) from the DI.
    Your only solution, is to book a regular invoice and a regular payment... And to take care of the PaymentGroupCode property, since this is it which will force or not the use of a transaction (Invoice) or the other (Invoice + payment).
    In case you continue in this direction, be aware that handling manually transaction to cancel the invoice if for any reason posting the payment fails, will do nothing (so you'll have to post manually a cancellation document).
    Regards,
    Eric

Maybe you are looking for