How to create Journal Voucher ?

I 've tried the sample codes from the SAP Help and other with the same result.  I can't create a Journal Voucher.  Either the errors "-5011 Error Msg:Tax account has not been defined for the selected tax", "-5002 Error Msg:Date deviates from permissible range"
How can i overcome all these errors ? 
thanks in advance

Where to put the JournalEntries.Add line was the key!

Similar Messages

  • 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()

  • Journal Voucher last entry

    Hai,
    I have created Journal Voucher using Code.I want the last created Journal Voucher No. How to get it?
    Thanks in advance.

    Hi
    lRetCode = oInvoice.Add()
                If lRetCode <> 0 Then
                    Dim lErrCode As Long
                    Dim sErrMsg As String = ""
                    B1Connections.diCompany.GetLastError(lErrCode, sErrMsg)
                    B1Connections.theAppl.MessageBox(sErrMsg)
                    Return False
                Else
                    Dim sDocEntry As String = String.Empty
                    Dim sDocNum As String = String.Empty
                    B1Connections.diCompany.GetNewObjectCode(sDocNum)
                    oInvoice.GetByKey(CInt(sDocNum))
                    sDocEntry = oInvoice.DocEntry
    end if
    the above code is used to get the last created invoice document no through code , try the same wy in your code
    Regards
    Arun

  • Journal Voucher

    Hi
    I am creating Journal Voucher through DIAPI.
    After Created the JV i want to add some more line item to the existing JV.
    Can any have a idea or sample code pls let me know .
    Thankyou
    regards
    senthil kumar B

    Hi Barend Morkel
    Thanks for your reply.
    I am Using SAP 2005A sp00 and PL12
    IN JV Object only two method is available. 1.add and 2. JournalEntries
    I am Using JV.JournalEntries.Getbykey(30) Method but it through "Method not implemented yet" Error.
    Regards
    Senthilkumar

  • How to change the cash journal voucher

    Hi
    Pls advice how to change  the cash journal voucher lay out , that is auto generated in the system.
    I need to add some fields.
    Thanx

    Hi,
    U need to develop your own layout with the help of your ABAPer with the required fields.
    Then Go to the following path
    Display IMG --> Financial Accounting --> Bank Accounting --> Business Transactions --> Cash Journal --> Setup Print Parameters for Cash Journal.
    Hope you are clear.
    Cheers
    P O I N T S

  • 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.

  • Successfully posted Journal Voucher but no Journal Entry created

    Hi All,
    Today our customer experiences a case mentioned in the subject, she has chacked the status is already "Closed" in the Journal Voucher. But there is no Journal Entry created for that Journal Voucher. Is there any explanation for this?
    Thanks,
    Alvin

    Hi,
    Kindly run the following select query :
    Select * from OJDT T1 WHERE T1.[BatchNum] = 'xx'
    where 'xx' is the voucher number and check if it displays any result.
    If there are no results, please log a support ticket on SAP Portal to get the issue investigated.
    Regards,
    Jitin
    SAP Business One Forum Team

  • How to create new profit centre to Cash Journals

    Hi Friends,
    Please suggest me how to create/assign profit centre to Cash journals ( Cash Payment & Cash Reciepts)
    Thanks & Regards,
    Naveen.

    Hi Naveen,
    As already replied, we do not fix Profit center to cash Journals, but when you enter your cash Payments>Expenses, then you enter a cost object and from there the profit center entry is derived.
    For balance sheet accounts, you enter profit center manually..
    If you want to fix P.Cntrs for Cash Line posting, then you need to write Substitution and for that you will have to use User Exit.
    Usually in a New GL Scenario, the balance sheet line item gets split in the expense ratio, so we do not fix P.Cntrs for Cash line items..
    If your question is something else.. do let us know.
    Regards,
    SAPFICO

  • How to make a query to list out Journal voucher that hasn't been posted

    Hi, do you know how to make a query to list out Journal voucher that hasn't been posted?
    By what code name identify that?
    Thanks.
    Raymond
    Edited by: Rui Pereira on Aug 6, 2008 3:57 PM

    jack,
    there is no link with OBTD to OJDT and JDT1.
    voucher number in obdt is different,
    after posting voucher is saved as journal entry seperate
    number is generated.
    you can link OACT,OCRD WITH OJDT,JDT1.
    Jeyakanthan

  • How can I know if a manually created Journal Entries has not been paid yet?

    Hi There.
    I'm passing through the following situation: I need to find out which Journal Entries that have been manually created ( TransType = 30 ) don't have an Outgoing Payment record associated
    Lets suppose that I manually created a Journal Entry. Let's call it OJDT_MAN
    Then, I went to the Outgoing Payments Form ( Modules -> Banking -> Outgoing Payments -> Outgoing Payments ) and paid OJDT_MAN.
    This process will create another Journal Entry. Let's call it OJDT_AUTO.
    I can't find in the database anything that indicates that OJDT_MAN has already been paid. I tried looking for a Status field; Checking if OJDT_AUTO had some code that could get me to OJDT_MAN ( I found BaseRef and TransType = 46, that can guide me to the new OVPM record ); Tried looking at the new OVPM record for some field that could lead me to OJDT_MAN, but I had no success at all...
    So, in resume, and again, how can I know if a manually created Journal Entry hasn't been paid?
    (When I go to the Outgoing Payments Form and select a Business Partner, it B1 shows me only the not paid ones... How does he knows it? )

    Just to make it more clear, the SQL we were looking for is this:
    Select
    From
      OJDT
    Where
      OJDT.TransId Not In ( Select VPM2.DocEntry From VPM2 Where VPM2.InvType = 30 )
      And
      OJDT.TransType = 30

  • I have two lists. The first is "Tasks", second is "Journal". I need a "Create Journal Entry" link in the Tasks list. How do I do that?

    Let's say I have a Task named "Build SSIS for Duke Energy" and it has another column called Active. Now every day I look at my task list and If I worked on that task I want to create a Journal entry of what I have done. So from the Task
    list I'd like a third column that calls the "Journal Entry" list's new form page and pass it in the ID of the task. I have found several TextToHtml scripts out there, but they have to be stored in a script library, and then sourced to a content
    editor web part. The problem is they don't fire when I have my list grouped. In addition to, every time someone creates a new view, I have to go in and add the Content Editor web part, point to the script....
    Any thoughts. It is the grouped view that really bug me.

    Hi,
    If you only want to add a hyperlink to create a Journal entry in the task list, I recommend to add a Hyperlink column in the task list and then create workflow to update the column.
    You can follow the steps as below:
    Open the task list, add a hyperlink column named Create Journal Entry.
    Create a workflow associated to the task list, start the workflow automatically when an item is created.
    Add actions as below:
    Then when a task is created in the task list, the workflow will be stared automatically to update the “Create Journal Entry” column.
    Thanks,
    Jason             
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • PROBLEM IN CREATIING EXCISE JOURNAL VOUCHER

    HI FRIENDS
                      When i am creating excise journal voucher through j1ih one problem i am facing.
                      after entering material number,quantity now i need to maitain excise , eces, hecess but from this screen to how to maintain those becoz field for value maintanence are in display mode , but i need to maintain value in this screen & how.
                     basically i want to know what to select & click after maintaining all information to get the screen --where i can enter the value of bed, ecess. hecess
                    plz help -
    what is the way

    Dear Ambarish
    In J1IH, there is no field to enter material code.  There are 6 tabs in J1IH and in all these tabs, you need to input Excise Invoice reference only.
    Please confirm once again.
    thanks
    G. Lakshmipathi

  • Journal Voucher Problem

    Hi Experts,
    Good day!
    I have a problem posting the journal voucher. The status of transaction is closed, but did not reflect on journal entry. How come?
    But when I created the same accounts posted in journal voucher in journal entry, it authomatically  reflected. Meaning, is the journal voucher not functioning... PLease help me on this asap pls. Thanks .
    Mari

    Dea Mari,
    If you had created the journal voucher using the journal voucher screen by adding an entry to the journal voucher and then you had chosen this 'open' journal to 'Post Voucher' then Its strange that the voucher is closed with no transaction created in the jounal entry.
    Please try again the above procedure on a test database, and if this issue still exists, then post your query to SAP or your local SAP partner.
    Thanks
    Asif

  • How to Create a Bootable Flash Drive to do a clean install of Lion.  I have tried to use the InstallESD.dmg but it still will not do a clean install so that I do not have to do a reinstall from the Recovery (That just re downloads and takes over 6 hours)?

    How to Create a Bootable Flash Drive to do a clean install of Lion.  I have tried to use the InstallESD.dmg but it still will not do a clean install so that I do not have to do a reinstall from the Recovery (That just re downloads and takes over 6 hours)?
    The system I'm have is a Mac-mini that had SL on it and no SuperDrive.  I have also call Apple Support and they have really have not been to much help over 1st did my up grade to Lion and Installed the Lion Server.... it lost my SSL that I paid for and kill almost on of my server setting, plus kill all my web servers (using apache vhosts), and not to say the LDAP will even let remote users login to your laptops.
    PS: There is no way that I'm going to buy a Install USB from Apple... They have over billed me over $300.00 because the Apps Store still has bugs (Glad I did not write that App/Service)
    If there is anyone that can give in the information to create a USB install stick, I would be very thinkful.

    Here you are bro, courtesy of "softpedia.com"....brilliant site!!!
    If you ever had problems with your Mac OS X installation you know that the first thing you should do is to check the startup volume using Disk Utility.
    After the check has ended and, if the errors exceed a certain level of seriousness, the Disk Utility application will require you to restart your Mac and use its Mac OS X Install disc counterpart.
    Other users may have to reinstall OS X altogether, but will find, or already know, that their SuperDrive (a CD/DVD reader and write combo drive) is not functioning properly and it will not be able to read the Install disc.
    Although this might happen to Mac OS X Leopard users due to faultyhardware, the vast majority of problematic SuperDrives will be encountered inside Snow Leopard running Macs.
    This is due to the updated SuperDrive firmware included in either the Install disc or the software updates one has to install to reach the latest version of OS X, namely 10.6.6.
    This can be fixed by flashing the SuperDrive’s stock firmware using free command line tools that one can find for free online (I will write about this process also, but at a later time because this article only focuses on allowing you to create your own alternative USB boot disc).
    If you are reading this last bit of information with skepticism, than you should know that it happened to me too. Despite all my tries to make it work properly, the SuperDrive kept on munching any inserted DVDs and just popped them out in about twenty seconds.
    The workaround to this issue was to create my own Leopard bootable USB memory stick. I am not suggesting a Snow Leopard bootable stick mainly because there are lots of users that have decided to buy the cheaper, Upgrade version, which I have not tested and, therefore, I’m not sure if it will work properly once written to a USB disk.
    And now, here are the exact steps you should follow in order to obtain a fully bootable Leopard (or Lion) Install disc.
    Step 1 (If you already have the Leopard install disc DMG file you can skip to Step 2)
    Launch Disk Utility (you can find it inside /Applications/Utilities). Here select the Leopard Install disc in the list of drives on the left and click on the New Image menu entry at the top of the window. A save message will appear where you will have to select the Desktop as a destination.
    Step 2
    After Disk Utility has finished creating the Leopard DMG, insert your USB stick and erase all data and reformat the disk. To do this select the USB in the list of drives on the left and, after clicking on the Erase tab on the right side of the window, choose the Mac OS Extended (Journaled) format and click the Erase button beneath.
    Step 3
    After the USB has been reformatted, download the SuperDuper app from HERE and launch it. Once SuperDuper starts, you will only have to select the DMG in the Copy drop-down menu, your USB memory stick on the right and hit the “Copy Now” button.
    One can also use Disk Utility for this task but creating a bootable USB stick failed 2 out 4 times when copying the DMG to the stick (with the exact same settings each time). Creating the bootable stick using SuperDuper proved to be the perfect way to do it because it worked each of the 4 times I tested it.
    The steps above can also be used to create a bootable Mac OS X Lion USB by using the InstallESD.dmg image you can find inside the Lion installer (named “Install Mac OS X Lion.app”) downloaded from the Mac App Store in the /Applications folder.
    To locate the InstallESD.dmg right click the Lion installer, select the “Show Package Contents” entry, go inside the “Contents” folder, and from there into the “SharedSupport” folder. Inside this folder you can find the InstallESD.dmg you can use to create your own bootable Mac OS X Lion USB stick. To do so, go to the third step described above and use the InstallESD.dmg as the DMG to be copied to your USB disc.
    That’s it! Once the process ends you will have a fully bootable Leopard (or Lion) USB disk that you can use as an alternative to the Apple’s DVD Install disc that comes bundled with all Macs.
    To use your newly created bootable disk you will have to restart the Mac, press and hold the OPTION key until the StartupManager appears. Here, select the Mac OS X Install disk using your keyboard arrows and press return to start from the selected drive.

  • How to create a Web ADI template and save it in our apps?

    Hi all,
    I want to create a user enrollment template it Web ADI so that I can send the form to the client and they will just fillup the spreadsheet with all the users they want to add to the system then load it using Web Adi.
    For example this form is:
    I want to create a Web ADI template for the forms above, which is saved in the apps database. Just like the template sample below:
     1. Add Oracle WEB ADI you your responsibility. Explore how to create document etc
    2.  Using Oracle General Ledger, go to Enter Journal and click on Launch Journal Wizard..from there you can create document similar to attached
    Please help how to create templates like this.
    Thanks a lot,
    mk

    Hi Rajen and all,
    The sample tutorial you and Aj gave me seem for older version like 11i or 12.0. Can i still apply or follow it for 12.2?
    You also mentioned:
    My approach when I started was more like the "baby step" method ... started with something simple with these 2 responsibilities and a simple integrator and then continued by adding new features (like LOV, PopLists, Contents, playing with layouts, using FNDLOAD, etc....). It's  an interesting experience.
    Do you have the docs you follow to do the above process? What 2 responsibilities are you referring to? It is "Desktop Integration" & "Desktop Integration Manager"?
    I thought "Desktop Integration Manager" is the super-user and has all the "powers" needed for adi?
    What powers does "Desktop Integration Manager" have,  that "Desktop Integration" does not have? and vice-versa.
    Thanks a lot,

Maybe you are looking for

  • Can't use CS4 to edit --Photoshop CS4 crashes after installing Aperture 3.1

    Hello: Whenever I try to launch Photoshop CS4 as my external editor, it will crash while trying to open the image. I never had this problem before installing the Aperture 3.1. update. CS5 seems to be okay though. Whenever I select an image in Apertur

  • Fire wire drive won't work with Mac Pro

    This is kind of crazy. I just bought a MacPro 2.8 Ghz 8-core. I hook up my OWC Neptune FW drive to it. Nothing. Didn't Apple invent Firewire? It boots just fine on the ten year old G4 running OS 10.4.11. I really am getting a little annoyed with Appl

  • How to use WebRowSet to convert to XML??

    Dear all, I have a ResultSet, but I how can I use WebRowSet to convert it to XML? Greatly appreciated if anybody can giveme a clue. Thank you Kevin

  • Failure to deploy dimension - ORA-01031: insufficient privileges?

    Hi all, 1. I imported a mdl file. 2. Then I registered all locations 3. Then I deployed all staging area objects successfully. 4. Then I deployed sequences and tables in the target module successfully. 5. However, when I want to deploy the dimensions

  • OHS died!

    Hi all, it's not the first time I post messages about this but I'm fighting with this load of crap since a month or so. I'm running 9iAS r2 infra & app server in one box. It worked for a while then started giving those "EMException" errors reportedly