Is there any FM to validate the DATE input in selection screen?

Hi Experts,
The Z prog. does hv a field in selection screen, with name of enter_date_as_YYYYMM.
So, user has to enter the vaue(inturn DATE) as YYYYMM, say 200807.
1) So, YYYY valid range shuld be 1960-2099 only, if not, throw ERROR message
2) MM range is obvoiusly 01-12, else ERROR message
3) if user enters July as 7, prog. need to take it as 07
so, instaed of coding to validate these, Is there any FM to meet my requirement?
thanq

Hi Srinivas,
You can see the sample code mentioned below. It will throw those errors which u mentioned. Even you can change the logic as u required. This is just for your information...
parameters: P_date(6) type n  obligatory.
DATA: p_len TYPE i.
at selection-screen.
if ( p_date4(2) lt '01' or  p_date4(2) gt '12' ) .
  MESSAGE e400(ZCA_GENERAL) WITH 'Date format is wrong enter only YYYYMM'.
elseif ( p_date0(4) lt '1960' or p_date0(4) gt '2099' ).
MESSAGE e400(ZCA_GENERAL) WITH 'Date format ( Year 1960-2099 ) is wrong enter only YYYYMM'.
endif.
Regards,
Naveen Veshala

Similar Messages

  • One of the folders on my external hard drive has transformed into a unix executable file and I can no longer access my files. Is there any way to save the data?

    One of the folders on my external hard drive has transformed into a unix executable file and I can no longer access my files. Is there any way to save the data?

    Wow, have seen Files do that, but a whole Folder as I recall!
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
    Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair. Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)

  • If meta data LUN is totaly destroied , is there any way to rebuild the data from the video LUN

    If meta data LUN is totaly destroied , is there any way to rebuild the data from the video LUN ????

    What happened to your metadata? Are you sure the metadata is gone?
    In theory, file carving could be attempted on the data LUNs, but you would need a tool that understands how Xsan lays out data across LUNs in a stripe group and hope your fragmentation isn't too bad. I doubt such a tool exists, but if one does it almost certainly is not publicly available. You should probably contact a data recovery service with experience recovering data from Xsan. Do that before you do anything else if this data is really important.

  • Is there any way to print  the data inside  the Notes field of MIR6 Report

    Hello Gurús.
    We need to include the data inside the Notes field in the report MIR6 - INVOICE OVERVIEW - report.
    Is there any way to print  the data inside (comments)  the Notes field as well in the Report  ?
    We found that the only way is to open the Notes and print it, but it takes time, any idea ?
    Rgds.
    MCM.

    There's nothing built-in that does that. If you only have text fields and they don't have any formatting or other property that would prevent it (e.g., Date, character limit), you can run a simple script to populate each field with the field name, and then print. A more complicated approach would be a script that adds text annotations near/over each field that shows the field name. This would just be for documentation purposes, but it's possible. Post again if you'd like help with the first. You'll probably have to pay someone for the second approach if you don't want to do it yourself.

  • Iphone 3GS was dropped and will not turn on or respond to USB connection.  Is there any way to extract the data off when it is not responding so that I can restore to my new phone?

    The phone is physically intact, but you can see the LCD is cracked behond the glass. I have tried plugging it in, tried putting it on the charger, and resetting it using the off and home buttons, bit response. I don't need the phone to work, but I do need to be bale to back it up in order to restore to the new phone.  Is there any way to extract the data or back up the hard drive without repairing the phone?  Just curious what my options are before I spend cash trying to fix the phone and find out there was another way to get the data.  Any thoughts here or should a good repair shop being able to create a backup somehow?

    Im not going to be much help because I don't know of anything else to besides take it somewhere that fixes electronics and see if they can get it off some how maybe if you take it to an apple store they can do something to get your information.

  • I have written a binary file with a specific header format in LABVIEW 8.6 and tried to Read the same Data File, Using LABVIEW 7.1.Here i Found some difficulty.Is there any way to Read the Data File(of LABVIEW 8.6), Using LABVIEW 7.1?

    I have written a binary file with a specific header format in LABVIEW 8.6 and tried  to Read the same Data File, Using LABVIEW 7.1.Here i Found some difficulty.Is there any way to Read the Data File(of LABVIEW 8.6), Using LABVIEW 7.1?

    I can think of two possible stumbling blocks:
    What are your 8.6 options for "byte order" and "prepend array or string size"?
    Overall, many file IO functions have changed with LabVIEW 8.0, so there might not be an exact 1:1 code conversion. You might need to make some modifications. For example, in 7.1, you should use "write file", the "binary file VIs" are special purpose (I16 or SGL). What is your data type?
    LabVIEW Champion . Do more with less code and in less time .

  • Is there any way to save the data on my ipod if it is in recovery mode and has to be reset?

    Is there any way to save the data on my ipod if it is in recovery mode and has to be reset?

    Only if this program will get the iPod out of recovery mode.
    RecBoot: Easy Way to Put iPhone into Recovery Mode

  • Is there any method to export the data from oracle 10g in any format !!!!!

    is there any methods to export the data from oracle 10g in the format of excel or csc or txt or anyother. i already downloaded the sql developer tool but it only exports the data of upto one lakh rows ,but i have two tables of more than 3 lakh and 10 lakh rows respectively.for this i used 'where' command to break the file through sql developer but that didnt work
    plz help me out if any thing possible
    i need to again import this data into microsoft sql if there is any direct method plz let me know
    its urgent
    Message was edited by:
    user628031
    Message was edited by:
    user628031

    Take a look at DUMP_CSV function by Tom Kyte.

  • When updating to the latest OS X my wife's Mac Book Pro locked at a grey screen with an apple icon and status bar.  Is there any way to recover the data on the laptop and complete the OS install?

    When my wife's Mac Book Pro was being updated to the latest version of OS X the laptop locked up at a grey screen with the Apple icon and status bar.  Is there any way to recover the data and complete the install?  I have not tried anything yet because of the data issue.  I am not sure which OS X version as I did not install the software.

    Used Macs of every description are always available on Ebay and Craigslist and from a plethora of online used-Mac resellers. Apple sells refurbished late-model Macs at 10-20% discounts with a new-computer warranty and the opportunity to extend the warranty with AppleCare.
    http://store.apple.com/us/browse/home/specialdeals/mac

  • Is there any way to retrive the data from my USB Key

    Hello,
    I have a usb key I have been using on a Win 7 desktop computer and a Mac Book Air to put in Data on a spread sheet.
    I interchange to put in the data between the computer and my MBA without any problem.
    I am today not able to open the usb memory key in either-Computer or the MAC Book Air.
    Does that mean I have a coruppted USB memory key and the data lost for ever?
    I have just put the USB memory key in my computer and it says File System CDFS.
    I put it in MAC Book Air and it would not open either!!
    Is there any way to access my data. I have no back up...

    If the USB drive won't mount on either computer, it's probable that the drive has failed, in which case it's unlikely that you can recover any data from it. You can do a web search for something like "flash drive file recovery" and you'll find a number of utilities that purport to do file recovery, but all the utilities I'm familiar with require that the drive at least be mountable. There may be services that could attempt recovery, but they tend to be expensive.
    The moral of the story is: never have only a single copy of a critical document, and if you must, never, never have your single copy only on a flash drive (or floppy, for those "old timers" who still use floppies).
    Regards.

  • I've broke my phone, it won't switch on, is there any way to recover the data from it?

    My phone has split up the side after I dropped it down some concrete stairs and now it won't switch on, so I need to know if there is anyway to recover the data from it, such as phone numbers, photo's etc. Anyone had this problem?
    I've tried plugging it in to the computer but it doesn't do anything, and tried plugging it in to the wall to see if that will switch it on, but nothing.
    Any help gratefully received! Steve

    If it will not turn on - you have zero chance of getting anything off the phone.

  • Had to crash my computer. Lost my recovery key. Have my iphone paired with previous install. is there any way to get the data back?

    In order to upgrade my computer from Windows xp to Windows 7, I lost access to firefox without thinking to generate a recovery key. Is there any way to get my data back?

    If the only thing you have paired to the account is an iPhone the answer is that unfortunately no. The iPhone client (Firefox Home) is just a "consumer" of the Sync data and can't do much.
    My best advice is to keep the iPhone synced to have access to bookmarks and manually transfer them to your new profile.
    Sorry to be the carrier of the bad news.

  • Is there any way to spy the data communicating between the GPIB and the PC.

    HI
    I have a device communicating with my PC using IEEE 488 GPIB card. Do we have any way to spy the data exchanged by the device and the PC running a different application.
    I am trying to program an application that needs to gather data from a HP 54602A - 150 MHz - 4 Channel oscilloscope using a IEEE 488 add-on card. I am able to talk to the device and request the device number through MAX. I need to know the other commands to the oscilloscope. Can any one help me in this regard.
    With Regards
    S.Gopal

    Launch NI Spy (Start >> Programs >> National Instruments >> NI Spy). You may want to configure it to capture 64k of data instead of 64 bytes since the strings sent to the device may be larger than 64 bytes.
    Start capturing with NI Spy and then run the application. All of the calls made to the device will be captured in NI Spy. You can then look at the data buffers to determine what strings are being sent to your device.

  • Is there any  way to Mask the Name when  a select statement is issued?

    Dear all,
    Is there any way to mask the name .. i mean if User issue a select statement in a customer table the real name should come like ' ABCXXXDEFXXCFXX'... Which is not the actual name?
    e.g if Name: CHIEV SONG MEE
    If user issue a statment select * from customers;
    The Result Should come something Like this:
    Name
    CHXXV SXNG MXX
    Thank You

    user3029023 wrote:
    but it seems there is no option in oracle it self which can be used as there they are saying to get a data masking software which we can't due to some internal issues....I would not say that. How one implements masking depends entirely on the requirements that need to be met.
    For example, schema A owns all the tables. Schema B can be created as a "trusted" schema - in other words, schema A trusts schema B and allows it full access (with grants) to its tables. Schema B implements data masking as views. For each table in A, a view exists in B that implements the required masking. B can now grant select access on these views to user C. User C will see the same data object names in B as it would have if it used A - only, by using the B data objects it uses masked data objects and not the original source data objects.
    Another example - schema Dev is to have all the data objects of schema Prod, but masked where needed. One can use CTAS (Create Table As Select) to create the required tables in Dev with masked values where relevant. This Dev schema can be "refreshed" on weekends by dropping all tables and getting a new fresh copy of production data and masking it - ready for the next week's development cycle.
    If the application use is for example APEX, then instead of coding SQL directly as reporting regions to display, a function is used instead. APEX supports reporting regions where it calls a function and this function provides the APEX run-time with the SQL to execute and contents to render. It is easy to use this approach to implement logic in functions that masked column data depending on who the APEX user is, the security/role attributes of the user, and so on.
    No there is not a single "+mask this column!+" feature in Oracle.. but that does not mean that such a feature is not supported and cannot be implemented. Oracle has a very comprehensive and rich set of tools - more so than most (if not all) other RDBMS products.
    It is up to the architect/designer/developer to use this toolkit in creating a system that meets the specific requirements at hand.

  • Is there any statement to transfer the data from unix server to another

    Hi All,
    Is there any statement or function module avaliable in sap to transfer the data from one unix server to another unix server apart from FTP(file transfer protocol).?
    My requirement :  I need to fetch the data from one unix server to another sap server. i have a option of FTP but i need to transfer the unix data to another server internal table.
    I need to move the unix data to another sap sevrver internal table
    Regards
    Raja

    not sure what your exact requirement is, but
    if both servers are in the same system group, you could potentially just mount the unix directory from the source machine to the target with nfs mount or something.
    if not, you could consider remote function call. create a remotable function module on the source machine to read the data into an internal table, and call that function module from the target machine. this requires creating entries in the RFCDES table (i think via SM59?). on the target machine, you would call function y_whatever destination xyz, where xyz is the RFCDES you set up. it works great.
    dave

Maybe you are looking for

  • Problem displaying WebHelp in firefox called from web application

    We're using RoboHelp 7.03. When the WebHelp is generated, it seems that the navigation topics all immediately begin with a few illegal characters. This isn't a problem in IE -- it ignores these characters and displays our help pages fine. In Firefox,

  • HT4137 I don't see reset in my general setting. Where is it ?

    I don't see a rest under general setting! What do I need to do to reset my iPad when I don't have a rest option?

  • Playing Music From Iphone App thru Car Stereo

    I know how to play my itunes songs through my car stero, but is there a way to listen through the car stereo to things like Pandora or Foreign Radio stations that I have downloaded as apps while driving? HELP

  • Macbook pro OS X 10.5 can not switch on

    I have made just now a password for my macbook pro OS X 10.5 , 2009. Before I had not. Then restarted and put my password. Mac shows me that it is a wrong password. What to do?

  • Goto Detail Page to PopUp Window

    I have a page with a repeat region in ASP VBScript. I want to use a Goto Detail Page but to open a PopUp Window with Javascript. This doesn't work for me, as it always goes to the first record: <script> function opencalinterval(){ var popurl="/en/cal