Depreciation question

Hi all,
i wanted to know why my system was calculating depreciation in a unusual manner.
My asset transfer date is 9/2007, i want it to start calculating depreciation from 10/2007. In the asset master the acquisition date is 7/2006. the depreciation start date defaults from the acquisition date?? i thought it should do so from the transfer date. I changed the dep start date to 10/2007.
But when i run AFAB it starts calcuatind depreciation from period 2/2007
why does it do so?
Can i start caculating dep eg from period 1 for asset a and period 7 for asset B?
what significance does the captilisation date have? - this is the day the legacy asset was bough right and this is used to calculate the remainig life.
Thanks,
Zaid Azam

I am not sure if you are allowed/ should be doing this.
An asset register is a form of legal document and if you are stating that an asset was bought/ capitalized at 6,000 when it was 10,000 there may be some issues.
There is also one other thing to consider.
If you have the above scenario in your current SAP if the asset had a life of say 10 year it would depreciate 1000 per year.
If you just use straight line dep. then this may not be an issue but if you have a dep key that is more structured and you have the capitalised date and amount different to the actual value it will calculate dep. in the wrong way.
However a point I would raise to you is this, you need to consider your cap date and your useful life.
You could in theory have all assets with a cap date of the day you go live, and have all of the useful lifes that which is the difference between the actual useful life and the age of the asset. This should in theory work if ALL of your assets work on straight line dep.
Lastly an issue to consider would be around the open items/ balances of the assets GL accounts and dep accounts, make sure you dont count it twice.

Similar Messages

  • Group aset depreciation question

    Hello everyone
    I have a question in the depreciation for a group asset.
    That is my question:
    I have create a group asset with some component assets.
    After that,  i have found  all the calculation of depreciation are made in the group asset(what is normal for me), but with the useful life of the group asset for all the components(10 years for exemple).
    In the component cards, i have put some different useful lives(5 and 10 years).
    So is it normal  that FI AA make this kind of depreciation with the useful life of the group asset?
    Thanks a lot.
    Youqiao

    Youquiao,
    The depreciation group works when you have a similars assets. If you have some different at this group, the SAP look for a item not from a group, then "normally" when you run the depreciation (AFAB) the SAP return with a error at this item, if the SAP not return, its look from a item and post a depreciatin individually.
    Regards
    Bruno Araujo

  • Question about Depreciation Posting Run

    I Gurus:
    I have a question about Depreciation Posting Run;  I want to block two active assets for not entry in the Depreciation Posting Run and don´t affected it.
    I try to blocked the fixed asset in AS06 transaction but de active asset is affected in Depreciation Posting Run.
    Could you please help me??
    Thanks a lot

    Hi,
    To my limited knowledge, one can deactivate the assets after transfering the value from the to be deactivated asset.
    As per the generally accepted accounting principles, assets with value should have an impact in our financial statment.  In SAP, deactivating assets means, wrongly created assets which will not have any value and will not have impact any of your financial books of accounts.
    I think, you are looking for a functionality, where you do not want to depreciate the assets (ex. Land).  If it is so, you can give the Zero percentage by creating a new dep. key if you are using depreciation key based calculation of depreciation.
    Hope it clears your doubt,
    Regards
    A.Saravanan.

  • Question on asset depreciation

    Hi experts,
    I have no knowledge on asset depreciaction. I need to know how asset depreciation is calculated like example what are the formula to calculate it, what is the tranx code that I can use or what configuration that need to be set.
    One example, I have a piece of asset. I need to calculate the depreciation of this asset from today until the end of the year. How can I do so?
    All kind of help is greatly appreciated. Thanks in advance.

    Hi,
    Please refer to link...
    finding the Transaction code of depreciation calculation (asset accounting)
    [Search link|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=asset+depreciation&adv=false&sortby=cm_rnd_rankvalue]
    Edited by: Avinash Kodarapu on Jan 16, 2009 8:52 AM

  • Please help me:one question about Assest Depreciation.

    In T-CODE ABAON I fill all of the necessary fileds and click save but the sap raise some error message like below.So in T-CODE AO90,I select chart of account->account determ->Depreciation,and input my G/L Acct 5201 in the field of 'Acc.dep. accnt.for ordinary depreciation' and save.Then I exit and go to T-CODE ABAON and try again,but the error still exist.It seems not work to what I have done in T-CODE AO90.I don't know why and how to resolve this problem.So I need your help.Thank you so much.
    error message:
    Account 'Acc.dep. accnt.for ordinary depreciation' could not be found.
    Message no. AU133
    Diagnosis
    When creating the accounting document, the system could not find account 'Acc.dep. accnt.for ordinary depreciation' for company code HJW1.
    Procedure
    Enter this account in the account determination for Asset Accounting.
    Message was edited by:
            Melody  H.

    Hi,
    Check the following:
    1. In ur asset class check the Acct determination & for this acct detr check the gl account in AO90.
    2. check ur GL accounts.
    3. Or are u making the changes in the same client or other & have u transported the request or not?
    or sometimes it is necessary to terminate the session and relogin then check.
    Regards,
    Meenakshi

  • Some question about asset depreciation value?

    In our system, there is a asset acquisition value 3297600, use life 5 years.
    We use Straight line to calculate depreciation value of one month is 3297600 / 5 / 12 => 54960, this asset will be completed depreciation in 2011/08,
    Original Value
    2011/01 -54960
    2011/02 -54960
    2011/03 -54960
    2011/04 -54960
    2011/05 -54960
    2011/06 -54960
    2011/07 -54960
    2011/08 -54960
    When our user transfer other asset value to this asset, the asset depreciation becomes a strange value.
    The User trasnfers two asset value to this asset. The first asset transfered 303090 (Asset acquisition 3030900, Accumulated depreciation -2727810) in 2011/03/31, The second asset transfer 12480 (Asset acquisition 149,760, Accumulated depreciation -137,280)  in 2011/04/30
    User expects the deprecaition value as below
    2011/01 -54960
    2011/02 -54960
    2011/03 -54960 + -50515
    2011/04 -54960 + -50515 + -2496
    2011/05 -54960 + -50515 + -2496
    2011/06 -54960 + -50515 + -2496
    2011/07 -54960 + -50515 + -2496
    2011/08 -54960 + -50515 + -2496
    But current asset calculated the deprecaition value as below
    2011/01 -54960
    2011/02 -54960
    2011/03 -54960 + -50515
    2011/04 -54960 + -50515 + -2496
    2011/05 -54960 + -50515 + -2496
    2011/06 -54960 + -50515 + -2496
    2011/07 -54960 + -50515 + -2496
    2011/08 1,949 (?)
    2011/09 -107,971 (?)
    2011/10 98,534 (?)
    2011/11 -100,483 (?)
    I don't know why the SAP calculated depreciation period becomes to 2011/11?
    How can I change the asset depreciation value to "User expects the deprecaition value"?
    The user chooses depreciation key AS90 Configuration as below
    [AFAMA - AS90|http://farm5.static.flickr.com/4104/5055701109_5fa161f569_b.jpg]
    [AFAMS - A90|http://farm5.static.flickr.com/4124/5056317442_0a05a3097d_b.jpg]

    Hi,
    In SAP there are different settings depending if you what the additional incoming charges to depreciate with independent start dates, versus all subsequent acquisitions to an asset record adopting the existing "Capitalized on" date in master data for the very first acquisition to record.
    Are you getting the other option not desired?

  • Asset Depreciation Posting Question

    Hi Experts,
    Do you know a solution to carry-over the License value (ANLZ-KFZKZ) to Reference Key 3 (BSEG-XREF3) of Accounting Document created for Asset Dep Posting?
    I already tried Subsitution in GGB1 but it does not permit to create steps for this kind of scenario. If there are user-exits you know please advise me.
    Thanks a lot!

    Hi Cecilio ,
    I'm sorry, it's not possible to fill manually the fields BSEG-XREF 1 - 3,
    regards Bernhard

  • Calculation of Tax Depreciation - India

    Hi,
    We are following the New GL Accounting setup to our US based client in India.
    My Leading Ledger (US) is Jan u2013 Dec and Non-leading Ledger (India) is April u2013 March.
    We also created different Fiscal Year variants (Year Dependent) as S1 and IN for both the Co codes.
    I have defined and activated Non-leading ledger for India Company code.
    All the transactions were posting correctly as per Leading and Non-leading ledgers except Tax Depreciation in Fixed Assets.
    I was able to post correct depreciation for India Company Act Depreciation area with a stated percentage. But the Tax depreciation area calculation is incorrect.
    Required Depreciation Calculation for Tax Depreciation Area as below:
    For Acquires & Additions:
    Rule1: If it is >=180 days (as per Non-leading ledger Fiscal year) the system should calculate depreciation as stated percentage. Eg: 10%
    Rule2:
    If it is <180 days (as per Non-leading ledger Fiscal year) the system should calculate depreciation of 50% on stated percentage. Eg: Stated percentage is 10%, then it should be 5%.
    I already copied India standard setting IT & NL to my fiscal year variant in Calender assignments of Period controls. But when I tried to post the Tax Depreciation in the month of March as per Non-leading ledger, the system is calculating full Depreciation as per Rule1 instead of 50% of stated Percentage in Rule2.
    Can any one of you kindly advice how to setup the Multi levels methods and Period controls for Tax Depreciation key in Indian Tax Depreciation area as per above requirement. I have been working on this since one week. Please help me.
    Thanks for the help.
    Regards,
    JBC

    I am not sure if this work.. but give it a try.
    In your multi-level method line 1 put Acq yr = 9999, Year = 999, Per = 6, Percent = 50
    line 2 put Acq yr = 9999, Year = 999, Per = 12, Percent = 10
    Now what i dont understand from your question is that is this rule for the first acquisition year only?
    If so, also try with Acq yr = 9999, Year = 1 (so only the first acq yr will get calculated based on the percentage).
    Try this in your sandbox and let me know if it works or not!!

  • Mid quarter depreciation without setting the mid period

    Hello All,
    Thank you for taking time to read my question.
    When AA went live, half monthly data for the company code was not maintained (while it should have been maintained 15 as the mid period). Since the half period is not configured, I am not able to set the mid month setting in OAVH. Now the taxes are calculated with an additional 15 days when specifying mid quarter when using period method control 005. The company code went live last year October and SAP will not allow updating the mid period from blank to 15.
    Have anyone dealt with such a situation? I planned on defining a new period control key and assign it to a custom period method control. But still not able to get the depreciation value correct to the mid quarter.
    Any help is greatly appreciated.
    AM

    What do you mean without mid period setting? Is this OAVH? Anyway, you can try this.
    Use of Half Months in the Company Code
    In this step, you determine the company codes in which you want to use half periods. In this way, you can calculate depreciation in these company codes on the basis of half months or half periods.  Using this method, you can work with 24 periods in Asset Accounting, although the fiscal year version in Financial Accounting has only 12 normal periods (without using a different fiscal year version for Asset Accounting).
    You should be aware, however, that the specifications for periods in the transactions in Asset Accounting (such as, useful life) have to be based on whole periods (12).
    Example
    Half periods are, for example, necessary to represent the "mid quarter/month rule". This is a version widely used in the U.S.A. With this rule, it is important for the determination of depreciation whether an acquisition takes place in the first or the second half of a period.
    Caution
    When you specify the use of half periods in the definition of an asset company code, half periods are automatically specified in all other company codes that use this fiscal year version.
    You cannot use half periods with non-calendar fiscal months.
    You cannot take back the use of half periods once the specification has been made.  It is noted internally by the system in the asset master records.
    Requirements
    The number of the posting periods in the fiscal year version used must correspond to the number of calendar months (12).
    Activities
    1. Specify the use of half periods by entering the date (for example, the 15th) for the middle of the period for the company codes.
    2. If you have defined period controls yourself
    (see Period Control),
    you must provide for the use of half periods in their assignment rules. For monthly and quarterly periods, corresponding period controls have already been created as standard in the system.
    Thanks!
    Jhero

  • Changing Depreciation Key for Tax for closed fiscal years -

    Hello,
    Hoping someone can help me with this question - Is it possible to change the depreciation key for closed fiscal years - we need to change it for Tax - books. And if yes - does it mean we need to open closed fiscal years ??
    Thank you,
    Richa

    Hi,
    you will need to open the FI and AA periods. After changing the depreciation keys do the necessary dep run and close the books in the correct sequence.There should not be problem.

  • SAP questions

    Dear all,
    Im studying for my FI certification.
    Can you please help me answering below questions. I will then do the questions myself and compare them with the anwers so that I have an idea if I'm ready for the exam
    kind regards,
    CAMILLA
    1. A chart of accounts ( Multi Choice)
    A. can be allocated to multiple company code
    B. can be defined as the group chart of accounts
    C. only contains definitions for G/L accounts
    D. can only allocated to one company code.
    2. A client. ( Single Choice)
    A. may only contain a single chart of accounts
    B. may contain multiple charts of accounts
    C. may only use one currency type
    D. may only have one controlling area
    3. Identify the correct statement(s) relating to how the main
    business processes are integrated in the SAP R/3 System. ( Multi
    Choice)
    A. A purchase requisition is a documented request to purchase
    goods or services. In SAP it can be created manually or
    automatically.
    B. A goods receipt is the recording of the movement of materials
    into the warehouse. In SAP, a financial document which updates the
    inventory account and an accrued liability account is created
    C. The Invoice receipt and verification process compares the
    vendor invoice with the purchase order and goods receipt. However,
    the corresponding financial transaction must be entered through the
    financial module of R/3.
    D. In SAP, payment processing reduces the liability to a vendor
    and a company¡¯s cash balance, records discounts taken and disburses
    payment.
    E. A customer delivery is the transfer of the ownership of
    goods. A customer delivery includes, creation of a delivery
    document, picking the goods for shipment; physically transferring the
    goods to the customer and financially recording the goods issue.
    4. Identify the correct statement(s) regarding organizational
    elements within the R/3 System. ( Multi Choice)
    A. The Sales area combines the sales organization, distribution
    channel, and division.
    B. The Purchasing Organization is responsible for the purchasing
    for the only one plant.
    C. A plant is a location in which inventory quantities and values
    are stored or manufactured.
    D. A Controlling area can comprise several company codes using
    different chart of accounts but must operate in the same currency.
    E. A profit center is used to generate income statements and
    operating profit statements.
    5. Identify the correct statements. ( Multi Choice)
    A. All areas of an organization that are to be integrated into
    the R/3 Production system should be included under one client.
    B. The term ¡°client dependent¡± refers to tables or data that
    relate only to the client which was accessed during the log on
    process.
    C. Due to the integrated nature of SAP, there are certain core
    organization element that cut across the modules. Client and company
    code are two of these core elements.
    D. To determine the number of clients required, the focus is
    placed on data access and sharing strategies.
    6. Which of the following statements is true ? ( Single Choice)
    A. A Company code can belong to more than one controlling area.
    B. A plant must be allocated to a company code
    C. A controlling area and a company code must have the same local
    currency.
    D. A business area and a company code are assigned to each other
    in the corporate structure IMG
    7. Identify the correct statements relating to the
    Implementation Guide( Multi Choice)
    A. When creating a project in the IMG, the application areas and
    countries are selected from the Enterprise IMG
    B. The number of implementation activities can be reduced by
    creating Project IMG views, such as a view for ¡°mandatory activities¡±
    C. The Project IMG must include all customizing activities for all
    R/3 applications.
    D. The SAP Reference IMG is generated for the application modules
    to be implemented in a company and for the different countries
    E. Customizing transactions can be accessed from the SAP
    Reference IMG, Project IMG and the Project views.
    8. What characteristics do roles have in the Workplace? ( Multi
    Choice)
    A. Roles describe business processes in a company
    B. Roles contain a collection of activities that a user who is
    assigned to this role can execute
    C. Roles represent a range of executable functions in a company
    that users can assign themselves to
    D. The authorizations required to execute the assigned functions
    are automatically linked to roles
    E. Roles contain MiniApps
    9. What content elements of the mySAP.com Workplace are provided?
    (Multiple)
    A. The Workplace contains role-based navigation options for
    R/3 transactions, reports, and other links to various systems.
    B. The Workplace is a completely personalizable working
    environment.
    C. The Workplace contains role-specific information and role-
    based access to the Marketplace.
    D. The Workplace is used exclusively as a LaunchPad for
    Employee Self Service with information for employees.
    E. The Workplace contains personal Favorites.
    10. What are MiniApps?(Multiple)
    A. MiniApps are small applications that are started automatically
    when the Workplace is called.
    B. Miniapps are small applications that can be called from the
    Workplace.
    C. MiniApps are small applications that communicate continuously
    with the implemented SAP products
    D. MiniApps are Java Applets that are loaded from the Workplace
    to the user client.
    E. MiniApps are role-specific applications that can contain more
    activity options.
    11. What system tool allows you to add graphics, re-arrange fields,
    add pushbuttons and change input fields into radio buttons?(Single)
    A. GuiXT
    B. GuiCapture
    C. SAPGui
    D. SAPShow
    E. Profile Generator
    12. Which of the following can you add to a Favorites list?(Multiple)
    A. Files
    B. Transactions
    C. Web address
    D. Reports
    E. User menus
    13. What does SAP call the new asset value display transaction?
    (Single)
    A. Item Explorer
    B. Accounts Explorer
    C. Accounts Viewer
    D. Asset Viewer
    E. Asset Explorer
    14. Which of the following statements about year-end closing are
    correct?(Multiple)
    A. You carry out year-end closing before the fiscal year change.
    B. During year-end closing, the program checks if the year-end
    closing can be carried out.
    C. Once the year-end closing was successfully completed, the system
    automatically changes certain entries in Customizing (closed fiscal
    year)
    D. You cannot create and post to new fixed assets until The year-
    end closing is successfully completed
    E. You can only conduct year-end closing on June 30 or December 31
    of each year.
    15. What steps have to be completed before you can generate asset
    classes form G/L accounts? (Multiple)
    A. Account selection
    B. Account determinations
    C. Number range intervals
    D. Screen layout variants
    E. Asset classes
    16. For each depreciation area you need to specify whether you want to
    (Multiple)
    A. post depreciation at periodic intervals to the general ledger
    B. post asset values at periodic intervals
    C. automatically post values online
    D. use index classes
    E. post to business areas
    17. Please click on the button next to the correct answer.(Multiple)
    A. The business area can run across many company codes, i.e.
    all company
    codes can post in all business areas.
    B. A company code may belong to more than One Controlling Area.
    C. Each company codes uses exactly one chart of accounts and one
    chart of
    depreciation.
    D. Business areas are used to create internal balance sheets and
    income statements.
    18. The time of the first acquisition posting to the asset sets the
    following fields in the master of asset(Multiple)
    A. the depreciation start date per depreciation area
    B. the cost enter to be hit through depreciation
    C. the date of capitalization
    D. the depreciation key
    19. Usually one Chart of Depreciation is defined for each country.
    At which level is the chart of Depreciation created?(Single)
    A. at Company Code level
    B. at Client level.
    C. at Chart of accounts level.
    D. at Business area level.
    E. at System level.
    20. What are the functions asset class?(Multiple)
    A. Asset number assignment.
    B. Cost Center determination.
    C. Screen layout
    D. Account allocation
    E. Definition of default value.
    21. Which of the following statements about asset data transfer from
    a previous system are correct?(Multiple)
    A. Transferring asset data ¡®during the fiscal year¡¯ is only
    possible on july 1 of
    the given year.
    B. When you transfer asset data ¡®during the fiscal year¡¯, the
    system
    automatically determines replacement values and insurable values
    using batch input.
    C. During the asset transfer, you can enter either the APC or
    the net book value.
    D. During the asset transfer, you can specify the order in
    which the depreciation are apper.
    E. When you transfer asset data ¡®during the fiscal year¡¯,you
    must enter the last depreciation posting period from your previous
    system in the SAP R/3 System.
    22. Intergration with MM: An asset purchase order is created in
    Purchasing. The goods receipt is posted on a value basis. Invoice
    verification then posts the invoice.
    What is the name of the auxiliary account used for all of these
    transactions?(Single)
    A. MM/FI clearing account.
    B. GR/IR clearing account.
    C. Asset purchasing clearing account.
    D. Asset acquisition clearing account.
    E. Vendor asset acquisition clearing account
    23. What additional functions do asset classes offer?(Multiple)
    A. Specify required entry fields for asset master data
    B. Enter default values for asset master data
    C. Enter default values entries for depreciation area
    D. Enter allowed entries for user fields
    E. Define allowed company codes
    24. Which of the following statements about manual depreciation (for
    example unplanned depreciation in FI-AA) area true?(Multiple)
    A. You cannot post manual depreciation in FI-AA.
    B. Manual depreciation is posted immediately after entry(real
    time).
    C. Manual depreciation is initially shown as a planned value after
    entry and only posted when the depreciation posting report is run.
    D. Manual depreciation usually only applies to depreciation
    areas which you choose when you enter the document.
    E. After entering manual depreciation in FI-AA., you also need to
    enter it manually in FI/CO.
    25 .Which correspondence extracts all items in the chosen period from
    a customer¡¯s account displays the balance carried forward balance and
    a closing balance of the account ?(Single)
    A. Payment advice
    B. Payment notice
    C. Account statement
    D. Dunning notice
    26. Which of the Following statements about automatic payment are
    correct ? (Multiple)
    A. In automatic payment procedures, all incoming invoices as of the
    second dunning level are paid automatically
    B. Direct debiting or bank collection can be used in automatic
    payment procedures to clear customer invoices
    C. Open items posted to G/L accounts can be cleared using the
    payment program
    D. Special G/L transactions(down payment)can be posted using the
    payment program
    E. The payment program can pay vendor invoices using wire transfers
    and checks
    27. Imagine the following scenario:A company wants to execute a
    payment run on a daily basis and process several company codes at the
    same time. If the amount exceeds US$ 1000, the vendors are to be paid
    by bank transfer, amounts less than US$ 1000 are to be paid by check.
    The customer has two house banks and wants all checks to be processed
    by bank A and all¡¦ (Multiple)
    A You store variants for print programs within customizing. Here you
    can specify that the information is to be output to a data carrier
    B. You specify, per house bank, whether payments are to be made
    by check only or also by transfer
    C. You specify the payment method from within the application,in
    the master record
    D. The payment proposal of the automatic payment program can
    only be displayed
    E. You can precisely schedule the print program from within the
    application
    28. According th which criteria does the payment program determine
    and select open items (Single)
    A. posting date and baseline date
    B. document date and posting date
    C. baseline date and payment terms
    D. posting date and cash discount periods
    E. posting date and payment terms
    29. Which of the following statements are true with regard to the
    customizing setting for banks in the automatic payment run ? (Multiple)
    A. The sequence of the banks for processing outgoing payments is
    selected randomly
    B. You can only determine one payment method per house bank
    C. You can select several payment methods per country
    D. You can specify by bank and method the anticipated number of days
    before the bank account is debited
    E. You can determine the banks to be used for payments according to
    postal code
    30. Which of the following factors does the systems take into account
    in a payment run ?(Multiple)
    A. Fiscal year variant
    B. Payment method specifications in the IMG
    C. Specifications in the vendor master records
    D. Information in the documents(incoming invoices)
    E. Specifications made when maintaining the payment run parameters
    31. Which of the following statements are correct ?(Multiple)
    A. When creating a House bank, you do not need to specify the
    country.
    B. The payments program can use a different House bank for each
    different payment method
    C. A House bank account can be defined in more than one currency
    D. House bank master data must be created in advance, before
    assigning the House bank to a payment method in the payment program
    configuration
    E. A house bank can be assigned to a business area within the
    payment program configuration
    32. When entering a document using a foreign currency, which date is
    used to determine the exchange rate if the translation date is not
    entered ?(Single)
    A. Posting date
    B. Document date
    C. Entry date
    D. Baseline date
    33. where are posting periods defined?(Multiple)
    A. Posting period variant.
    B. Fiscal year variant.
    C. Field status variant.
    D. Closing period variant.
    34. which of the following statements supports the reversal of a
    document?(Multiple)
    A. The original document contains no cleared line items.
    B. Documents originating in other modules should be corrected there
    to allow the changes to flow naturally through to financial
    accounting.
    C. If a reversal date is not specified, the system reverses the
    document using the posting date of the document to be reversed.
    D. A new document number is created for the reversal document.
    35. Choose the correct statements regarding recurring documents.
    (Multiple)
    A. When creating a recurring document, the valid time period must be
    defined.
    B. The posting date is determined by either the run date or the run
    schedule.
    C. Field values can be changed in recurring document.
    D. After running the recurring document posting, the next run date
    cannot be displayed.
    E. The original recurring document can be deleted from the batch
    input menu.
    36. In manual bank statement customizing, you must (Multiple)
    A. Define an internal activity
    B. Define a posting rule
    C. Define a posting type
    D. Define a currency
    E. Define an account symbol
    37. Which of the following statements about manual planning are
    correct?(Multiple)
    A. The planning type determines which bank accounts the plan amount
    to be inputted to.
    B. The expiration date shows how long the payment advice is included
    in planning.
    C. The payment advices for editing can be changed, archived, or
    reactivated.
    D. Archived payment advices are included in planning till the value
    date.
    E. The retention periods are determined by the bank account name.
    38. Bank accounts should be controlled as follows when Cash
    Management is in use:(Multiple)
    A. Open items are managed for both the main bank account and the
    bank clearing account.
    B. Both the main bank account and the bank clearing account
    permit line item displays.
    C. The main bank account and the bank clearing account use the
    same sort key.
    D. The value date in the field status string for both the main
    bank account and the bank clearing account must accept entry.
    E. The cash-relevance flag in the master records for both the
    main bank account and the bank clearing account must be set.
    39. Which of the following statements about creating customer master
    records are correct? (Multiple)
    A. An account group always gets assigned to a customer.
    B. The company code is always a required entry.
    C. The account number may be assigned by the user externally.
    D. Information on each screen may be defined in configuration as
    mandatory, suppressed or optional, depending upon the account group.
    E. Information on each screen may be defined in configuration as
    mandatory, suppressed or optional, depending upon the company code.
    40. Which of the following statements are correct? (Multiple)
    A. A customer master is divided by client level and company code
    level.
    B. In case of one-time customer you have to enter the customer¡¯s
    address in the document itself.
    C. Address, control data, and reconciliation account are included in
    the client level of the customer.
    D. The most efficient way to create master records is to work with
    the external number range not internal number range.
    41. Which of the following statements are correct? (Multiple)
    A. If a customer is also a vendor, the system can include
    outstanding Accounts Receivable invoice items in payment program.
    B. If a customer is also a vendor, the system can include
    outstanding Accounts Payable invoice items when you clear incoming
    payment receipts for the customer.
    C. The reconciliation account defined on the customer master
    record is an account used to reconcile CO transactions back to FI.
    D. All customer belonging to the same account group must be
    assigned to the same reconciliation account.
    E. The alternative payer is used to transfer outstanding
    receivable item to the alternative payer¡¯s account.
    42. Bulk change of line item - this function allows you to change a
    whole group of line items simultaneously, instead of having to change
    individual items in the documents. What data can you change using
    this function?(Multiple)
    A. The reconciliation account
    B. The company code
    C. The payment terms and payment block
    D. The house bank and payment method
    43. Which of the following order types are internal orders?(Multiple)
    A. Result analysis orders for posting accrual costs in CO.
    B. Capital investment orders for creating assets.
    C. Maintenance orders.
    D. Sales orders for make-to-order function
    E. CO production orders.
    44.Which of the following statements are correct regarding Internal
    Orders?(Single)
    A. Planning transactions are allowed under any status.
    B. Once an order has been released, only closing entries can be
    made.
    C. Transactions can be allowed or disallowed depending in the
    order status.
    D. Additional order status categories can be created in the
    order master.
    45.Which of the following statements is true about CO production
    orders?(Multiple)
    A. It is an internal order used to control production from a
    cost accounting point of view.
    B. Bills of materials and routings are required.
    C. It is not possible to post goods movements to and from the
    order.
    D. You can post primary costs from Financial Accounting to the
    order.
    E. You can post secondary costs from overhead calculation to
    the order.
    46.Which statements are true regarding direct and indirect activity
    allocations? (Multiple)
    A. If both the amount of the activity used by the receiver and
    the total output activity quantity of the sender can be measured,
    then indirect activity allocation is used.
    B. If the amount of activity consumed by the receiver is not
    measured, then indirect activity allocation is used.
    C. Manual activity input planning cannot be performed if actual
    activities are allocated indirectly.
    D. If direct activity allocation is used, the total output
    activity quantity is determined by summing all of the activity
    quantities allocated.
    47. The primary cost element is one type of master data in
    Controlling. Before you can create a new primary cost element,
    certain prerequisites need to be fulfilled.
    Which of the following conditions must be fulfilled BEFORE you can
    create primary cost elements?(Multiple)
    A. The controlling area must be defined.
    B. The cost center must be defined.
    C. The G/L account must be defined.
    D. The plant must be in the system.
    E. The business areas have been defined.
    48. What is the difference between distribution and assessments?
    (Multiple)
    A. Distribution can be made for both planned and actual figures;
    assessments cannot.
    B. Distributions can be made using statistical key figures;
    assessments cannot.
    C. Distributions are used when the original cost information is
    necessary on the receiver; assessments are used when this information
    is not necessary on the receiver.
    D. Distributions are made using the original primary cost
    elements; assessments are made using secondary cost elements

    Hi,
          I am sending only answers.If wrong pls correct me.
    1.A,C
    2.C
    3.A,B,D,E
    4.ACE
    5.ABCD
    6.B
    7.BE
    8.ALL
    9.ABC
    10.ABCDE
    11.A
    12.ABCD
    13.E
    14.BC
    15.ALL
    16.ABC
    17.ACD
    18.AC
    19.B
    20.ACDE
    21.DE
    22.B
    23.ABCD
    24.CD
    25.C
    26.BDE
    27.BCE
    28.C
    29.CDE
    30.BCDE
    31.BDE
    32.A
    33.B
    34.ALL
    35.ABC
    36.ALL
    37.ABC
    38.A
    39.ACDE
    40.AB
    41.ABE
    42.CD
    43.ABCE
    44.CD
    45.ACDE
    46.BD
    47.AC
    48.CD
                         I have sent answers for the questions.If any answer is wrong pls correct me.
    Assign points if useful
    Regards,
    S.VINAYA KUMAR

  • Fico questionns

    Subject: Interview Questions FICO
    Result: I need Answers for the following questions
    1.     What is meant by zero invoices?
    2.     How u create vendor and customer GL accounts in real time?
    3.     APP configuration steps?
    4.     Where u creating qadb in sap?
    5.     In fi-mm integration how u post cetral exise?
    6.     what is  meant settlement rule in controlling?
    7.     How u maintain cross company codes  settings for inter company payments?
    8.     How u maintain head office settings in sap?
    9.     What is meant by costing variant in product costing?
    10.     What is maximum possible exchanges deviation in u r project?
    11.     Print out for customers and vendors?
    12.     How can u change date settings?
    13.     What type of closing entries u have passed?
    14.     Hoe do u configure to vendor clearence?
    15.     In controlling how u can do budget control for statistical postings?
    16.     In asset accounting how u prepare capital budget?
    17.     What is difference between plan delivery and UN planed delivery costs?
    18.      IN ALE we can transfer data to cross company codes or it is useful only for business partner?
    19.     Valuation class is it assigned to material?
    20.     Functional areas where we assign functional areas?
    21.     Can u make down payments through app?
    22.     What is base line item?
    23.     Reason codes?
    24.     When mm integration takes place entry at goods delivery, goods issued billing?
    25.     What is the key that used in mm integration for foreign exchange dif?
    26.     Techniques used for data migration?
    27.     Difference between report painter and report writer?
    28.     Clearing procedure for GR/ IR ACCOUNT?
    29.     Asset master data uploading?
    30.     Difference between realized and UN realized exchange gain?
    31.      B.R.S CONFIGURATIONS?
    32.     Document entry for po?
    33.     WE have 3 banks and available balance is zero what would be error?
    34.     Can u create own document if yes how?
    35.     Foreign currency settings and revaluation?
    36.     What is ranking order in app?
    37.     Alternative payee concept?
    38.     Customer himself is vendor and vice versa concept?
    39.     Hoe the tax depreciation is excuted?
    40.     How the asset procurement takes place?
    41.     How do u upload asset through SCAT?
    42.     How do upload asset at beginning and middle?
    43.       Where do u control header data?
    44.     How do u know to which customer u need to dunning?
    45.     Special GL in balance sheet procedure?
    46.     Sales cycle in integration corresponding accounting entries and exactly which point gi will get effects?
    47.     IS it possible to give depreciation key to multiple depreciation areas?
    48.     Parallel currency set up?
    49.     WHY DO U REQUIRE Parallel currency?
    50.     Is it possible to give us currency for one company code and INR for another comp code?
    51.     Does MM SD HAVE DIFFERENT POSTING PERIODS IN DIFFERENT FROM FI?
    52.     OPENING AND CLOSING PERIODS DONE IN MM
    53.     How many currencies can be give to a GL Accounts?
    54.     Are they any SLA’S IN PRODUCTION?
    55.     How did u login into system and solved tickets?
    56.     Integration FI-MM AND SD full cycle and accounting entries?
    57.     From G/L accounts data is not getting update in special purpose ledger (data flow not happening for some company codes) what all be reason?? How to rectify it?
    58.     I wish to know the total procedure that we follow for support project i.e. how we get the tickets and how we will send back to client and tool we use? And whts mainly difference between 4.7eee and 6.0ecc what does ecc mean?
    59.     What is global company code? Have u worked on that?
    60.     What Sap standard organization structure?
    61.     What is T code for uploading bulk vendor master data?
    62.     What do u means by goods clearing? What are the journal entries for clearing of goods?
    63.     What do u means by cost carrier?
    64.     IN APP if we want to create cheques.one stanrd variant name available in SAP. What is name?
    65.     How many ways we can create GL accounts?
    66.     Where we assign functional area?
    67.     How many kinds of number ranges are there?
    68.     Reason codes meaning?
    69.     Organizational structure of FI?
    70.     Organizational elements in FI?
    71.     Payment method supplement?
    72.     MM integration entry for goods deleviry, goods issued and billing?
    73.     Difference between BAL interest calculation and item interest calculation?
    74.     Where u customizes particular payments?

    Subject: Interview Questions FICO
    Result: NO ONE WOULD HAVE THAT PATIENCE AND TIME TO ANSWER ALL YOUR QUESTIONS.TRY EXPLORING ON YOUR OWN.

  • Sample JAVA Mobile Server Publish code, and technical questions

    Dear Oracle technical representative, or user:
    I need to programmatically create, and remove publications using the pure JAVA classes of Consolidator, ConsolidatorManager, and ResourceManager for the Mobile Server in OracleLite 9i Release 5.0.1. On the creation side I have managed to get the example found in the directory OraLite501\Mobile\Server\Sample\Sample11 functioning using my installation parameters. I had a very difficult time of it because (1) the sample11 code fails to open an jdbc connection to the Mobile Server Repository Schema with the function Consolidator.OpenConnection, and (2) the ResourceManager function openConnection will not work unless the Webtogo.ora file is in the current working directory. The ConsolidatorManager function OpenConnection may also not work unless the Webtogo.ora file is in the current working directory, but I did test the hypothesis. Both of these problems need to be addressed in the sample11 code, and documentation to save other software developers from wasting hours of their valuable time. See line 223, 386, and 448 in the Publish.Java code that follows this problem description.
    With the above two problems resolved, I can now programmatically create publications, but no hints on how to programmatically remove a publication exist in the documentation. The application I am developing will require the dynamic creation, and removal of publications. Also, when developing applications the complete removal of a publication is absolutely necessary when you have botched a publication. Thus my first question is What sequence of ResourceManager, and ConsolidatorManager function calls will completely remove a Publication?.
    I also have two issues remaining with the code that I have so far developed. These issues will most likely be resolved, when I obtain instructions on how to completely remove a publication, and associated users. But, perhaps not. Referencing the Publish.java file that follows this problem description,
         1. The ResourceManager function dropUser does not drop a user. See my comments, and code beginning at line 277 in Publish.java. Do I need to de-instantiate all subscriptions, and unsubscribe all subscription users before calling this function.? I think, I tried the de-instantiate, unsubscribe sequence without success, but in the confusion I may not have made the try.
         2. How do I get rid of an index created with the ConsolidatorManager function DropPublicationItemIndex?. My comments on this problem begin at line 522 in Publish.java. For some reason the DropPublicationItemIndex function call made below line 448 does not work. What function calls are required prior to calling the DropPublicationItemIndex function?
    Throughout the Publish.java code, I have made comments about some of the problems that I have had in getting the sample11 code working for my installation parameters. I think these comments should help the programmers maintaining the ResourceManager, and ConsolidatorManager code improve the stability of the programs. Please pass these comments, and attached files to the appropriate individuals,
    if you are in a position to do so.
    The other files that follow the Publish.java code are
         1. Compile.bat - Compiles Publish.java using j2sdk1.4.0.
         2. Run.bat - Executes Publish using \ j2sdk1.4.0\jre\server\jvm.dll.
         3. Webtogo.ora
         4. tnsnames.ora for the Mobile Server.
         5. tnsnames.ora for the Database.
    Feel free to access my server if you need to do so in resolving my problems. The parameters you will need to gain access can be found at the top of Publish.java, and in the included *.ora files.
    Thanks,
    Thomas G. Matney
    [email protected]
    (662)325-2791
    //Start of Publish.java code
    // Oracle HTTP Server URL = http://yggdrasill.cfr.msstate.edu:7778
    // = http://130.18.168.225:7778
    // Mobile Server URL = http://yggdrasill.cfr.msstate.edu/webtogo/startup
    // = http://130.18.168.225/webtogo/startup
    // Mobile Server Control Center URL = http://yggdrasill.cfr.msstate.edu/webtogo
    // = http://130.18.168.225/webtogo
    // Mobile Server Control Center URL = http://yggdrasill.cfr.msstate.edu/webtogo
    // = http://130.18.168.225/webtogo
    // Mobile Server Control Center username = administrator
    // Mobile Server Control Center password = admin
    // Mobile Server URL = http://yggdrasill.cfr.msstate.edu/webtogo/startup
    // = http://130.18.168.225/webtogo/startup
    // Mobile administrator username = fiafield // Schema FIAFIELD on FIA.CFR.MSSTATE.EDU
    // Mobile administrator password = fiafield // Username and password are the same
    import java.sql.SQLException;
    import java.sql.*;
    import oracle.lite.sync.Consolidator;
    import oracle.lite.sync.ConsolidatorManager;
    import oracle.mobile.admin.ResourceManager;
    import oracle.mobile.admin.ResException;
    import oracle.sql.*;
    import oracle.jdbc.*;
    import oracle.mobile.admin.*;
    public class Publish
    // Schema names and usernames are not case sensitive.
    // UN fiafield = FIAFIELD
    // SCHEMA fiafield = FIAFIELD
    // Schema name/Username, and password used on creation of Mobile Repository
    static String CONS_SCHEMA = "fiafield";
    static String DEFAULT_PASSWORD = "fiafield";
    static String admin_jdbc_url = "jdbc:oracle:oci8:@WEBTOGO.WORLD";
    static String thin_jdbc_url =
    "jdbc:oracle:thin:@YGGDRASILL:1521:FIA.YGGDRASILL.CFR.MSSTATE.EDU";
    static String Publication;
    static String CreateTreeTableShortNames =
    "CREATE TABLE FIAFIELD.ZMTR1TBL("
    + "id FLOAT,"
    + "subp FLOAT,"
    + "rnum FLOAT,"
    + "st FLOAT,"
    + "unit FLOAT,"
    + "cnty FLOAT,"
    + "plot FLOAT,"
    + "cyc FLOAT,"
    + "scyc FLOAT,"
    + "tree FLOAT,"
    + "ncpt FLOAT NULL,"
    + "dist FLOAT NULL,"
    + "diam FLOAT NULL,"
    + "dmht FLOAT NULL,"
    + "dmck FLOAT NULL,"
    + "spec FLOAT NULL,"
    + "lang FLOAT NULL,"
    + "nctc FLOAT NULL,"
    + "stat FLOAT NULL,"
    + "util FLOAT NULL,"
    + "deca FLOAT NULL,"
    + "crat FLOAT NULL,"
    + "ccls FLOAT NULL,"
    + "az FLOAT NULL,"
    + "cond FLOAT NULL,"
    + "tlen FLOAT NULL,"
    + "alen FLOAT NULL,"
    + "lmet FLOAT NULL,"
    + "nctg FLOAT NULL,"
    + "rcul FLOAT NULL,"
    + "ncpd FLOAT NULL,"
    + "dead FLOAT NULL,"
    + "mor FLOAT NULL,"
    + "modm FLOAT NULL,"
    + "dml1 FLOAT NULL,"
    + "dmt1 FLOAT NULL,"
    + "dms1 FLOAT NULL,"
    + "dma1 FLOAT NULL,"
    + "dml2 FLOAT NULL,"
    + "dmt2 FLOAT NULL,"
    + "dms2 FLOAT NULL,"
    + "dma2 FLOAT NULL,"
    + "dml3 FLOAT NULL,"
    + "dmt3 FLOAT NULL,"
    + "dms3 FLOAT NULL,"
    + "dma3 FLOAT NULL,"
    + "dbtr FLOAT NULL,"
    + "dbsp FLOAT NULL,"
    + "nxtn FLOAT NULL,"
    + "dbds FLOAT NULL,"
    + "dbaz FLOAT NULL,"
    + "psta FLOAT NULL,"
    + "fiat FLOAT NULL,"
    + "fhmt FLOAT NULL"
    + ")";
    static String CreateTreeTableLongNames =
    "CREATE TABLE FIAFIELD.ZMTR1TBL("
    + "ID FLOAT,"
    + "SUBPLOT FLOAT,"
    + "RECORD_NUMBER FLOAT,"
    + "STATE FLOAT,"
    + "UNIT FLOAT,"
    + "COUNTY FLOAT,"
    + "PLOT FLOAT,"
    + "CYCLE FLOAT,"
    + "SUBCYCLE FLOAT,"
    + "TREE FLOAT,"
    + "NC_PLOT_TYPE FLOAT,"
    + "DISTANCE FLOAT NULL,"
    + "DIAMETER FLOAT NULL,"
    + "DIAMETER_HEIGHT FLOAT NULL,"
    + "DIAMETER_CHECK FLOAT NULL,"
    + "SPECIES FLOAT NULL,"
    + "LEAN_ANGLE FLOAT NULL,"
    + "NC_TREE_CLASS FLOAT NULL,"
    + "STATUS FLOAT NULL,"
    + "UTILIZATION FLOAT NULL,"
    + "DECAY FLOAT NULL,"
    + "CROWN_RATIO FLOAT NULL,"
    + "CROWN_CLASS FLOAT NULL,"
    + "AZIMUTH FLOAT NULL,"
    + "CONDITION FLOAT NULL,"
    + "TOTAL_LENGTH FLOAT NULL,"
    + "ACTUAL_LENGTH FLOAT NULL,"
    + "LENGTH_METHOD FLOAT NULL,"
    + "NC_TREE_GRADE FLOAT NULL,"
    + "ROTTEN_CULL FLOAT NULL,"
    + "NC_PREVIOUS_DBH FLOAT NULL,"
    + "CAUSE_OF_DEATH FLOAT NULL,"
    + "MORTALITY_YEAR FLOAT NULL,"
    + "MO_DAMAGE FLOAT NULL,"
    + "DAMAGE_LOCATION1 FLOAT NULL,"
    + "DAMAGE_TYPE1 FLOAT NULL,"
    + "DAMAGE_SEVERITY1 FLOAT NULL,"
    + "NC_DAMAGE_AGENT1 FLOAT NULL,"
    + "DAMAGE_LOCATION2 FLOAT NULL,"
    + "DAMAGE_TYPE2 FLOAT NULL,"
    + "DAMAGE_SEVERITY2 FLOAT NULL,"
    + "NC_DAMAGE_AGENT2 FLOAT NULL,"
    + "DAMAGE_LOCATION3 FLOAT NULL,"
    + "DAMAGE_TYPE3 FLOAT NULL,"
    + "DAMAGE_SEVERITY3 FLOAT NULL,"
    + "NC_DAMAGE_AGENT3 FLOAT NULL,"
    + "DB_TREE FLOAT NULL,"
    + "DB_SPECIES FLOAT NULL,"
    + "NEXT_NUMBER FLOAT NULL,"
    + "DB_DISTANCE FLOAT NULL,"
    + "DB_AZIMUTH FLOAT NULL,"
    + "PREVIOUS_STATUS FLOAT NULL,"
    + "FIA_TREE_NUMBER FLOAT NULL,"
    + "FHM_TREE FLOAT NULL"
    + ")";
    public static void main(String argv[]) throws Throwable
    // Publish - an OKAPI sample
    if(argv.length == 2)
    CONS_SCHEMA = argv[0] ;
    DEFAULT_PASSWORD = argv[1] ;
    //create required tables using standard jdbc
    //DriverManager.registerDriver ((Driver)Class.forName ("oracle.jdbc.driver.OracleDriver").newInstance ());
    DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
    Connection c = null;
    Statement s = null;
    try
    // Open connection to Mobile Repositoty/FIAFIELD schema as SYSTEM.
    // Need the ability to grant resources, and connection to Mobile Repository user
    //c = DriverManager.getConnection ("jdbc:oracle:oci8:@WEBTOGO.WORLD", "SYSTEM", "phwphw" );
    // Remote connection. See attached webtogo.ora.
    c = DriverManager.getConnection ("jdbc:oracle:oci8:@WEBTOGO.WORLD.YGG",
    "SYSTEM", "phwphw");
    s = c.createStatement ();
    try
    s.executeUpdate("DROP table FIAFIELD.ZMTR1TBL");
    catch (SQLException ee)
    ee.printStackTrace ();
    try
    s.executeUpdate(CreateTreeTableShortNames);
    catch (SQLException ee)
    ee.printStackTrace ();
    try
    s.executeUpdate("alter table FIAFIELD.ZMTR1TBL add constraint"
    +" zmtr1tbl_pk primary key(subp, tree)");
    catch (SQLException ee)
    ee.printStackTrace ();
    // Line 223 // create consolidator publications.
    try
    // *****!!!!! Unless the Webtogo.ora file is in the current working
    // directory the connection is not made. This version of the resource
    // manager must be looking for the file in the old 8i Mobile default
    // directory. This is a definite problem. If the code was working, the
    // addition of the webtogo.ora should have affect on the functionality
    // of the code.
    // The connection is made to the Mobile Server. At least no exceptions
    // are thrown, provided the webtogo.ora is in the current working
    // directory.
    //oracle.mobile.admin.ResourceManager.openConnection(CONS_SCHEMA, DEFAULT_PASSWORD);
    // I tried making a direct connect to possibly avoid needing to have the
    // webtogo.ora file in the current directory. The direct coonect did not work.
    // You can quickly convince yourself that the webtogo.ora file must
    // be in the current working directory, by running the code with and
    // without the webtogo.ora in the current working directory.
    // The directory OraLiteHome\Mobile\Server\bin is in the PATH after
    // after installation but the extension .ora is not in PATHEXT. The
    // OraLite installer should put .ora in PATHEXT. I tried adding .ora
    // to the PATHEXT, but it still could not find thw webtogo.ora file,
    // and it should have. What is going on? I am a bit rusty on DOS so
    // I may not have thing right.
    // OraLiteHome\Mobile\Server\bin is the residing directory for
    // the functional copy of the webtogo.ora file.
    oracle.mobile.admin.ResourceManager.openConnection(
    CONS_SCHEMA,
    DEFAULT_PASSWORD,
    "jdbc:oracle:oci8:@WEBTOGO.WORLD");
    catch(ResException ee)
    ee.printStackTrace (); // NULL Pointer Exception?
    // The Mobile user is created, and then the function throws a resource exception.
    // This is a serious problem with the code. One would assume that the user
    // is not created if and exception is thrown.
    // This appears to be a bug in the createUser code. The function should return
    // false if the user is not created, and handle, or not throw the exception.
    // The function always returns false. It does return true when a user is created
    // because it throws an exception.
    boolean bIsCreated;
    System.out.println("Begin of why is ResourceManager not dropping users?");
    // Line 277
    try
    // The dropUser function will not drop a user. I have tested the function
    // by creating the user ZMPT1UA in the Mobile Server Control Center
    // http://Yggdrasill.cfr.msstate.edu/webtogo
    // so I know that the user exist.
    // This function throws a ResException but it is not declared correctly
    // since you cannot trap the exception as a ResException. It always tells
    // me the view does not exist. What steps are required to get the function
    // to work? What function calls need to be made prior to calling the dropUser
    // function.
    oracle.mobile.admin.ResourceManager.dropUser("ZMPT1UA");
    catch (Throwable ee)
    ee.printStackTrace (); // NULL Pointer Exception?
    System.out.println("End of why is ResourceManager not dropping users?");
    try
    bIsCreated = oracle.mobile.admin.ResourceManager.createUser(
    "ZMPT1UA",
    DEFAULT_PASSWORD,
    "ZMPT1UA", "S");
    catch (Throwable ee)
    ee.printStackTrace (); // Ignore exception
    // Obsolete or depreciated function, according to documentation?
    oracle.mobile.admin.ResourceManager.commitTransaction();
    // Create CONS_SCHEMA user on the database with the same username, and
    // password as the user on the Mobile Server side. This is why the
    // DriverManager connection was made as SYSTEM/phwphw.
    // Grant ALL to repository, and user on replicated database
    // On the database side there is a user with un = fiafield,
    // and pw = fiafield, which is the same as the Mobile Repository
    // schema name/password pair fiafield/fiafield. Can this duality
    // create a problem? Probably not.
    // Need SYSTEM ADMIN privilages for the next two steps, and that is
    // why the coonection was established as SYSTEM/phwphw.
    // Make user, and grants for Publish to user CONS_SCHEMA, and ZMPT1UA
    System.out.println("Pargress point D");
    try
    s.execute("Create user " + "ZMPT1UA" + " identified by " + DEFAULT_PASSWORD);
    catch (SQLException ee)
    ee.printStackTrace (); // ignore
    try
    s.execute("GRANT ALL ON FIAFIELD.ZMTR1TBL to " + CONS_SCHEMA + " WITH GRANT OPTION");
    catch (SQLException ee)
    ee.printStackTrace (); // ignore
    try
    s.execute("GRANT ALL ON FIAFIELD.ZMTR1TBL to " + "ZMPT1UA" + " WITH GRANT OPTION");
    catch (SQLException ee)
    ee.printStackTrace (); // ignore
    /* This code is not needed to test the code
    // Insert items into table FIAFIELD.ZMTR1TBL from FIAFIELD.HUSKY_TREE
    String Statement =
    "INSERT INTO FIAFIELD.ZMTR1TBL SELECT * from FIAFIELD.HUSKY_TREE WHERE PLOT = 1";
    try
    s.execute(Statement);
    catch (SQLException ee)
    System.out.println("FIAFIELD.HUSKY_TREE was not inserted into FIAFIELD.ZMTR1TBL");
    ee.printStackTrace (); // ignore
    c.commit ();
    catch (SQLException ee)
    ee.printStackTrace ();
    finally
    if (s!= null) try {s.close ();}catch (SQLException e1){}
    if (c!= null) try {c.close ();}catch (SQLException e2){}
    // The Consolidator class is not thread safe, and I will eventually
    // need thread safety. The ConsolidatorManage class is thread safe.
    //Consolidator ConsolidatorXX = new Consolidator();
    ConsolidatorManager ConsolidatorXX = new ConsolidatorManager();
    // Line 386
    // Try opening a connection. Sample11 does not open a connection, but it seems
    // like a logical first thing to do.
    // At least with this connection the DropPublication, and AddPublication functions
    // appear to work, or at least they do not throw exceptions. The DropPublication
    // throws an exception if a publication does not exist? I tested this and indeed
    // if I call the DropPublication function, and do not create the Publication again
    // when I reenter the program the DropPublication function throws an exception, and
    // produces the correct error message(The publication does not exist). There is hope.
    // It is very disturbing that the program fails unless the webtogo.ora file is not
    // in the current working directory. Because the OpenConnection functions of both
    // the ResourceManager, and ConsolidatorManager both appear to need access to the
    // webtogo.ora file, and they are finding them in the current directory, the
    // logical conclusion is that both of the classes are attempting to open the
    // webtogo.ora with the relative path webtogo.ora, and not the absolute path
    // OraHomeLite/Mobile/Server/Bin/webtogo.ora. As this has to be the case, why
    // is this very important fact not in the documentation? Or, am I wrong?
    Connection conn = null;
    try
    //ConsolidatorXX.OpenConnection(CONS_SCHEMA,
    //DEFAULT_PASSWORD);
    //ConsolidatorXX.OpenConnection(CONS_SCHEMA,
    //DEFAULT_PASSWORD,
    //"jdbc:oracle:oci8:@WEBTOGO.WORLD");
    conn = DriverManager.getConnection
    ("jdbc:oracle:oci8:@WEBTOGO.WORLD",
    CONS_SCHEMA,DEFAULT_PASSWORD);
    //conn = DriverManager.getConnection
    //("jdbc:oracle:oci8:@WEBTOGO.WORLD",
    //"SYSTEM","phwphw");
    ConsolidatorXX.OpenConnection(conn);
    catch (Throwable e)
    e.printStackTrace(); //ignore error
    // Publication name
    Publication = "ZMTR1PUB";
    try
    ConsolidatorXX.DeinstantiateSubscription(Publication, "ZMPT1UA");
    catch (Throwable e)
    System.out.println("Could not Deinstantiate Subscription ZMPT1UA");
    e.printStackTrace(); //ignore error
    // Line 448
    // There is no Consolidator.OpenConnection in the orginal sample11.java code.
    // Why?. It appears to be neccessary. The only way I can make the sample11 code
    // or this program work is to open a jdbc connection with the Consolidator.OpenConnection
    // function. I assume that somehow the Consolidator.OpenConnection function was
    // deleted from sample11.java.
    // This try to drop a publication index does not work, because when I try
    // to recreate the index in the following code it warns me that I have a
    // bad column name for the index. So it thinks the index still exist.
    // Why?. How do I get rid of the index?
    try
    ConsolidatorXX.DropPublicationItemIndex("ZMTR1IX1");
    catch (Throwable e)
    e.printStackTrace(); //ignore error
    try
    ConsolidatorXX.DropPublicationItem("ZMTR1ITM");
    catch (Throwable e)
    e.printStackTrace(); //ignore error
    try
    ConsolidatorXX.DropPublication(Publication);
    catch (Throwable e)
    e.printStackTrace(); //ignore error
    try
    //ConsolidatorXX.CreatePublication(Publication, Consolidator.OKPI_CREATOR_ID,
    //"zMTR1.%s", null);
    ConsolidatorXX.CreatePublication(Publication, Consolidator.OKAPI_WINCE,
    "zMTR1.%s", null);
    catch (Throwable e)
    e.printStackTrace(); //ignore error
    try
    ConsolidatorXX.DropPublicationItemIndex("ZMTR1IX1");
    catch (Throwable e)
    e.printStackTrace(); //ignore error
    try
    ConsolidatorXX.CreatePublicationItem("ZMTR1ITM","FIAFIELD","ZMTR1TBL", "F",
    "SELECT * FROM FIAFIELD.ZMTR1TBL", null, null);
    catch (Throwable e)
    e.printStackTrace();
    System.out.println("Begin of how can drop this index and get rid of the warning?");
    // Line 522
    // I defined the index ZMTR1IX1 originally on the variable subp, and did not get
    // any warning. I then changed the index variable for the index to id, and started
    // receiving the warning to check the index column for typographical errors. Even
    // if I change the index variable back to subp, I continue to receive the warning.
    // How do I get rid of the index and the warning, so I can recreate the index for
    // another variable? I quess the real question is "How to I completely remove a
    // publication, and all of its parts so I can start over?
    try
    ConsolidatorXX.CreatePublicationItemIndex(
    "ZMTR1IX1", "ZMTR1ITM", "I", "id");
    catch (Throwable e)
    e.printStackTrace ();
    System.out.println("End of how can drop this index and get rid of the warning?");
    try
    ConsolidatorXX.AddPublicationItem(
    Publication, "ZMTR1ITM", null, null, "S", null, null);
    catch (Throwable e)
    e.printStackTrace ();
    try
    ConsolidatorXX.CreateSubscription(Publication, "ZMPT1UA");
    catch (Throwable e)
    e.printStackTrace ();
    try
    ConsolidatorXX.InstantiateSubscription(Publication, "ZMPT1UA");
    catch (Throwable e)
    e.printStackTrace ();
    try
    ConsolidatorXX.CloseConnection();
    if(conn != null)
    conn.close();
    catch (Throwable e)
    e.printStackTrace(); //ignore error
    // Obsolete or depreciated function, according to documentation?
    oracle.mobile.admin.ResourceManager.commitTransaction();
    oracle.mobile.admin.ResourceManager.closeConnection();
    End of Publish.java code     
    Begin Compile.bat
    set CLASSPATH = .;D:\jdk1.4.0\lib\tools.jar;D:\OraLite501\MOBILE\classes\CONSOLIDATOR.JAR;D:\OraLite501\MOBILE\SERVER\BIN\WEBTOGO.JAR;D:\OraLite501\jdbc\lib\classes12.zip;D:\OraLite501\MOBILE\classes\classgen.jar;D:\OraLite501\MOBILE\classes\servlet.jar;D:\OraLite501\MOBILE\CLASSES\OLITE40.JAR
    set PATH= d:\jdk1.4.0\jre\bin\server;d:\jdk1.4.0\bin;D:\OraLite501\bin;D:\OraLite501\Mobile\Server\bin;D:\oracle\ora92\bin;D:\OraLite501\MOBILE\sdk\bin
    d:\jdk1.4.0\bin\javac Publish.java
    End Compile.bat          
    Begin Run.bat
    set CLASSPATH= .;D:\jdk1.4.0\lib\tools.jar;D:\OraLite501\MOBILE\classes\CONSOLIDATOR.JAR;D:\OraLite501\MOBILE\SERVER\BIN\WEBTOGO.JAR;D:\OraLite501\jdbc\lib\classes12.zip;D:\OraLite501\MOBILE\classes\classgen.jar;D:\OraLite501\MOBILE\classes\servlet.jar;D:\OraLite501\MOBILE\CLASSES\OLITE40.JAR
    set PATH= d:\jdk1.4.0\jre\bin\server;d:\jdk1.4.0\bin;D:\OraLite501\bin;D:\OraLite501\Mobile\Server\bin;D:\oracle\ora92\bin;D:\OraLite501\MOBILE\sdk\bin
    d:\jdk1.4.0\bin\java Publish
    End Run.bat
    Begin webtogo.ora
    USE_SYSTEM_CLASSPATH = NO
    MODE = SERVER
    PORT = 80
    BASE_URL=/webtogo
    ADMIN_TNS_NAME=WEBTOGO.WORLD
    ADMIN_JDBC_URL=jdbc:oracle:oci8:@WEBTOGO.WORLD
    APPLET_USE_THIN_JDBC = YES
    THIN_JDBC_URL=jdbc:oracle:thin:@YGGDRASILL:1521:FIA.YGGDRASILL.CFR.MSSTATE.EDU
    SITE_OFFLINE_PERIOD=0
    CUSTOM_WORKSPACE=no
    CUSTOM_DIRECTORY=myworkspace
    DEFAULT_PAGE=myfirstpage.html
    ADMIN_USER=8B37E78535B55525292A3A2929292999
    ADMIN_PASSWORD=873515A838B85828292A3A2929292999
    [EXTERNAL_AUTHENTICATION]
    #CLASS=com.acme.SampleAuthenticator
    # Web-to-go workspace's font
    FONT_NAME=Arial
    [FILESYSTEM]
    #ROOT_DIR=%WEBTOGO_HOME%\server
    #TYPE=O8
    #TYPE=OL
    #TYPE=OS
    # Cache size in MBs
    #CACHE_SIZE=10
    MAX_CONNECTIONS=4
    [DEBUG]
    #ENABLE=YES
    # The log file name.
    #LOG_FILE=test.log
    # Machine name and port where wsh.exe -m is running. Web-to-go
    # will send debug output to that machine.
    #MACHINE=
    #PORT=100
    [APPLICATIONS]
    XMLFILE = ws1.xml
    PACK_HELP=D:\OraLite501\mobile\doc\wtg\html\wtgdep.htm
    [PUBLIC]
    oracle.lite.sync.ConsolidatorServlet=/Consolidator
    [CONSOLIDATOR]
    # Installer will change these values
    SERVER_VERSION=8.1.5
    # 8.0.5 or 8.1.5
    # Installer won't change these values
    MAX_THREADS=3
    JDBC_DRIVER=oracle.jdbc.driver.OracleDriver
    CREATE_USER_OPTIONS_O8I=PROFILE CONSOLIDATOR_CLIENT_P DEFAULT TABLESPACE USERS QUOTA UNLIMITED ON USERS TEMPORARY TABLESPACE INDX QUOTA UNLIMITED ON INDX
    CREATE_USER_OPTIONS_O8=PROFILE CONSOLIDATOR_CLIENT_P DEFAULT TABLESPACE USR QUOTA UNLIMITED ON USR
    TEMPORARY TABLESPACE TEMPORARY QUOTA UNLIMITED ON TEMPORARY
    TEMP=c:\\temp
    WTG_PROXY_PORT=80
    TRACE=NO
    TRACE_ALL=NO
    End webtogo.ora
    Begin Mobile Server tnsnames.ora file
    # TNSNAMES.ORA Network Configuration File: D:\OraLite501\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    WEBTOGO.WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = YGGDRASILL.CFR.MSSTATE.EDU)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = FIA.YGGDRASILL.CFR.MSSTATE.EDU)
    WEBTOGO.WORLD.YGG =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = YGGDRASILL.CFR.MSSTATE.EDU)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = FIA.YGGDRASILL.CFR.MSSTATE.EDU)
    End Mobile Server tnsnames.ora file
    Begin Database tnsnames.ora file
    # TNSNAMES.ORA Network Configuration File: D:\oracle\ora92\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    INST1_HTTP.CFR.MSSTATE.EDU =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = yggdrasill)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = SHARED)
    (SERVICE_NAME = MODOSE)
    (PRESENTATION = http://HRService)
    FIA.CFR.MSSTATE.EDU =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = yggdrasill)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = FIA.YGGDRASILL.CFR.MSSTATE.EDU)
    FIA.YGGDRASILL.CFR.MSSTATE.EDU =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = yggdrasill.cfr.msstate.edu)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = FIA.YGGDRASILL.CFR.MSSTATE.EDU)
    FIA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = yggdrasill)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = FIA.YGGDRASILL.CFR.MSSTATE.EDU)
    FIA.YGG =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = yggdrasill.cfr.msstate.edu)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = FIA.YGGDRASILL.CFR.MSSTATE.EDU)
    EXTPROC_CONNECTION_DATA.CFR.MSSTATE.EDU =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    End Database tnsnames.ora file

    Dear Oracle technical representative, or user:
    I need to programmatically create, and remove publications using the pure JAVA classes of Consolidator, ConsolidatorManager, and ResourceManager for the Mobile Server in OracleLite 9i Release 5.0.1. On the creation side I have managed to get the example found in the directory OraLite501\Mobile\Server\Sample\Sample11 functioning using my installation parameters. I had a very difficult time of it because (1) the sample11 code fails to open an jdbc connection to the Mobile Server Repository Schema with the function Consolidator.OpenConnection, and (2) the ResourceManager function openConnection will not work unless the Webtogo.ora file is in the current working directory. The ConsolidatorManager function OpenConnection may also not work unless the Webtogo.ora file is in the current working directory, but I did test the hypothesis. Both of these problems need to be addressed in the sample11 code, and documentation to save other software developers from wasting hours of their valuable time. See line 223, 386, and 448 in the Publish.Java code that follows this problem description.
    With the above two problems resolved, I can now programmatically create publications, but no hints on how to programmatically remove a publication exist in the documentation. The application I am developing will require the dynamic creation, and removal of publications. Also, when developing applications the complete removal of a publication is absolutely necessary when you have botched a publication. Thus my first question is What sequence of ResourceManager, and ConsolidatorManager function calls will completely remove a Publication?.
    I also have two issues remaining with the code that I have so far developed. These issues will most likely be resolved, when I obtain instructions on how to completely remove a publication, and associated users. But, perhaps not. Referencing the Publish.java file that follows this problem description,
         1. The ResourceManager function dropUser does not drop a user. See my comments, and code beginning at line 277 in Publish.java. Do I need to de-instantiate all subscriptions, and unsubscribe all subscription users before calling this function.? I think, I tried the de-instantiate, unsubscribe sequence without success, but in the confusion I may not have made the try.
         2. How do I get rid of an index created with the ConsolidatorManager function DropPublicationItemIndex?. My comments on this problem begin at line 522 in Publish.java. For some reason the DropPublicationItemIndex function call made below line 448 does not work. What function calls are required prior to calling the DropPublicationItemIndex function?
    Throughout the Publish.java code, I have made comments about some of the problems that I have had in getting the sample11 code working for my installation parameters. I think these comments should help the programmers maintaining the ResourceManager, and ConsolidatorManager code improve the stability of the programs. Please pass these comments, and attached files to the appropriate individuals,
    if you are in a position to do so.
    The other files that follow the Publish.java code are
         1. Compile.bat - Compiles Publish.java using j2sdk1.4.0.
         2. Run.bat - Executes Publish using \ j2sdk1.4.0\jre\server\jvm.dll.
         3. Webtogo.ora
         4. tnsnames.ora for the Mobile Server.
         5. tnsnames.ora for the Database.
    Feel free to access my server if you need to do so in resolving my problems. The parameters you will need to gain access can be found at the top of Publish.java, and in the included *.ora files.
    Thanks,
    Thomas G. Matney
    [email protected]
    (662)325-2791
    //Start of Publish.java code
    // Oracle HTTP Server URL = http://yggdrasill.cfr.msstate.edu:7778
    // = http://130.18.168.225:7778
    // Mobile Server URL = http://yggdrasill.cfr.msstate.edu/webtogo/startup
    // = http://130.18.168.225/webtogo/startup
    // Mobile Server Control Center URL = http://yggdrasill.cfr.msstate.edu/webtogo
    // = http://130.18.168.225/webtogo
    // Mobile Server Control Center URL = http://yggdrasill.cfr.msstate.edu/webtogo
    // = http://130.18.168.225/webtogo
    // Mobile Server Control Center username = administrator
    // Mobile Server Control Center password = admin
    // Mobile Server URL = http://yggdrasill.cfr.msstate.edu/webtogo/startup
    // = http://130.18.168.225/webtogo/startup
    // Mobile administrator username = fiafield // Schema FIAFIELD on FIA.CFR.MSSTATE.EDU
    // Mobile administrator password = fiafield // Username and password are the same
    import java.sql.SQLException;
    import java.sql.*;
    import oracle.lite.sync.Consolidator;
    import oracle.lite.sync.ConsolidatorManager;
    import oracle.mobile.admin.ResourceManager;
    import oracle.mobile.admin.ResException;
    import oracle.sql.*;
    import oracle.jdbc.*;
    import oracle.mobile.admin.*;
    public class Publish
    // Schema names and usernames are not case sensitive.
    // UN fiafield = FIAFIELD
    // SCHEMA fiafield = FIAFIELD
    // Schema name/Username, and password used on creation of Mobile Repository
    static String CONS_SCHEMA = "fiafield";
    static String DEFAULT_PASSWORD = "fiafield";
    static String admin_jdbc_url = "jdbc:oracle:oci8:@WEBTOGO.WORLD";
    static String thin_jdbc_url =
    "jdbc:oracle:thin:@YGGDRASILL:1521:FIA.YGGDRASILL.CFR.MSSTATE.EDU";
    static String Publication;
    static String CreateTreeTableShortNames =
    "CREATE TABLE FIAFIELD.ZMTR1TBL("
    + "id FLOAT,"
    + "subp FLOAT,"
    + "rnum FLOAT,"
    + "st FLOAT,"
    + "unit FLOAT,"
    + "cnty FLOAT,"
    + "plot FLOAT,"
    + "cyc FLOAT,"
    + "scyc FLOAT,"
    + "tree FLOAT,"
    + "ncpt FLOAT NULL,"
    + "dist FLOAT NULL,"
    + "diam FLOAT NULL,"
    + "dmht FLOAT NULL,"
    + "dmck FLOAT NULL,"
    + "spec FLOAT NULL,"
    + "lang FLOAT NULL,"
    + "nctc FLOAT NULL,"
    + "stat FLOAT NULL,"
    + "util FLOAT NULL,"
    + "deca FLOAT NULL,"
    + "crat FLOAT NULL,"
    + "ccls FLOAT NULL,"
    + "az FLOAT NULL,"
    + "cond FLOAT NULL,"
    + "tlen FLOAT NULL,"
    + "alen FLOAT NULL,"
    + "lmet FLOAT NULL,"
    + "nctg FLOAT NULL,"
    + "rcul FLOAT NULL,"
    + "ncpd FLOAT NULL,"
    + "dead FLOAT NULL,"
    + "mor FLOAT NULL,"
    + "modm FLOAT NULL,"
    + "dml1 FLOAT NULL,"
    + "dmt1 FLOAT NULL,"
    + "dms1 FLOAT NULL,"
    + "dma1 FLOAT NULL,"
    + "dml2 FLOAT NULL,"
    + "dmt2 FLOAT NULL,"
    + "dms2 FLOAT NULL,"
    + "dma2 FLOAT NULL,"
    + "dml3 FLOAT NULL,"
    + "dmt3 FLOAT NULL,"
    + "dms3 FLOAT NULL,"
    + "dma3 FLOAT NULL,"
    + "dbtr FLOAT NULL,"
    + "dbsp FLOAT NULL,"
    + "nxtn FLOAT NULL,"
    + "dbds FLOAT NULL,"
    + "dbaz FLOAT NULL,"
    + "psta FLOAT NULL,"
    + "fiat FLOAT NULL,"
    + "fhmt FLOAT NULL"
    + ")";
    static String CreateTreeTableLongNames =
    "CREATE TABLE FIAFIELD.ZMTR1TBL("
    + "ID FLOAT,"
    + "SUBPLOT FLOAT,"
    + "RECORD_NUMBER FLOAT,"
    + "STATE FLOAT,"
    + "UNIT FLOAT,"
    + "COUNTY FLOAT,"
    + "PLOT FLOAT,"
    + "CYCLE FLOAT,"
    + "SUBCYCLE FLOAT,"
    + "TREE FLOAT,"
    + "NC_PLOT_TYPE FLOAT,"
    + "DISTANCE FLOAT NULL,"
    + "DIAMETER FLOAT NULL,"
    + "DIAMETER_HEIGHT FLOAT NULL,"
    + "DIAMETER_CHECK FLOAT NULL,"
    + "SPECIES FLOAT NULL,"
    + "LEAN_ANGLE FLOAT NULL,"
    + "NC_TREE_CLASS FLOAT NULL,"
    + "STATUS FLOAT NULL,"
    + "UTILIZATION FLOAT NULL,"
    + "DECAY FLOAT NULL,"
    + "CROWN_RATIO FLOAT NULL,"
    + "CROWN_CLASS FLOAT NULL,"
    + "AZIMUTH FLOAT NULL,"
    + "CONDITION FLOAT NULL,"
    + "TOTAL_LENGTH FLOAT NULL,"
    + "ACTUAL_LENGTH FLOAT NULL,"
    + "LENGTH_METHOD FLOAT NULL,"
    + "NC_TREE_GRADE FLOAT NULL,"
    + "ROTTEN_CULL FLOAT NULL,"
    + "NC_PREVIOUS_DBH FLOAT NULL,"
    + "CAUSE_OF_DEATH FLOAT NULL,"
    + "MORTALITY_YEAR FLOAT NULL,"
    + "MO_DAMAGE FLOAT NULL,"
    + "DAMAGE_LOCATION1 FLOAT NULL,"
    + "DAMAGE_TYPE1 FLOAT NULL,"
    + "DAMAGE_SEVERITY1 FLOAT NULL,"
    + "NC_DAMAGE_AGENT1 FLOAT NULL,"
    + "DAMAGE_LOCATION2 FLOAT NULL,"
    + "DAMAGE_TYPE2 FLOAT NULL,"
    + "DAMAGE_SEVERITY2 FLOAT NULL,"
    + "NC_DAMAGE_AGENT2 FLOAT NULL,"
    + "DAMAGE_LOCATION3 FLOAT NULL,"
    + "DAMAGE_TYPE3 FLOAT NULL,"
    + "DAMAGE_SEVERITY3 FLOAT NULL,"
    + "NC_DAMAGE_AGENT3 FLOAT NULL,"
    + "DB_TREE FLOAT NULL,"
    + "DB_SPECIES FLOAT NULL,"
    + "NEXT_NUMBER FLOAT NULL,"
    + "DB_DISTANCE FLOAT NULL,"
    + "DB_AZIMUTH FLOAT NULL,"
    + "PREVIOUS_STATUS FLOAT NULL,"
    + "FIA_TREE_NUMBER FLOAT NULL,"
    + "FHM_TREE FLOAT NULL"
    + ")";
    public static void main(String argv[]) throws Throwable
    // Publish - an OKAPI sample
    if(argv.length == 2)
    CONS_SCHEMA = argv[0] ;
    DEFAULT_PASSWORD = argv[1] ;
    //create required tables using standard jdbc
    //DriverManager.registerDriver ((Driver)Class.forName ("oracle.jdbc.driver.OracleDriver").newInstance ());
    DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
    Connection c = null;
    Statement s = null;
    try
    // Open connection to Mobile Repositoty/FIAFIELD schema as SYSTEM.
    // Need the ability to grant resources, and connection to Mobile Repository user
    //c = DriverManager.getConnection ("jdbc:oracle:oci8:@WEBTOGO.WORLD", "SYSTEM", "phwphw" );
    // Remote connection. See attached webtogo.ora.
    c = DriverManager.getConnection ("jdbc:oracle:oci8:@WEBTOGO.WORLD.YGG",
    "SYSTEM", "phwphw");
    s = c.createStatement ();
    try
    s.executeUpdate("DROP table FIAFIELD.ZMTR1TBL");
    catch (SQLException ee)
    ee.printStackTrace ();
    try
    s.executeUpdate(CreateTreeTableShortNames);
    catch (SQLException ee)
    ee.printStackTrace ();
    try
    s.executeUpdate("alter table FIAFIELD.ZMTR1TBL add constraint"
    +" zmtr1tbl_pk primary key(subp, tree)");
    catch (SQLException ee)
    ee.printStackTrace ();
    // Line 223 // create consolidator publications.
    try
    // *****!!!!! Unless the Webtogo.ora file is in the current working
    // directory the connection is not made. This version of the resource
    // manager must be looking for the file in the old 8i Mobile default
    // directory. This is a definite problem. If the code was working, the
    // addition of the webtogo.ora should have affect on the functionality
    // of the code.
    // The connection is made to the Mobile Server. At least no exceptions
    // are thrown, provided the webtogo.ora is in the current working
    // directory.
    //oracle.mobile.admin.ResourceManager.openConnection(CONS_SCHEMA, DEFAULT_PASSWORD);
    // I tried making a direct connect to possibly avoid needing to have the
    // webtogo.ora file in the current directory. The direct coonect did not work.
    // You can quickly convince yourself that the webtogo.ora file must
    // be in the current working directory, by running the code with and
    // without the webtogo.ora in the current working directory.
    // The directory OraLiteHome\Mobile\Server\bin is in the PATH after
    // after installation but the extension .ora is not in PATHEXT. The
    // OraLite installer should put .ora in PATHEXT. I tried adding .ora
    // to the PATHEXT, but it still could not find thw webtogo.ora file,
    // and it should have. What is going on? I am a bit rusty on DOS so
    // I may not have thing right.
    // OraLiteHome\Mobile\Server\bin is the residing directory for
    // the functional copy of the webtogo.ora file.
    oracle.mobile.admin.ResourceManager.openConnection(
    CONS_SCHEMA,
    DEFAULT_PASSWORD,
    "jdbc:oracle:oci8:@WEBTOGO.WORLD");
    catch(ResException ee)
    ee.printStackTrace (); // NULL Pointer Exception?
    // The Mobile user is created, and then the function throws a resource exception.
    // This is a serious problem with the code. One would assume that the user
    // is not created if and exception is thrown.
    // This appears to be a bug in the createUser code. The function should return
    // false if the user is not created, and handle, or not throw the exception.
    // The function always returns false. It does return true when a user is created
    // because it throws an exception.
    boolean bIsCreated;
    System.out.println("Begin of why is ResourceManager not dropping users?");
    // Line 277
    try
    // The dropUser function will not drop a user. I have tested the function
    // by creating the user ZMPT1UA in the Mobile Server Control Center
    // http://Yggdrasill.cfr.msstate.edu/webtogo
    // so I know that the user exist.
    // This function throws a ResException but it is not declared correctly
    // since you cannot trap the exception as a ResException. It always tells
    // me the view does not exist. What steps are required to get the function
    // to work? What function calls need to be made prior to calling the dropUser
    // function.
    oracle.mobile.admin.ResourceManager.dropUser("ZMPT1UA");
    catch (Throwable ee)
    ee.printStackTrace (); // NULL Pointer Exception?
    System.out.println("End of why is ResourceManager not dropping users?");
    try
    bIsCreated = oracle.mobile.admin.ResourceManager.createUser(
    "ZMPT1UA",
    DEFAULT_PASSWORD,
    "ZMPT1UA", "S");
    catch (Throwable ee)
    ee.printStackTrace (); // Ignore exception
    // Obsolete or depreciated function, according to documentation?
    oracle.mobile.admin.ResourceManager.commitTransaction();
    // Create CONS_SCHEMA user on the database with the same username, and
    // password as the user on the Mobile Server side. This is why the
    // DriverManager connection was made as SYSTEM/phwphw.
    // Grant ALL to repository, and user on replicated database
    // On the database side there is a user with un = fiafield,
    // and pw = fiafield, which is the same as the Mobile Repository
    // schema name/password pair fiafield/fiafield. Can this duality
    // create a problem? Probably not.
    // Need SYSTEM ADMIN privilages for the next two steps, and that is
    // why the coonection was established as SYSTEM/phwphw.
    // Make user, and grants for Publish to user CONS_SCHEMA, and ZMPT1UA
    System.out.println("Pargress point D");
    try
    s.execute("Create user " + "ZMPT1UA" + " identified by " + DEFAULT_PASSWORD);
    catch (SQLException ee)
    ee.printStackTrace (); // ignore
    try
    s.execute("GRANT ALL ON FIAFIELD.ZMTR1TBL to " + CONS_SCHEMA + " WITH GRANT OPTION");
    catch (SQLException ee)
    ee.printStackTrace (); // ignore
    try
    s.execute("GRANT ALL ON FIAFIELD.ZMTR1TBL to " + "ZMPT1UA" + " WITH GRANT OPTION");
    catch (SQLException ee)
    ee.printStackTrace (); // ignore
    /* This code is not needed to test the code
    // Insert items into table FIAFIELD.ZMTR1TBL from FIAFIELD.HUSKY_TREE
    String Statement =
    "INSERT INTO FIAFIELD.ZMTR1TBL SELECT * from FIAFIELD.HUSKY_TREE WHERE PLOT = 1";
    try
    s.execute(Statement);
    catch (SQLException ee)
    System.out.println("FIAFIELD.HUSKY_TREE was not inserted into FIAFIELD.ZMTR1TBL");
    ee.printStackTrace (); // ignore
    c.commit ();
    catch (SQLException ee)
    ee.printStackTrace ();
    finally
    if (s!= null) try {s.close ();}catch (SQLException e1){}
    if (c!= null) try {c.close ();}catch (SQLException e2){}
    // The Consolidator class is not thread safe, and I will eventually
    // need thread safety. The ConsolidatorManage class is thread safe.
    //Consolidator ConsolidatorXX = new Consolidator();
    ConsolidatorManager ConsolidatorXX = new ConsolidatorManager();
    // Line 386
    // Try opening a connection. Sample11 does not open a connection, but it seems
    // like a logical first thing to do.
    // At least with this connection the DropPublication, and AddPublication functions
    // appear to work, or at least they do not throw exceptions. The DropPublication
    // throws an exception if a publication does not exist? I tested this and indeed
    // if I call the DropPublication function, and do not create the Publication again
    // when I reenter the program the DropPublication function throws an exception, and
    // produces the correct error message(The publication does not exist). There is hope.
    // It is very disturbing that the program fails unless the webtogo.ora file is not
    // in the current working directory. Because the OpenConnection functions of both
    // the ResourceManager, and ConsolidatorManager both appear to need access to the
    // webtogo.ora file, and they are finding them in the current directory, the
    // logical conclusion is that both of the classes are attempting to open the
    // webtogo.ora with the relative path webtogo.ora, and not the absolute path
    // OraHomeLite/Mobile/Server/Bin/webtogo.ora. As this has to be the case, why
    // is this very important fact not in the documentation? Or, am I wrong?
    Connection conn = null;
    try
    //ConsolidatorXX.OpenConnection(CONS_SCHEMA,
    //DEFAULT_PASSWORD);
    //ConsolidatorXX.OpenConnection(CONS_SCHEMA,
    //DEFAULT_PASSWORD,
    //"jdbc:oracle:oci8:@WEBTOGO.WORLD");
    conn = DriverManager.getConnection
    ("jdbc:oracle:oci8:@WEBTOGO.WORLD",
    CONS_SCHEMA,DEFAULT_PASSWORD);
    //conn = DriverManager.getConnection
    //("jdbc:oracle:oci8:@WEBTOGO.WORLD",
    //"SYSTEM","phwphw");
    ConsolidatorXX.OpenConnection(conn);
    catch (Throwable e)
    e.printStackTrace(); //ignore error
    // Publication name
    Publication = "ZMTR1PUB";
    try
    ConsolidatorXX.DeinstantiateSubscription(Publication, "ZMPT1UA");
    catch (Throwable e)
    System.out.println("Could not Deinstantiate Subscription ZMPT1UA");
    e.printStackTrace(); //ignore error
    // Line 448
    // There is no Consolidator.OpenConnection in the orginal sample11.java code.
    // Why?. It appears to be neccessary. The only way I can make the sample11 code
    // or this program work is to open a jdbc connection with the Consolidator.OpenConnection
    // function. I assume that somehow the Consolidator.OpenConnection function was
    // deleted from sample11.java.
    // This try to drop a publication index does not work, because when I try
    // to recreate the index in the following code it warns me that I have a
    // bad column name for the index. So it thinks the index still exist.
    // Why?. How do I get rid of the index?
    try
    ConsolidatorXX.DropPublicationItemIndex("ZMTR1IX1");
    catch (Throwable e)
    e.printStackTrace(); //ignore error
    try
    ConsolidatorXX.DropPublicationItem("ZMTR1ITM");
    catch (Throwable e)
    e.printStackTrace(); //ignore error
    try
    ConsolidatorXX.DropPublication(Publication);
    catch (Throwable e)
    e.printStackTrace(); //ignore error
    try
    //ConsolidatorXX.CreatePublication(Publication, Consolidator.OKPI_CREATOR_ID,
    //"zMTR1.%s", null);
    ConsolidatorXX.CreatePublication(Publication, Consolidator.OKAPI_WINCE,
    "zMTR1.%s", null);
    catch (Throwable e)
    e.printStackTrace(); //ignore error
    try
    ConsolidatorXX.DropPublicationItemIndex("ZMTR1IX1");
    catch (Throwable e)
    e.printStackTrace(); //ignore error
    try
    ConsolidatorXX.CreatePublicationItem("ZMTR1ITM","FIAFIELD","ZMTR1TBL", "F",
    "SELECT * FROM FIAFIELD.ZMTR1TBL", null, null);
    catch (Throwable e)
    e.printStackTrace();
    System.out.println("Begin of how can drop this index and get rid of the warning?");
    // Line 522
    // I defined the index ZMTR1IX1 originally on the variable subp, and did not get
    // any warning. I then changed the index variable for the index to id, and started
    // receiving the warning to check the index column for typographical errors. Even
    // if I change the index variable back to subp, I continue to receive the warning.
    // How do I get rid of the index and the warning, so I can recreate the index for
    // another variable? I quess the real question is "How to I completely remove a
    // publication, and all of its parts so I can start over?
    try
    ConsolidatorXX.CreatePublicationItemIndex(
    "ZMTR1IX1", "ZMTR1ITM", "I", "id");
    catch (Throwable e)
    e.printStackTrace ();
    System.out.println("End of how can drop this index and get rid of the warning?");
    try
    ConsolidatorXX.AddPublicationItem(
    Publication, "ZMTR1ITM", null, null, "S", null, null);
    catch (Throwable e)
    e.printStackTrace ();
    try
    ConsolidatorXX.CreateSubscription(Publication, "ZMPT1UA");
    catch (Throwable e)
    e.printStackTrace ();
    try
    ConsolidatorXX.InstantiateSubscription(Publication, "ZMPT1UA");
    catch (Throwable e)
    e.printStackTrace ();
    try
    ConsolidatorXX.CloseConnection();
    if(conn != null)
    conn.close();
    catch (Throwable e)
    e.printStackTrace(); //ignore error
    // Obsolete or depreciated function, according to documentation?
    oracle.mobile.admin.ResourceManager.commitTransaction();
    oracle.mobile.admin.ResourceManager.closeConnection();
    End of Publish.java code     
    Begin Compile.bat
    set CLASSPATH = .;D:\jdk1.4.0\lib\tools.jar;D:\OraLite501\MOBILE\classes\CONSOLIDATOR.JAR;D:\OraLite501\MOBILE\SERVER\BIN\WEBTOGO.JAR;D:\OraLite501\jdbc\lib\classes12.zip;D:\OraLite501\MOBILE\classes\classgen.jar;D:\OraLite501\MOBILE\classes\servlet.jar;D:\OraLite501\MOBILE\CLASSES\OLITE40.JAR
    set PATH= d:\jdk1.4.0\jre\bin\server;d:\jdk1.4.0\bin;D:\OraLite501\bin;D:\OraLite501\Mobile\Server\bin;D:\oracle\ora92\bin;D:\OraLite501\MOBILE\sdk\bin
    d:\jdk1.4.0\bin\javac Publish.java
    End Compile.bat          
    Begin Run.bat
    set CLASSPATH= .;D:\jdk1.4.0\lib\tools.jar;D:\OraLite501\MOBILE\classes\CONSOLIDATOR.JAR;D:\OraLite501\MOBILE\SERVER\BIN\WEBTOGO.JAR;D:\OraLite501\jdbc\lib\classes12.zip;D:\OraLite501\MOBILE\classes\classgen.jar;D:\OraLite501\MOBILE\classes\servlet.jar;D:\OraLite501\MOBILE\CLASSES\OLITE40.JAR
    set PATH= d:\jdk1.4.0\jre\bin\server;d:\jdk1.4.0\bin;D:\OraLite501\bin;D:\OraLite501\Mobile\Server\bin;D:\oracle\ora92\bin;D:\OraLite501\MOBILE\sdk\bin
    d:\jdk1.4.0\bin\java Publish
    End Run.bat
    Begin webtogo.ora
    USE_SYSTEM_CLASSPATH = NO
    MODE = SERVER
    PORT = 80
    BASE_URL=/webtogo
    ADMIN_TNS_NAME=WEBTOGO.WORLD
    ADMIN_JDBC_URL=jdbc:oracle:oci8:@WEBTOGO.WORLD
    APPLET_USE_THIN_JDBC = YES
    THIN_JDBC_URL=jdbc:oracle:thin:@YGGDRASILL:1521:FIA.YGGDRASILL.CFR.MSSTATE.EDU
    SITE_OFFLINE_PERIOD=0
    CUSTOM_WORKSPACE=no
    CUSTOM_DIRECTORY=myworkspace
    DEFAULT_PAGE=myfirstpage.html
    ADMIN_USER=8B37E78535B55525292A3A2929292999
    ADMIN_PASSWORD=873515A838B85828292A3A2929292999
    [EXTERNAL_AUTHENTICATION]
    #CLASS=com.acme.SampleAuthenticator
    # Web-to-go workspace's font
    FONT_NAME=Arial
    [FILESYSTEM]
    #ROOT_DIR=%WEBTOGO_HOME%\server
    #TYPE=O8
    #TYPE=OL
    #TYPE=OS
    # Cache size in MBs
    #CACHE_SIZE=10
    MAX_CONNECTIONS=4
    [DEBUG]
    #ENABLE=YES
    # The log file name.
    #LOG_FILE=test.log
    # Machine name and port where wsh.exe -m is running. Web-to-go
    # will send debug output to that machine.
    #MACHINE=
    #PORT=100
    [APPLICATIONS]
    XMLFILE = ws1.xml
    PACK_HELP=D:\OraLite501\mobile\doc\wtg\html\wtgdep.htm
    [PUBLIC]
    oracle.lite.sync.ConsolidatorServlet=/Consolidator
    [CONSOLIDATOR]
    # Installer will change these values
    SERVER_VERSION=8.1.5
    # 8.0.5 or 8.1.5
    # Installer won't change these values
    MAX_THREADS=3
    JDBC_DRIVER=oracle.jdbc.driver.OracleDriver
    CREATE_USER_OPTIONS_O8I=PROFILE CONSOLIDATOR_CLIENT_P DEFAULT TABLESPACE USERS QUOTA UNLIMITED ON USERS TEMPORARY TABLESPACE INDX QUOTA UNLIMITED ON INDX
    CREATE_USER_OPTIONS_O8=PROFILE CONSOLIDATOR_CLIENT_P DEFAULT TABLESPACE USR QUOTA UNLIMITED ON USR
    TEMPORARY TABLESPACE TEMPORARY QUOTA UNLIMITED ON TEMPORARY
    TEMP=c:\\temp
    WTG_PROXY_PORT=80
    TRACE=NO
    TRACE_ALL=NO
    End webtogo.ora
    Begin Mobile Server tnsnames.ora file
    # TNSNAMES.ORA Network Configuration File: D:\OraLite501\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    WEBTOGO.WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = YGGDRASILL.CFR.MSSTATE.EDU)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = FIA.YGGDRASILL.CFR.MSSTATE.EDU)
    WEBTOGO.WORLD.YGG =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = YGGDRASILL.CFR.MSSTATE.EDU)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = FIA.YGGDRASILL.CFR.MSSTATE.EDU)
    End Mobile Server tnsnames.ora file
    Begin Database tnsnames.ora file
    # TNSNAMES.ORA Network Configuration File: D:\oracle\ora92\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    INST1_HTTP.CFR.MSSTATE.EDU =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = yggdrasill)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = SHARED)
    (SERVICE_NAME = MODOSE)
    (PRESENTATION = http://HRService)
    FIA.CFR.MSSTATE.EDU =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = yggdrasill)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = FIA.YGGDRASILL.CFR.MSSTATE.EDU)
    FIA.YGGDRASILL.CFR.MSSTATE.EDU =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = yggdrasill.cfr.msstate.edu)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = FIA.YGGDRASILL.CFR.MSSTATE.EDU)
    FIA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = yggdrasill)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = FIA.YGGDRASILL.CFR.MSSTATE.EDU)
    FIA.YGG =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = yggdrasill.cfr.msstate.edu)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = FIA.YGGDRASILL.CFR.MSSTATE.EDU)
    EXTPROC_CONNECTION_DATA.CFR.MSSTATE.EDU =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    End Database tnsnames.ora file

  • Unable to assign the depreciation area to co. code

    Hi,
    I am getting the below message
    Inconsistency between FI company code BHEL and chart of deprec. BHEL
    Message no. AC481
    Diagnosis
    You tried to assign chart of depreciation BHEL to company code BHEL. According to its Customizing definition, this company code manages parallel currencies.
    The chart of depreciation does not contain a corresponding depreciation area for each of the currency types that are defined in the company code.
    System Response
    This assignment is not possible.
    Procedure
    1. Check the currency types of the company code.
    2. Specify a corresponding depreciation area for each currency type.
    Please any one explain the way to resolve.
    Thanks,
    Rajesh.

    Hello Rajesh,
    Please search the asset accounting forum.  A lot has been written on this very question already.  I would have included a link but I have noticed that, sometimes when I answer a question, someone for some obvious reason deletes the question or subject to which I provided an answer.
    Regards,
    Elias

  • Incorrect Planned Depreciation after posting unplanned depreciation

    Hello Everyone,
    We have encountered a case whereas an asset acquired in April 2008 with 5 years useful life was planned to be fully depreciated in period 2 of 2009. Below are the details and postings done:
    1 - NBV -> 1,056,143.00
    2 - Posted Write-up -> 18,054.00
    3 - Posted Unplanned depreciation -> 1,038,992.23- (the system actually issued that only the amount of 835,445 can be posted as unplanned dep. In order to bypass this, user changed the dep key to MANU then changing it back after the unplanned posting)
    4 - Posted Ordinary Dep for Period 1 of 2009 -> 19,892
    5 - Planned Ordinary Dep for Period 2 of 2009 -> 15,312.77-
    Once the amount of 15,312.77 is posted, the asset will have Zero NBV.
    *My question is: Why did the system posted the 15,312.77 in period 2 only and not spread the amount until 2013 since the asset's useful life is for 5 years (until 2013).
    We have tried recalculation of values and the planned depreciation remains the same for period 2.
    Hope someone can help.
    Thank you in advance.
    Regards,
    Cholo

    Hello Vinod,
    Period control is 004 which is configured in AFAMP having 01 - Pro rata at period start date for Acquisition, Acquisition in the following year, Retirement and trasfer. Does it have anything to do with the start of depreciation?
    Also, when we adjust the ord dep start date to < April 26, the original planned depreciation is not affected for the current FY but only the next FY and moving forward.
    For example:
    Asset worth 12,000 to be depreciated in 10 years
    1 - Alrready in period 3 and 200 has been posted
    2 - Posted unplanned dep of 800
    3 - Total planned dep for this year did not change (1,200)
    4 - System calculated for current year depreciation 1200 (planned) + 800 (unplanned) = 2000
    5 - And for the next years 12,000 - 2,000 = 10,000 / 9 years
    Should it not be that that 12,000 - 1,000 (200 planned + 800 unplanned) = 11,000 / 9 years and 9 months?
    It seems that the unplanned depreciation affected the depreciation computation of the asset only in the next FY.

Maybe you are looking for