Validation for month

Hi
I have a field spmon on the selection screen in which date format is mm.yyyy.
the range of dates can vary from month april to august ie. 04.yyyy to 08.yyyy.
How can i validate these dates. can anyone help me pls.
thanks
bye

Hi,
SELECT-OPTIONS: s_date FOR xxxx.
AT SELECTION-SCREEN ON s_date.
IF NOT s_date[] IS INITIAL.
  IF  s_date-low+0(2) LE '04'
OR s_date-high+0(2) GE '08'.
message e000 with 'ENter date range from April to August'.
ENDIF.
IF s_date-low+2(4) > s_date-high+2(4).
message e000 with 'Enter year correctly'.
ENDIF.
ENDIF.
Message was edited by:
        Judith Jessie Selvi

Similar Messages

  • ORA-01839: date not valid for month specified

    Hi
    I got this error while executing the mapping.
    We are using 9.0.2.56 version of OWB.
    Error details shown in audit viwer is
    "PER_EMPP_CREATIONTIMESTAMP"("PER_EMPPROFILING_STG_01_i") := "DEDUP_MAP_INPUTS_ENDDATE_PAR"("DEDUP_i");
    1752 Records are selected and 1749 Records are inserted.
    The attributes given above are date attributes itself.
    It the defined attributes are not date attributes then none of the rocords should have got inserted.
    The mapped attribute from the source is aslo a date attribute.
    I feel this as a strange error. where its not showing error for other records.
    Sorry if this is a silly doubt.
    Unable to fix it.
    any help is highly appreciated.
    Thanks in advance
    Nanda Kishore

    Hi I was able debug the error.
    The error was in a transformation.
    Its looks very strage for me with the error shown in the audit viewer.
    When the error is in a tranformation why is it showing differently in audit viewer.
    it just wasted a days effort for me in debugging.
    Had it been shown that the error is in Transformation probably I would have not spent that much time.
    The audit tables should show that the error is in transformation.
    Did any one face this before and how was it solved.
    Just share with me if the same thing has happened to others.
    Thanks
    Nanda Kishore

  • FI-REFX Add additional validation to monthly posting

    Dear,
    We would like to add extra validations to the standard posting programs RERAOP/RERAPP (and their reversal programs RERAOPRV/RERAPPRV). These are standard SAP transactions within Real Estate to make (monthly) postings on the contract. Each contract contains a rental object (= the building or part of the building).
    An additional validation should be made on the profit center used in the posting (which is derived from the rental object) if the profit center is active for the company code used.
    If not active, it should not generate any posting for the contract in which the rental object/profit center is used and generate a standard error log - as done by the default program & give a detailed error message.
    The problem is that there is no user exit available/found to add an additional validation or to add an error message to the error hierarchy + to prevent the posting.
    We can add the error message to the error hierarchy in display (transaction SLG1), but not in the execution (update mode) of the program.
    Can anyone please advice on how to proceed to have this additional validation added please?
    Many thanks!
    Steps to reconst
    RERAPP or RERAOP with contract which contains a rental object that is linked to a profit center which is not active for a certain company code.
    Error message should be given: For contract X, profit center Y is not active for company code Z.
    Indicator should be red (error) and no posting should be made.
    Many thanks!

    Dear Pk,
    Thank you for your idea. Eventually this would be the way to go as the validation I need is indeed based on data in gl_je_lines in status other than 'P' - Posted.
    There are several posting programs that are called in several ways.
    The posting programs are:
    - Posting -- Executable: GLPPOS
    - Posting: Single Ledger -- Executable: Posting: GLPPOS
    - Program - Automatic Posting -- Executable: GLPAUTOP (this will submit the GLPPOS)
    The ways to post journals in GL (except SLA journals) are:
    - run the Program - Automatic Posting
    - push the "Post" button on the journal entry form
    - use the Jpurnal -> Post navigator function
    In this case the validation I need would imply the forms customization + custom posting wrapping program.
    I was looking for a way of adding one more validation to the standard list of validations for the GLPPOS executable as this is the only executable being responsible for posting in GL.
    Thanks again for your response,
    Cosmnin

  • Office 2013 - Excel 2013 - "This action is only valid for products that are currently installed."

    I had Office 2010 starter and Outlook 2010 installed.  I recently purchased the Office 2013 click to run version (paid monthly subscription) and installed Office 2013.  After installing 2013 I noticed that when I opened up Excel files they would
    still open in Office 2010.  I uninstalled Office Starter 2010 and uninstalled Outlook 2010.
    I then manually fixed the file associations for Word, PowerPoint, Publisher and such, however I could not manually fix the Excel file association. 
    Excel documents show the correct icon however when I double click on them the following error appears "This action is only valid for products that are currently installed."
    I have used the Office 2013 repair process, I have uninstalled and reinstalled Office 2013, I have manually uninstalled office 2013 using KB 2739501 (
    http://support.microsoft.com/kb/2739501/en-us ) and I still can not open Excel documents. 
    Recently I found that I can not do mail merges either using Excel documents as the data source and I believe the two items are related.
    Any suggestions?

    Hi,
    Please try to turn off compatibility mode and then check the issue again. To do this, please follow:
    1. Open this folder location:
    For Windows 32-bit: C:\Program Files\Microsoft Office\Office15
    For Windows 64-bit: C:\Program Files (x86)\Microsoft Office\Office15
    2. Find Excel.exe, right-click it, and choose Properties.
    3. Click on the Compatibility tab and ensure that all of the boxes are
    un-checked.
    For more information, please refer to this:
    http://support.microsoft.com/kb/2674519/en-us
    Thanks,
    Steve Fan
    TechNet Community Support

  • How do I use a Creative Cloud license when I have limited Internet for months at a time?

    How do I use a Creative Cloud license when I have limited Internet for months at a time?  I proces a lot of photos in remote areas where an application that needs online access would be useless.

    Hi Freewill,
    Please see the Creative Cloud FAQ here.
    Do I need ongoing Internet access to use my Adobe® Creative Cloud™ desktop applications?
    No. Your Creative Cloud desktop applications (such as Adobe® Photoshop® and Illustrator®) are installed directly on your computer, so you won't need an ongoing Internet connection to use them on a daily basis.
    An Internet connection is required the first time you install and license your desktop apps, but you can use the apps in offline mode with a valid software license. The desktop apps will attempt to validate your software licenses every 30 days.
    For annual members, you can use the apps for up to 99 days in offline mode. Month-to-month members can use the software for up to 30 days in offline mode.
    Cheers,
    Michael

  • Spry Validation For PHP Form

    Hello All,
    I am currently using the Spry Validation within Dreamweaver 5.1.1 and it was working in my development environment until yesterday. I did not change directories so I believe it is not an issue with my file structure.  Below you will see my baic form set up and for some reason, when I load my page, all of the spry error messages are visable. Previously, the page would load and it would not appear until there was an error after submitting the page.  Maybe I'm missing something but an extra pair of eyes does not hurt.  The ".textfieldRequiredMsg" class displays automatically when it is set in the css file to "display: none:".
    I'm stumped:
    <meta http-equiv="X-UA-Compatible" content="IE=100"> <!-- IE fights me on forms -->
    <title>Company Name</title>
    <link rel="stylesheet" href="css/style.css" media="screen">
    <!--[if IE]>
    <link rel="stylesheet" href="css/ie.css" media="screen"?
    <![endif] -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script src="js/jquery.placeholder.js"></script>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <form action="calltoaction/contact.php" id="contact" style="margin-top: -20px;" method="post" name="contact">
                      <div class="row">
                            <div class="left"><span id="sprytextfield1">
                            <input id="name" placeholder="Name" type="text" name="Name" autofocus required>
                            <span class="textfieldRequiredMsg">A value is required.</span></span></div>  
                             <div class="left">
                               <input id="pharmacyname" placeholder="Pharmacy Name" type="text" name="BusinessName" required>
                            </div>               
                       </div>
              <div class="row">
              <div class="left">
                <input id="telephone" placeholder="Please provide your contact number" name="Phone" required>
               </div>
              <div class="left">
              <input id="email" placeholder="Email Address" name="Email" required>
             </div>
              </div>
              <div class="row">
                            <div class="left">
                                <div class="styledselect">
                                  <select style="width:400px; color: #898888; height: 42px;" tabindex="2" name="Subject" id="Subject">
                                    <option value="select">What can we help you with? Click to select an option.</option>
                                    <option value="website comments">New Website Comments</option>
                                    <option value="ordering">Ordering</option>
                                    <option value="order status">Order Status</option>
                                    <option value="csos">CSOS Setup</option>
                                    <option value="payments credits">Payments &amp; Credits</option>
                                    <option value="contact account manager">Contact My Account Manager</option>
                                    <option value="email list">Join Email List</option>
                                    <option value="monthly newsletter">Sign Up For Monthly Newsletter</option>
                                    <option value="rewards">Auburn REWARDS Free Goods</option>
                                    <option value="reset password">Reset User ID/Password</option>
                                    <option value="questions">Questions</option>
                                    <option value="suggestions">Suggestions</option>
                                    <option value="other">Other (Please Specify)</option>
                                  </select>
                                </div>
                                <!-- end select style-->
                </div>
              </div>
              <div class="commentbox">
                                  <div class="left">
                                    <textarea id="styled" placeholder="Please type your message here" name="Comments" required></textarea>
                                     </div>
              </div>
              <div class="row">
                                  <div class="left">
                                  <input type="image" src="images/contact_submit.png" name="submit" width="85" height="38" id="submitbutton">
                </div>
              </div>
                       <div class="row">
                        <div class="left required"><em>*All fields are required.</em></div>
              </div>
            </form>
    <script>
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "none", {validateOn:["change"]});
    </script>
    </body>
    </html>

    That's what is driving me crazy. The code appears correctly.  The DOCTYPE is:
    <!DOCTYPE HTML>
    I've attached a screenshot of the page once it loads without submitting the actual form and the spry settings in Dreamweaver.
    Thanks!

  • Payment card not valid for Poland?

    How come is my payment card not valid for Poland? I purchased some application for my iPhone like a few months ago and it was ok and today I wanted to buy some song and that kind of message showed up: "Your payment card is not valid for Poland". What do I do?

    Dołączę do kolegów, żeby podbić statystki "niedziałania" zakupów
    Pzdr,
    Sławek

  • List AD accounts that have not been used for months?

    Hello,
    I use oldcmp.exe to show me what computers have not been used for months and I can disable them, but I wish to do the same for users Active Directory accounts, is this possible?
    We use AD 2003
    Thanks

    sorry for slightly belated reply. I've used another version of this script that doesn't have the GUI interface on it, this will make it easier for you to run from a scheduled task.
    copy the code and make the relevant changes to the top section of the script as the comments explain. This will send and email with a link to the report generated.
    #Script designed to search AD for inactive user accounts, mark them as inactive and move them to a specific OU then disable them
    #Script can be run in the following formats
    # 1. Report only
    # 2. Report and move account
    # 3. Report, move and disable
    #Uses quest powershell tools which can be downloaded from http://www.quest.com/powershell/activeroles-server.aspx
    #Version 2.0
    #Added email functionality
    #Denis Cooper
    #Setup script Variables
    #Change the setting from True to false to alter the way the script runs (only one option can be true)
    $ReportOnly = "True" #Generates a CSV file showing all inactive user accounts
    $ReportandMove = "False" #Generates a CSV report, moves the users to a specific OU
    $ReportMoveDisable = "False" #Generates a CSV report, moves the users to specific OU, and sets the description
    #Set the period of inactivity in days
    $InactiveFor = "90"
    #Specify the OU to search for inactive users - us AD CN if searching enire AD
    $SourceOU = "OU=Users,DC=MyDomain,DC=Int"
    #Specify the destination OU to move inactive users to is using report and move or report move disable script options
    $DestinationOU = "OU=Inactive Users,DC=MyDomain,DC=Int"
    #Don't mark anyone with the the specified prefix in the description field to inactive - DND stands for Do Not Disable and is specified
    #in the users account description field for accounts which may not be used to login so will show as inactive but that you don't want to disable
    #must leave the * after the word for wildcard matching
    $DescriptionPrefix = "DND*"
    #Specify the description to set in the computer account on ReportMoveDisable option
    $Description = "Account disabled due to inactivity on $Today"
    #Specify the path to create the csv file (make sure the folder exists)
    $ReportFile = "\\server\share\InactiveUsersReport.csv"
    #Get todays date and store it in the $today variable
    $Today = Get-Date
    #Email Settings
    $SMTPServer = "smtp-server-name" #replace this with your internal smtp server
    $FromAddress = "[email protected]" #replace this with your from address
    $ToAddress = "[email protected]" #replace this with your TO address
    $CCAddress = "[email protected]" #replace this with your TO address
    $Subject = "This is your subject line" #replace this with the subject line for the email
    $MessageContent = "
    Hello,
    Please find a link to the latest report containing users that have been inactive for $inactivefor days
    $ReportFile
    Please take the appropriate action.
    Thanks you,
    IT
    #NO CHANGES BELOW THIS LINE
    Function SendEmail {
    $messageParameters = @{
    Subject = $subject
    Body = $messagecontent
    From = $fromaddress
    TO = $ToAddress
    CC = $CCAddress
    SmtpServer = $SMTPServer
    Send-MailMessage @messageParameters
    #Generates a report showing inactive users
    Function ReportOnly {
    $inactiveUsers | Export-Csv $ReportFile
    $count = $inactiveUsers.Count
    Write-Host -ForegroundColor White "$count inactive users were found and are being processed"
    SendEmail
    Invoke-Item $ReportFile
    #Generates report and moves accounts to desitnation OU
    Function ReportandMove {
    $inactiveUsers | Export-Csv $ReportFile
    $count = $inactiveUsers.Count
    Write-Host -ForegroundColor White "$count inactive users were found and are being processed"
    Invoke-Item $ReportFile
    $inactiveUsers | foreach {
    Move-QADObject $_ -NewParentContainer $DestinationOU
    #Generates report, moves accounts to destination OU, disables the account and sets the description
    Function ReportMoveDisable {
    $inactiveUsers | Export-Csv $ReportFile
    $count = $inactiveUsers.Count
    Write-Host -ForegroundColor White "$count inactive users were found and are being processed"
    Invoke-Item $ReportFile
    $inactiveUsers | foreach {
    Disable-QADUser $_
    Set-QADUser $_ -Description $Description
    Move-QADObject $_ -NewParentContainer $DestinationOU
    #Runs the script
    #Finds all inactive user accounts which are in an enabled state and store them in the variable $inactiveusers
    $inactiveUsers = Get-QADUser -SizeLimit 0 -SearchRoot $sourceOu -NotLoggedOnFor $InactiveFor -Enabled | Where-Object {$_.description -notlike $DescriptionPrefix}
    #Checks which script to run
    If (($ReportONly -eq "True") -and ($ReportandMove -eq "True" -or $ReportMoveDisable -eq "True")) {
    Write-Host -ForegroundColor RED "Only one run condition is allowed, please set only one run value to True and the others to false"
    Break
    If ($ReportONly -ne "True" -and $ReportandMove -ne "True" -and $ReportMoveDisable -ne "True") {
    Write-Host -ForegroundColor RED "No valid run condition was specified, please set only one run value to True and the others to false"
    Break
    If ($ReportONly -eq "True") {
    Write-Host -Foregroundcolor Green "Script running in report only mode."
    Write-Host -Foregroundcolor Green "Checking for accounts inactive for $inactivefor days in the OU $SourceOU"
    Write-Host -Foregroundcolor Green "The report will open automatically once complete, or you can find it here $ReportFile"
    ReportOnly
    If ($ReportandMove -eq "True") {
    Write-Host -Foregroundcolor Green "Script running in report and move mode."
    Write-Host -Foregroundcolor Green "Checking for accounts inactive for $inactivefor days in the OU $SourceOU"
    Write-Host -Foregroundcolor Green "The report will open automatically once complete, or you can find it here $ReportFile"
    Write-Host -ForegroundColor Green "Any inactive accounts will be moved to this OU $destinationOU"
    ReportAndMove
    If ($ReportMoveDisable -eq "True") {
    Write-Host -Foregroundcolor Green "Script running in report, move and disable mode."
    Write-Host -Foregroundcolor Green "Checking for accounts inactive for $inactivefor days in the OU $SourceOU"
    Write-Host -Foregroundcolor Green "The report will open automatically once complete, or you can find it here $ReportFile"
    Write-Host -ForegroundColor Green "Any inactive accounts will be moved to this OU $destinationOU and disabled and their description updated"
    ReportMoveDisable
    This link should help you create a scheduled task to run the script
    http://dmitrysotnikov.wordpress.com/2011/02/03/how-to-schedule-a-powershell-script/
    Regards,
    Denis Cooper
    MCITP EA - MCT
    Help keep the forums tidy, if this has helped please mark it as an answer
    My Blog
    LinkedIn:

  • Validations for Date Parameter

    Hello All,
    I am working on jsp where i need to provide the user with 3 combo boxes where he/she can select the day,month,year.
    Currently i am using this code to display them.
    <select name="day" >
    <%
              String datestrTo = "";
              for (int i=1; i<=31; i++)
                   if (i<10)
                        datestrTo = "0" + i;
                   else
                        datestrTo = new Integer(i).toString();
                   if (datestrTo.equals(todaydate))
    %>
                        <option value=<%=datestrTo %> selected ><%=datestrTo%></option>
    <%
                   else
    %>
                        <option value=<%=datestrTo %> ><%=datestrTo%></option>
         <%
         %>
         </select>
         <select name="month" >
         <% String valueStrTo="";
              String selectedTo = "";
              for (int i=1; i<=12 ; i++)
                   if (i<10)
                        valueStrTo = "0" + i;
                   else
                        valueStrTo = new Integer(i).toString();     
                   if (valueStrTo.equals(todaymonth))
         %>               
                        <option value=<%= valueStrTo %> selected ><%=MonthArray[i-1]%></option>
         <%               
                   else
         %>          
                        <option value=<%= valueStrTo %> ><%=MonthArray[i-1]%></option>
         <%          
         %>
         </select>
         <select name="year">
         <%
              String yearstrTo = "";
              int currentyearTo = new Integer(todayyear).intValue( );
              for (int k = currentyearTo-2; k < currentyearTo; ++k)
                   yearstrTo = new Integer(k).toString( );
         %>
                   <option value=<%=yearstrTo %> ><%=yearstrTo%></option>
         <%
         %>          
              <option value=<%=todayyear %> selected ><%=todayyear%></option>
         </select>
         </td>
         </tr>
    But using this code user can select 30th day in February. I want to give validations for these fields. Such as when 'February' month is selected then we should have 28 days and so on.......
    Can any one help me how to solve this problem.......
    thanks in advance......................

    Why don't you write this with JSTL ?

  • ValidateRegExp for month in adf

    Hi all,
    Currently I am using Jdeveloper 11.1.2.1.0.
    I have a problem to validate Month in my adf application.
    What is regular expression for month validation, so that user just input number 1-12 with 1 or 2 digit ?
    any suggestion will be appreciate highly.
    thanks
    samantha

    Try this:
    <af:inputText label="Month" id="it1">
              <af:validateLongRange minimum="1" maximum="12" hintNotInRange="Months Should be in the range 1-12"/>
    </af:inputText>Thanks,
    Navaneeth

  • I am from greece and i am trying to purchase from App Store and i receive the following message Your account is not valid for use in the uk store You must change to Greek store before purchasing

    Hi!
    i am from Greece
    I have an i pod for 6 months now
    2 days ago, i tried to update it and the following message appears
    " Your account is not valid for use in the uk store
    You must change to Greek store before purchasing"
    How do I change to Greek Store?

    How to Change Your App Store Account Location | eHow.com

  • HT204411 Your account is not valid for use in the Bulgarian store. you must switch to the US store before purchasing.

    I am trying to download a Temple Run 2 for my kido, but get this message: Account not in this Store. Your account is not valid for use in the Bulgarian store. you must switch to the US store before purchasing.We live in USA, and a month ago I was able to download app. I just installed iOS 6.1..it was on my updates, so I insalled it
    Any idea how I can fix this and why is this happening?
    Thanks in advance!

    i have the same problem. but, as a temp solution try to use iTunes in your pc/mac & sign in with your device's iTunes account and change the store location to US store & download the app to your (iPhone-iPod-iPad)*
    * you must enable Automatic Downloads  (Settings ==> iTunes& app stores ==> Automatic Downloads ==> switch apps to ON)
    Good luck silveto & to your kido

  • Driver not valid for HP Pavilion dv6t

    Need to update my Intel HD Graphic driver.
    Tried HP and Intel and both are stating that the driver being installed is not validated for this computer. Please obtain the appropriate driver from the computer manufacture. Set up will exit.
    Can anyone help? TY

    @ls1313 ,
    Hello and thank you for posting on the HP support forums.  Here is the link to the only supported drivers for your notebook.
    HP Pavilion dv6t-3000 CTO Entertainment Notebook PC
    I hope this helps.
    Have a great day and thank you for posting.
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    D5GR
    I work on behalf of HP

  • Validation for text field: Null and contains no spaces

    Currently on APEX 3.2
    I want to check 1 text field and 2 text areas to ensure they are not null and blank (hitting the space bar in the field) before submitting the page. How do I do both validations for on each field?

    I created a validation with a type of 'Function Returning Boolean' and using the following code in the expression:
    IF( TRIM( :P1_Text_Field) IS NULL
    Or LTRIM( :P1_Text_Field ) != :P1_Text_Field )
    THEN
    RETURN false;
    ELSE
    RETURN true;
    END IF;
    Edited by: Jeremy_F on Apr 12, 2012 8:15 AM

  • When trying to update my Apps I am being advised my account is not valid for the UK, I must switch to the Ireland store. How do I do this?

    When trying to update or purchase Apps I am being advised my account is not valid for the UK Store and I must switch to the IReland store. How do I do this?

    Change App Store
    1. Tap "Settings"
    2. Tap "iTunes & App Stores"
    3.Tap "View Apple ID"
    4. Enter your user name and password.
    5. Tap "Country/Region."
    6. Tap "Change Country/Region"
    7. Select the region where you will be located.
    8. Tap "Done".

Maybe you are looking for