Check in filled values are correct

Hello,
I have a web interface with two layouts, the first one is just a description and the second one where you enter data.
For the key figure concerned, they have to reach the number showed in the first layout distributing it in the second layout by diff characteristics.
I would like to make a check before the data is saved.
I would like to show a message like "the sum of the values you entered is greater(lower) than the numbers of employees in your team" ... etc...
Maybe a user exit function is to be created, but where to place it ? In the after data change function in the web application builder ? And how to generate the message in the user exit ?
Any help is welcome.
Regards.

I already did it ( the dubble click on the inputprocessing) since the beginning.
But in the method, i don't find the code you mentioned.
I don't see where the save button s treated. I fall down to others calls and methods, but deeper i fall on the standard UP... function modules.
This the code of method inputprocessing in our system :
method called from BSP when an event appears
method inputprocessing .
  data: page_name         type string,
        subordinate_event type string,
        ls_handler  type upwb_ys_handler,
        method_subrc type sysubrc,
        eventtype   type char2, " UPWB_Y_HANDLER_TYPE,
        id          type string.
get runtime event id from HTMLB
  if event_id = cl_htmlb_manager=>event_id. " HTMLB event?
    data: lr_htmlb_event type ref to cl_htmlb_event.
    lr_htmlb_event = cl_htmlb_manager=>get_event(
        runtime->server->request ).
    if lr_htmlb_event is not initial.
      event_id = lr_htmlb_event->id.
    endif.
  endif.
Set runtime environment for components
  cl_upwb=>bsp_oninputprocessing(
      event_id   = event_id
      runtime    = runtime
      navigation = navigation
      page       = page
      request    = request
      version    = version ).
  m_event_id = event_id.
  mr_navigation = navigation.
  mr_page = page.
  mr_request = request.
mr_response = response.
  mr_runtime = runtime.
  m_version = version.
The id before '-' is the component name, that fires the event
  split event_id at '-' into event_id subordinate_event.
By default no error in input check
  clear subrc.
Request handling
  data: l_request_no    type string.
  if mr_application is not initial. " (check: no session time-out)
    l_request_no = request->get_form_field( 'bps-request_number' ).
  if the request handling is active (backward compatibility)
    if request->get_last_error( ) = 0
       and l_request_no is not initial.
      if l_request_no <> cl_upwb=>get_parameter( 'bps-request_number' ).
      the request is NOT correct!!!
      => THE ERROR PAGE SHALL BE DISPLAYED
        cl_upwb=>set_parameter( param = 'bps-request_ignored'
                                value = 'X' ).
        subrc = 10. " skip PBO
        exit.       " skip PAI (input processing)
      else. " request OK...
      the request is expected, increase the request counter
        add 1 to l_request_no. condense l_request_no.
        cl_upwb=>set_parameter( param = 'bps-request_number'
                                value = l_request_no ).
        cl_upwb=>set_parameter( param = 'bps-request_ignored'
                                value = '-' ).
      endif. " request OK
    endif. " request handling is active
  endif. " no time-out
Timeout handling
  if mr_application is initial.    " session time-out
    concatenate runtime->application_name '_exit.htm?timeout=1'
        into page_name.
    if request->get_form_field( 'sapgui' ) is not initial.
      concatenate page_name '&sapgui=1' into page_name.
    endif.
    if request->get_form_field( 'sapframe' ) is not initial.
      concatenate page_name '&sapframe=1' into page_name.
    endif.
    navigation->goto_page( page_name ).
    exit.
  endif.
get page name
  page_name = mr_application->get_current_page( ).
process input
  loop at mt_handler into ls_handler where
      eventtype ca c_validation and
    ( page_name = page_name
      or page_name = '*' ).
    method_subrc = dispatch( ls_handler ).
    add method_subrc to subrc.
  endloop.
execute event handlers
  if subrc = 0.
    eventtype = ce_event. " normal events
  else.
    eventtype = ce_exit_event. " exit events
  endif.
  loop at mt_handler into ls_handler where
      eventtype = eventtype and
    ( event_id = event_id
      or event_id = '*' ) and
    ( page_name = page_name
      or page_name = '*' ).
  call handler when no error in PAI or exit event
    dispatch( exporting is_handler = ls_handler ).
    if eventtype = ce_exit_event and ls_handler-event_id <> '*'.
      clear subrc. " process PBO on exit event
    endif.
  endloop.
endmethod.

Similar Messages

  • I have solved some questions, please check if my answers are correct

    Hi every Java aces,
    I have solved some programming questions, please check if my answers are correct. Thanks
    Here are the questions and the answers to each question
    (a) Write a method called add that takes three integers as parameters and returns an
    integer that is the sum of the three parameters.
    (b) Write a method called max that takes three integers as parameters and returns the
    largest of the three integers.
    (c) Write a method called printMax that takes three integers as parameters and prints
    the maximum value to the screen. The method should return nothing. The method
    should print the words \The maximum value is " followed by the maximum value,
    followed by a new-line character. You should try to use the max method that you
    wrote earlier.
    (d) Write a method called min that takes three integers as parameters and returns the
    smallest of the three integers.
    (f) Write a method called ticketPrice that takes one integer parameter representing
    the age of a person, and returns the price of a movie ticket in dollars (as a
    oating
    point value). Children under 6 get in for free (0.00), people that are 18 or under
    pay 8.50, senior citizens (65 or older) pay 6.50, and all other people pay 10.00.
    (g) Write a method called isDivisor that takes two integers as parameters and returns
    true if the rst parameter is a divisor of the second parameter or false otherwise.
    We say that m is a divisor of n, or that m divides n, if there is an integer k such
    that n = k m. Note that 1 divides every integer, and every integer divides i
    itself .
    here are my codes
    public class Methods
    // This is method (a)
    public static int add (int a, int b, int c)
    int sum = a + b + c;
    return sum;
    // This is method (b)
    public static int max (int a, int b, int c)
    int largest;
    if (a > b)
    if (a > c)
    { largest = a; }
    else
    { largest = c;}
    else
    if (b < c)
    { largest = c; }
    else
    { largest = b;}
    return largest;
    // This is method (c)
    public static void printMax (int d, int e, int f)
    int maxValue;
    maxValue = max (d, e, f);
    System.out.println ("The maximum value is " + maxValue);
    // This is method (d)
    public static int min (int a, int b, int c)
    int smallest;
    if ( a < b )
    if ( a < c )
    { smallest = a; }
    else
    { smallest = c; }
    else
    if ( b > c )
    { smallest = c; }
    else
    { smallest = b; }
    return smallest;
    // This is method (f)
    public static double ticketPrice (int age)
    double price;
    if ( age < 6 )
    { price = 0.00; }
    else
    if ( age <= 18 )
    { price = 8.50; }
    else
    if ( age < 65 )
    { price = 10.00; }
    else
    { price = 6.50; }
    return price;
    // This is method (g)
    public static boolean isDivisor ( int m, int n )
    boolean result;
    int check1;
    double check2;
    check1 = n / m;
    check2 = (double)n / m;
    if ( check2 == check1 )
    { result = true; }
    else
    { result = false; }
    return result;
    }

    Here are my codes
    // This is method (a)
      public static int add (int a, int b, int c)
        int sum = a + b + c;
        return sum;
      // This is method (b)
      public static int max (int a, int b, int c)
        int largest;
        if (a > b)
          if (a > c)
          { largest = a; }
          else
          { largest = c;}
        else
          if (b < c)
          { largest = c; }
          else
          { largest = b;}
        return largest;   
      // This is method (c) ?
      public static void printMax (int d, int e, int f)
        int maxValue;
        maxValue = max (d, e, f);
        System.out.println ("The maximum value is " + maxValue);
      // This is method (d)
      public static int min (int a, int b, int c)
        int smallest;
        if ( a < b )
           if ( a < c )
           { smallest = a; }
           else
           { smallest = c; }
        else
          if ( b > c )
          { smallest = c; }
          else
          { smallest = b; }
        return smallest;
    // This is method (f)
      public static double ticketPrice (int age)
        double price;
        if ( age < 6 )
        { price = 0.00; }
        else
          if ( age <= 18 )
          { price = 8.50; }
          else
            if ( age < 65 )
            { price = 10.00; }
            else
            { price = 6.50; }
        return price;
      // This is method (g)
      public static boolean isDivisor ( int m, int n )
        boolean result;
        int check1;
        double check2;
        check1 = n / m;
        check2 = (double)n / m;
        if ( check2 == check1 )
        { result = true; }
        else
        { result = false; }
        return result;
       // This is method (h)
      public static boolean isProduct ( double a, double b, double c )
        boolean result;
        if ( a == b*c )
        { result = true;}
        else
        { result = false;}
        return result;
         

  • Checking AppleID, my addresses are correct, but on second step for security, Apple advises it will send text for assistance and lists an account I do not know.  How do I change this?

    Checking AppleID, my addresses are correct, but then on second step for security, apple sent text to unknown address.  How do I change this?

    Does this apply?
    If you're asked for the password to your previous Apple ID when signing out of iCloud - Apple Support

  • Checking three 'if' statements are correct or wrong

    Hi Guys
    I'm working on a quiz where a user has to drag three movie clips to correct positions then press the 'next' button to move on (calls funtion nxt)
    I have nxt function to check to see if the three movie clips have been dragged onto the three correct positions (other movieclips), the code works but only if all three are correct.
    I want the function to check to see if all the clips have hit the right target,
    if so, then add +1 to the 'score' and go to frame 'end'
    if the clips aren't on the right target then just go to frame 'end'
    At the moment the nxt function doesn't work if the answers are wrong.
    Can anyone point me in the right direction?
    The quiz is here online, only four questions
    and here's the code for question 4 that i need some help with...
    function nxt(event:MouseEvent):void
    if (asc1_mc.hitTestObject(blank1_mc))
    if (shou_mc.hitTestObject(blank2_mc))
    if (crossb_mc.hitTestObject(blank3_mc))
    {score++;
    gotoAndStop ("end")}
    else
    {gotoAndStop ("end")}

    How about this?
    function nxt(event:MouseEvent):void
         if ((asc1_mc.hitTestObject(blank1_mc)) &&
              (shou_mc.hitTestObject(blank2_mc)) &&
              (crossb_mc.hitTestObject(blank3_mc))
             score++;
         gotoAndStop ("end");

  • How can i check my setting details are correct on my iPhone I recevied an error when sending a text this morning and while checking it out noticed my state and city are wrong

    How can i check my setting / about tab? This morning I got an error message say something wasn't safe (not sure what) I think it was my common name whcih is ch4iv.myvzw.com and while looking in there I noticed my state say NJ I live in PA, I did not buy my phone in NJ, the city says Bedminster I have never even been there. Can anyone advise?
    Can't I go on my Apple account and get to my setting / details.

    Here is the message...

  • How do I check Imy account details are correct

    I have stopped receiving emails since 10.06.14. I did recently install Google Chrome. My account details were configured automatically.

    To diagnose problems with Thunderbird, try the following:
    *Restart the operating system in '''[http://en.wikipedia.org/wiki/Safe_mode safe mode with Networking]'''. This loads only the very basics needed to start your computer while enabling an Internet connection. Click on your operating system for instructions on how to start in safe mode: [http://windows.microsoft.com/en-us/windows-8/windows-startup-settings-including-safe-mode Windows 8], [http://windows.microsoft.com/en-us/windows/start-computer-safe-mode#start-computer-safe-mode=windows-7 Windows 7], [http://windows.microsoft.com/en-us/windows/start-computer-safe-mode#start-computer-safe-mode=windows-vista Windows Vista], [http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/boot_failsafe.mspx?mfr=true" Windows XP], [http://support.apple.com/kb/ht1564 OSX]
    ; If safe mode for the operating system fixes the issue, there's other software in your computer that's causing problems. Possibilities include but not limited to: AV scanning, virus/malware, background downloads such as program updates.

  • TS3899 Cannot send email from iPhone. Outgoing settings are correct. Checked against iPad setting which are OK and can send mail OK.

    Cannot send email from iPhone. Outgoing settings are correct. Checked them against iPad settings which are OK and can send mail. What can I do?

    For IOS7.02
    The user name and password are in two places. Make  sure they are correct in both locations.
    Settings>>Mail, Contacts, Calendars>>your email>>
    First spot is here under INCOMING MAIL SERVER
    Below this is OUTGOING MAIL SERVER
    Select: SMTP smtp.comcast.net>> PRIMARY SERVER :smtp.comcast.net>>second location of user name and password
    Here is the second place that the user name and password must be checked.
    I had changed my password in the first spot, but not the second spot. I had been receiving the same error message. This fixed my problem.

  • Upgraded to iTunes 11. Now, I can not sync my music to my iPhone 4S (iOS 6.0.1) Apps, movies and videos sync OK. Music is the problem. Tags are correctly check-marked. Any ideas ???

    Upgraded to iTunes 11. Now, I can not sync my music to my iPhone 4S (iOS 6.0.1).  Apps, movies and videos sync OK. Music is the problem. Tags are correctly check-marked. NO ERROR MESSAGE THOUGH. Just a No Content in the Music App in the iPhone. Any ideas ???

    Bump!

  • Firefox no longer loads home page or deletes cookies. I have repeatedly checked both settings and they are correct. It always goes to the last page I was on when I closed the browser ..

    Firefox no longer loads home page or deletes cookies. I have repeatedly checked both settings and they are correct. It always goes to the last page I was on when I closed the browser .

    Go to '''TOOLS''' then''' OPTIONS''' then in '''GENERAL''' panel in '''STARTUP '''session choose '''Show my home page''', then click '''OK''' to save it, exit firefox and restart-it.
    see for more info: [https://support.mozilla.org/en-US/kb/Options%20window%20-%20General%20panel Options window - General panel]
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • Trying to publsh changes to my website. I get a message "There was an error communicating with the FTP server. Try again later, or check with your service provider." I did, and all my settings are correct, but still cannot publish

    Trying to publsh changes to my website. I get a message "There was an error communicating with the FTP server. Try again later, or check with your service provider." I did, and all my settings are correct, but still cannot publish.
    Any other ideas?

    Most likely you are suffering from a bug in iWeb that doesn't let you publish websites if an image you have added to your site begins with space. You can either search for that image and remove it.
    <Link Edited by Host>

  • "Check that the library name an prefix are correct." Yep, they are. Now what?

    Hello,
    I have a customer who is using a Labview wrapper for an IVI driver to create an application to send commands to an LXI instrument.  The problem is even the initialize call results in the following error:
    Driver Status:  (Hex 0xBFFA000A) Check that the library name (VTEXSwitch.dll) and prefix (VTEXSwitch) are correct.
    There are no problems communicating with the instrument using a web browser and NI-MAX sees the instrument fine.  The customer gets this exact same error when they rename the actual DLL file to something different, which indicates to me that the labview wrapper isn't finding it at all.  I've looked everywhere I can think of, but I can't see how Labview is supposed to know the path where it is looking for that DLL.
    This same wrapper has worked for a lot of other people.  I made sure they had installed the IVI Compliance Package and IVI Shared Components, and tried reinstalling the IVI driver from the manufacturer.  The problem is still there.  What should I do?

    BurlapSage wrote:
      I've looked everywhere I can think of, but I can't see how Labview is supposed to know the path where it is looking for that DLL.
     Probably it uses the standard windows algorithm as described in MSDN

  • Hello I'm trying to create Apple ID without success for a long time. And after checking with the bank details are correct with no success

    Hello I'm trying to create Apple ID without success for a long time.
    And after checking with the bank details are correct with no success

    If you choose US as your country while your bank details and credit card or PayPal account are from another country, then you will get an error not related to your details, such as 'the CVV number is incorrect', although it is correct.

  • TS1368 My account keeps asking for Region but the drop down menu lists Cities in China. I can,'t cange the region in my account because it asks me to check the date and time but these are correct. Any answers please?

    My account keeps asking for Region but the drop down menu lists Cities in China. I can,'t cange the region in my account because it asks me to check the date and time but these are correct. Any answers please?

    Look, I understand I still need a card attached to the account. The problem is, it won't accept my card because I only have 87 cents in my bank account right now.
    If I had known there would be so much trouble with the iTunes card, I would have just put the cash in my bank account in the morning instead of buying an iTunes card (I didn't expect the banks to be open on Thanksgiving of course).
    Apple will only accept cards that have a balance. The balance is so small in my account that it won't accept it as a valid card.
    I'm going to have to contact Apple anyway to reset the security questions. That's obvious. Your answers were not exactly helpful. You didn't tell me anything I don't already know, but thanks for trying to be helpful.

  • Check input  values are available in Hex

    how to check input values are available between 0x0000000000000001 to
    0xFFFFFFFFFFFFFFFE
    i am using following code. but error will come
    public boolean hexCheck16(String hex)
    String hex_min = "0x0000000000000001";
    String hex_max = "0xFFFFFFFFFFFFFFFE";
         int min1 = Integer.parseInt(hex_min.substring(2).toString(),16);
         int max2 = Integer.parseInt(hex_max.substring(2).toString(),16);
         int num = Integer.parseInt(hex.toString(), 16);
         if(num >= min1 & num <= max2)
         return true;
         else
         return false;
    Error is : java.lang.NumberFormatException: For input string: "FFFFFFFFFFFFFFFE"
    how to solve?

    Use BigInteger (and lose the "0x").

  • Content Organizer bug - PDF files does not get routed correctly if autodeclaration is on and library level default values are set

    It looks like whenever one specifies Column default values at a library level then the content organizer routing goes a bit awry SPECIFICALLY FOR NON OFFICE FILES [e.g. PDF] . Below are the observations and issues
    1. Column level default value set on a record library with auto declaration of records turned on.  The content organizer routes the document to the library but also keeps a copy of the document in the drop off library. It does not remove it from the drop
    off library. The instant we clear the default value settings at the library level of the target library the content organizer works as expected again. 
    2. If default value settings are specified on a column in the target library then the PDF file gets routed to the document library but all the metadata is blanked out. The copy of the file that remains in the drop off library has all the correct metadata but
    the target library has blanked out metadata. 
    Are the 2 observations described above by design or are they bugs? If so is there any documentation that is available that proves this because this does not make logical sense and proving this to a client in the absence of any documentation is a challenge.
    The problem goes away if we shift the default value to the site columns directly at the site collection level. It's just the library level defaults that the pdf files do not seem to agree with

    Hi Lisa,
    Thanks for responding. This can be replicated in any environment but is only replicable for a specific combination of content organizer settings . The combination of settings I am referring to can be seen in the screenshot below. If you turn off redirect
    users to the drop off library for direct uploads to libraries and if you turn on sharepoint versioning then you should be able to replicate the issue. Also we are using managed metadata site columns. I simplified this use case to a custom content content type
    with just 2 custom managed metadata columns and can still replicate the issue in several environments. Also note the issue does not occur if the default values are set at the site or site collection level. It only occurs if you set the column value default
    at a library level.  I was able to replicate this on a completely vanilla Enterprise records site collection freshly created just to test this.  Also note that the issue is not that the file does not reach the destination library. The issue is the
    document does not get removed from the drop off library after it is transfered to the destination library which technically should have gotten removed.

Maybe you are looking for