Reconciliation Via DIAPI

Hi,
My client needs me to create two documents via the SDK using DIAPI (SAPbobsCOM).  I am creating an A/P Invoice and an A/P Credit Memo.  He wants me to reconcile the two after they are created but I can't seem to see the object that will allow me to do this.  Is this possible and does anyone have any sample code?
Thanks,
David

Hello
If the Credit memo and Invoice is belongs to the same vendor, than you  can do it the CM with reference to A/P Invoice lines, This creates automatic reconsiliation in the system.
BTW, the manual reconsiliation is not implemented via dia  DI API.
Regards
János

Similar Messages

  • Run reconciliation via DI

    Hi!
    If it possible to run reconciliation via DI?
    To display the form in the application
       Banking
         Bank Statements - and Reconciliations
           Reconciliation
    /Thomas

    Dim oBkPg as SAPbobsCOM.BoObjectTypes.oBankPages
    oBkPg = oComp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oBankPages)
    'Add the varibles derived from the statement dwonloaded from the bank & Add it (line per line)
    oBkPg.AccountCode = AccCode
                            oBkPg.DueDate = vDueDate
                            oBkPg.Reference = vRef
                            oBkPg.Memo = vMemo
                            oBkPg.DebitAmount = vDebit
                            oBkPg.CreditAmount = vCredit
                            oBkPg.StatementNumber = vStateNo
                            oBkPg.PaymentReference = vRef2
                            iRetCode = oBkPg.Add

  • FMS triggered via DiAPI

    Hi,
    Is there any way in which a document created via the DiAPI can trigger formatted searches that are normally triggered via the gui?.
    The reason being is that we receive sales orders via webtools, which creates sales orders in B1 via the DiAPI. Normally we capture the total stock and total on sales order at this point to provide future stock out analysis. This is not being captured for web orders. I have also posted in the e-commerce forum, but my question is more based on the DiAPI than anything else.
    Thanks.
    Martin.

    Hi Martin
    DIAPI can not trigger FMS as generally speaking,FMS is linked to UIAPI.
    However,I think you can capture the total stock and total on sales order
    directly via DIAPI instead of using FMS as all the data are accessable
    to DI.
    Regards,
    Syn Qin
    SAP Business One Forums Team

  • Stock Transfer Discount via DIAPI

    Dear Expert,
    I want to add Stock Transfer via DIAPI. The Stock Transfer successful added but without discount. How can I add Stock Transfer via DIAPI with Discount value?
    Thanks for any help.

    This is my code, just simple only... but discount become blank. How to add stock transfer with discount? Others fields can add successfully, except the discount column.
    Dim lRetCode As Long
            Dim lErrCode As Long
            Dim sErrMsg As String
            Dim oTransfer As SAPbobsCOM.StockTransfer
            oTransfer = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oStockTransfer)
            oTransfer.FromWarehouse = "01"
            oTransfer.Lines.ItemCode = "AT010"
            oTransfer.Lines.WarehouseCode = "04"
            oTransfer.Lines.Quantity = 1
            oTransfer.Lines.Price = 10
            oTransfer.Lines.DiscountPercent = 9
            lRetCode = oTransfer.Add
            If lRetCode <> 0 Then
                oCompany.GetLastError(lErrCode, sErrMsg)
                SBO_Application.MessageBox(lErrCode & " - " & sErrMsg)
            Else
                SBO_Application.MessageBox("successful")
            End If

  • PeopleSoft Reconciliation via Compent Interface

    All,
    I would like to know if anyone has performed reconciliation using the PeopleSoft Component Interface Adapter in IdM 6.0 or IdM 6.0 SP1.
    Would like to get an idea of what the performance is when reconciling at high volumes (e.g. 100,000 - 600,000 records). Also, would like to konw if anyone has tried reconciling via the Database Table Adapter against a DB2 PeopleSoft person table with the same record load and if the performance was better, if so, by how much.
    Please let me know if I can provide more details.
    Thanks,

    hi
    check out whether this path can help you
    Time Management --> Integrating Time Management with Other SAP Applications --> Define External Application for Integration with Personnel Time Management

  • Deposit via DIAPI

    Dear Members,
      I have a requirement to create a deposit  using DIAPI. i  have to do deposit for cash as well as Cheque.
    i have tried with Bill of exchange Transaction object but i dont have provision for cash.
    Any body can help me in this regard.
    Thanks in advance
    Regards,
    G.Shankar Ganesh.

    Dear Godon,
        i have tried with BillOfExchangeTrans_Deposits objects since i could not add Deposit.
    Could you Provide Sample code for this. i want to deposit via cash.
    With Regards,
    G.Shankar Ganesh.

  • Set a default layout for all users via DIAPI

    Hello everyone,
    I am attempting to set a default report for all users/business partners using the DI-API. 
    I can accomplish this in the B1 application via Tools> Layout Designer...>Set as Default
    If there are entries in the RDFL table for this layout, I am prompted to delete these entries and set this layout as the default for all users/BP's
    Based on the SDK Documentation, the following code should accomplish the same thing via the DI-API
    (stripped down for clarity)
    Dim oDefaultReportParams As DefaultReportParams
    oDefaultReportParams = oLayoutService.GetDataInterface(ReportLayoutsServiceDataInterfaces.rlsdiDefaultReportParams)
    oDefaultReportParams.LayoutCode = sMyLayoutCode
    oDefaultReportParams.ReportCode = sMyReportCode
    Me.oLayoutService.SetDefaultReport(oDefaultReportParams)
    Code executes fine, but it doesn't have the expected impact on settings.  The above code adds an entry to the RDFL table rather than changing the DfltReport field in the RTYP table like I expected, so instead of setting the default report globally for all bps/users, its adding an entry to the RDFL table to set the value for a specific user/bp
    I experimented by including and setting the following properties to every combination I could think of with the same results
            oDefaultReportParams.UserID = 'tried 1, 0, -1
            oDefaultReportParams.CardCode = 'tried "", "0", "-1"
    Am I misunderstanding the API, or using the wrong objects/calls...? If all else fails I could accomplish this via the UI-API instead, but the application was intended to be a stand alone app that didn't rely on SAP B1 application running, so any help or suggestions would be much appreciated.
    Thanks!

    Hi,
    Please repost at SDK forum to get quick response. Close this thread here with helpful answer.
    Thanks.

  • OIM: Connector Reconciliation via RMI

    Is it possible to create a custom client that does a remote invocation of the reconciliation process for a connector? I have a scenario that may require me to selectively reconcile small groups of users on demand, so I'd like to call the reconciliation task remotely with a custom filter query.

    The recon APIs can be found in the tcReconciliationOperationsIntf. In your OIM doc folder there should be a javadoc of the APIs (I just checked the online versions of the doc and it seems like the javadoc has been removed for some strange reason).
    If you load the standard set of jars for the custom client you will get the recon APIs together with all of the other APIs. You can find more info about the custom client in the API Usage Guide.
    Hope this helps
    /M

  • Need an example to add an Invoice via DIAPI

    Hi,
    I'm trying to add an invoice, but the Totals aren't calculated right.
    probably due to the fact that I'm missing something or there's something I dont know
    My invoice is added but when I look at the totals, it doesn't make sence
    Document.DocTotal = 1000
    Document.Lines.Price = 1000
    what this does is that, I get :
    Total Before Discount = 1000
    Discount = 5.66 - $56.60
    Tax = $56.60
    Total = 1000
    Well, I just want it right so if I add 1000 without tax
    this should be 1056.60 and no discount should be there since I'm not adding discount when adding my invoice.
    I'm actually strugling with that since yesterday !
    Thank you for your help

    Hi Marc,
    The reason why you are getting this behaviour is because there is a tax code defined by default on the business partner you are using. If you specify in your code that the line amount is 1000 and the total is 1000 and the business partner is tax liable, SBO knows that 100 + tax is not 1000, so it takes the tax amount and make it the discount. If you want your total to be 1000 + tax, then don't specify a total. If you want your total to be 1000, then specify that the tax rate is zero rated.
    Hope it helps,
    Adele

  • Removing attachments from Purchase Order using DIAPI

    Dear all,
    I have added attachment to PO using DIAPI. I have given below the code.
               Dim oAtt As SAPbobsCOM.Attachments2 = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oAttachments2)
                Dim FileName As String = ""
                Dim SourceFile As String = ""
                Dim DestinationFile As String = ""
                For i As Integer = 0 To PurchaseOrderInfo.Attachments.Length - 1
                    FileName = PurchaseOrderInfo.Attachments(i).FileName
                    SourceFile = PurchaseOrderInfo.Attachments(i).SourcePath & "\" & FileName
                    DestinationFile = PurchaseOrderInfo.Attachments(i).TargetPath & "\" & FileName
                    If i > 0 Then oAtt.Lines.Add()
                    oAtt.Lines.SetCurrentLine(i)
                    oAtt.Lines.FileName = System.IO.Path.GetFileNameWithoutExtension(FileName)
                    oAtt.Lines.FileExtension = Replace(System.IO.Path.GetExtension(FileName), ".", "")
                    oAtt.Lines.SourcePath = PurchaseOrderInfo.Attachments(i).SourcePath
                    If System.IO.File.Exists(DestinationFile) Then
                        System.IO.File.Delete(DestinationFile)
                    End If
                    If PurchaseOrderInfo.Attachments(i).Override = True Then
                        oAtt.Lines.Override = SAPbobsCOM.BoYesNoEnum.tYES
                    Else
                        oAtt.Lines.Override = SAPbobsCOM.BoYesNoEnum.tNO
                    End If
                Next
                Dim iAttEntry As Integer = -1
                Dim lResult As Long
                Dim lErrCode As Long, sErrMsg As String = ""
                lResult = oAtt.Add()
             It works fine. But, I am not  able to remove an attachment via diapi.
             Could you please help me how to solve this.
    Thanks in advance.
    Manikandan

    I am pretty sure you are looking for SAP Business One SDK Topic Space. To ensure you are posting in the correct SCN Space, always check the description for the Space under the Overview tab.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada

  • Can I set the default version of DIAPI?

    I have got a problem,that is when I develop an addon via DIAPI 2005,the addon can work in SAP Business One 2005 normaly.but when I install a SAP Business One 2007 client in a other PC,though the PC installed DIAPI 2005,the addon can't work.
    The reseaon maybe is that the addon used DIAPI 2007. and now ,can I set the default version in my addon,so that the addon can work on DIAPI 2005?
    Thank you.

    Hi,
    I have not heard of any method to have a default version..
    Vasu Natari.

  • SDK-DI - Inventory status via DI-API

    It is possible to via the DI-API to add data to the Inventory Status (StockTaking) but it is not possible to execute the status.

    This is indeed, a problem area, I too need reconciliation via the DI-API. The only solution (work-around) I have at the moment is to put the reconciliation entries on to a payment with an on account amount of £0.01 then write another journal for £-0.01,
    This still leaves the two 0.01 transactions to be reconciled, but we are hoping that as these are the same value and can be created with the same references that automatic reconciliation can then be run against the BP and sort these out.
    This is quite messy but the only solution I can think of.. Anyone else have any ideas???
    Matthew Brown (B1 Systems)

  • Opening Bank Reconciliation

    In order to ensure that your client is able to perform their first bank reconciliation correctly, you need to perform the following steps:
    First we'll create an example:
    Opening Cashbook (General Ledger) balance           = $100 Dr (Favorable)
    Oustanding unpresented Cheques                           = $50
    Opening Bank Statement balance                           = $150
    Step 1:
    Firstly enter the Cashbook balance via Incoming Payments as:
    Dr         Bank Account        $100.00
    Cr         Cashbook Opening Balance Suspense account   $100.00
    Step 2:
    Secondly enter each oustanding cheque via Outgoing Payments against the bank Account
    Dr         Bank Account (Contra)    $100.00
    Cr         Bank Account (with Chq No)        $100.00
    Step 3:
    Open you Bank Reconciliation via Banking - Bank Statement + External Reconciliation - Manual Reconciliation.
    Enter:
    Opening Statement Balance  =  $  0.00
    Closing Statement Balance   = $150.00
    Statement Date = Date before Go Live
    Tick / Select Opening $100 + All Dr Balance Cheque Entries.
    Once Reconciled you will be left with the Oustanding Cheqs, which will clear once the User starts on their Post Go Live entries.

    Hi Kevin,
    Nice to have your message here about OB recon. Actually we have also related problem and let me discuss with financial application consultant about that, then I go back to post the result here.
    Rgds,

  • Manual Reconciliation problem

    Dear Experts,
    I am a bit lost here, one of our employee is doing manual reconciliation (via Banking >Bank Statements and External Reconciliation > Manual Reconciliation). as per the employee one time she saved the recon she was doing and when she returned and checked again the recon was not saved, this only happened on one GL account. anyone who had the same experience and what mostly the cause of this?
    your feedbacks and answers are greatly appreciated.

    Hi,
    1. Check your communication link for note, but it is not for your version. But you have to check reason that stated in symptom.
    2.  Refer thread for S-user ID--http://scn.sap.com/thread/3362801
    Thanks & Regards,
    Nagarajan

  • OIM11g Reconciliation Event Problem for UNIX SSH Default Connector

    Hi OIM gurus and masters,
    I having problem on reconciliation event using default connector for UNIX SSH. I'm using 9.0.4.15.0 connector version.
    The reconciliation job was run, but when i saw it in reconciliation event there are something wrong with it.
    The all Current Status was Data Received and the Job ID was -1.
    Does anyone can help me why this is happening?
    Thanks,
    Ivan P.

    In reconciliation via GTC only postprocess handlers get called, preprocess handlers don't. See thread 1129910.

Maybe you are looking for