Validating the input screen

How to validate the input screen as like the web page screen
Example:
  If we are giving the integers in place of characters then it should throw the error like “please use the character fields”. The validation should occur, On spot.
Only after this validation, the cursor should go to the next input field.

Hi,
If you are giving integers, then there might be possiblity that it may be a character.
For ex., if you giving 1 in character,eventhough it is integer it can be a character also.So you cannot validate it.
But if you want to restrict numbers,then you can use the following.But it will work only if you press enter or execute button.
parameters : p_c1(4) type c modif id z1,
             p_i type i.
at selection-screen on p_c1.
if p_c1 ca '0123456789'.
message i000.
endif.
Kindly reward points by clicking the star on the left of reply,if it helps.

Similar Messages

  • Filter Option missing on the input screen

    Hi Experts,
    one of the user of the report is missing a filter option in the input screen, but when i try to execute the same query  with other users it comes up with the missing filter parameter.what could be the problem??
    Thanks in advace.

    Hi Shetty,
    Do you mean that the user is missing a variable for entry. This could be due to the fact that he has personalized that variable. Run the report and then goto Change > Variable values (from the change button, do not use the Refresh button). Here you can delete the personalization and he can then get the variable for input.
    Hope this helps...

  • Stay at the input screen after prompting message at the status bar

    I have some validation on the input values have been performed before executing the program. For invalid input value, I prompt an error message using "MESSAGE 'XXXX' TYPE 'E'.". The message is shown successfully at the bottom, but it goes to an empty screen. How can I show the message and at the same time staying at the user input screen?
    Thanks for your help!

    Hi,
    This can be done as follows.
    EG;
    SELECT * from mara
         into table i_mara
         where matnr = s_matnr.
    if sy-subrc NE 0.
    <b> message i000 with text-000.
    STOP.</b>
    endif.
    Use information message and STOP the process this will remain in ur selection screen itself.
    Hope this solves ur problem, just a day before i also got the same problema and fixed it.
    Kindly reward points and close the thread.

  • How to use the table maintenance events for validating the input entries..?

    Hi,
    I have created a Z table with 6 fields in which all are KEY fields. All are of CHAR type. I have created the Table Maintenance Generator for the same. While maintaining the entries in the table, even though I maintain a blank entry for a field it is saving the entry. But, I don't want that way. All the fields are mandatory in my table. One should enter all the fields. Otherwise it should not allow to save the entry. So, I think it can be done using the Table Maintenance Events. can someone tell me how to use the Table Maintenance Events. and which event to use for my reuqirement and what is the logic to be written.
    Or Is there any other way to solve my problem.
    Please share your inputs. Thanks in advance.
    Best regards,
    paddu.

    In the table maintenance generator, Environment --> Modifications --> Events then a screen will be appear here,we need to create the Events.In the EVENTS screen, press new Entries, there give 01(Before Saving the Data in the Database) and give a name(This will become a PERFORM), then click the Editor pushbutton, this will be there at the right side of the entry, then a popup will be appear, you can create an include program, there inside of the include program write ur code.
    Here is documentation for Event 01(Before Saving the Data in the Database )
    Event 01: Before Saving the Data in the Database
    Use
    This event occurs before new, changed or deleted entries are written to the database. Other activities can be performed, for example:
    hidden entry processing
    fill hidden fields
    flag data to be written to hidden tables after the database change.
    To have the changes saved by the central maintenance dialog routines, SY-SUBRC must be set to 0 at the end of the routine.
    Realization
    This event has no standard routine. The following global data is available for the realization of the user routine:
    internal table TOTAL
    field symbols
    field symbols <ACTION> and <ACTION_TEXT>
    <STATUS>-UPD_FLAG
    If internal table data are to be changed before saving, t he changes should be made in both the internal table TOTAL and in the internal table EXTRACT.
    FORM abc.
    DATA: F_INDEX LIKE SY-TABIX. "Index to note the lines found
    LOOP AT TOTAL.
    IF <ACTION> = desired constant.
    READ TABLE EXTRACT WITH KEY <vim_xtotal_key>.
    IF SY-SUBRC EQ 0.
    F_INDEX = SY-TABIX.
    ELSE.
    CLEAR F_INDX.
    ENDIF.
    (make desired changes to the line TOTAL)
    MODIFY TOTAL.
    CHECK F_INDX GT 0.
    EXTRACT = TOTAL.
    MODIFY EXTRACT INDEX F_INDX.
    ENDIF.
    ENDLOOP.
    SY-SUBRC = 0.
    ENDFORM.
    Regards,
    Joy.

  • Report Painter - Ordering the way variables appear on the input screen

    On the user input screen for a report, the variables for things such as Year, Period, Company Code, Profit Center......they do not always show up on the user input screen in the order that they are placed in the report.  Is there a way to change the order in which they appear ?  For example, if the default order on the user input screen is :
                   Company Code:
                   Year:
                   Profit Center:
                   Period:
    Is there a way to make the order different, such as:
                   Year:
                   Period:
                   Company Code:
                   Profit Center:
    Thanks..............

    Hi John,
    Go to Menu - > Edit -> Variation
    You can set the order of the Selection Screen fields there.
    Hope this helps you
    Regards
    Andrew

  • How to get the input screen?

    HI friends i have got a problem in displaying the initial screen in screen painter.
    in process after input i am having one push button(display) where when i click that push button it has to call  a program for that program i am having one input screen like empid.
    I am working like in PAI
    when 'display'.
    submit <program name>.
    Here it is displaying the direct output rather than displaying the initial screen where we have to give the input(empid).
    Can anyone give me solution for this.

    Hi Venkateswar,
    Use the SUBMIT statement with addition
    USING SELECTION-SET  to pass the values to the selection screen of the called report. Just press F1 on submit. It will show various additions. U can use any one which suites ur requirement.
    Thanks,
    Vinod.

  • Regarding the input screen

    hi,
    this  is my requirement
    iam having the input selection screen with list box and other input selection field.iam having radiobuttons also.
    let us say if i press a radiobutton 2 i have to made the field and the list box as mandatory fields for the input.other wise optional
    please provide me the code for this,
    thanks in advance

    hI SURYA,
    check the below code.... when you click the radio button 2 it will make the field 1 and check box mandatory.
    REPORT ZR6.
    SELECTION-SCREEN BEGIN OF BLOCK b1.
    PARAMETERS : FIELD1  TYPE I MODIF ID  SC1 ,
                   FIELD2 TYPE C AS CHECKBOX MODIF ID SC1.
    SELECTION-SCREEN END OF BLOCK b1.
    PARAMETERS: R1 RADIOBUTTON GROUP RAD1 DEFAULT ‘X’,
                                  R2 RADIOBUTTON GROUP RAD1.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF r1 = 'X'.
    LOOP AT SCREEN.
    IF screen-group1 = 'SC1'.
    screen-input = '0'.
    screen-active = '1'.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    ENDIF.
    IF r2 = 'X'.
    LOOP AT SCREEN.
    IF screen-group1 = 'SC1'.
    Screen-required = ‘1’.
    screen-input = '0'.
    screen-active = '1'.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    ENDIF.
    endloop.
    hope this will help you,
    <b>please reward if helpful </b>
    Regards,
    sunil kairam.

  • Validating the input

    Hi friends,
    I want to throw an error message when user enters in date field.My requirement is to restrict the user to enter only first day of the future months like 01.10.2009 or 01.12.2010...........not like 02.05.2009.
    how to do it?
    Thanks.

    Hi,
    Welcome to SDN.
    Try this code.
    parameter w_date like sy-datum.
    At selection-screen.
    if w_date+6(2) NE '01'.
    message 'Enter the first day of the month' type 'E'.
    endif.
    to check the whole future date
    PARAMETERS: p_date LIKE sy-datum.
    AT SELECTION-SCREEN.
      IF p_date+6(2) <> '01'.
        MESSAGE 'enter' TYPE 'E'.
      ELSEIF p_date+0(4) < sy-datum+0(4).
        MESSAGE 'wrong' TYPE 'E'.
      ELSEIF p_date+4(2) < sy-datum+4(2).
        MESSAGE 'Enter future month' TYPE 'E'.
      ENDIF.
    Thanks&Regards
    Sarves

  • FPM application - Not validating the Input at Review time

    Hello Guru,
    I am creating new FPM application from existing, as we have some issues in existing application. In existing application when I click on Review button it will fire below FPM event and validate the data and gives error message if any validation error.
    fpm.raiseReviewAndSaveEvent(IFPM.EVENT_REVIEW, IFPM.EVENT_SAVE,
    new VAC("Old DC Name", "Old Component Name" ));
    In my new application when I click on Review button it does not validate the data and even not display validation error messages. I have changed according to my new DC as below.
    fpm.raiseReviewAndSaveEvent(IFPM.EVENT_REVIEW, IFPM.EVENT_SAVE,
    new VAC("New DC Name", "New Component Name" ));
    My question is how FPM konws which fields it has to validate?
    Do I have to mention this information somewhere, if yes then how Can I put information for my new DC?
    Hope this helps to understand my requirements.
    Your help will be appreciated.
    Thanks,
    Ameet

    Hi,
    Please double check if MCU on FE server works well, when two participants are connected, the session is essentially peer-to-peer. When three or more participants are connected, the Application Sharing feature depends on the Front End Server Multi Point Control
    Unit (MCU) to provide the sharing stream to all parties.
    Please check if port 5065/TCP is available on Front End server.
    Please also troubleshooting with the help of Recommended Steps part in the link below:
    http://blogs.technet.com/b/nexthop/archive/2012/11/05/lyncmd-troubleshooting-lync-server-2010-application-sharing-internal-and-remote-scenarios.aspx
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • BEx analyzer variable screen Copy  and paste the input values functionality

    Hi all,
    in bw 3.5 we have functionality on the variable screen we can do directly copy the values and paste in the input screen. But in BI 7.0 BEx analyzer I am not able to find it. Is it required to apply any patches?
    Please guide me on this.
    Thanks

    Hello All,
    We have a similar issue only in 2004s query designer when we execute a query via the web. We have the variable set up to accept multiple single values and we can pick multiple single values and add them, however, we cannot paste a list of, for example, personnel numbers from an excel spreadsheet into the web selection box to add multiple single values at one time.  Does this functionality exist?
    Regards,
    Ann Bohn

  • User input screen in the Bex report

    Hi experts,
    In the input screen of a BEx report, suppose for Business Area if we have 10 values in the infoprovider
    then if user entered other than the 10 values then it should give me an error message saying that enter a
    correct value.But right now it is not happening like that. How to get this ?
    Regards,
    Smitha.

    Hi,
    I kept some breakpoints and executed the query, but it is not going into debug mode.
    In the code when clicked on Code Inspector the following errors came:
    1.Program XRSR Include ZXRSRU01 Row 143 Column 0
    Large table /BIC/AZSM_DSO00: No WHERE condition
    2.Program XRSR Include LXRSRU05 Row 19 Column 0
    Der Typ des VALUE-Parameters "E_THX_MAPPING" enthält eine
    oder mehrere Tabellen, die als Zeilentyp wiederum interne
    Tabellen enthalten (Siehe Test-Dokumentation).
    3.Program XRSR Include LXRSRU05 Row 19 Column 0
    oder mehrere Tabellen, die als Zeilentyp wiederum interne
    Tabellen enthalten (Siehe Test-Dokumentation).
    4.Program XRSR Include LXRSRU05 Row 19 Column 0
    Der Typ des VALUE-Parameters "I_THX_SENDER" enthält eine
    oder mehrere Tabellen, die als Zeilentyp wiederum interne
    Tabellen enthalten (Siehe Test-Dokumentation).
    5.Message Code 1002
    Program XRSR Include LXRSRF00 Row 94 Column 0
    The EXCEPTION "X_RAISE" is not defined in the interface of the function module
    "RRMS_X_MESSAGE". "RRMS_X_MESSAGE".
    Internal Message Code: MESSAGE G-7
    ==>  The EXCEPTION "X_RAISE" is not defined in the interface
    of the function module  "RRMS_X_MESSAGE".
    "RRMS_X_MESSAGE". Internal Message Code: MESSAGE G-7
    6.Message Code 1700
    Program XRSR Include ZXRSRU01 Row 157 Column 0
    Char. strings w/o text elements will not be translated:
    'Enter Correct value for FISCPER'
    ==> Char. strings w/o text elements will not be
    translated: 'Enter Correct value for FISCPER'
    Please help me in checking these errors.
    Regards,
    smitha.

  • One input screen in iTunes Producer stumped me

    I successfully uploaded my iBook yesterday. I had to skip one page of input using iTunes Producer. That did not torpedo the upload, but can someone answer my question re. what I was being asked for that I did not understand?
    The input screen that stumped me appears when accessing the “Publication” section of the “Assets” tab.
    Under “Books/Textbooks” is two available choices to be made.
    It looks like I’m being offered to choose an image to associate with the word “Publication”, and replace the default “iBooks” cover icon, and also replace a second, identical iBooks icon that appeared directly under the words “Publication Preview”.
    I assumed that the page was asking for a couple of additional images or pictures, although I had already uploaded the book file from iBook Author w/o problems and it contained all of the graphics files I needed.
    Anyway, when I clicked either of the “Choose” buttons, one of my desktop folders opened that contained only jpeg’s and tiff files but they were all grayed-out and unable to be selected.
    What was supposed to happen on that page? What was being asked for from me?
    Thanks.

    The "Choose" button under the "Publication" icon is a REQUIRED field.
    SO now I'm really wondering why the rest of the upload completed successfully?
    My package "validated" correctly.
    AM I going to have to upload the whole thing again?

  • Problem in Bex Input Screen

    Hi,
    We are using 0profit_ctr  in the input screen and hierarchies are made on dis infoobject and no of hierarchies are made on this infoobject and client wants to see only specific hierarchies in the help . Plz let me know hw it cud be restricted in the help .....
    0profit_ctr .
    1.   xyz
    2 abc
    3 hjk
    4.jkl
    i want that only xyz  abc and hjk hierarchies shud b visisble wen client will select  not jkl.... hw it can b achieved..
    thnx

    Hi,
    When you design query you should specify the drill down of hierarchy level.
    Thanks
    Ajay

  • My new windows 7 machine and firefox color defaults for input boxes are obscurring the input box on the google search page making google unusable

    Under Windows 7 Firefox looks quite different including the default blue for input to question boxes which are white on the xp machines. Normally this is not a problem. But on the Google web page the blue is so bold that nothing can be seen except for a very small portion of the characters (in red) extending below the input screen. This becomes miserable if you try to edit a search stmt or backspace to correct a spelling error. you are quickly lost and need to clear the cache and reload the page.
    This problem does not appear using Chrome or IE on the same machine. Nor is it a problem using Firefox 9.0.1 on two other home PC's running XP (there no input box obscures the answer). This seems to be a lot of work.

    That can be caused by the "Keystroke protection" in Comcast Constant Guard.<br />
    "Configure Anti-Keylogging Settings" -> disable
    *[[/questions/874709]]
    *[[/questions/870165]]

  • Input screen for Variable in Bex

    Hi ,
    I have created variable based on calender month and this variable is used in reports,but for this variable i am unable to get the input screen where as when iam trying to execute same report in RSRT it is allowing me to enter the date.
    Its lots of time for my query to exeute for 6 months data , i tried creating indexes , aggregates and partition on the cube but it did not help out for me to resolve this issue. Did anyone face similar kind of issue , if yes could you tell me what u have done or can be done to resolve this issue.
    Thanks

    Hi Sonu,
    Yes the properties of the web template has to be changed in the WAD.
    When this property is not enabled the query executes for all the data in the infocube and hence it takes lot of time because the variable entry is ignored.
    There is two solution to eliminate the problem.
    1. Please make this variable mandatory ( if you are allowed to. because some variabele are not liked to be mandatory by the user.)
    2. Change the property of the Webtemplate.
    Open the template that contains the query in WAD.
    in the properties Window click on the drop down box to view the property of the web template.
    if your are using WAD 7.0 do as follows
    go to web template parameters tab.
    under the section behaviour u have an option called Display variable.
    enable it.
    incase u use WAD 3.5 do as follows.
    in the properties window click on the  Web item tab.
    under the section general u have an option called force variable screen.
    enable it.
    i guess this may help you.
    Regards.
    Shafi.

Maybe you are looking for