How to view data for MD05 before current date

Hi SAP Gurus!
We need to check what we entered for the past weeks forecasts. We currently use MD05 to view that.
Right now, we are currently in week 47 now and would like to view data for weeks 40-46. For some reason SAP is only giving us week 47 onwards. Is there another report that can give us these values?
Hope to hear from you soon!
Thanks in advance!
PJ

Dear,
You can get this report by using below FM
MD04 Details - MD_STOCK_REQUIREMENTS_LIST_API
MD05 Details - BAPI_MATERIAL_MRP_LIST
or you may pls execute transaction MD73.
Pls select option "3 :History Planned ind reqmnts " in the display options and execute the report.
Regards,
R.Brahmankar

Similar Messages

  • Why does old sale order (The deliver date before current date) show VSF (independent requirement) in MD04?

    Dear All,
    I face one issue, the old sales order (the delivery date before current date) has became VSF (independent requirement) in MD04, could someone let me know why and how to fix it?
    Take 01.09.2014 as example, we have one 50PC's sales order with delivery date as 25.08.2014, in MD04, the system will show two independent requirements, one is 50PC's customer order and another is 50PC's VSF.
    We are looking forward to your kind help and answer, thanks in advance!
    Best Regards,
    Gavin

    Hi Gavin
    If I understood the issue correctly, system is showing both the sales order and the PIR on the same date, right?
    If this is the case, it's probably a PIR consumption issue. Take a look on the following note, especially question 10:
    772856
    FAQ: Consumption of planned independent requirements
    BR
    Caetano

  • How to Add 15 Days to the current Date in eCATT

    Hello eCATT Guru's,
    How to add 15 days to the current date in eCATT.
    I have changed the Date format to mm/dd/yyyy.
    now i want to add 15 days to the sy-datum.
    How to do that.do any one know?
    Thanks in Advance,
    Raj

    Check out this link -
    http://help.sap.com/saphelp_46c/helpdata/en/d7/e21a50408e11d1896b0000e8322d00/frameset.htm
    It gives details about DATE variables in CATT. Hope this will help you out.
    ashish
    Reward points if you find this helpful.
    Message was edited by: Ashish Gundawar

  • How to set defalut value to DB current date time in EO using sql

    HI,
    I am using below query to set default date time as DB current date
    select to_char(sysdate, 'DD-MM-YYYY HH24:MI:SS') from dual
    but it is throwing exception
    (oracle.jbo.AttributeLoadException) JBO-27021: Failed to load custom data type value at index 7 with java object of type oracle.jbo.domain.Timestamp due to java.sql.SQLException.

    Halo,
    I tested it & was able to find the values inserted in db in hiredate column.. What is that you did? Was this..
    In EO of emp -- Hire date column of datatype timestamp :
    details tab.. Default value -- expression :
    DBTransaction.currentDbTimeIf you would have done this,
    On run time when we click createInsert button , by default you will see the date.. After committing the changes, query it in db and will find the inserted record with default value..
    Sample data i tested :
    SQL Statement which produced this data:
      select * from emp where empno=1111
    EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO
    1111,null,null,null,06/05/2013 17:18:41,4500,null,nullRegards,
    Archana

  • Calendar Tile on Windows 8.1 displaying incorrect date for icloud calendar but date icon displays correct date on iPhone 5 and iPad Air

    Calendar Tile on Windows 8.1 displaying incorrect date for icloud calendar but date icon displays correct date on iPhone 5 and iPad Air.  Date on Windows 8.1 is correct.  Thank you.

    Try doing  a reset on your phone. Sounds like your carrier's time set is not getting through to your device. If the reset doesn't do it, then go to Settings>General>Reset>Reset Network Settings. That should do it.

  • How to perform validity checks just before form data is saved?

    hello all,
    i need to perform some checks on various fields just before data on a standard form is saved, and to eventually rollback the transaction.
    if the checks are succesful i have to perform some db operation in transaction with main data.
    solution ( if existent! )  has to be addin only -> no triggers / no procedures / no sbo_transaction thingies
    scenario:
    involved tables:
    OITM
    USERDEFINEDTABLE1
    USERDEFINEDTABLE2
    involved forms:
    Items - OITM - formtypeex = "150"
    logic:
    an user defined field U_UDFCHECKACTIVE has been added to OITM, a combo box has been added to items form containing values Y and N, bound to OITM.U_UDFCHECKACTIVE.
    when the user saves an item, if OITM.U_UDFCHECKACTIVE == Y we have to perform additional checks on USERDEFINEDTABLE1
    if the check result is true we have to save OITM current data and insert a record in USERDEFINEDTABLE2 containing itmgrp value (  )
    if the check result is false we have to block save operation
    if OITM.U_UDFCHECKACTIVE == N no check is performed and everything works normally
    we started hooking the form data event for oitm / form type 150:
    Application.SBO_Application.FormDataEvent += new SAPbouiCOM._IApplicationEvents_FormDataEventEventHandler(FormDataEventHandler.SBO_Application_FormDataEvent);
    then we filtered the event
    switch (BusinessObjectInfo.FormTypeEx)
                        case "150":
                            if (BusinessObjectInfo.BeforeAction &&
                                (BusinessObjectInfo.EventType == SAPbouiCOM.BoEventTypes.et_FORM_DATA_UPDATE ||
                                    BusinessObjectInfo.EventType == SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD))
                                BL.Items_BusinessLogic.SBO_Application_FormDataEvent(ref BusinessObjectInfo, out BubbleEvent);
    in our business logic class i don't know how to correctly check the values just before they are saved to db
    for example i tried using oitm.browser :
    if (oitm.Browser.GetByKeys(BusinessObjectInfo.ObjectKey))
                            String value =  oitm.UserFields.Fields.Item("U_UDFCHECKACTIVE ").Value as String;
                             //perform checks
                                  //if ok insert records and bubbleevent = true
                                  //if ko rollback the bubbleevent = false
    //if checks are not to be performed then bubbleevent = true....
    but it's wrong, as it populates oitm object from db, and not from the form. i have old values stored in the object, values tha are to be overwritten with those present on form.
    i tried inspecting the form for data sources but i don't know how to navigate to the right one, i found only system generated objects with SYS_##, with no clue about the related dbfield
    i tried getting the values directly from the form, but in object BusinessObjectInfo i don't have anything that identifies univocally the form i'm editing.
    i mean if i have 2 item forms open, i don't know which one is the one i'm saving.
    i'm expecting to find somewhere a temporary oitm business object containing values that are to be saved, values that i can easily check.
    so i'm asking you how to find those values in order to perform my bl checks
    thank you in advance

    Hi Christian,
    The values that are about to be saved should be in the datasources:
    form.DataSources.DBDataSources.Item("OITM");
    form.DataSources.DBDataSources.Item("ITM1");
    The form variable should be form 150.
    Best regards,
    Pedro Magueija

  • NEXT_RUN_DATE before current date

    Hello,
    I'm wondering whether having an entry in the ALL_SCHEDULER_JOBS with the field NEXT_RUN_DATE filled with a date that's before the current date would trigger the launch of the job on Oracle instance startup?
    The problem I'm having: I'm making backups of an Oracle instance. Some of my scheduled jobs would run daily. If I take a backup today, the backupset will include the ALL_SCHEDULER_JOBS. If I recover the backupset, say, a week from now, when I re-open my instance, the table will include some jobs that have the next running date at some moment in the past. What will happen at the startup of Oracle? Will it launch all the jobs that are scheduled and should have been ran in the past?
    Thank you,
    Adrian

    hello,
    I got a problem with my jobs too, I do daily a job that calls a program that runs a datapump export.
    But if database was offline during the time the job should run, and database restarts, then jobs runs immediately after instance startup.
    I thought there was some of other parameter you could use to let it run only on that fixed time?
    Then I read something about the schedule_limit, but I think this does not work correctly on Oracle 10.2.0.3 (Windows platform)?
    I've a job:
    begin
    dbms_scheduler.create_job (
    job_name => 'DATAPUMP_RUN',
    program_name => 'C_DATAPUMP',
    start_date => '&date',
    repeat_interval => 'FREQ=DAILY',
    enabled => TRUE,
    comments => 'Daily datapump');
    end;
    So, I fill in the date on which it has to start and run daily from that date/hour.
    But sometilmes, database is offline, and the whole thing runs after database startup, not necessary and so not good for me.
    then I did this:
    begin
    dbms_scheduler.set_attribute(
    name => 'SYS.DATAPUMP_RUN',
    attribute => 'schedule_limit',
    value => numtodsinterval(5, 'minute'));
    end;
    (because value => 5 does not work?)
    But when shutdowning my database before the job would run and start it back after 6 minutes, the job still gets activated and runs ...
    what am I doing wrong?
    Is it better to work with a window to avoid this?
    thx
    by the way, this was oracle's resolution about it:
    Constraining Job Start Time
    A really nice feature of the new scheduler is the ability to constrain a job's start time to a specific period following the nominal start time. For example, suppose you have a job scheduled to run every evening at 6:00 pm. Due to system load or other reasons, the job might not actually get the chance to start until 6:12 p.m. Do you still want the job to start, even though it's 12 minutes late?
    With the scheduler, you can answer the question of how long past its time you're willing to let a job start. You do this by setting the job's schedule_limit attribute value (in minutes). The following specifies that my LOADNEWCUSTOMERS job must begin within 10 minutes of its scheduled start time:
    sys.dbms_scheduler.set_attribute(
    name =>'GENNICK.LOADNEWCUSTOMERS',
    attribute => 'schedule_limit',
    value => 10);
    If ever this job is delayed for more than 10 minutes past its start time, that run of the job will be skipped. The default schedule_limit attribute is null, which imposes no limit. When using Database Control, you can set this attribute from the Options tab of the Edit Job page.

  • How to get sqlplus to print the current date/time

    From a unix command line I can type:
    prompt> date; <any_Cmd>; date
    This will result in a timestamp being output before and after the command you inserted. Is there a way to make sqlplus print the current date/time after it is done executing an sql statment. This would be useful for me to know how long it took to execute and sql statement without watching it.
    Something like:
    SQL> select * from table; date;

    u cld set the following statements in sql*plus :
    sql>set time on
    sql>set timing on
    hope this solves ur problem.

  • Find closest date before current date

    Hi,
    How to get the closest date record before the current date record using workflows(preferably) ?
    Detailed :-
    For e.g. A record is created with status as "Open". On click of a button a program should be invoked(workflow or script) to fetch the most recent records with status as "Open".
    That means if a new record is created today and already there are 3 records with same status as "Open" with two created yesterday and one created 2 days before.Then our program should fetch only those two records created yesterday and not the one created two days before.
    Thanks
    Sambit

    The simplest solution I can offer is:
    Add a search spec on the BC for Status="Open" and add a Sort Spec on the BC for "Created Date (DESC)". When you query the BC, just focus on the first record which should be the most recent record in "Open" status.
    Hope it helps!

  • How to view payload for Successful instances in ESB console ?

    I have a situation where I need to view the payload data for successful esb instances. Only for FAULTED/ERRORED
    instances, the payload browser is available.
    Can I change any parameters/settings to enable this for successful service calls?
    First, Will it be persisted in database? IF Yes, i could at-least browse the particular table to locate a particular request !
    Please share your experiences on this. Awaiting interesting ideas from you...
    -Vignesh

    @User: 805993      
    Thank you very much for sharing the tip. I don't know how to use the ESBLoggingInterceptor.
    I will read more using it and share the details here so that it will benefit others.
    Thank you.
    Vignesh.

  • How to reference application version number and current date in page footer

    Am new to Apex and am creating first app for production users on Apex 4.0.1 ... I notice that Application Builder app itself displays the version number at bottom right of screen .. are there any substitution strings that I can use to get current date and application version in my own Apex app ... or do I need to create e.g Javascript to format the date and create my own substitution string ?
    Any help much appreciated .. thanks !

    I modified the Footer of our Default page template. Used JavaScript for the date, below is the code we use. The very last table is specific to our environment and it would need to be customized for your use or removed if not needed. I am a JavaScript novice so this may be crude but it does the job.
    Jeff
    <table width="100%" cellpadding="0" cellspacing="0"
    border="0">
    <tr>
    <td width="500">
    <script Language="JavaScript">
    <!--
    function GetDay(nDay)
         var Days = new Array("Sunday","Monday","Tuesday","Wednesday",
                              "Thursday","Friday","Saturday");
         return Days[nDay]
    function GetMonth(nMonth)
         var Months = new Array("January","February","March","April","May","June",
                                "July","August","September","October","November","December");
         return Months[nMonth]             
    function GetTime () {
      var curtime = new Date();
      var curhour = curtime.getHours();
      var curmin = curtime.getMinutes();
      var cursec = curtime.getSeconds();
      var time = "";
      if(curhour == 0) curhour = 12;
      time = (curhour > 12 ? curhour - 12 : curhour) + ":" +
             (curmin < 10 ? "0" : "") + curmin + ":" +
             (cursec < 10 ? "0" : "") + cursec + " " +
             (curhour > 12 ? "PM" : "AM");
      return time;
    function DateString()
         var Today = new Date();
         var suffix = "th";
         switch (Today.getDate())
              case 1:
              case 21:
              case 31:
                   suffix = "st"; break;
              case 2:
              case 22:
                   suffix = "nd"; break;
              case 3:
              case 23:
                   suffix = "rd"; break;
         var strDate = GetDay(Today.getDay()) + " - " + GetMonth(Today.getMonth()) + " " + Today.getDate(); strDate += suffix + ", " + Today.getFullYear() + " " ;
         return strDate
    //-->
    </script>
    <script Language="JavaScript">
    <!--
    document.write(DateString() + GetTime());
    //-->
    </script>
    </td>
    <td width="300" class="fineprint"><div align="right">
    </div></td>
    <td width="900" class="fineprint"><div align="right">
    &APP_USER.
    #APP_VERSION#
    </div></td>
    </tr>
    </table>
    <table width="100%" cellpadding="0" cellspacing="0"
    border="0">
    <tr>
    <td width="33%" align="left" valign="bottom"><img
    src="#WORKSPACE_IMAGES#iconseal-rust.gif" alt="NH State Seal" width="25"
    height="25" /></td>
    <td  width="33%" align="center" valign="bottom"><a href="http://www.nh.gov/" class="fineprint">NH.gov</a>
      <a href="http://www.nh.gov/disclaimer.html"
    class="fineprint">Privacy Policy</a>   <a
    href="http://www.nh.gov/wai/index.html" class="fineprint">Accessibility
    Policy</a></td>
    <td width="33%" class="fineprint"><div align="right">Copyright &#169 State of
    New Hampshire, 2007-2010</div></td>
    </tr>
    </table><br />
    #FORM_CLOSE#
    </body>
    </html>

  • A script for adding the current date to file name?

    I am working in Indesign CS3. I frequently save file as PDFs into a designated folder. I was hoping for help in writing a script that would apply the current date to the end of the file name, when saved into this folder. Some days, I save the same file several times, into this folder. I was also hoping there was a way to add a date and version, for example "filename_2.25.11(1).pdf" Is this possible? Can someone help me?

    ok, I ended up with this test routine:
    on adding folder items to this_folder after receiving added_items
    tell application "Finder"
    repeat with this in added_items
    my checkifopened(this)
    display dialog (name of this) as text
    end repeat
    end tell
    end adding folder items to
    on checkifopened(this)
    set a to POSIX path of (this as alias)
    repeat until 1 = 0
    ## don't like that one because it relies on an error msg ... so
    (** try
    set b to do shell script "lsof | grep " & quoted form of a
    on error
    exit repeat
    end try**)
    ##so I use this one
    set b to do shell script "lsof"
    if b does not contain a then
    exit repeat
    else
    say "still opened"
    end if
    end repeat
    end checkifopened
    this is a folder action that tests if the added file is still opened by an application... there is no delay between each test-loop since lsof takes some time to execute...
    And after adding a timeout (just in case) to this function the final script looks like this:
    on adding folder items to thefolder after receiving added_items
    tell application "Finder"
    set folderkind to kind of thefolder
    set myfiles to every item of thefolder whose name does not contain "#" and kind is not folderkind
    repeat with myfile in myfiles
    set myfile_datestring to my get_datestring(creation date of myfile)
    set myfilename to name of myfile
    if (count of every character of myfilename) > 4 and (character -4 of myfilename) as text is "." then
    set filestatus to my checkifopened(myfile, 60)
    if filestatus = false then
    display dialog "timeout on folder action"
    else
    set tmp to ((characters 1 through -5 of myfilename) & "#" & myfile_datestring & (characters -4 through -1 of myfilename)) as text
    set myfilename to my checknamewith_pdfsuffix(tmp, thefolder, false)
    set name of myfile to myfilename
    end if
    end if
    end repeat
    end tell
    end adding folder items to
    on get_datestring(mydate)
    return year of mydate & "-" & (characters -2 through -1 of (("0" & (month of mydate as integer)) as text)) & "-" & (characters -2 through -1 of (("0" & (day of mydate as integer)) as text)) as text
    end get_datestring
    on checknamewith_pdfsuffix(n, D, looped)
    --check if filename exists in D
    -- so if "A File.pdf" exists it names it "A File 1.pdf","A File 2.pdf",...
    #n = string of the filename
    #D = file reference to the directory to check
    #looped = boolean used for recursive loop...
    tell application "Finder"
    set thefiles to name of every item of (D as alias)
    end tell
    if thefiles contains n then
    if looped = false then
    set n to ((characters 1 through -5 of n) & "(1)" & (characters -4 through -1 of n)) as text
    my checknamewith_pdfsuffix(n, D, true)
    else
    set tmp to (last word of ((characters 1 through -5 of n) as text) as integer)
    set tmpcount to (count of characters of (tmp as text)) + 5
    set tmp to tmp + 1
    set n to ((characters 1 through (-1 * tmpcount) of n) & "(" & tmp & ")" & (characters -4 through -1 of n)) as text
    my checknamewith_pdfsuffix(n, D, true)
    end if
    else
    return n
    end if
    end checknamewith_pdfsuffix
    on checkifopened(this, mytimeout)
    ## this file reference
    ## timeout in seconds
    set a to POSIX path of (this as alias)
    set startdate to current date
    repeat until 1 = 0
    ## don't like that one because it relies on an error msg ... so
    (** try
    set b to do shell script "lsof | grep " & quoted form of a
    on error
    exit repeat
    end try**)
    ##so I use this one
    set b to do shell script "lsof"
    if b does not contain a then
    return true
    else if ((current date) - startdate) > mytimeout then
    return false
    else
    ##say "still opened"
    end if
    end repeat
    end checkifopened
    to use this save this script in /Library/Scripts/Folder Action Scripts
    and add this as a folder action to your folder...
    The script processes all files inside that folder each time a new files is added...

  • Copying files to my MBA Early 2011, 10.6.7 changes their 'date modified' to the current date. It happens only to some of the files copied. Any idea what my be causing it. Never had this problem before, on othe macs I have owned.

    Copying files to my new MBA (early 2011) running 10.6.7 results in their 'modification date' to change to the current date. Any idea what may be causing it. It happens only to some of the files (there is no pattern to it.). I have not seen it previously in many other macs I have owned.

    Hi all
    I am bumping this thread again because I can't believe that I am the only one experiencing this issue. At times it is costing me hours repeatedly copying files until eventually the date doesn't show as modified.
    I thought I had cracked it earlier by changing the Sharing & Permissions settings, and applying to enclosed items the ability for Everyone, Me and Staff fo have Read & Write permissions - but that doesn't seemed to have changed much.
    Copying in smaller batches helps sometimes, but then other times it makes no odds, and the Date Modified date shows as the original date for a few seconds, only to change to today's date. Driving me nuts because there is no pattern to it.
    Files which I have copied and show their original modified date, when moved to a subfolder, then have their date changed to today!!! Copying other files into the folder results in files that were previously OK having their Date Modified changed!
    Am I on the only one?

  • How to add 15 days to the current date

    Hi everyone,
    I have the following doubt.
    I stored the current system date in to a variable.Now I want to store the date which is 15 days after the current date in to a new variable.
    ie current date:1-aug-09
    later date:1-aug-09 + 15 days ie 16-aug-09.
    Plz help me in solving this problem.
    Thanks & Regards,
    srinivas

    jaligamasrinivas wrote:
    I used String variable to store the current Date.
    Now in new string variable i want to store the date after 15 days from current dateSee reply #2. String is not the right type, to be doing date arithmetic, just like it wouldn't be the right type to do numeric arithmetic. You wouldn't store integer values as strings and ask how to add them up, would you?

  • How to suppress a row based on current date -  at query level?

    In an Bex query report i have suppress rows based on current date.
    There is no current date available in query.
    there is a date field in the query.
    If by chance the date in that field is lesser than current date, I have to suppress that row.
    How can this be achieved?

    What is the code ofr creating a variable to get values >= to current date?
    I have implemented the following code which is not working.
    data L_S_range like line of E_T_range[].
    CLEAR L_S_RANGE.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'GE'.
    L_S_RANGE-LOW = SY-DATUM.
    APPEND L_S_RANGE TO E_T_RANGE[].
    Actually i have written in class, which will be inherited in superclass.
    Edited by: akshara20 on Feb 2, 2011 1:21 PM

Maybe you are looking for

  • One Time Flat File load in a Cube that extracts from ECC

    Hi, I have a cube that is already extracting data from ECC on a daily basis. I am asked to load some historical data into the cube from their legacy system. My question is, how do i prepare that file from the legacy system to match the fields in the

  • BELKIN F5U228

    Has anybody used one of these with a MacBook Pro to capture video from an old video camera? Belkin have been unable so far to tell me the compatibility situation.

  • How to deny other hostname or domain name pointing to same IP address in MySQL

    Im using Cento 6.5 and MySQL version 5.6.25 For example: IP address: 192.168.1.250 this IP has 2 domain name 1. db.mysqldatabase.com 2. web.mysite.com i want to block or deny the 2nd domain name in database hostname if i update our Mysql Connection s

  • IPhone 5 not charging when cable is connected

    I recently had my iPhone battery replaced, it was ordered directly from the iStore (I live in South Africa) and is a valid, not generic, battery. Since the technicians replacement, the phone has been working like normal, but upon charging for the fir

  • Device internet failure

    os-windows 8.1 pro Microsoft hyper-v network switch default miniport driver loading problem Windows cannot load the device driver for this hardware. The driver may be corrupted or missing. (Code 39) {Unable to Load Device Driver} %hs device driver co