Date before 30 days

Hi,
I have CURRENT DAY variable and i want to create one more variable which gives the Date before 30 days.
Is there any STD variable which gives the date before 30 days .Please tell me.
I have created one variable with Customer exit processing type and i need to develop code for this. Can anybody provide code how we will get date(dd/mm/yyyy) before 30 days .I have created variable with name "Z_CVAR". Please help me on this.

use 0date variable to get the system date ... which is the SAP standard variable which pics the sy-datum.
Next restrict the KF with the 0date and right click on the 0date and click on offset and set the off set for the varaible as -30.
which gives the value -30 days.
If not as suggested in the earlier post -- create a z variable with replacement path -customer exit -- write the code ... in the code itself write the logic to get the -30 days
IF i_step = 2.
CASE i_vnam.
WHEN 'ZCURDAY-30'.
CLEAR: l_s_range.
l_s_range-low = sy-datum -30.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDCASE.
ENDIF.
regards
KP

Similar Messages

  • Sales order cannot be created  for the delivery date before 20.10.2008

    when i create a sales order today (18102008) sales order cannot be created  for the delivery date before 20.10.2008
    how the system is checking the 2 days duration for delivery date - which table is having this duration days.
    is it dependent on sales order type.....
    actually i checkeup in V0V8 - even then i couldn't  solve this error when i am creating the sales order.
    Pls suggest

    Dear Selvamuthu
    In normal circumstances, you can create as many as sale orders as you can irrespective of delivery date, and system will not  prevent to create unless you apply some user exit for some reason.
    Check any user exit is applied for that sale document type where some logic would have been written in such a way that if stock is available, sale order can be created.
    thanks
    G. Lakshmipathi

  • Purchase requisition delivery date before the requested/created date

    Dear Experts,
    We are getting an issue that Purchase requisitions created by APO are having Delivery Date one day before of requesed Date.
    Eg Purchase requistion created on 20.02.2015 and having delievery date on 19.02.2015.
    I have checked contract, Purchase info record Tlane all master data settings are ok.
    Planned Delievery Time maintained in the info record is 0 and GRPT time is 1 day.
    Same vendor, contract, PIR exists for 2 material, But we are facing issue only for one material.
    It is an urgent issue , if anyone is having any idea , suggestions please reply to me if any information required will update here.

    Hi Mariano,
    Thanks for your Reply !!
    GRPT and  PDT in ECC maintained as 1 day In material master.
    In Purchase Info record PDT is maintained as 0 days and GRPT is 1.
    I also checked tlane it is coming as 1 day and GRPT is 0 days.
    So which i analysed from some other eg of materials pur req is considering the settings of which is maintained in Tlane, so giving 1 day back date in Pur Req.
    But it solved my previous question but arises one more question that tlane we have not mannually maintained, it always created on the basis of contract in our scenario, so how the PDT=1 day come inside tlane?
    Regards
    Deepika Kukreja

  • Inventory: Movement after count with post date before the count date.

    Hi,
    We have stock movements all the days of the week.
    We conduct physical inventories on Sunday mornings. There are not stock movements on Sunday mornings (stock movements on Sunday starts at night).
    Usually we create the SAP Physical Inventory Document on Fridays, assigning Saturday as the Planned Count Date.
    We enter the SAP Physical Inventory Count on Sunday (at the end of the count) or on Monday.
    How you recommend us to use SAPu2019s Physical Inventory feature in order to calculate the Book Inventory considering all stock movements with posting date less than or equal to Saturday?
    Please, suggest us a solution that If we register a movement after we enter the count but with post date before the count date (and the count is not posted yet), the Book inventory is modified accordingly.
    Thanks in advance for your support!!

    SAP takes the book inventory in the moment you enter the count.
    Best you set  block movements , this block will be removed automatically when you enter the count. So you can prevent users from posting until you have entered the count.
    If you set the freeze book inventory, then SAP takes the book inventory in the moment you create the document.
    This is not a good way if you still have movements after inventory document creation and actual count.
    You have to make sure - organisational  wise, outside SAP - that all movements that happened before inventory count  are posted before you start entering the count. There is nothing in SAP that can help you in this case.

  • After I install itunes my windows 7 - 64 bit machine will not boot and I have to use Restore  to boot with a date before I installed itunes

    After I install itunes on my windows 7 - 64 bit machine it will not reboot and I need to restore to a date before itunes was install.  How do I fix this?

    I'm having a very similar issue, paired with iTunes not being able to get online.
    iTunes shows up in processes and then hangs at 17,000 K or so -- sometimes it will start up, but that (if it occurs) is a delay of literal hours.
    Pretty meticulously went through all the 'cannot connect' trouble shooting, and have uninstalled, restarted, and then reinstalled every piece of apple software; issue is just as firm. Starting in safe mode or admin mode don't fix it; signing in as a different user doesn't fix it.    

  • In GATP would like to push schedule delivery date+1 day

    Hi Experts:-
    We have below requirement  in GATP:-
    Can we maintain a condition record for pick /pack time  = 1 day against Shipping Point in particular Location.? In other word we would like to push schedule delivery date+1 day.
    In APO we can see control data :- Plan (LEAD), load (LOAD), pick/pack (PICK), transport (TRAN), unload (UNLD)
    In APO We have maintained  value = 24:00 for location XXXX ( as per below steps)
    1.     In the SAP Easy Access screen choose Master Data ® Master Data for Transportation and Shipment Scheduling ® Create Scheduling Step.
    2.     Select a condition type.
    3.     Enter concrete values for the key combination.
    4.     Enter a duration (external display: hhhhhhh:mm).
    While checking order, When the process branches into APO ATP, can see time 24:00 This seems to indicate that Pick/Pack record has now been found, but the scheduled delivery date is not being pushed out by one extra day.
    Looking at the condition log in APO shows the following;;
    Lead Plan:304 Access for Access sequence LEAD missing(Usage U)
    Pick Pick : 208 Condition record has been found
    Load Load: 304 Access for Access sequence LOAD missing(Usage U)
    TRAN Transport: 009 Condition record is missing
    UNLD Unload :  002 Access not made ( Initialized field)
    Can you suggest.

    Hi DB,
    Thanks, Very helpful links.
    I did some testing on various sets of data change in APO for PICK and TRAN :-
    Parameters :-     
    Order creation date     2-Nov
    Route YR0004= 4 days     
    Calendar :-Sat and Sun holidays  & 11th Nov bank holiday     
    Test 1 with 0 Day pick time, No TRAN maintained :-
    Delivery date     8-Nov
    Gi Date     7-Nov
    Loading date     7-Nov
    MAD     7-Nov
    Transportation planning date     7-Nov
    Test 2 with 1 day pick time, No TRAN maintained :-
    Delivery date     8-Nov
    Gi Date     7-Nov
    Loading date     7-Nov
    MAD     4-Nov
    Transportation planning date     7-Nov
    Test 3 with 3 day pick time, No TRAN maintained :-
    Delivery date     8-Nov
    Gi Date     7-Nov
    Loading date     7-Nov
    MAD     2-Nov
    Transportation planning date     7-Nov
    Test 3 with 5 day pick time, No TRAN maintained :-
    Delivery date     9-Nov
    Gi Date     9-Nov
    Loading date     9-Nov
    MAD     2-Nov
    Transportation planning date     9-Nov
    Now next scenario only TRAN without PICK
    Test1 with 1 day TRAN time
    Delivery date     8-Nov
    Gi Date     4-Nov
    Loading date     4-Nov
    MAD     4-Nov
    Transportation planning date     4-Nov
    *with 2 day and 3 day result is same as test1
    Test2 with 4 day TRAN time
    Delivery date     8-Nov
    Gi Date     3-Nov
    Loading date     3-Nov
    MAD     3-Nov
    Trasnportation planning date     3-Nov
    Test3 with 7 day TRAN time
    Can see Delivery Date moving ahead one day.
    Delivery date     9-Nov
    Gi Date     2-Nov
    Loading date     2-Nov
    MAD     2-Nov
    Trasnportation planning date     2-Nov
    Now next scenario  is to maintain data in both PICK and TRAN
    Test 1 with 1 days pick time+ 1 day Tran
    Delivery date     8-Nov
    Gi Date     4-Nov
    Loading date     4-Nov
    MAD     3-Nov
    Transportation planning date     4-Nov
    Test 2 with 1 days pick time+ 6 day Tran
    Delivery date     9-Nov
    Gi Date     3-Nov
    Loading date     3-Nov
    MAD     2-Nov
    Trasnportation planning date     3-Nov
    Would like to know is this the correct standard behaviour or something wrong with our system config.
    regards
    Samir
    Edited by: Samir Ali on Nov 3, 2011 4:07 PM

  • Current date, first day of month, last day of month, current week, current

    Hi All,
    may be the question will sounds basic for your guys, I am connecting via MDX a cognos reportnet on a BW 3.0B..due to loads of limitations on filtering via MDX on 'business date/time functions' , I would need to create in the infoqueries that are my data sources, the following additionnal objects:
    - current date
    - first day of current month
    - last day of current month
    - current week
    - current year
    I do not want prefiltered infoqueiries but object with these single values so that from reportnet I can have something like: OCALDAY between 'first day of current month' and 'last day of curent month'
    Is there standard fonction for this under BW/BEX or if we need to developp functions has nayone some code examples.
    thanks a lot for your great input
    David

    Hi,
    In universe level if you want implement the requirede functions then you have to write custom sql and if you want to implement them in Reporting level then most of the functions are available to you. e.g. Quarter,Month, Year, Current Date....
    Cheers,
    Suresh A.

  • How to verify that the user has changed table row data before db update

    Hi all,
    Iam using Oracle ADF with EJBs.
    I have a single selection table that displays rows of data returned from a function of my data control.
    The columns of my table are editable so that the user can change the data. The user selects a row, changes the data in one or more columns of the row and saves the data by means of a submit button. The code in the submit button, identifies the row of the corresponding iterator that the user clicked on and updates the data in the database (using the 'mergeEntity' function of the EntityManager)
    Before saving the data, I want to put some logic to check whether the user has actually changed some data to avoid unnecessary updates in the database . But for this I need a technique to detect that the user has indeed changed some data in the table row.
    One technique I have been using so far was to isolate the iterator row of the table and then query the corresponding row in the database table and compare their values.
    Except from dummy, this technique is not efficient if the table contains many rows.
    Moreover, in my case I have observed that on successive updates on the same row , the query on the database returns the new values (user changed values) and not the actual values contained in the database table. This means that when the user updates an iterator row the cached data affect also the results of the SELECT statement from the actual database table!!! Isn't this strange ?
    Can somebody propose me a neat method to detect when the user has changed the the data of an iterator row ?

    Hey Alan,
    The below solution seems overly complicated to me and can not be implemented without a custom screen and/or the use of JavaScript. Also, if your main concern is that a user may accidentally loose all their data because they closed the browser window or the session times out before they hit the save button then this solution does not help you.
    There are a couple of simpler approaches you can take here:
    # If the use of JavaScript is permissible you can hook into the windows 'onUnload' event, and pop-up a message box which gives the user the opportunity to cancel closing the window and save their case if they haven't already.
    # Implement an autosave feature by hooking into one of events provided by web determinations. A simple (but rather naive) way of doing this would be to hook into the OnRenderScreenEvent and call save on the interview session every time the event fires. This guarantees that all the data the user has submitted will aways automatically be saved, thereby removing the need to make sure the user manually saves their data before closing the browser.
    Automatically making Web Determinations close a browser window has to be done using JavaScript. However, doing so means that a) it won't work for people who turn off JavaScript, which is commonly done for accessibility reasons b) you'll likely run afoul of the browser's security mechanism (they generally won't let you close a window that you didn't open and some really don't like you doing that at all).
    Thanks,
    Kristy

  • TS3579 I found this useful because I did not know about the effect of typing in data and that you could only drag to rearrange the data.  I had typed in data before and this had caused problems but restoring defaults did not cause correct dates to show up

    I found this  (TS3579: If the wrong date or time is displayed in some apps on your Mac Learn about If the wrong date or time is displayed in some apps on your Mac) useful because I did not know about the effect of typing in data and that you could only drag to rearrange the data.  I had typed in data before and this had caused problems but restoring defaults did not cause correct dates to show up in Finder. 

    It sounds like there are a couple things going on here.  First check if you have a successful install of SQL Server, then we'll figure out the connection issues.
    Can you launch SQL Server Configuration Manager and check for SQL Server (MSSQLSERVER) if default instance or SQL Server (other name) if you've configured your instance as a named instance.  Once you find this, make sure the service is started. 
    If not started, try to start it and see if it throws an error.  If you get an error, post the error message your hitting.  If the service starts, you can then launch SSMS and try to connect.  If you have a default instance, you can use the machine
    name in the connection dialog.  Ex:  "COWBOYS" where Cowboys is the machine name.  However, if you named the SQL Server instance during install, you'll need to connect using the machine\instance format.  Ex:  COWBOYS\Romo (where Romo
    is the instance name you set during install).
    You can also look at the summary.txt file in the SQL Server setup error logs to see what happened on the most recent install.  Past install history is archived in the log folder if you need to dig those up to help troubleshoot, but the most
    recent one may help get to the bottom of it if there is an issue with setup detecting a prior instance that needs to be repaired.
    Thanks,
    Sam Lester (MSFT)
    http://blogs.msdn.com/b/samlester
    This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click
    "Mark as Answer" and
    "Vote as Helpful" on posts that help you. This can be beneficial to other community members reading the thread.

  • Using a checkbox in numbers- if,then, I want to display today's date if checked, and keep that date, the day it was checked, not the current day

    Using a checkbox in numbers- if,then, I want to display today's date if checked, and keep that date, the day it was checked, not the current day

    this will not work.  Numbers does not provide a timestamp.  you can, however, enter the formula "=now()" in any cell, then copy that same cell, then paste (using the command "Edit > Paste Formula Results"
    If you need a time stamp often,
    make a single cell table with the formula (mentioned earlier).
    and copy and paste as needed

  • Put Date Before Header Line in Receiver FCC

    Hi,
    I have to create a csv file with format :
    Date : dd/mm/yyyy to dd/mm/yyyy
    PRODUCT_CODE,NAME,ADDRESS
    123,ABC,xyz
    123,ABC,xyz
    123,ABC,xyz
    123,ABC,xyz
    123,ABC,xyz
    How should i achieve putting the date before header line?
    What should be my target structure format?
    What parameters to enter in receiver FCC?

    Hi,
    have you tried..
    Have you tried:
    (http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm)
    ● NameA.enclosureSign
    Specify a string that acts as a text delimiter.
    Text enclosed by such delimiters is transferred to the target structure unchanged, although the default setting is to remove all text delimiters. Separators within such texts are ignored.
    This parameter is optional. The default setting is an empty value (no text delimiter).
    ● NameA.enclosureSignEnd
    If the text delimiters for the beginning and end of the text are different, specify the text delimiter for the end of the text here.
    If you do not make an entry here, the entry from NameA.enclosureSign is used.
    ● NameA.enclosureSignEscape
    Specify a string that replaces the text delimiter if it occurs within a text that it delimits.
    When the text is transferred the string is replaced by the value specified in NameA.enclosureSign .
    ● NameA.enclosureSignEndEscape
    Specify a string that replaces the text delimiter for the end of the text if it occurs within a text that it delimits.
    When the text is transferred the string is replaced by the value specified in NameA.enclosureSignEnd.
    ● NameA.enclosureConversion
    To remove the delimiter upon transfer, or to replace it with escape characters, enter YES. This is the default value.
    To transfer the characters unchanged enter NO.
    Note
    If you specify xml.enclosureSign=“ and xml.enclosureSignEsc=““, text enclosed in quotation marks is transferred unchanged and the quotation marks are removed.
    If the escape character for a quotation mark (““) occurs in the text itself, it is replaced by the quotation mark during the transfer.
    Thanks,
    Vijaya.

  • Date Validation - End date before Start date

    This may be a very simple validation but I seem to be having trouble. I've got a form which requires a date range to be selected (Date Picker fields)...a Start date, and an End date.
    I've created a Function Returning Boolean validation with the code as:
    begin
    if :P1_END_DATE < :P1_START_DATE then
    return false;
    else
    return true;
    end if;
    end;This works 99%, except when the date range spans years.
    For example, when I select '21-Dec-2010' in the start date and '4-Jan-2011' in the end date. The validation fails, and thinks the end date is before the start date.
    Do I need to compare the year part of the date, before doing the rest? Or is the '<' not suited for this sort of check?
    Edited by: djston on Dec 20, 2010 12:13 PM

    Sorry, false alarm, it looks like I had my logic a little backwards :)

  • Removing "photo taken" date before printing

    I am using Photoshop Album Starter Edition 3.0, and forgot to turn off the "date taken" feature on my camera. Is there a way to remove or delete this date before I print the picture? Thanks!

    Sorry, removing that corruption of the image cannot be done automatically. Careful retouching [using Photoshop Elements, for example] can get rid of it on some images. Best tjing is to turn off the stupid facility and learn from the experience.

  • How does waveform graph downsamples the data before it is plotted

    Hi,
    I'm interested in how does waveform graph downsamples the data before it is plotted and what algorithm is used for this purpose? My goal is to plot 30 plots that have 1M samples each and I would like to downsample them before plotting onto a graph. I tried several VIs/algorithms for resampling and none of them gave the same result as seen by waveform graph (when all the samples are plotted).
    For example, if only one sample of 1M samples is 1 and all others are 0, then after downsampling to 1k samples the sample is not visible on the graph anymore. However, if I plot all 1M samples directly onto the graph, then also this 1 sample is visible (see attached example). 
    Solved!
    Go to Solution.
    Attachments:
    WFGDownsampling.vi ‏19 KB

    Hi andrej,
    LabVIEW draws plots in the way that draw every pixel affected by signal. So for example if there is zero-valued 1M samples and even one equals to 1, you will see the peak. That is the reason why you do not get the exactly same behavior comparing to interpolating. But if you set FIR as interpolation mode in Resample Waveforms (single shot).vi, result is really similar, but of course amplitude is 1000-times smaller than original one (because there is dt set to 1000). Keep also in mind that in Graph 2, there is different Y-scale and it should be considered as noise, not relevant data, I would expect 1000-times smaller amplitude as in Graph 3, it is many more times smaller.
    I would also like to say something about downsampling (decimating) the data. If you have 1M samples, you can see the peak even that there is only one value. But bigger problem is that with this graph resolution (I guess that is not more than 1000px), it is problem to find position of this peak. It means that still the zoom is needed to know where the peak is. Usually, when there is that big set of data, you are extracting different data (statistical information, peaks in FFT, etc.) not just visual data in graph.
    Mariaaa:
    I do not understand your question, can you please describe more your needs? You mentioned saving the data into a file, you can use Write to Measurement File express VI or see Write to Text File.vi in Example Finder and try to appropriately modify it.
    Best regards,
    Martin

  • After upgrading to OS Mavericks, I realized that the Partition for Windows is gone. I have really important data on this drive without a back up. Is there any way I can get this data before reformatting. Is there any third party software for receiving the

    After upgrading to OS Mavericks, I realized that the Partition for Windows is gone. I have really important data on this drive without a back up. Is there any way I can get this data before reformatting. Is there any third party software for receiving the data or any possible way? Money is not a limitation to this fix. Please help!!!

    sure pretty simple.  make a backup of your current settings
    http://support.apple.com/kb/HT1766?viewlocale=en_US
    then restore device from old backup you need pics off of
    then import pics to computer
    http://support.apple.com/kb/HT4083
    you may need to save pics to camera roll first
    then restore the new backup and sync pics back to phone via itunes
    Peace, Clyde

Maybe you are looking for

  • Jpg greyscale file not importing

    I wonder if there is a bug in the new iPhoto '09? I used to be able to import 8-bit greyscale images saved from Photoshop with an ICC profile; now I get a message that the file format is not supported. I also have noticed that at least one other such

  • How to run the recursive function in jsp

    hi, can any body tell me how to run rrays.sort(files); for (int i = 0, n = files.length; i < n; i++) { for (int indent = 0; indent < indentLevel; indent++) { System.out.print(" "); if (files.toString().endsWith(".jsp")) System.out.println(files[i].to

  • Info about BRF

    Hi all, can anyone tell me where i can have more info on BRF (apart from help.sap) and in what business context scenarios can it be used. Thanks and regards.

  • Problems downloading from "my downloads"

    hello together, I lost my DRM-Folder while installing Windows again.My "Nokia comes with Music" - now OVI-unlimited-Music- expired. When I wand to listen a song, i must download it again. There is no other availibility  to get the DRM-Rights. I think

  • Writable downloads folder?

    Hi I received the following error message: "Mail was unable to save the attachment .... to disk. Verify that your downloads folder exists and is writable" I was attempting to send a 'locked' folder as email attachment when this came up. I don't have