Triger value from outgoing payment to journal entry

Hi all,
I add an UDF in outgoing payment form ( system form)for example i call it area. In the same time i also add an udf with the same name ( area) in journal entry form ( system form). When I entry data in outgoing payment, i also entry the area field in out going payment. for example i fill "Boston" in area field in Outgoing payment. How can i show it in journal entry also? As we know in journal entry , we don't need entry  the data anymore. What i fill in outgoing payment , also will post in journal entry. I just want my area value also can post in journal entry.
thanks for the help

Hi Janos,
thanks for your posting in my thread. Actually i have make my own codes for this issue. i don't know if my codes is similar with your post.
If pVal.ItemUID = "1" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED And oForm.Mode = SAPbouiCOM.BoFormMode.fm_OK_MODE Then
                    ' If pVal.Action_Success Then
                    Debug.Print("OJDT")
                    Try
                        Dim JEDoc As SAPbobsCOM.Documents
                        'Dim headerCode As Long
                        oCompany.StartTransaction()
                        'headerCode = LastEntry("OIGE")
                        JEDoc = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)
                        Dim docnum As SAPbouiCOM.EditText
                        Dim docnum1 As Integer
                        docnum = oForm.Items.Item(3).Specific
                        docnum1 = docnum.Value
                        Debug.Print(docnum1)
                        JEDoc.GetByKey(517)
                        Dim area As SAPbouiCOM.EditText
                        area = oForm.Items.Item("tArea").Specific
                        JEDoc.UserFields.Fields.Item("U_ST_Area").Value = area.Value
                        JEDoc.Update()
                        oCompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_Commit)
                    Catch ex As Exception
                        If oCompany.InTransaction Then oCompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_RollBack)
                        SBO_Application.SetStatusBarMessage(ex.Message, SAPbouiCOM.BoMessageTime.bmt_Short, True)
                    End Try
                    'End If
                End If
so , i get business object for the journal entry in outgoingpayment. the problem is i still confuse with the getbykey method.
I must fill the getbykey with a value which the value is also link to Journal Entry. I fill the value with docentry in outgoing payment. but it's still problem.
thanks in advance
best regards
bodhi86
( i'm sorry with my bad english)

Similar Messages

  • Outgoing Payment with journal Entry

    Hi guys I need your help
    I need to be able to do an outgoing payment based on a journal entry. This is my code but I get this error:
    "Base document card & target document card do not match"
    The journal is based on an incoming payment that was over paid and has a remaining balance.
    Thanks
                oOutPay.DocTypte = SAPbobsCOM.BoRcptTypes.rCustomer;
                oOutPay.CardCode = "CC0001";
               //oOutPay.Invoices.Add();
                oOutPay.Invoices.DocEntry = 106;
                oOutPay.Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_JournalEntry;
                oOutPay.TransferAccount = globals.bankTrAccOP;
                oOutPay.TransferSum = 80;
                int lRetCode;
                lRetCode = oOutPay.Add();

    Hi Costas,
    In order to based the payment on Journal Entry,
    You have to set the docline of the Payment to Journal Entry Line which has the same cardcode as your payment card code like this
    oPay.Invoices.DocLine = oJE.Lines.Line_ID
    What I do is I iterate through the Journal Entry to look for the line like this :
    If .Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_JournalEntry _
                                        Or .Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_PaymentAdvice Then
        Dim oJE As SAPbobsCOM.JournalEntries
        oJE = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)
        oJE.GetByKey(.Invoices.DocEntry)
        For iLines As Integer = 0 To oJE.Lines.Count - 1
        oJE.Lines.SetCurrentLine(iLines)
        If oJE.Lines.ShortName = .CardCode Then
        'If the line card equal payment card code, then assign the docline id
              oPay.Invoices.DocLine = oJE.Lines.Line_ID
              System.Runtime.InteropServices.Marshal.ReleaseComObject(oJE)
              oJE = Nothing
              Exit For
         End If
        Next
    End If

  • How to add a petty cash payment in journal entry

    HI, I was just wondering if anybody could help me with regards to making a petty cash payment, for example if i went to the shop for and spent £15.00 on stationary etc, how would i post this payment in the journal entry screen?
    many thanks.

    Hello RWCS...welcome to the forums...
    OK, first things first - the definition of petty cash.  Petty cash is a function inside any company which allows employees to purchase products out of their own pocket and allows the Petty Cash Person to pay/reimburse for some item or services under a certain amount (say $25).  Petty Cash is generally a sum of money maintained in the company in a box or drawer - that is what the accounts says - petty cash.   The WHOLE purpose of petty cash is to avoid cutting a check for each and every minor purchase or payment - so there would be no payment created at all until it is time to replenish Petty Cash with more money.
    So in essence, if you are using Petty Cash, there is no journal entry or SAP B1 payment for individual transactions until it is time to replenish.  The Petty Cash Clerk (person having the box or drawer) would collect receipts as the money is being paid out. 
    At a certain point in time (usually at month-end or when the cash is low in the Petty Cash drawer), a journal entry is made Crediting Petty Cash and Debiting the various Expense Accounts by using the receipts collected.
    Then an AP "Service Type" Invoice and an outgoing payment is made to the Petty Cash Person where the clerk goes to the bank and gets more money for the drawer.  While creating the AP Invoice, the Petty Cash GL Account is selected on the line.  That will create an automatic journal entry of credit to Operating Cash and debit to the Petty Cash.
    If you are not doing this procedure, you do not have Petty Cash.  So hopefully that describes what you are doing...
    Regards - Zal

  • Copying Comments from Outgoing Payments form to its checks for payment

    Hi!, is there a way to pass the comments from the Outgoing Payments to the comments of the check for payment of the same outgoing payment?
    We want to see in the checks for payments comments field, the same comment from the outgoing payment which the check was originated.
    Thank you!

    If you are talking about bringing the Outgoing Payment comments to the Check Journal Remarks field, you could do it using a formatted search.  Save the following SQL and link the query to the Journal Remarks field
    SELECT T0.Comments FROM [dbo].[OVPM] T0 WHERE T0.DocNum = $[OCHO.TransRef]

  • How to update UDF from marketing documents to Journal Entry UDF

    Hi Experts,
    I have a UDF in the marketing documents and I want to save the value to Journal Entry UDF.
    Regards,
    Jummie

    Hello Jummie,
    If I understand correctly, the scenario is that copy the value of UDF from marketing document to the UDF its target JE from when the marketing document is created.
    if so, just listen to FormDataAdd Event for the marketing document, copy the value of udf when document is created.
    Here is the sample code.
    Private Sub FormDataEventHandler( _
        ByRef BusinessObjectInfo As SAPbouiCOM.BusinessObjectInfo, _
        ByRef BubbleEvent As Boolean) Handles oApp.FormDataEvent
            'You may add the target documents, 133 - A/R invoice.
            'Before action = true, start the transation
            If BusinessObjectInfo.FormTypeEx = "133" _
                    And BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD _
                    And BusinessObjectInfo.BeforeAction = True Then
                oCompany.StartTransaction()
                'BubbleEvent = False
            End If
            'Before Action = false,
            'Update product item tree
            'Succeed, commit, otherwise rollback
            If BusinessObjectInfo.FormTypeEx = "133" _
            And (BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD) Then
                If BusinessObjectInfo.BeforeAction = False And BusinessObjectInfo.ActionSuccess Then
                    Dim objectKey As String = String.Empty
                    oCompany.GetNewObjectCode(objectKey)
                    MsgBox(BusinessObjectInfo.Type)
                    Dim oInvoice As SAPbobsCOM.Documents = Nothing
                    oInvoice = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
                    If oInvoice.GetByKey(CInt(objectKey)) Then
                        'Retrieve the UDF value in documents
                        Dim udfValueInDoc As String = oInvoice.UserFields.Fields.Item("***").Value
                        Dim oJE As SAPbobsCOM.JournalEntries = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)
                        'Retrieve the JE for the document
                        oJE.GetByKey(CInt(oInvoice.JournalMemo))
                        Dim succeeded = True
                        'add you code to copy the UDF from document into JE
                        If succeeded Then
                            'update the production tree succesfully,
                            oCompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_Commit)
                        Else
                            oCompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_RollBack)
                        End If
                    End If
                End If
            End If
        End Sub
    Regards, Yatsea

  • How to get Data from SAP B1 through Journal Entries objects (Excel VBA)

    Hi Genius
    i had try to login SAB B1 thorugh MS Excel VBA code and it worked well. but i need some questions regards getting the data from after login. that means i want the Posting date, Transaction No, account code, debit and credit amount from Journal entries posted in a particular day through MS excel VBA into excel sheets 1 cell A1:E1
    how i get it if any possible ways to do that
    here my code to login
    Public Sub login()
        Sheets("Login").Select  'access the login tab
        Worksheets("Login").Range("B1").Activate 'put focus on cell B1 (manager)
        B1UserID = Trim(ActiveCell.Value2) 'set Businsss One user
        ActiveCell.Offset(1, 0).Activate
        B1Password = Trim(ActiveCell.Value2) 'set Business One password
        ActiveCell.Offset(1, 0).Activate
        sqluser = Trim(ActiveCell.Value2) 'set SQL user
        ActiveCell.Offset(1, 0).Activate
        sqlpass = Trim(ActiveCell.Value2) 'set SQL password
        ActiveCell.Offset(1, 0).Activate
        Db = Trim(ActiveCell.Value2)      'set Database name
        ActiveCell.Offset(1, 0).Activate
        Server = Trim(ActiveCell.Value2)  'set Server name
        Set company1 = New SAPbobsCOM.Company  'initialate DI company object
        company1.DbServerType = dst_MSSQL2005
        company1.Server = Server
        company1.DbUserName = sqluser
        company1.DbPassword = sqlpass
        company1.CompanyDB = Db
        company1.UserName = B1UserID
        company1.Password = B1Password
        'connect to the database
         lRetCode = company1.Connect
            If lRetCode <> 0 Then
                sErrMsg = company1.GetLastErrorDescription
                MsgBox (sErrMsg)
            Else
                MsgBox ("Connected to: " & company1.CompanyName)
            End If
    End Sub
    pls help me
    advance thanks to solvers

    Gordons way is the easiest - just query the OJDT table for journal entry headers and JDT1 for journal entry lines if needed.
    But if you want to work with the business objects:
    'Journal entry
       Dim oJE As SAPbobsCOM.JournalEntries
       Set oJE = company1.GetBusinessObject(oJournalEntries)
       oJE.GetByKey(1234)
       Dim postingDate as String
       postingDate = oJE.DueDate
    'etc etc

  • Cannot View Doc from Outgoing Payment under Approval Procedure messages

    Hi Experts,
    Both Originator and the approver cannot view the some of the pending and rejected documents when they are trying to edit the docuemtns from the approval procedures messages and approval decision reports.
    In effect, the approval cannot approvbed the documents as he cannot check the document for approval. The documents can be viewed from the payment draft dopcument. It will be tedious for the approval to go back and forth to draft document and approval decesion report.
    I already check the authorization for outgoing payment they both have full authorization. I can view the document as a super user. I need to know what other authorization do I need to check
    Both originator and  approver has full acess on outgoing payment since some of the documents can be viewed som3 documents cannot bew viewed.
    Please help. We are in the data catch up mode for October 2009.
    We are using 2007B PL10
    Regards,
    Amy
    Edited by: Sandra Callanta on Oct 20, 2009 11:06 AM

    Hi
    Login with userid who will approved the document
    Go in Admin > Approval Procedure > Approval Decision Report >
    Select first check box " No Decision Yet"
    select the pending one and approved it > update > ok
    Thanks
    Kevin

  • Outgoing Payment Previous & Next Entry

    Dear All ,
    if  i  searching the Transaction in Outgoing Payment Screen frequently  using next and previous button , SAP getting struck and closed automatically.
    How to solve this problem
    Thanks & Regards
    Madhu

    Hi,
    Please check Note No. : [1523040|https://b1-support.wdf.sap.corp/sap/support/notes/1523040] and confirm whether the scenario mentioned in the Note is similar to the issue you are mentioning.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Not copying UDFs values from Payment voucher to JE UDF value

    Hi
    I created  UDF in outgoing payment and Journal Entry name Department , when i saved outgoing document the department udf value did not copy in JE. Is there any way to copy outgoing document udf values in JE udf.
    Thanks

    Hi,
    You need an FMS query to copy the value.  UDF value will not be automatically copied for JE.
    Thanks,
    Gordon

  • Bank statement Nr in journal entry and Payments

    In Notenumber 1374872 (SP 01/PL7) a change has been implemented that the number of the payment run is copied to the remarks of the payment and the journal entry. I think it will be good idea to do the same for the number of the bankstatement in bank stament processing. Hereby the text for the note 1374872. The reason why and the solution are the same.
    Regards,
    ProSigma BV
    Cees Hameete
    Symptom
    To find the number of the payment wizard run in payments and journal entries, bookkeepers currently have to open the journal entry, navigate to the payment document, and then search manually in the executed payment wizard runs to find the correct number.
    Other terms
    Incoming payment; outgoing payment; payment wizard; journal entry
    Reason and Prerequisites
    Functionality description
    Solution
    To improve usability and provide integrated journal remarks information, SAP Business One was changed as follows:
    When an incoming or outgoing payment is generated using the payment wizard, the application adds the payment wizard run number to the "Journal Remarks" field of the payment document and to the "Remarks" field in the journal entry on both header and row level.
    The values in the "Journal Remarks" and "Remarks" field have the following structure:
    Incoming Payments - [Customer Code] - [Payment Wizard Run Number]
    Outgoing Payments - [Vendor Code] - [Payment Wizard Run Number]
    SAP intends to provide a patch or patches in order to solve the problem described.
    The section Reference to Related Notes below will list the specific patches once they become available.
    The corresponding Info file of the patches in SAP Service Marketplace will also show the SAP Note number.
    Be aware that these references can only be set at patch release date.
    SAP will deliver patches only for selected releases at its own discretion, based on the business impact and the complexity of the implementation.

    I completely agree with your proposal.  We have the same problem at the moment.  I hope SAP will implement a solution for this.

  • (-1200) DBMCconnBase::EndTransaction - Outgoing Payments

    Hi Experts,
    We are getting this error when trying to add an outgoing payment.
    (-1200) DBMCconnBase::EndTransaction SQLEndTran sqlState: , nativeErr: 68609788, errText:     
    C:\Program Files (x86)\SAP\SAP Business One\SAP Business One.exe     PID=3548     TID=2720
    SP00 PL47
    Please assist. Any help will be greatly appreciated. Thank you.
    Regards

    Hi Jitin,
    1) Steps taken when adding the payment document. - We are just doing the normal way of creating document, no other special steps taken.
    2) Is it happening with one document or all? - It is only happening in Banking module payment document.
    3) Any additional code in SP_transactionNotifiaction? - Yes, we have additional code in SP. We have UDF from documents that creates Journal Entry, this UDF shows the Journal Entry of the transaction in that document.
    4) Any add-ons running in the database ? - No add-ons were loaded in this database.
    This just happen recently.

  • Business partner balance does not match journal entries message

    Dear All,
    The error message "Business partner balance does not match journal entries" appears in customer receivable report print preview. This is happened While generating the Customer Receivables Aging report by sales documents. What is the main cause ? How to resolve it ? Thanks a lot
    Rgds,
    Edu

    Hello,
    I've got solution from SAP notes. From the notes, the problem is probably caused by :
    1. Inconsistent Reconciliation
    2. Unbalanced Reconciliation
    3. Document is closed but the Document Journal Entry is Unreconciled
    4. Business Partner Balance is Incorrect
    5. Reconciling Part of Split Payment's Journal Entries
    There aresome queries need to run in order to solve the problem. If you are not a partner, let me know your e-mail so that I could send.
    Rgd,

  • Query for Journal Entry as Incoming/Outgoing Payment

    Hi all,
    I need a query that returns all journal entries that are incoming/outgoing payments.
    I have not found anything in the journal entries tables that marks it as a payment.
    thanks,
    Lucas.

    Hi Lucas,
    I am afraid 2 queries could be more meaningful. That might be more convenient:
    Incoming:
    SELECT T0.TransId as [Journal Entry#],
    T0.RefDate as [Posting Date],
    T0.BaseRef as [Incoming Payment #],
    Isnull(T1.AcctName,T0.ShortName) as [GL Account Name/Vendor Code],
    T0.Credit
    from JDT1 T0
    Left JOIN OACT T1 ON T1.AcctCode= T0.ShortName
    where T0.TransType=24 AND
    T0.Credit > 0
    Order By T0.RefDate
    Outgoing:
    SELECT T0.TransId as [Journal Entry#],
    T0.RefDate as [Posting Date],
    T0.BaseRef as [Outgoing Payment #],
    Isnull(T1.AcctName,T0.ShortName) as [GL Account Name/Vendor Code],
    T0.debit
    from JDT1 T0
    Left JOIN OACT T1 ON T1.AcctCode= T0.ShortName
    where T0.TransType=46 AND
    T0.debit > 0
    Order By T0.RefDate
    Thanks,
    Gordon

  • Error: Journal for Outgoing Payment in 2005A SP01 PL10

    Hello all,
    Our customer creates Outgoing Payment for A/P Invoice in FC, and the document is successfully created (added).
    They check the Account Balance from Business Partner Master Data, and the JE for the payment is created. When they click on the yellow arrow on the left of Origin No., the system replies "No matching record found. Outgoing Payment (OVPM) (ODBC 2028) [Message 131-183]".
    Well, they then try to view the last journal created in Journal Entry, but there is no journal with the same number listed in Journal Entry. Afterward, they try to create a new Journal Entry, a new Goods Issue, a new Outgoing Payment, or any new transaction with journals; but all failed with the message: "This entry already exists in the following tables " (JDT1) (ODBC -2035) [Message 131-183]. Well, anyone can help?
    Thanks,
    Alvin

    Dear Alvin,
    Please log a message with SAP Business One support immediately providing the details and screenshot.
    This seems to be missing header issue.
    regards
    Preety Goel
    SAP Business One Forums Team

  • Create a payment based on a journal entry document

    Hello!
    In SBO 2007A PL44 I could add an incoming payment based on journal entry, but my code doesn't work in PL46.
    It's a bug?
    The Code:
            Dim oPay As SAPbobsCOM.Payments = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments)
            oPay.DocType = SAPbobsCOM.BoRcptTypes.rCustomer
            oPay.DocDate = Today
            oPay.TaxDate = Today
            oPay.DueDate = Today
            oPay.VatDate = Today
            oPay.CardCode = "310000010"
            oPay.Invoices.DocEntry = 1882
            oPay.Invoices.InvoiceType = SAPbobsCOM.BoRcptInvTypes.it_JournalEntry
            oPay.Invoices.SumApplied = 12000
            oPay.CashAccount = "38117000"
            oPay.CashSum = 12000
            oPay.DocCurrency = "Ft"
            If oPay.Add <> 0 Then
                Dim errCode As Integer = 0
                Dim errmsg As String = ""
                oCompany.GetLastError(errCode, errmsg)
            End If
    I got the following error:
    errCode: -10
    errMsg: Cannot pay partial down payment 
    Regards Csaba
    Edited by: Csaba Fülöpcsei on Apr 8, 2009 4:49 PM

    Dear Jane Jing!
    Yes I have a issue in B1 app for this payment:
    In Incoming payments windows select the customer doctype and select the customer (310000010), and the list of the invoices check the line (1882, journal entry) and type 10000 in the Total Payment column. And after 'Payment Mean' icon, I can add the payment.
    The problem is still on all payments of jourlnal entries from DI API.
    If I assign any value to oPay.Invoices.SumApplied field, I couldn't add the payment.
    Regards Csaba

Maybe you are looking for

  • Partner profile generation

    Hi,   while generating the partner profile it is askimg for partner no but i don't have any partner system is there any option to configure the same system as seneder and receiver , if it is possible tell me the procedure how can we do that. Thanks i

  • Websites not loading correctly and flash videos not playing

    When I visit sites like '''ign.com''' and '''joystiq.com''', they do not display correctly and Flash videos never load. I have already uninstalled and reinstalled twice to version 9.0.1 with no change. The second time I used Revo Uninstaller Pro to h

  • Spoof dialog Boxes security issue

    Hi all Any one out there aware of this security issue with Safari "Secunia Research has discovered a vulnerability in various browser's, which can be exploited by malicious web sites to spoof dialog boxes. The problem is that JavaScript dialog boxes

  • Call drop

    I am using nokia Lumia 1320 with idea network. I am facing problem with call dropping and no signal. The same SIM using with any other mobile the signal was very good and no call dropping. The problem was facing with this nokia Lumia 1320 only. Pl gu

  • Console login trouble with Crystal Reports Server XI

    I installed Crystal Reports Server XI on a new box (replacing old), then applied SP1, and then SP2 bringing it up to the same level as the old box - Version Name: BOXIWIN_SP2 Build Number: 11.0.101.8004. However, when I restarted the server and logge