How to validate condition.

I have a from having two items , one for marks in subject1 and other for marks in subject2, When user in entering marks in both the items, the cumulative sum of those two marks must add to 100. On submission of the form it should check the condition that whether the cumulative sum in 100 or not.
If 100 is should proceed otherwise it should display error message that sum is not 100.

Sudipto,
You can use a Validation of type PL/SQL Expression to achieve this. The validation text would be something like:
:P1_SUBJECT1 + :P1_SUBJECT2 = 100;
If the value of the two items added together is not equal to 100, you will receive an error message when you submit the page.
Thanks,
- Scott -

Similar Messages

  • How to validate a filed in a search help which is created in se11

    hi
    i got a requirement that validate a search help. i created a ztable with 3 fileds for that one i have to create a search help so help me to how to validate fields in a search help.
    regards
    krishna

    Hello Krishna,
    What do you mean by validating a field? Usually you use a search help to display possible values for a certain input field based on values in another table. You can restrict the values that are displayed by certain conditions if you need to.
    If you want to allow only values based on complex conditions or authorizations of the user, you can always create a search help exit and in there you have complete control over what the user is allowed to see in the search help and what he is allowed to select.
    Function Module F4IF_SHLP_EXIT_EXAMPLE gives you an idea what you can do in a search help exit.
    Regards,
    Michael

  • How to Validate.

    After inserting the Process Order and plant range. its show the range of a process order. but when we click on process order it's shows all RESB-MATNR value of all process order(All range). How to validate? Plz help soon.
    TABLES: aufk, afko, makt, resb.
    DATA: BEGIN OF itab OCCURS 0,
    aufnr LIKE aufk-aufnr,
    werks like aufk-werks,
    erdat LIKE aufk-erdat,
    *auart LIKE aufk-auart,
    END OF itab.
    DATA desc LIKE makt-maktx.
    data movp like mbew-verpr.
    DATA: BEGIN OF itab2 OCCURS 0,
    aufnr LIKE afko-aufnr,
    gmein LIKE afko-gmein,
    gamng LIKE afko-gamng,
    plnbez LIKE afko-plnbez,
    END OF itab2.
    DATA: BEGIN OF itab3 OCCURS 0,
    *aufnr LIKE resb-aufnr,
    enmng LIKE resb-enmng,
    bdmng LIKE resb-bdmng,
    matnr LIKE resb-matnr,
    END OF itab3.
    SELECT-OPTIONS: process FOR aufk-aufnr,
    plant for aufk-werks.
    TOP-OF-PAGE.
    FORMAT COLOR = 1.
    WRITE: 'P O No',10 'PLant', 20 'DATE', 45 'UOM', 60 'MATIRIAL NO.', 90 'DESCRIPTION', 120 'ORDERED QTY'. "150 'COMPONENT', 170 'DESCRIPTION', 200 ' REQ.QTY', 220 ' ISSUED.QTY' ,240 'PLANT'.
    ULINE.
    START-OF-SELECTION.
    SELECT aufnr werks erdat
    FROM aufk
    INTO CORRESPONDING FIELDS OF TABLE ITAB
    WHERE aufnr IN process
    AND werks IN PLANT.
    SELECT aufnr gmein gamng plnbez
    FROM afko
    INTO CORRESPONDING FIELDS OF TABLE itab2
    FOR ALL ENTRIES IN itab
    WHERE aufnr = itab-aufnr.
    SELECT enmng bdmng matnr
    FROM resb
    INTO CORRESPONDING FIELDS OF TABLE itab3
    FOR ALL ENTRIES IN itab
    WHERE aufnr = itab-aufnr.
    LOOP AT itab.
    LOOP AT itab2 WHERE aufnr = itab-aufnr.
    SELECT SINGLE maktx INTO desc FROM makt WHERE matnr = itab2-plnbez.
    WRITE: / itab-aufnr, 20 itab-erdat ,10 itab-werks, 45 itab2-gmein, 60 itab2-plnbez, 90 desc, 110 itab2-gamng.
    CLEAR itab-AUFNR.
    ENDLOOP.
    ENDLOOP.
    CLEAR itab-AUFNR.
    AT LINE-SELECTION.
    REFRESH ITAB.
    ULINE.
    IF SY-LSIND = 1.
    FORMAT COLOR = 2.
    TOP-OF-PAGE.
    WRITE: 'Material' , 25 'Material desc' , 80'Moving Price' .
    ULINE.
    LOOP AT itab3.
    SELECT SINGLE maktx INTO desc FROM makt WHERE matnr = itab3-matnr.
    SELECT SINGLE verpr INTO movp FROM mbew WHERE matnr = itab3-matnr.
    WRITE: / ITab3-matnr, 25 desc , 80 movp.
    endloop.
    endif.
    Moderator message :Duplicate post locked.
    Edited by: Vinod Kumar on Jun 16, 2011 12:09 PM

    Haresh,
    Make sure you check for the non-empty condition for  ITAB before using FOR ALL ENTRIES IN option.
    if ITAB[] IS NOT INITIAL.
    ENDIF.
    Always check for this condition , whether the driver table is having records, else,, you will end up with irrelavent records, in which you are not intrested in.
    Thanks
    Sujatha

  • How to validate editbox item

    hi everybody...
    i have  a form with eidt box(uid 23) i want to check whether entered value is numeric or alphanumeric or alpha....
    i want to make it fix so that i should be able to enter only numeric values.....
    how to check this condition????

    Shenaz,
    This thread looks to be a repeat of this thread ...
    Re: how to validate editbox item
    Please only post your question once.
    Eddy

  • How to validate numbers in char field.

    Hello all,
    I have one database column with char data type. This field should allow insert only
    numbers [ zero to nine] and plus symbol .. how to validate this?
    Pls help me..
    I.m using oracle 9i database. So it does not allow REG-EXP and WITH methods.. So give some
    sql coding to do this

    As this forum is for issues with the SQL Developer tool, you'll probably get more answers in the SQL And PL/SQL forum.
    Regards,
    K.

  • How to enter condition wise tax amount manually in MIR7 & MIRO?

    We have a PO with a tax code entered in it.
    but while parking invoice in MIR7, we want to enter condition wise tax amount manully which is different than calculated tax amount through tax code and subsequently we want the same manual tax amount to be displayed in MIRO also
    I tried to enter amount for each condition in 'Detail' screen of 'Tax' tab in MIR7,
    but at the time of simulating, amount calculated as per tax code is only shown and not the amount entered by me
    'Calculate Tax' checkbox is not selectd in this case.
    Can anybody tell me how to enter condition wise tax amount manully in MIR7 & MIRO and post an accounting entry with this manually entered tax amount?

    Hi,
    i checked their is no unplanned delivery cost and in FV13 tax is 12.5%. In FTXP No Tax Percent rates.
    Regards
    Mahesh

  • How to validate the dates in the table control ?

    How to validate the dates in the table control ?
    Can I write like this ?
    LOOP AT it_tab .
    CHAIN.
    FIELD : it_tab-strtdat,it_tab-enddat.
    module date_validation.
    ENDCHAIN.
    ENDLOOP.
    Module Date_validation.
    ranges : vdat type sy-datum.
    vdat-sign = 'I'.
    VDAT-LOW = it_tab-STRTDAT.
    VDAT-HIGH = it_tab-ENDDAT.
    VDAT-OPTION = 'BT'.
    APPEND VDAT.
    WHAT CODE I have to write here to validate ?
    and If I write like this How can we know which is the current row being add ?
    It loops total internal table ..?
    Bye,
    Muttu.

    Hi,
    I think there is no need to put chain endchain.
    To do validation you have to write module in PAI which does required validations.
    Thanks
    DARSHAN PATEL

  • How to validate material status in physical Inv Doc creation using MI01

    Hi Experts,
    I would like to know how to validate material status while creating physical inventory document using MI01 transaction.
    I tried to figure out a suitable BADI and customer exits ,but it didnt work out well.
    Kindly share your thoughts on how this can be achieved.
    Regards,
    Mohammed Aslam Rasheed

    Do you really create your inventory documents with this MI01 transaction manually by entering material for material?
    The real transaction for physical inventory is MI31. How do you want SAP to react if hundreds of materials are selected and inventory documents are created in a batch process?
    SAP takes care about the material status in MI04 and MI07 transactions.
    I am not aware of any exit for MI01 maintenance, you may consider Explicit and Implicit Enhancement Options

  • How to Validate a User on the click of a button in Oracle APEX

    Hi,
    How to Validate a User on the click of a button in Oracle APEX.
    say for e.g: I want to allow only a specific user to go beyond after clicking on a button and restrict all the other Users. Any ideas please.
    Thanks in Advance,
    Af

    Well , the actual idea was to hide the button for specific users and show the button only for some specific users... is this possible...?
    @ AndyH: yeah, what you have suggested also fits well for my requirement... Could you please let me know how can i achieve it...
    Regards,
    Af

  • How to validate the file path when downloading.

    Hi
    How to validate the file path when downloading to Presentation or application Server.

    hiii
    you can validate file path by following way
    REPORT zvalidate.
    TYPE-POOLS: abap.
    DATA: w_direc TYPE string.
    DATA: w_bool TYPE abap_bool.
    w_dir = 'c:\Myfolder\'.
    CALL METHOD cl_gui_frontend_services=>directory_exist
    EXPORTING
    directory = w_direc
    RECEIVING
    result = w_bool
    EXCEPTIONS
    cntl_error = 1
    error_no_gui = 2
    wrong_parameter = 3
    not_supported_by_gui = 4
    OTHERS = 5.
    IF NOT w_bool IS INITIAL.
    WRITE:/ 'Directory exists.'.
    ELSE.
    WRITE:/ 'Directory does not exist.'.
    ENDIF.
    regards
    twinkal

  • How to validate a date in message mapping

    Hi experts,
                    how to validate a date in message mapping. For ex:  if date comes as 2008/02/31, then file it shold not get processed.how to achieve this in message mapping. Please help .
    Thanks&Regards,
    Reyaz Hussain

    Hi,
    There are few simple ways for date validation as follow,
    1.If you would like to handle it in XI only, then in message mapping you could verify about it with the help of generating smart exception.
    For e.g in mapping there is one Date conversion API i.e. somthing DateTransformation It converts the incoming date format to required format. Here give the date format i.e expected from Sender File.
    If in case the format miss-matched then it will create the exception.
    You could handle this exception with the use of [Alert notification|http://help.sap.com/saphelp_nw04/helpdata/en/2c/abb2e7ff6311d194c000a0c93033f7/frameset.htm] and could be even able to notify to sender system about it.
    2. The another solution is easy for SAP synchornous communication --If you are passing the file data to SAP, then you could use below function modules to verify date format in receiver RFC/BAPI or inbound IDOC program. If the sy-subrc is not 0 then don't process further.
    CONVERT_DATE_FORMAT
    ISU_DATE_FORMAT_CHECK
    Thanks
    Swarup

  • How to validate the  FI-AR& AP& FI-GL   and CO-PA extractor in R3

    Hi,
    I would like to do the integration testing in R/3 and BW.
    How to validate  Standard FI-AR& AP& FI-GL  and CO-PA extractor in R/3.
    Snapshot result of RSA3 and the tables?
    What are the tables and extractors need to be validate for FI-AR& AP& FI-GL   and CO-PA extractor in R3.
    As per our integration testing for FI-AR& AP& FI-GL   and CO-PA extractor in R3.
    How would i like to do the testing in BW QA system.
    Please some one will help me in this and answer would be great appreciate.

    Solved

  • How to validate Quantity field in TV - Inputfield ?

    Hello All,
            I'm using a table view to show the output .
    IN this table view I made 2 fields as Input fields.
    Both the fields are Quantity fields.
    Now when the user enters a value in this Quantity field I want to validate it with respect to it's units .
    How can I do that ?
    In my case if the user enters correct value it works but when he enters a wrong value my BSP is going for a dump.
    I tried to debug the<b> LIPS table</b> to verify how SAP was handling this checking for the field <b>LFIMG</b>. But there there is a statement called chain --endchain.
    SO there is no chance for debugging.
    My code is as follows :-
            LOOP AT gt_final INTO wa_final.
              CLEAR: gv_row,lv_qty,lv_string,gv_len,gv_cell_id1.
              gv_row = sy-tabix.
              gv_len = STRLEN( gv_row ).
              gv_len = gv_len - 1.
    * Modify the Third Column
              CONCATENATE 'INB01_TV_ID' '_' gv_row(gv_len) '_' '3' INTO gv_cell_id1 .
              lv_string = request->get_form_field( name = gv_cell_id1 ).
              WRITE lv_string TO lv_qty  UNIT wa_final-units.
              CLEAR :wa_final-del_quantity.
              wa_final-del_quantity = lv_qty.
              MODIFY gt_final FROM wa_final TRANSPORTING del_quantity.
            ENDLOOP.
    Can anyone tell me how to validate the entry for the Quantity filed ?
    Regards,
    Deepu.K
    I have one more Question .
    Whenever BSP goes for a dump in this case I want to handle this by a message .
    Is it possible ?
    Message was edited by:
            deepu k

    Hello Raja,
           I want to validate the entry in the QUantity field with respect to the Unit of the Quantity.
    I.e say for example I have a unit as PC (pieces) then the quantity must be only of thousands,lakks and so..on......but not in points i.e a piece quantity must be full either 200 ,2 lakhs or 2 pieces but not 2.5 pieces.
    SO now if the user enters 2.5 it's a wrong value as the quantity for the Unit PIECES can't have half-piece. (2.5 = 2 + 0.5) .SO i want to validate this .
    I hope I'm clear.
    How should I do ?
    Regards,
    Deepu.k

  • How to validate a program in background

    hello folks,
    i need to validate my program, my program should run only in background
    in case if it runs in foreground it should give error message. how to validate my
    program.
    can any one just tell the procedure how to do it.
    any help will be greatly appreciated,
    thanks in advance.
    regards,
    cnu

    Hello CNU,
    following snippet should do.
    Regards
      Klaus
    if ( 'X' ne sy-Batch ).
      message e000 with 'Only in Batch'(BTC).
    endif.

  • How to use conditional success Screen in SMP2.3 HWC?

    Hi All,
      Do anybody have reference for conditional success screen,
    I gone through this link SUP 2.2 Conditional Navigation Issue
    but i didnt able to do how to use conditional success Screen.
    If anybody have reference please provide me.
    Regards,
    Sravanya

    That works. Follow the below steps.
    1. Create a key on the selection screen: click on the selection screen>properties>keys>Add a key,ex. "value".
    2. MenuItem>In the properties of menu item>Parameter mappings>map the key with the key created in last step.ie. "value" instead of the key of the choice box.
    3. Get the value selected from choicebox:
    function customValidateScreen(screenKey, values) {
      if(screenKey === "Selection")
      var form = document.forms[screenKey + "Form"];
      if(form){
      SelectionValue = form.ChoiceboxKey.value;
    //ChoiceboxKey is the key of choicebox.
    //Declare a global value "SelectionValue "
    3. Map PK from program:
    customBeforeSubmit = function(screenKey, actionName, dataMessageToSend) {
      if(screenKey =="Selection" && actionName=="GoToChart" ){
      var myNewValue2 = new MessageValue();
      myNewValue2.setKey("Value");// Key created in the screen "Selection"
      myNewValue2.setValue(""+SelectionValue );
      myNewValue2.setType("TEXT");
      var mvc = dataMessageToSend.getValues();
      if( mvc ) {
      mvc.add( myNewValue1.getKey(), myNewValue1 );
    // So in the above way the data from choice box is send to online request.
    To do the conditional navigation you have to use the global value created,ex.
    hwc.customConditionalNavigation = function(currentScreenKey, actionKeyName, defaultNextScreen, conditionName, incomingDataMessage) {
      if( conditionName === 'Data'&& SelectionValue == "PieChart") {
             return false;
         }else{
        return true;
    Hope you understand how I did this.
    Midhun VP

Maybe you are looking for

  • Any support for papi in bpm 11g ?

    Hi, Request you to please let me know if there is any equivalent support to PAPI ( Process API in 10 g ) available in BPM 11g ? thanks

  • Outlook Web Access not working in Safari or any other browse

    When I try to access OWA from ANY browser, Safari, IE, or Firefox, I get the same error. "You could not be logged on to Outlook Web Access. Make sure your User Name and Password are correct, and then try again." When I log in from my PC, I don't have

  • Freight in Miro

    Gurus, I am creating a PO with Planned deliver cost freight.When i enter the freight it is adding to the net price in PO &matl cost in MIGO.But when i try to pay the freight vendor which i have mentioned in PO,the value & qty field is blank in MIRO.H

  • How to solve this problem of pop up that keeps coming

    A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete. Script: file:///C:/Program%20Files/Mozilla%20Firefox/components/nsExtensionManager.js:623

  • Need help with - playing back to back multiple .swf files

    I have four .swf files namely, 1.swf, 2.swf, 3.swf and 4.swf I have linked these files to buttons that can play these movies individually without any problem and the movieloads it automatically starts 1.swf movie and plays it completely. However, wha