Updating the GL and BP Opening Balance

Hi
Can anybody help on the logic to update the GL and BP opening balance thru SDK
Regards
Sundaram

Hi,
U can use this Method.. CreateOpenBalance and check the following sample code provided by SAP.
Dim oAccountsService As SAPbobsCOM.AccountsService
Dim oOpenningBalanceAccount As SAPbobsCOM.OpenningBalanceAccount
Dim oGLAccounts As SAPbobsCOM.GLAccounts
Dim oGLAccountFirst As SAPbobsCOM.GLAccount
Dim oGLAccountSecond As SAPbobsCOM.GLAccount
'get company service
oCmpSrv = oCompany.GetCompanyService
'get accounts service
oAccountsService = oCmpSrv.GetBusinessService(ServiceTypes.AccountsService)
'get Accounts Service Data Interface
oOpenningBalanceAccount = oAccountsService.GetDataInterface(AccountsServiceDataInterfaces.a sdiOpenningBalanceAccount)
'set the account code(account name = Common Stock (HO, USA, GA ))
'for the openning balance account
oOpenningBalanceAccount.OpenBalanceAccount="_SYS00000000078"
'set the details
oOpenningBalanceAccount.Details = "G/L Accounts Opening Balance"
'set the date
oOpenningBalanceAccount.Date = Date.Today
'get ref to GlAccounts
oGLAccounts = oAccountsService.GetDataInterface(AccountsServiceDataInterfaces.a sdiGLAccounts)
'add accounts that will be in credit or in debit
'add first account
oGLAccountFirst = oGLAccounts.Add
'set the account code
'(account name = "Sales Revenues - Services (HO, USA, GA )"
oGLAccountFirst.Code ="_SYS00000000083"
'set credit amount
oGLAccountFirst.Credit = 300
'add second account
oGLAccountSecond = oGLAccounts.Add
'set the account code
'(account name = Sales Revenues - Foreign (HO, USA, GA ))
oGLAccountSecond.Code ="_SYS00000000082"
'set credit amount
oGLAccountSecond.Credit = 300
'create the balance for the first and second accounts from the Openning 'Balance Account
oAccountsService.CreateOpenBalance(oOpenningBalanceAccount, oGLAccounts)
Hope it helps,
Vasu Natari.

Similar Messages

  • When i try to open week cal it loads and then closes after a few seconds...I have checked for updates, turned the phone off then on, closed out of the app and then opened it again...nothing works!  Any suggestions?

    When i try to open week cal it loads and then closes after a few seconds...I have checked for updates, turned the phone off then on, closed out of the app and then opened it again...nothing works!  I have thought about deleting the app from my phone and then reloading it again but I worry that it will delete all my calendar info???  Any suggestions?

    To reset, press and hold the Home and power buttons until the silver apple appears.
    I would delete the app, reset the phone and then download the app again. Your calendar information should be stored on the phone as Week Cal uses the Calendar app information.
    Best of luck.

  • I updated the maverick and now mail won't open at all

    i updated the maverick and now mail won't open at all

    Have you tired opening it from the Applications folder?
    What happens when you try to open Mail?

  • HT201328 Welcome to After I IPHONE 4 black and I want to open internationally so when you want to update the lock and leave me a sign I just want to open an apple and I have developed from my Mac in Saudi Arabia&

    Welcome to After I IPHONE 4 black and I want to open internationally so when you want to update the lock and leave me a sign I just want to open an apple and I have developed from my Mac in Saudi Arabia& the
    <Edited by Host>

    If you want to unlock an iPhone you must contact the carrier it is locked to.
    You are not communicating with Apple in these forums; we are just other users.

  • Plz help me,after instuling the last software update,the programs and games and everything i have download it can't open!

    plz help me,after instuling the last software update,the programs and games and everything i have download it can't open!

    Have you tried the basics from the manual?
    restart, reset, restore.
    iPod touch User Guide (For iOS 4.3 Software)

  • Please update the functional specifications for Vendor Balance Report

    Dear All,
    Please update the functional specifications for Vendor Balance Report with
    proper descriptions.
    Please include
    1. How your selection screen should look like..
    2. Output format ( in an excel sheet)
    3. Logic for every field in the output format (viz. .. how do link the
    vendors from the selection screen to the BKPf and BSEG tables, how do you
    find open and closed items in BSEG , etc.)
    Please avoid statements like 'The total value of all the break-up should
    tally with the balance as shown in FBL1N for a given vendor for the given
    day.'
    You need to give the logic for the FBL1N, in that case.
    Regards
    Rama Mohan

    Hello again,
    Regarding having them update the specs, one can dream. Dreams are free. LOL. Hopefully the memory makers will update their specs as more makers start supporting a large memory configuration.
    The 4GB sticks I am using are http://shop.kingston.com/partsinfo.asp?ktcpartno=KTL-TP667/4G
    I did not do an extended test of the sticks in my MBP. Their home is in the ThinkPad I have because it is running Windows Server 2008 with Hyper-V.
    As you can see from the link above, these little suckers are pricey. But consider the price of 2GB SoDIMMs were $950 when they entered the market a couple of years ago. The price will drop.
    I asked the Kingston rep that sent these to me if online sites like newegg.com would have them soon. She indicated no, but the corporate buying sites like CDW and Zone would. So check around. They just started shipped a couple of weeks ago so be patient.
    If you have any other questions, please stop by http://blogs.technet.com/keithcombs/archive/2008/07/05/testing-my-apple-macbook- pro-with-8gb-of-ram.aspx and ask there. I'll see them much more quickly.
    Cheers,
    Keith Combs
    Microsoft

  • Table for Customer and vendor open balance on a key date

    Dear All,
    Can anyone please let me know Table for Customer and vendor open balance on a key date. We are developing one customized report.
    I have checked with the below table :
    Customer-KNC1, KNC3,BSID, BSAD
    Vendor-LFC1, LFC3, BSIK, BSAK.
    But these are not working properly for all customers and vedors. Also, in open items, there are items with clearing documents.
    Plesae let me know, how to go for it.
    Please suggest.

    Hi
    Use BSID and BSIK for open items
    And pass company code, year and from date and to date range in Posting date selection option
    Reg
    Vishnu

  • My safari is not working. Every time i click on it says to reopen or dont reopen. i press reopen i gives me this long screen and it says reopen or press okay. when i press ok it closes the box and doesnt open. when i press reopen the long screen stay

    . Every time i click on it says to reopen or dont reopen. i press reopen i gives me this long screen and it says reopen or press okay. when i press ok it closes the box and doesnt open. when i press reopen the long screen and stays like that.

    If Safari crashes on launch and you don't have another web browser, you should be able to launch Safari by starting up in safe mode.
    You may have installed the "Genieo" or "InstallMac" ad-injection malware. Follow the instructions on this Apple Support page to remove it.
    Back up all data before making any changes.
    Besides the files listed in the linked support article, you may also need to remove this file in the same way:
    ~/Library/LaunchAgents/com.genieo.completer.ltvbit.plist
    If there are other items with a name that includes "Genieo" or "genieo" alongside any of those you find, remove them as well.
    One of the steps in the article is to remove malicious Safari extensions. Do the equivalent in the Chrome and Firefox browsers, if you use either of those.
    After removing the malware, remember to reset your home page in all the web browsers affected, if it was changed.
    If you don't find any of the files or extensions listed, or if removing them doesn't stop the ad injection, then you may have one of the other kinds of adware covered by the support article. Follow the rest of the instructions in the article.
    Make sure you don't repeat the mistake that led you to install the malware. Chances are you got it from an Internet cesspit such as "Softonic" or "CNET Download." Never visit either of those sites again. You might also have downloaded it from an ad in a page on some other site. The ad would probably have included a large green button labeled "Download" or "Download Now" in white letters. The button is designed to confuse people who intend to download something else on the same page. If you ever download a file that isn't obviously what you expected, delete it immediately.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates (OS X 10.10 or later)
    or
              Download updates automatically (OS X 10.9 or earlier)
    if it's not already checked.

  • IMac G3 won't boot after updating the firmware and upgrading the OS!

    Hi! Everyone,
    I have an iMac G3 333MHz (five flavors) which comes with 192MB of RAM and 6GB of hard drive. Originally, it was OS 8.5.1 installed, later upgraded to OS 9.2.2. Of course, the firmware has been updated by the appropriate method provided by the on-screen instructions before the installation of 9.2.2. After successfully updating the firmware and installing Mac OS 9.2.2, the system booted up and worked fine. However, after shutting it down and powering it up a few days later, I have encountered a critical problem:
    1. At first, the iMac would chime and displayed a smiley-mac finder face.
    2. No question mark appeared and the system halted because it stayed at the same screen for about 5 minutes! Also, the keyboard wouldn't respond. For instance, the LED signal light wouldn't light on when Caps Lock was pressed.
    3. I assumed that this is just a typical crash and rebooted the machine via the "reset" button on the right side of the machine.
    4. After restarting, well, no luck, the same condition. Therefore, I rebooted it again by using the method mentioned above.
    5. The condition of sticking at the smiley-mac finder face occurred again! However, this time the iMac wouldn't chime and just displayed the mac face.
    6. Another restart, well, it was getting worse... no chime and no smiley-mac finder face but a white screen.
    7. I was frustrated then and shut the machine down forcefully by rebooting it again and pressing on the power bottom quickly before the screen appears. Also, I unplugged the power cord.
    ---------- After a few hours later ----------
    8. Okay, I then plugged the power cord in and booted it up again, this time, it would chime but stuck at the white screen. => No smiley-mac finder face appeared!
    9. Rebooted it again, the result was as same as step 8.
    10. Another restart, the smiley-mac face finally appeared but still... stuck here and this time, no chime.
    11. I then shut the machine forcefully by using the method mentioned above and let the machine rest for about a day with the power cord unplugged.
    ---------- After resting for a day ----------
    12. I booted it up and it would chime, but no screen (the power button was orange, not green). I then forcefully shut down the machine.
    13. Waited for about a minute and powered it up. This time, I tried to clear the PRAM, but no chime and gave me a white screen. => No luck! As mentioned, the keyboard's LED signal light wouldn't light on even though the Caps Lock key has been pressed.
    *Note: The keyboard has been tested on the other computers and it worked. Also, I tried different USB ports to plug the keyboard in. => The USB ports were all in working condition, as I can know from the last successful start up.
    14. Forcefully shut the machine down and tried to enter the Open firmware, no luck. It didn't enter and gave my a white screen.
    15. Conclusion:
    1) After resting for a while, the iMac would chime.
    2) Rebooting too much times would cause the machine not to chime and leaded the screen to become white instead of the smiley-mac finder face.
    3) However, rebooted the machine when the screen became white, the smiley-mac finder face would appear again without chime.
    By the way, I could hear the hard disk spinning up so that means the hard disk is working.
    Can anyone help me solve this problem? Is it related to the firmware update? Any suggestions will be appreciated! Thanks!
    Andy

    OK, I will try replacing the PRAM battery. Also, the PowerMac G3 and the other iMac 233MHz had the dead batteries. They are still working though... Should I replace them along with the iMac 333MHz? In case of not replacing, will they malfunction in future times? There are some symptoms on this two machines: 1. iMac 233MHz - No chime and no sound when adjusting system volume (the bi sound is not available), but iTunes and other applications can still use the audio device and output the sound via internal speakers; 2. PowerMac G3 450MHz - Will chime but sometimes hard to boot: 1) Chime but no screen; 2) No respond after pressing the power button => the power signal light won't light on. Every time I experienced this, I would open its case, pressing a small button (not quite understand what it does... anyway, just works if system halted.) near the PRAM battery and wait for about a minute, then close the case, and it boots. However, I have to reset "Date & Time"...

  • API to Update the DISCOUNT_DATE and DISCOUNT_AMOUNT_AVAILABLE column

    Hi,
    I am doing one inbound interface where I needs to Update the DISCOUNT_DATE and DISCOUNT_AMOUNT_AVAILABLE column in AP_PAYMENT_SCHEDULES_ALL table for each invoice. So that the value will display in Schedule Payments tab of the invoice workbench screen.
    Requesting to suggest any public/private API for this process.
    Any help will be needful for me
    Thanks and Regards

    Hi,
    I have a requirement where in I have to develop a report to display bank balance chart with the following details in the output.They are :
    1. Posting Date
    2. Bill Discount (BD)
    3. Letter of Credit(LC)
    4. Cheque Amount may be cheque issued.
    5. Deposits.
    Above are the information which i have to display based on Posting Date range , Company Code and Bank Key present in the selection-screen.
    Below are my few observations:
    1. To retrieve the Bill Discount, I am first fetching the data from BKPF table by checking the document types 'DZ' ,'KZ', Company code and Posting Date Range. Then using document number,company code present in these entries along with Posting key = 39 and special GL indicator = 'W' retrieving the data like DMBTR,WRBTR from BSEG.
    2. Similarly for Letter of Credit amount retrieving the data in the same way as mentioned above except special GL indicator will be 'Y'.
    Now please correct me if my approach is wrong. Request you all to throw some light as I am Technical Consultant and humbly looking forward to all your help.
    Also, request to let me know the logic or process how one can calculate fourth point as well as Fifth point as mentioned above.
    Edited by Raghavendra Kulkarni.
    I am just looking for flow of data/process flow/standard transactions through which I can see these above mentioned things which can help me in building the logic. At least a general approach to this will be appreciated highly.
    Regards,
    Raghavendra Kulkarni.

  • I have an app in my app store that is requiring an update but I never purchased the app and when I click update, another apple ID pops up that is not mine.  Now i keep getting reminders to update the app and I cant get rid of it from the app store.  Help.

    I have an app in my app store that is requiring an update but I never purchased the app and when I click update, another apple ID pops up that is not mine.  Now i keep getting reminders to update the app and I cant get rid of it from the app store.  Help.

    You installed a hacked app, originally from the Mac App Store. It contains the receipt for a different app, downloaded using an account that you don't control. You need to identify and remove the hacked app.
    Important: The app you need to remove is not necessarily the one named in the App Store notice. For example, if the App Store says you need to update "Twitter," the hacked app may be "Angry Birds" or something else entirely. Don't make any assumptions about which app you're looking for. To find it, you have to carry out a systematic search.
    Triple-click anywhere in the line of text below on this page to select it:
    kMDItemAppStoreHasReceipt=1
    Copy the selected text to the Clipboard (command-C).
    In the Finder, press the key combination command-F to open a search window, or select
    File ▹ Find
    from the menu bar. In the search window, select
    Search: This Mac
    from the row of tokens below the toolbar. Below that is a popup menu initially showing Kind. From that menu, select  Other...
    A sheet will drop down. In that sheet, select Raw Query and click OK or press return.
    Now there will be a text box to the right of popup menu. Click in that box and paste (command-V).
    The search window will show all the App Store products you've installed. Compare those search results with the list of your purchases from the App Store. To see the complete list, you may need to unhide hidden purchases. If any apps were download from the App Store using other Apple ID accounts that you control, sign in to the store under each of those ID's and check the purchases.
    At least one of the items listed in the search window is not among your purchases in the App Store. Move each such item to the Trash. You may be prompted for your administrator password. Empty the Trash.
    Log out and log back in. Test.

  • Can I make it so Firefox remembers the websites from when I closed the app and automatically open them like in other browsers.

    Can I make it so Firefox remembers the websites from when I closed the app and automatically open them like in other browsers.

    You may need to update your Firefox to get these features. It was introduced somewhat recently.
    https://play.google.com/store/apps/details?id=org.mozilla.firefox

  • When downloading from my laptop to GPS, the time taken causes my computer to eject the transfer because it has extended beyond the setting in the computer. This has happened before when trying to update the GPS and that time a Apple technician instructed

    I'm try to update my GPS. I download the new info for the GPS to the laptop. Then I connect the GPS the laptop and start the download to the GPS. But this can take hours to transfer. Because the time needed is beyoun what the computer is program, so the connection is ejected. I've been thru this one other time while updating the GPS and it was than the an Apple technitian told me how to disable the auto eject because of the set time limit.
    Please help
    Thanks
    Frank Burris
    <Email Edited by Host>

    You can sync them via your computer's iTunes : connect the iPad to your computer and select it in your computer's iTunes, and then select its Photos tab :
    And on that tab select the folder that the photos that you want to copy are in and sync/apply that selection to your iPad.
    To remove the photos from the Photos app you will need to do similar to above, but select and sync an empty folder (you can't delete synced photos directly in the Photos app, instead they are deleted by not including them in the next photo sync).
    Or you could email them to yourself and use 'open in' in the Mail app to copy them to the Photos app

  • HT3606 i keep trying to update the software and it gets stuck on configuration, so i can i sped up the process?

    i keep trying to update the software and it gets stuck on configuration, so i can i sped up the process?

    Some general advice on updating:
    It is worth noting that it is an extreme rarity for updates to cause upsets to your system, as they have all been extensively beta-tested, but they may well reveal pre-existing ones, particularly those of which you may have been unaware. If you are actually aware of any glitches, make sure they are fixed before proceeding further.
    So before you do anything else:
    If you can, make a full backup first to an external hard disk. Ideally you should always have a bootable clone of your system that enables you to revert to the previous pre-update state.
    Turn off sleep mode for both screen and hard disk.
    Disconnect all peripherals except your keyboard and mouse.
    1. Repair Permissions (in Disk Utility)
    2. Verify the state of your hard disk using Disk Utility. If any faults are reported, restart from your install disk (holding down the C key), go to Disk Utility, and repair your startup disk. Restart again to get back to your startup disk.
    At least you can now be reasonably certain that your system does not contain any obvious faults that might cause an update/upgrade to fail.
    3. Download the correct version of the COMBO update from the Apple download site.
    The Combo updater of Leopard 10.5.8 can be found here:
    http://support.apple.com/downloads/Mac_OS_X_10_5_8_Combo_Update
    If you prefer to download updates via Software Update in the Apple menu (which would ensure that the correct version for your Mac was being downloaded), it is not recommended to allow SU to install major (or even minor) updates automatically. Set Software Update to just download the updater without immediately installing it. There is always the possibility that the combined download and install (which can be a lengthy process) might be interrupted by a power outage or your cat walking across the keyboard, and an interrupted install will almost certainly cause havoc. Once it is downloaded, you can install at a time that suits you. You should make a backup copy of the updater on a CD in case you ever need a reinstall.
    Full details about the 10.5.8 update here: http://support.apple.com/kb/HT3606
    More information on using Software Updater here:
    http://support.apple.com/kb/TA24901?viewlocale=en_US
    Using the Combo updater ensures that all system files changed since the original 10.5.0 are included, and any that may have been missed out or subsequently damaged will be repaired. The Delta updater, although a temptingly smaller download, only takes you from the previous version to the new one, i.e. for example from 10.5.7 to 10.5.8. Software Update will generally download the Delta updater only. The preferable Combo updater needs to be downloaded from Apple's download site.
    Now proceed as follows:
    4. Close all applications and turn off energy saving and screensaver.
    5. Unplug all peripherals except your keyboard and mouse.
    6. Install the update/upgrade. Do not under any circumstances interrupt this procedure. Do not do anything else on your computer while it is installing. Be patient.
    7. When it ask for a restart to complete the installation, click restart. This can take longer than normal, there are probably thousands of files to overwrite and place in the correct location. Do nothing while this is going on.
    8. Once your Mac is awake, repair permissions again, and you should be good to go!
    If your Mac seems slightly sluggish or ‘different’, perform a second restart. It can’t hurt and is sometimes efficacious! In fact a second restart can be recommended.
    9. Open a few of your most used applications and check that all is OK. In this connection please remember that not all manufacturers of third party applications and plug-ins, add-ons, haxies etc, will have had time to do any necessary rewrites to their software to make them compliant with the latest version of your operating system. Give them a week or two while you regularly check their websites for updates.
    N.B. Do not attempt to install two different updates at the same time as each may have different routines and requirements. Follow the above recommendations for each update in turn.
    Lastly, Apple's own article on the subject of Software Update may also be useful reading:
    http://docs.info.apple.com/article.html?artnum=106695
    [b]If you are updating Safari (or just have):[/b]
    Input Managers from third parties can do as much harm as good. They use a security loophole to reach right into your applications' code and change that code as the application starts up.  If you have installed an OS update and Safari is crashing, the very [i]first[/i] thing to do is clear out your InputManagers folders (both in your own Library and in the top-level /Library), log out and log back in, and try again.
    So, disable all third party add-ons before updating Safari, as they may not have been updated yet for the new version. Add them back one by one. If something goes awry, remove it again and check on the software manufacturer's website for news of an update to match your version of Safari.
    Most errors reported here after an update are due to an unrepaired or undetected inherent fault in the system, and/or a third party add-on.
    Additional tips on software installation here:
    http://docs.info.apple.com/article.html?artnum=106692
    To reiterate, Input Managers reach right into an application and alter its code. This puts the behavior of the affected application outside the control and responsibility of its developers: a recipe for  problems. That's not to say that issues absolutely will ensue as a result of Input Managers, but you, as a user, must decide. If the functionality of a specific Input Manager or set thereof is really important to you, you may well choose to assume the associated risk.
    Again, the advice is to remove all Input Managers from the following directories:
    /Library/InputManagers
    ~/Library/InputManagers
    especially prior to system updates (they can always be added back one-by-one later).
    Solutions for troubleshooting installation, startup, and login issues in Mac OS X v10.5
    http://support.apple.com/kb/TS1541?viewlocale=en_US

  • I updated the system and software final cut.

    Hello friends
    I updated the system and software final cut.
    After the software update course and Motion me all the time after 6 seconds.
    I did everything you could.
    Until I got old program 10.4.1 and everything works.
    What do I need to do.
    Attached is the Mac specs
    I also tried to Repair Permissions on your system drive and not solved the problem

    I open the program within 6 seconds it crashes.
    An hour ago I was still on the software without Updated with no problem.
    Even Motion Course

Maybe you are looking for

  • Not able to view Folders in Business area.

    Hi, User has been given access to XYZ business area from discoverer Admin but not able to view folders in Discoverer Plus (web based) but he can view the folders under same business area (ie XYZ) using Discoverer Desktop Application. Only one user is

  • Error while introspecting the JAR file

    I get the following error while introspecting the JAR into BPM [Error] Introspection exception : Internal Error: java.lang.UnsupportedClassVersionError: Bad version number in .class file. Anybdy knows whats the error?

  • Recording from analogue input

    using cool-edit or audacity. recording through mic input/output on left panel results in feedback howls from internal mic still active.have tried all combinations in sound manager settings. can i record through usb input with phono to usb cable or do

  • Rounding in backflush

    Hi, We are using repetitive manufacturing scenario and do backflush in MFHU. In BOM, the component quantity is maintained in fractions. For e.g. 1000kg of finished product require 0.828 pcs of packing material.It is required that goods issue should h

  • Error creating transformer object after server up for 2-3 days

    Our application performs various XSL Transformations and as such it needs to create Transformer objects to perform the transformations. All works fine for several days (usually 2-3 days) then we begin to receive this exception: {color:#0000ff}java.la