How to create a journal entries by sdk

hi Experts
I know how to create invoice or order by sdk . but I do not know how to create Journal Entry by sdk. i mean what fields are required. Plz send me a basic template for Journal Entry.
Regards
Gorge

Dim oJounalEntry As SAPbobsCOM.JournalEntries
            ''Passing Jounal Entry
            System.Runtime.InteropServices.Marshal.ReleaseComObject(oRecset)
            oJounalEntry = Me.SBO_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)
            oJounalEntry.Series = 14
            oJounalEntry.DueDate = Now
            oJounalEntry.ReferenceDate = Now
            oJounalEntry.TaxDate = Now
            oJounalEntry.Lines.ShortName = bpcode
            oJounalEntry.Lines.Credit = amount
            oJounalEntry.Lines.Debit = 0
            oJounalEntry.Lines.DueDate = Now
            oJounalEntry.Lines.TaxDate = Now
            oJounalEntry.Lines.ReferenceDate1 = Now
            oJounalEntry.Lines.Add()
            oJounalEntry.Lines.AccountCode = AccountCode
            oJounalEntry.Lines.Credit = 0
            oJounalEntry.Lines.Debit = amount
            oJounalEntry.Lines.DueDate = Now
            oJounalEntry.Lines.TaxDate = Now
            oJounalEntry.Lines.ReferenceDate1 = Now
            oJounalEntry.Lines.Add()
            lRetCode = oJounalEntry.Add()

Similar Messages

  • "Trying to create a journal entry of the local BP with foreign amounts" error

    I have an addon that needs to set the Total (LC) field on the invoice form when a Delivery is copied to an Invoice. In this case, it's $169,978.62. The original Unit Price on the row is $7,000.00, with quantity of 5 MT (selling UoM). After populating the line total field through SDK UI, it calculated discount% to be -385.653. When I press Add, it gives me red bar error "Trying to create a journal entry of the local BP, with foreign amounts [message 3530-11]". This BP uses local currency and there is no foreign currency involved on this document. If I perform the same action through normal UI without SDK, I can add the invoice without a problem. I know it probably has to do with rounding, but how can I get past this error if I have to set the line total through SDK?

    Hi Ronnie,
    Glad you have found the issue
    Regardss,d
    Eric

  • Can any 1 tell me how to create budget journal and how to enter journal ?

    hi all+
    Can any one tell me how to create budget journal and how to enter journal against that budget ?+
    Regards+
    Yasir+

    http://download.oracle.com/docs/cd/A60725_05/html/comnls/us/gl/budjrnl.htm#index-Budget-journals-Entering--0
    Enter budget journals to maintain an audit trail for your budget balances. You can use budget rules to calculate budget journal amounts automatically.
    When you post budget journals, the journal amounts update existing budget balances. You can review and change your budget journals before posting them.
    Attention: When you use budget rules in Journal Mode, General Ledger calculates the appropriate debit or credit needed to achieve the balance you enter for the account type.
    Prerequisites
    1. Define a budget
    2.Open one or more years for your budget
    3.Define a budget organization
    4. Assign the "Entered" budget entry type to the accounts for which you want to enter budget journals
    To enter budget journals for a single account:
    1. Navigate to the Enter Budget Journals window.
    2. Specify the Budget Organization for the account to which you want to budget. If the budget organization is password-protected, you must enter the password before you can enter budget journals.
    3. Enter the Budget you want to update. You cannot use a budget that is frozen.
    4. Enter the range of Accounting Periods to which you want to budget.
    5. Enter the Currency of the budget amounts you are entering. The accounts must be assigned to the budget organization for this currency.
    6. Choose Journal Mode from the region poplist to enter budget amounts in a journal format.
    You can also use Single Row Mode or Worksheet Mode to enter budget journal amounts. However, you can only generate budget journals from these entry modes when you use the Enter Budget Journals window.
    Additional Information: When you use Journal Mode, Balance Type is a display-only field. It displays Budget when you are entering budget journals. In the Enter Journals window, this field displays Actual when you are entering actual journals.
    7. Enter or query the Account to which you want to budget. You can also switch to Worksheet Mode to easily query accounts, then return to Journal Mode to enter budget journals.
    8. Enter a Debit or Credit amount for each period. Do not enter journal amounts if you want to use budget rules to calculate and distribute budget amounts.
    9. Choose Create Journals to create a budget journal batch. If you are using budgetary control, you specify a funds action when you create the batch.

  • Goods Issue creates no Journal Entry

    Hello-
    I'm in something of a unique situation in that (not going into any details) I've been given an only partially complete add-on to Business One and must now finish it.  I've had no formal training in the SDK; everything I've learned has been through this forum, the help files and simply experimenting with the code.  Given this, there are probably many things of which I'm not aware.
    My question, then:
    Is there some sort of way to "turn off" the creation of Journal Entries, either in the SDK or in a company's settings, when a Goods Issue is made?  I ask because right now no Journal Entry is being created, even though one is made for all other documents (Goods Receipt, Inventory Transfer, etc.).  I'd like to turn it back on again, because not creating a Journal Entry doesn't seem like the right thing to do.
    Thank you.

    Hi Van,
    There is no setting that will turn off GL postings and a Goods Issue will create journal entries unless it is saved as a draft.
    Have you logged this will SAP Support?
    Kind Regards,
    Owen

  • How to create a service entry sheet based from the PO

    how to create a service entry sheet based from the PO
    Gurus,
    I am creating a service entry sheet from the PO but I am getting an error of u201CPlease maintain services or limits Message no. SE029- Diagnosis(You cannot enter data until the PO item has been maintained correctly) u201C
    The document type of the PO is standard NB, account assignment category is Q- (Proj make to order) and the item category is D(service). Then I am trying also create a PR using account assignment category is Q- (Proj make to order) and the item category is D(service) but still cannot proceed, a message asking me to enter a service entry number. What I know the process is create a PO(maybe based from PR) then post the GR then create a service entry sheet in ML81N but I cannot proceed. Just creating a PR or PO using those mentioned account assignment and item category and getting an error of need to enter a service entry sheet number.
    Please help.thanks!

    HI,
    Process for Creating Service Entry Sheet
    Transaction Code :    ML81N
    1)To open the respective Purchase Order, Click on the u2018Other Purchase Orderu2019, then enter the Purchase Order No.
    2)Click on the u2018Create Entry Sheetu2019 icon(3rd Icon on Top-Left)
    3)Give Short Text (e.g. R/A Bill No. 1) and top service entry sheet number also generated.
    4)Click u2018Service Selectionu2019 Icon on the Bottom of the Screen.
    5)For the 1st Time, when we are making Service Entry Sheet for a respective Purchase Order, we need to u201CAdopt Full Quantityu201D by clicking the Check box next to it, then Enter.  (*For the next time, no adoption is required, just continue)
    6)Select the respective Services by clicking on the Left Hand Side, then Click u2018Servicesu2019 (Adopt services) icon on the Top.
    7)Give the completed Quantity, then Click u2018Acceptu2019 icon(a green flag on the top)
    8)Save .
    9)Service Entry Sheet is SAVED and account posting made.
    Hope, it is useful for you,
    Regards,
    K.Rajendran

  • Error in creating GL journal entry

    Hi all,
    I'm looking for some help with an error code. I'm trying to Add a direct time entry that is currently saved in draft form only, and I encounter the following message:
    Error creating GL Journal entries: 10000415 - Linked value 1329 does not exist
    Presumably the 'linked value' refers to the first column of our time entry form, where we enter one of our old format reference numbers and sap brings back its own version of that reference number - so there must be a typo here somewhere? and if this is the case, is there a way sap will point out the relevant entry?
    Thanks

    HI.....
    Where you are saving this Journal Entry as Draft?
    Is it in Posting Voucher. If yes then is this entry still exists in Posting Voucher?
    Please check that first.....
    Regards,
    Rahul

  • How to create new KM  "Entry Point"

    Hi Could someone guide me how to create a new Entry Point
    (Note:Not the PCD navigation entry point)
    "An entry point provider makes one or more folders available as links that you can access from a central point"
    Thanks
    Rocky

    Rocky,
    Entry points allow you to navigate from an iView to various KM folders that may
    be located in different repositories.
    Try these urls
    http://help.sap.com/saphelp_nw04/helpdata/en/54/3d754067025537e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e2/2d354036052c22e10000000a1550b0/content.htm
    Points are welcome for helpful answers
    Regards
    Vineeth

  • How to do an incoming payment based on journal entry whit SDK ?

    Hello
    Somebody have the code for SDK of Business One,  how  to do an  incoming payment based on journal entry?
    Tks

    Hello Julio,
    Here some example code from the SDK helpfile.
    Private Sub cmdTest_Click()
       On Error GoTo ErrorHandler
       Dim vCompany As SAPbobsCOM.Company
       'create company object
       Set vCompany = New SAPbobsCOM.Company
       'set paras for connection
       vCompany.CompanyDB = "SBODemo_US"
       vCompany.Password = "manager"
       vCompany.UserName = "manager"
       vCompany.Server = "(local)"
       'connect to database server
       If (0 <> vCompany.Connect()) Then
          MsgBox "Failed to connect"
          Exit Sub
       End If
       Dim nErr As Long
       Dim errMsg As String
       'Set the object's properties
       Dim vPay As SAPbobsCOM.Payments
       Set vPay = vCompany.GetBusinessObject(oIncomingPayments)
       vPay.Address = "622-7"
       vPay.ApplyVAT = 1
       vPay.CardCode = "D10006"
       vPay.CardName = "Card D10004"
       vPay.CashAccount = "288000"
       vPay.CashSum = 0
       'vPay.CheckAccount = "280001"
       vPay.ContactPersonCode = 1
       vPay.DocCurrency = "Eur"
       vPay.DocDate = Now
       vPay.DocRate = 0
       vPay.DocTypte = 0
       vPay.HandWritten = 0
       vPay.JournalRemarks = "Incoming - D10004"
       vPay.LocalCurrency = tYES
       vPay.Printed = 0
       vPay.Reference1 = 8
       vPay.Series = 0
       vPay.SplitTransaction = 0
       vPay.TaxDate = Now
       vPay.TransferAccount = "10100"
       vPay.TransferDate = Now
       vPay.TransferSum = 0
       vPay.Invoices.AppliedFC = 0
       vPay.Invoices.AppliedSys = 0
       vPay.Invoices.DocEntry = 8
       vPay.Invoices.DocLine = 0
       vPay.Invoices.DocRate = 0
       vPay.Invoices.InvoiceType = 13
       vPay.Invoices.LineNum = 0
       vPay.Invoices.SumApplied = 5031.2
       Call vPay.Invoices.Add
       Call vPay.Invoices.SetCurentLine(1)
       vPay.Invoices.AppliedFC = 0
       vPay.Invoices.AppliedSys = 1089.65
       vPay.Invoices.DocEntry = 11
       vPay.Invoices.DocLine = 1
       vPay.Invoices.DocRate = 0
       vPay.Invoices.InvoiceType = it_Invoice
       vPay.Invoices.LineNum = 1
       vPay.Invoices.SumApplied = 1000
       vPay.CreditCards.AdditionalPaymentSum = 0
       vPay.CreditCards.CardValidUntil = CDate("10/31/2004")
       vPay.CreditCards.CreditAcct = "295000"
       vPay.CreditCards.CreditCard = 3
       vPay.CreditCards.CreditCardNumber = "884848448"
       vPay.CreditCards.CreditCur = "EUR"
       vPay.CreditCards.CreditRate = 0
       vPay.CreditCards.CreditSum = 5031.2
       vPay.CreditCards.CreditType = 1
       vPay.CreditCards.FirstPaymentDue = CDate("11/29/2002")
       vPay.CreditCards.FirstPaymentSum = 5031.2
       vPay.CreditCards.LineNum = 0
       vPay.CreditCards.NumOfCreditPayments = 1
       vPay.CreditCards.NumOfPayments = 1
       vPay.CreditCards.OwnerIdNum = "3993939"
       vPay.CreditCards.OwnerPhone = "383838888"
       vPay.CreditCards.PaymentMethodCode = 1
       Call vPay.CreditCards.Add
       Call vPay.CreditCards.SetCurentLine(1)
       vPay.CreditCards.AdditionalPaymentSum = 0
       vPay.CreditCards.CardValidUntil = CDate("10/31/2004")
       vPay.CreditCards.CreditAcct = "295000"
       vPay.CreditCards.CreditCard = 3
       vPay.CreditCards.CreditCardNumber = "884848448"
       vPay.CreditCards.CreditCur = "EUR"
       vPay.CreditCards.CreditRate = 0
       vPay.CreditCards.CreditSum = 1000
       vPay.CreditCards.CreditType = 1
       vPay.CreditCards.FirstPaymentDue = CDate("11/29/2002")
       vPay.CreditCards.FirstPaymentSum = 1000
       vPay.CreditCards.LineNum = 1
       vPay.CreditCards.NumOfCreditPayments = 1
       vPay.CreditCards.NumOfPayments = 1
       vPay.CreditCards.OwnerIdNum = "3993939"
       vPay.CreditCards.OwnerPhone = "383838888"
       vPay.CreditCards.PaymentMethodCode = 1
       If (vPay.Add() <> 0) Then
           MsgBox ("Failed to add a payment")
       End If
       'Check Error
       Call vCompany.GetLastError(nErr, errMsg)
       If (0 <> nErr) Then
           MsgBox ("Found error:" + Str(nErr) + "," + errMsg)
       Else
           MsgBox ("Succeed in payment.add")
       End If
       'disconnect the company object, and release resource
       Call vCompany.Disconnect
       Set vCompany = Nothing
       Exit Sub
    ErrorHandler:
       MsgBox ("Exception:" + Err.Description)
    End Sub
    HTH Regards Teun
    Edited by: Teun Aben on Aug 4, 2010 9:00 PM

  • How to default Ledger to SLA.: Create Subledger Journal Entry

    Here we have default the ledger for Data access sets , but also here not default the ledger.
    steps:
    1. AP-> ACCOUNTING
    Subledger Journal Entry Headers:
    Ledger[  ]

    Dear SAP Student
    It is just like inter unit cash transfers.  Also each department is spending cash on its own.  Now that I would like to know the balance cash departmentwise.
    As you said if I receive and pay through vendors I would be in a position to know only vendor wise balances.  It does not serve my very purpose of deparmentwise balance of cash. 
    I agree with Selva to go in for creating deparmentwise cash journals in the company code since each deparment is incurring expenses also and each department wise balance is also required. 
    Aravind

  • How to identify manual journal entries

    Hello,
    In the GL tables, GL headers and GL Lines, how can we identify if a journal entry is an automated entry or a manual entry.
    That is, entries can be made into the General ledger through Interface programs or other import methods. We describe them as Automated.
    And if journal entries are made directly into the GL, how to identify them against the automated ones.
    I need to know from a backend perspective, i.e which column in which GL table specifies if an entry is a manual or an automated journal entry.
    For Ex: In the GL_JE_Headers table, the JE_Source and the JE_Category mentions from where the source is.
    Like, JE_Source is Payables and Je_Category can be Purchase Invoices or Payments.
    Looking at the above line, we can identify that this is an automated entry from Payables.
    How to identify the manual entries.
    Your help is greatly appreciated.
    Thank you
    Bob

    Hi Bob,
    In the GL_JE_HEADERS table, column JE_SOURCE would have value as "MANUAL", this indicates that journal is created manually in General Ledger module and not imported from subledgers ....There is no indicative column for us to identify whether it is Automatic or Manual .... values such as MANUAL and RECURRING indicates entries that were created directly in General Ledger Module...
    Also in the GL_JE_LINES table, for GL_SL_LINK_ID and GL_SL_LINK_TABLE coumns, the column values would be NULL/Blank, since these columns normally contains reference to the base transaction in the subledger ....for a manual transaction there wont be a reference to subledger, hence they would remain as blank ..
    Regards,
    Ivruksha

  • How to create FrameMaker glossary entries which convert properly to RoboHelp HTML 8?

    I have been having a challenging time creating FrameMaker 9 glossary
    entries which convert properly into RoboHelp HTML 8. Here is the process I'm doing, and perhaps someone call tell me what I'm doing wrong.
    1.) In the FrameMaker document, I highlight a word or phrase which serves as the "glossary term" to be defined.
    2.) I open the Marker dialog box, select the Glossary option, then enter the "glossary definition" for the highlighted "glossary term." I commit the entry.
    3.) In the FrameMaker Book file, I create a new "Index of Markers" (IOM) of "Glossary" type. Upon generation of the IOM, my FrameMaker output is much like a standard index: There are letter delimiters ("A," "B," C," etc.), and under each is the "glossary definition," then a page number where the "glossary term" is.
    4.) Now I go to RoboHelp HTML 8 and update the document there. The glossary displays such that the "glossary term" is the entire paragraph in which the marker had been placed in the FrameMaker source file. The "glossary definition" is displayed properly (the text I placed into the Marker dialog box.
    So, how am I to create auto-generating glossaries? This implies that I need to create a manual glossary whereby the "glossary term" is in a paragraph by itself (much like a printed glossary would look). Furthermore, I would need to add this manual glossary as a file in the FrameMaker Book file for RoboHelp 8 to detect and pull the entries.
    Surely this isn't as how it was designed. I suspect I'm doing something wrong in how I create glossary entries or create the file in the FrameMaker Book file.
    Could someone offer some assistance?
    Thank you very much in advance!
    Most sincerely,
    Sammy Spencer

    It's because you're doing your markers backwards. The text inside your Glossary marker should be the term. The paragraph your marker is inside is the definition.
    I should say, rather, that Robohelp does it backwards, because when I think of glossary terms and definitions, I think there should be a way to highlight a word and provide the definition in the hidden marker, not hide the term inside the marker.
    I am still figuring out how to make a glossary in my Framemaker file that will work with my Robohelp file, and not have Robohelp generate a separate content file for the glossary file. I think I'll get it, though. Eventually.

  • How to create a dynamic entry list for an input field in VC(ce 7.1)

    Hello all,
    I have an Input field, i need to create a Dynamic Entry List for it in VC(ce 7.1).
    How can this be done.
    Thanks in Advance.
    Thanks and Regards,
    Santhosh Guptha N

    Hi Santhosh,
    You can define Dynamic entry list for Drop down list and combo box but not for input field.
    [Refer this|http://help.sap.com/saphelp_nwce10/helpdata/en/2a/28249060dd4dbc872f6266f4557364/frameset.htm] for defining entry list.
    Let me know if it helped.
    Regards,
    Dharmi

  • How to create an ODBC entry from Java

    From Java application, how can I create an ODBC entry in Ms Windows client?

    I know of two ways you could do this. One is very dangerous, but I will describe it here. ODBC DSN's are created using a GUI application from within the Windows Control Panel. The GUI application manages a set of files found in the Windows directory. You can find them if you search for the ODBC. You should find odbc.ini and odbcinst.ini. These are text files, and you can view there structure using notepad. A Java program could open a stream and append whatever information you want to into these two files. The danger is that if you do it wrong, you will corrupt ODBC for all applications, so be very careful with this method.
    The 2nd method, as I described above has been discussed (to death) within this forum. Just spend a little time searching, and I know you will find what you need to implement using that method. This is the method I would recommend using.
    Good Luck,
    Joel

  • B1if - Create a journal entry

    Hello everyone,
    i hope this is the right section for that scenario, which should be easy but i cannot get it to work. I am trying to create a simple journal entry with the given structure from the B1if Object list. It all works like a charm, except for the scenario when i am trying to use a business partner in the
    <AccountCode>K123456</AccountCode>
    results in: Exception : DI Error: (-5011) Invalid Account Code
    It is necessary for me, to be able to do so. Help is greatly appreciated. Here my full xsl. As of right now it is all hardcoded.
    <AdmInfo xmlns="">
    <Object>30</Object>
    <Version>1</Version>
    </AdmInfo>
    <QueryParams xmlns="">
    <JdtNum/>
    </QueryParams>
    <JournalEntries xmlns="">
    <row>
    <!--multiple such elements are allowed-->
    <ReferenceDate>12.08.2014</ReferenceDate>
    <Memo>Memo</Memo>
    <Reference>Ref 1</Reference>
    <Reference2>Ref 2</Reference2>
    <TaxDate>13.08.2014</TaxDate>
    <DueDate>13.08.2014</DueDate>
    </row>
    </JournalEntries>
    <JournalEntries_Lines xmlns="">
    <row>
    <AccountCode>K123456</AccountCode>
    <Debit>1.00</Debit>
    <Credit>0.00</Credit>
    <DueDate>13.08.2014</DueDate>
    <LineMemo>string</LineMemo>
    <Reference1>R1</Reference1>
    <Reference2>R2</Reference2>
    </row>
    <row>
    <AccountCode>102000</AccountCode>
    <Debit>0.00</Debit>
    <Credit>1.00</Credit>
    <DueDate>13.08.2014</DueDate>
    <LineMemo>string</LineMemo>
    <Reference1>R1</Reference1>
    <Reference2>R2</Reference2>
    </row>
    </JournalEntries_Lines>

    I found the solution myself. You need to use the <ShortName> for the business partner and in the <AccountCode> you need to put your Accounts Receivable account.

  • How to create RAS phonebook entry using cmd or win API

    I could't find forum about Batch/cmd or API so I'll post here. Hope it's ok, it's C# related after all.
    I need to implement simple VPN client functionality in my C# application, and it is highly preferable not to use any third party libraries, like DotRas for example, which I find not efficient and well documented anyway. I can use DotRas, but the connection
    fails 9 of 10 times, because of some keys DotRas don't set correctly. I can connect using:
    rasdail entryname user pass /PHONEBOOK:mypath
    The problem is how to create an entry (the custom phone book here is nod needed and it don't concern my question, I can use the default as well), I even know what keys to use, so I can create it from string, but the problem is in those 4 keys:
    LowDateTime= HighDateTime= DialParamsUID= Guid=
    I vaguely know what're those for, but I can't find good explanation how they are created. Windows documentation says:
    LowDateTime= - This key is optional and if present MUST be ignored by RRAS HighDateTime=30428537 - This key is optional and if present MUST be ignored by RRAS DialParamsUID=2945250 - This key specifies
    a unique identifier (an 8-bit ASCII-encoded string representation of a decimal number) to be used on RRAS for use as a credential key for demand-dial connection. This key is optional. Guid= - This key specifies a unique identifier (GUID) for this RRAS entry.
    This key is optional.
    Those are all optional and even omitted according to Microsoft documentation, but when I change one of those the connection fails with error 800, which I don't have an idea why. I can obviously create the entry with DotRas and change some keys, assuming the
    problem is not in those flags, and I'm not so sure in this, or I can try to automate and hide the vpn creation GUI in windows, but both the ideas look very ugly to me...

    Hi Memeandme,
    Thank you for visiting the MSDN forum.
    I’m afraid that it is not the correct forum about this issue, since this forum is to discuss Visual C# programming language. In .Net Framework, there is no build-in method to help you implement
    this.  Now I am moving your question to the moderator forum ("Where is the forum for..?"). The owner of the forum will direct you to a right forum. Thanks for your understanding.
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Set value in ViewObject from another ViewObject

    Hello, I am creating a program and have the following problem: I Have three view Objects say like: A, B and C. A is the master class and has a view link to B an C. But now I am facing the following problem. When I create a new A and then B, in B a va

  • Online Folio Producer

    Hello all, Was wondering if anyone could help me with this conundrum. I'm currently working in the online folio producer and usually when I open a folio I can see little preview thumbnail images of each one of my stacks. Recently this has stopped, al

  • About Nokia products

    Hi All I am a Nokia mobile user for last 1.8 years.  I have some questions to Nokia company. I don't know to whom i can tell those.  Have u people ever think why nokia mobile is now in out of demand.?  As u know in India you people sold out lakhs of

  • Illustrator CS on Vista 64

    I know Illustrator CS is not officially supposed to run on Vista 64. I read reports that it does run, but sometimes gives error messages. I thought I'd come here to the experts so to speak and get their feedback. Are there major problems running Illu

  • What type of things can you do with the ipod touch 1g and what features does it have

    what type of things can you do with the ipod touch 1g and what features please help