Calculate funds available for a particular date

Hi,
I am developing a custom PO Printing report and there is a requirement to calculate the budget/funds available for a particular account as a column in the report. Oracle has given the standard package gl_funds_available_pkg.calc_funds to calculate funds available. But this gives funds available for a particular account as on date. However my requirement is to print the funds available as on purchase order approval date,while the custom report might be generated at a later date. Many transactions would have been done using that account and the funds available would have reduced as on report generation date. But I need to get the funds available as on po approval date(earlier date).Please help me achieve this requirement.

Hi Venkat,
To Calculate Opening Stock & Closing stock there are different procedures.
It just depends of\n the client requirements & usage of the material.
For example, we have different types of stocks, like, Through Pipeline, Special, Unristricted, quality, safety,
and many types of stocks.... so all these types are indicated in MSEG tabe in SOBTZ field,...
Now Comimg to your Query, You need to calculate OPENING & CLOSING STOCK.
We have a similiar standard report in MB5B Tcode..
to get the same results in your report do like this...
For valuated stock go to the MARDH, MBEWH, MCHBH tables But I Prefer MBEWH.
here in MBEWH give the month & year and you get the result in LBKUM field...
For Special stock, You need to go to another table like MKOLH,,(I forgot still 2 more) and
give the month & year inputs and you will get the result in SLABS field.
and remaining MB5B refers to its deetails lists with different Movement types,
whcih you can get clearly from MSEG Table...
Hope you can write the select Queries accordingly.
Thanks & Regards,
Dileep .C

Similar Messages

  • How to calculate Opening Stock for a particular date.

    Hi Experts,
    I have a sitution to calculate Opening stock for a particular date.
    please help me with the necessary Fields & Tables required.
    Appriciate If any Sample coding available.
    Thanks & regards,
    Venkat.

    Hi Venkat,
    To Calculate Opening Stock & Closing stock there are different procedures.
    It just depends of\n the client requirements & usage of the material.
    For example, we have different types of stocks, like, Through Pipeline, Special, Unristricted, quality, safety,
    and many types of stocks.... so all these types are indicated in MSEG tabe in SOBTZ field,...
    Now Comimg to your Query, You need to calculate OPENING & CLOSING STOCK.
    We have a similiar standard report in MB5B Tcode..
    to get the same results in your report do like this...
    For valuated stock go to the MARDH, MBEWH, MCHBH tables But I Prefer MBEWH.
    here in MBEWH give the month & year and you get the result in LBKUM field...
    For Special stock, You need to go to another table like MKOLH,,(I forgot still 2 more) and
    give the month & year inputs and you will get the result in SLABS field.
    and remaining MB5B refers to its deetails lists with different Movement types,
    whcih you can get clearly from MSEG Table...
    Hope you can write the select Queries accordingly.
    Thanks & Regards,
    Dileep .C

  • Stock in transit for a particular date

    Hi all,
    How to find the stock in transit for a particular date.
    In MB5T date option is not available.
    Is there any other way or i need to gofor Z development.
    Kindly help me in this regard.
    Regards
    KK

    Try MB5TD. Please also check OSS notes 1120843, 1268193, 925384.
    Edited by: Csaba Szommer on May 22, 2009 8:28 AM

  • How to identify the project in CMOD used for a particular data source

    Hi
      I had a Business Content Data source which is enhanced with ZZ fields and user exit is written in CMOD.
      How can i find in which project used to write the code for that particular data source.....
    When i check CMOD i can find nearly 10 to 20 different projects
    Thanks

    Hi,
    One simple way is goto CMOD and give project names with Z* or Y*. First findout the naming convensions following in  your project and see.
    Then gibe projects one by one and select COMPONENTS option and click on Display, if you find the following Function Exits means it is our DataSource project
    EXIT_SAPLRSAP_001
    EXIT_SAPLRSAP_002
    EXIT_SAPLRSAP_003
    EXIT_SAPLRSAP_004
    Thanks
    Reddy

  • Position 1000001 not available for the start date of the infotype record

    Dear Experts/Gurus,
    I am getting the following error message "Position 1000001 not available for the start date of the infotype record" while trying to upload employees HR Master data in PA40.
    I know the reason why because the position is created on 01.05.2009 & employee DOJ is 01.02.2006 both are mismatch & the position date has to be changed earlier date than DOJ but i don't know how to do.
    Please let me know how to sort out this issue asap.
    Rgds,
    Vikrant

    Dear Friend,
    Use  PP02, select the position no, select infotype 1000 (Object), select planning status & validity(date) and then use the copy function to change the start date.
    Regards,
    Aks

  • Calculate database size for a particular company code

    Hi Experts,
    We have 30 company codes in our FI production system. So to plan another new company code to be deployed into the system, we need to know exact capacity (database) of the previous company code that we already deployed. Kindly let me know whether it possible to calculate the database size for a particular company code in a ERP system.

    >
    Kalyan Kumar Bandlamudi wrote:
    > Hi Experts,
    >
    > We have 30 company codes in our FI production system. So to plan another new company code to be deployed into the system, we need to know exact data capacity (database) of the previous company code that we already deployed. Kindly let me know whether it possible to calculate the database size occupied for a particular company code in a SAP system.
    Its not possible to calculate data size based on company code.
    By creating company code It will not occupy much space. Depends on your posting documents for particular company codes.
    Thanks
    Siva

  • END ROUTINE to calculate time differnce for two corresponding dates

    Hi All,
    I have to write an END ROUTINE in which I have 2 DATE FIELDS (e.g. DATE_1, DATE_2) and corresponding TIME fields (e.g. TIME_1, TIME_2).
    I have to calculate difference between the TIME fields for the two dates and populate a TIME_DIFF field.
    Can someone pls help me by posting sample code as i am new to BI.
    Thanks in ADVANCE!!!

    End Routine:
    http://help.sap.com/saphelp_nw70/helpdata/EN/e3/732c42be6fde2ce10000000a1550b0/frameset.htm
    End Routine and Expert Routine
    Thanks..
    Shambhu

  • How do we calculate Accumulated Depreciation for a Particular Period

    Dear Members,
    How do we calculate the Accumulated Depreciation for a particular asset. It would be great if some body can explain me ,what tables should we use.
    I read that Accumulated Depreciation is nothing but deprn_reserve column in fa_deprn_summary table. I have to make a report which should show the accumulated depreciation for an asset by period name. (eg : For MAY-07 the report should give the accumulated depreciation for that asset).
    Please give your suggestions.
    Thanks
    sandeep

    Hi,
    You can use DEPRN_RESERVE from fa_deprn_summary to get accumulated deprn. Make sure you select the latest row from fa_deprn_summary for a particular period.
    Use FA_DEPRN_PERIODS to join with period_counter if you wnat to use Period Name as criteria.
    Cheers
    Sunil Chawla

  • Production Hours of a workcenter for a particular date

    Greetings,
    Is there any reports for getting the production hours of a workcenter on a particular date?I would like to get the
    schedule summary.The output must contain date and hours.
    Helpful answers will be rewarded.
    Regards,

    Hi Jinesh,
    You can use MC10 - Flexible analysis for your requirement.
    For this you have to create/change your own Evaluation using MC11/MC12 transaction.
    Reward points if helpful
    Regards,
    Arpit

  • Time Zone for a particular date/time and location

    Hi,
    Consider this:
    You have some date stored somewhere (e.g. in a database), and it is stored in UTC. Now, you want to display that date in the local time at that particular time, e.g. with or without daylight savings depending on the time of year.
    A more concrete example:
    In Perth, Australia, daylight savings goes from Dec to Feb inclusive (approx).
    Now, you have two dates, say 2007-01-01T12:00:00+0000 and 2007-05-01T12:00:00+0000.
    You would like to display these dates as:
    2007-01-01T21:00:00+0900 and 2007-05-01T20:00:00+0800 respectively.
    However, given that the current timezone today (26th June) in Perth is +0800, they will be displayed as:
    2007-01-01T20:00:00+0800 and 2007-05-01T20:00:00+0800 respectively.
    Code for displaying in current timezone follows, as a starting point:
    import java.text.DateFormat;
    import java.text.SimpleDateFormat;
    import java.util.ArrayList;
    import java.util.Calendar;
    import java.util.Date;
    import java.util.GregorianCalendar;
    import java.util.List;
    import java.util.TimeZone;
    public class TimeZoneTestMain
         * @param args
        public static void main(String[] args)
            // UTC timezone.
            TimeZone utcTZ = TimeZone.getTimeZone("UTC");
            // Collection of dates.
            List<Calendar> dates = new ArrayList<Calendar>();
            // Create a date/time - 10 Dec 2005 12pm UTC
            Calendar cal1 = new GregorianCalendar(2005, Calendar.DECEMBER, 10, 12, 0);
            dates.add(cal1);
            cal1.setTimeZone(utcTZ);
            // Create a date/time - 10 Dec 2006 12pm UTC
            Calendar cal2 = new GregorianCalendar(2006, Calendar.DECEMBER, 10, 12, 0);
            dates.add(cal2);
            cal2.setTimeZone(utcTZ);
            // Create a date/time - 10 Apr 2007 12pm UTC
            Calendar cal3 = new GregorianCalendar(2007, Calendar.APRIL, 10, 12, 0);
            dates.add(cal3);
            cal3.setTimeZone(utcTZ);
            displayDates(dates);
        private static void displayDates(List<Calendar> dates)
            DateFormat utcDF = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");
            utcDF.setTimeZone(TimeZone.getTimeZone("UTC"));
            DateFormat waDF = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");
            waDF.setTimeZone(TimeZone.getTimeZone("Australia/Perth"));
            for (Calendar cal : dates)
                Date date = cal.getTime();
                System.out.println("UTC date: " + utcDF.format(date)
                                   + ", WA date: " + waDF.format(date));
    }Output is:
    UTC date: 2005-12-10T12:00:00+0000, WA date: 2005-12-10T20:00:00+0800
    UTC date: 2006-12-10T12:00:00+0000, WA date: 2006-12-10T20:00:00+0800
    UTC date: 2007-04-10T12:00:00+0000, WA date: 2007-04-10T20:00:00+0800
    I would like the output to be (daylight savings only came in for WA in 2006):
    UTC date: 2005-12-10T12:00:00+0000, WA date: 2005-12-10T20:00:00+0800
    UTC date: 2006-12-10T12:00:00+0000, WA date: 2006-12-10T21:00:00+0900
    UTC date: 2007-04-10T12:00:00+0000, WA date: 2007-04-10T20:00:00+0800
    Cheers

    >
    might be problem with jdk version which you are
    using!!!
    Mine is jdk 5You are right - just tried with 1.6.0_01-b06 and all is good.
    For some reason it didn't occur to me that the other version of the JVM I was using wouldn't have the daylight savings rule, which would make sense since it was released before the daylight saving legislation was introduced by the WA state government!

  • Need to create a report to show values for a particular date range

    I have to create a report, out of which I need two columns : << Customer Value Variance and Churn Score Variance >> to show values only for a custom date range, which will be entered via a dashboard prompt.
    These generic date columns are not present and cannot be added. I have to make use of Pres variables
    What I have currently done is:
    1) Created a prompt with 2 different date columns and passing those values into variables vStartDate and vEndDate. (I don't actually need those 2 column which I have selelcted, but I have taken those so that I can prompt the values in calendar format and pass onto the variables)
    2) Created report with necessary columns, with 2 extra columns (hidden) as vStart Date Column and vEnd Date Column which take the values from the presentation variables defined in the prompt. I have created these columns as then I can reference these in the two required columns if necessary.
    I am already facing error in report after doing this and I am confused how to proceed. Any suggestions?
    Thanks.

    Yes, but it only has one generic Date column, no start date and end date. I can't use that twice in the prompt. Although I can specify it to be 'between', but I'm not sure I can pass values to both variables like that.
    Currently I have used Campaign Start Date and Campaign End Date to enter values in calender format to the variables.

  • Which options are available for Encryption of data in Standard edition

    Hi,
    We are implementing a DMS at one of our client location.
    We are using SharePoint standard edition to implement DMS and also the SQL version is Standard edition.
    Please let us know what options are available for encryption in Standard SQL version.
    Regards,
    Mohammed Khateeb

    You can use cell-level encryption by the various EncryptByXxxx function. But that assumes that you are writing the SQL code yourself, and you seem to have Sharepoint. Maybe you should ask in a Sharepoint forum what is possible in the realm of Sharepoint.
    It also helps if you have an understanding of why you want to encrypt. That is, what do you want to protect yourself against?
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Data not available for a particular field - when exectuing report on MP

    hai sdn,
                I am executing a report on multiprovider where 3 ods's are linked.i'm getting data into all the fields except for one field.(sales doc type).I have checked all my linking in the identification also. i cross checked by using the Tcode : listcube and executed the report - here i'm getting the data but in the report i'm not getting.Can any one help me out with this.
    Itz urgent..................
    Thanks in advance.

    Hi Sunita,
    0DOC_TYPE has key and text in the (business explorer Display), but you are saying you have it as text and key. Make it inline with what is there in the info object definitione.
    Note you have 2 options in Extras of the multiprovider.
    1. Key and Text
    2. Text and Key.
    Hope this helps you.
    Regards
    Ananth

  • What are the tools available for gps NMEA  data streams reception ?

    Since no software for bluetooth connection for my Holux GPS device to my iPad2, I plan to write one myself. What are thr tools available and what is the simplest development platform just for this simple task? That is just to read the NMEA ASCII stream from the Bluetooth device.

    It depends on what 'interprocess communication' your "app" program has available.
    I regulary use DDE to control a PLL App which controls our PLL via the LPT Port. This is only a write process, but works very easily. The read is equaly easy. You need to know the various "keywords" like service, topic and instruction which the "app" will respond to.
    Generaly I found ActieX to be more extensive, meaning its probably going to take longer and more steps to achive similar simple results.
    The file does not seem to be the best way.
    Hope that helps a bit.

  • Can you search for a particular date in the past to locate a file in the time machine

    Using a MacBook, OSX 10.7.5
    Is there a way to go back to a certain date in the history of the time machine?  Example - is there a quick way to go back to Oct 25, 2012?
    Thanks.

    All you could ever need to know about Time Machine:
    http://pondini.org/TM/Home.html
    (from the late and sorely missed ASC contributor Pondini)

Maybe you are looking for

  • Field description in selection screen

    Hello, Please help me by answering a silly question: what settings have to be done so that in the selection screen for a report the field description to appear instead of the technical field name? Regards, Ileana

  • How do I change iTunes U account on iphone 4?

    I recently just purchased an iPhone 4 second hand and I'm unable to change the iTunes U account information on the phone. I'm constantly being sent the course lessons for iTunes U for the previous owner. When I try to change the settings in itunes U

  • How can i determine what the most recent os my imac will run?

    How can i determine what the most recent os my iMac will run? Serial Number QP6*****VUW Processor 2.16 GHz Intel Core 2 Duo Currently running Version 10.5.8 <Edited by Host>

  • Surveys with ZCM

    Hi! Is there a chance to make a survey to all connected users for a "electronic inventory" - they should get their inventory presented on a web site and they had to put in their correct location, room nr, name etc. Is there a way to get such a survey

  • How to open the target location in the same window using tomahawk menu

    Am using apache tomahawk menu component. We have a mix of locations that are internal path and also external URL. However, we need to open the location in the same window. We are using the <t:jscookMenu layout="hbr" theme="ThemeIE" > <t:navigationMen