Validate an entrance in the MBST

Necessary to validate an entrance in the MBST and to give a message in the screen for the user.
Edited by: Fabio Passoni on Oct 7, 2009 10:07 PM

Hi,  found the following BADI.
MB_CIN_MM07MFB7

Similar Messages

  • How do I make a form field validate that it is the sum of two other fields?

    Hi there,
    I am creating a form, and I would like one of the fields to validate by making sure that this field is the sum of two other fields in the form.  Does anyone have any ideas on how to go about this?  I know I'll need to run a custom validation script, but I'm not sure where to begin - I've never done one for validation before.
    Thanks for any help!

    OK, here's a sample script that I hope will clearly demonstrate the general approach. It is intended to be the custom Validate script of the field that the user enters that value that is supposed to be equal to the sum of the two others.
    // Custom Validate script
    (function () {
        // Get the value that the user entered
        var sVal = event.value;
        // If it is blank, do nothing else
        if (!sVal) {
            return;
        // Convert string to a number
        nVal = +sVal;
        // Get the values of the fields, as numbers
        var v1 = +getField("text1").value;
        var v2 = +getField("text2").value;
        // Add them together, rounding to two decimal places, converting to number
        var sum = +util.printf("%.2f", v1 + v2);
        // Compare entered value to the sum of the other two fields
        // Alter the user if they do not match
        if (nVal !== sum) {
            app.alert("The value you entered does not equal the sum of text1 and text2. Please correct.", 3);
            // If you want the entered value rejected, include the following
            event.rc = false;
    Replace "text1" and "text2" with the actual field names.

  • 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 do we validate input fields on the selection screen

    How do we validate input fields on the selection screen

    hi balram,
    u can validate input fields using <b>AT SELECTION-SCREEN</b>  Event.
    PARAMETERS : p_werks TYPE marc-werks.
    AT SELECTION-SCREEN ON p_werks.
    SELECT SINGLE *
    FROM t001w
    WHERE werks = p_werks.
    IF sy-subrc <> 0.
    MESSAGE 'Invalid Plant' TYPE 'I'.
    ENDIF.
    Like this, we can validate user input for plant.
    check this link:
    http://help.sap.com/saphelp_nw04s/helpdata/en/9f/db9a2e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/56/1eb6c705ad11d2952f0000e8353423/content.htm
    Reware me if useful......
    Harimanjesh AN

  • How to validate input fields as the user is filling up a form with jQuery?

    Hello EA friends.
    Someone has experimented on how to validate input fields as the user is filling up a form with jQuery?, if the field is numeric and insert an A for example, an alert appears showing "insert a number" or not allowed to enter anything until a number is entered.
    Thanks and regards.
    Fer

    Hi Sudeshna.
    Sorry for not responding on time, how can I be included in this code?
    sym.setVariable("typeActivity", "input")
    var Element_1=document.createElement(typeActivity);
    $(Element_1).css({"text-align": "center"});
    //Answer
    sym.setVariable("Answer_1", "4");
    sym.$("box_1").append(Element_1)
    This code is on my creationComplete and it works fine.
    Would greatly appreciate your help.
    Regards.
    Fer García

  • SOFM create mulitple entrance in the document content

    Hi @ all
    How could I create multiple entrances in the DocumentContent?
    Since now I'm binding the different elements (in my case 4 different container elements) to the DocumentContent, but after this task there is only one entrance. I think I delete the different entrances by using the same DocumentContent.
    How could I assign my 4 container elements entries in this DocumentContent?
    Please I need help.
    THX
    Regards Phil

    Hi Phillip,
    How is your container element DocumentContent defined?  Multiline?  There are container operations which will allow you to append new entries to a container, as opposed to wiping them out. In the container operation, chose the <- operand, instead of =, and you should be appending new entries into your container.
    Regards,
    Sue

  • ABAP Mapping  is it Possiable to validate my XML from the payload.

    Is it possiable to validate my XML from the Payload with the given standard XSD, and one more is that can i verify the files in Archieve , this is due to , i must check whether my file already exist and if exist i should add prefix 1 to that file and store in my arichive , all this using only ABAP mapping
    Please help me
    thanking you
    Sridhar

    Workflow Business Events help creating Generate Function to generate an XML payload that in turn is made available to the Subscription's Rule Function. Also, at the time of Raising the Business Event, you could pass the XML payload (in the form of a CLOB) to the Raise API that will be passed along to the Business Event's Subscription Rule Function.
    Hope this helps.
    Vijay

  • Creative Cloud Student and Teacher my computer crashed and need to validate it again on the same computer how do I do this?

    My computer crashed and I had to completely restore my computer and need photoshop to be running quickly I am in school right now and have projects I have to be working on. How do I re-install the programs and validate them because they come up as trail versions?

    Does your Cloud subscription show on your account page?
    https://www.adobe.com/account.html for subscriptions on your Adobe page
    Some general information for a Cloud subscription
    Log out of your Cloud account... Restart your computer... Log in to your paid Cloud account
    -Sign in help http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    -http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html
    Then install https://helpx.adobe.com/creative-cloud.html

  • In Oracle Forms, to run all the When-Validate-Item of all the items at once

    In Oracle Forms, is there any built-in / procedure / function which is used to run all the When-Validate-Item triggers of all the Items at once ?
    I will put it in detail :
    When a form is run and while entering the data..
    when we enter some data and try to move out of that item then the When-Validate-Item trigger of that item is fired and the code in that trigger is executed..
    Similarly there may be many items and many When-Validate-Item triggers correspondigly in a form..
    My requirement is to run all the When-Validate-Item triggers of a form at once when we click a button which is created for that purpose only..
    So is there any built-in / procedure / function (to run all the When-Validate-Item triggers of all the items), which can be called in the When-Button-Pressed trigger of that particular button..
    If any one having any solution/suggestion, please let me know..
    Thanks..
    Edited by: user2938447 on Nov 8, 2010 9:03 PM
    Edited by: user2938447 on Nov 8, 2010 9:12 PM
    Edited by: user2938447 on Nov 8, 2010 10:19 PM

    Hi Sandy,
    Thanks for your suggestion..
    The validations should be done at Item level (When-Validate-Item as usually) and seperately again when a button is pressed.
    So to put all the code in another block-level When-Validate-Item trigger or in any When-Button-Pressed trigger will be duplication of the code.
    Actually I have around 30 Fmbs to be modified and each Fmb is having around 20 Items and almost all Items are having When-Validate-Item trigger.
    So,I wanted to know whether there is any Built-in / Procedure in Oracle Forms which runs all the When-Validate-Item triggers once it is called.
    Thanks..

  • How to validate date fields in the flash form

    i want to validate the date fields to make sure the values
    are not greater than today's date and from-date is less than or
    equal to to-date in the flash form. Does the actionscript have a CF
    DateDiff function for the validatation?
    Thanks

    I finally (after much reading up on actionscript) figured out
    my problem with date validation...which was similar to yours...
    I posted the solution I found for my AS date validation issue
    here:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=22&threadid=1232361
    I hope it helps!!!

  • Cncltion of partial line items in the MBST is notopening the linkeddel line

    Hi,
    We are posting the GR with 503 mvt type with ref to delivery.  In this process when some of the line items have to be returned, we are posting MBST against those line items. To cancel / reverse the same in delivery using VL09, system (does not re-open those line items) is not allowing us to cancel partial line items. Instead the entire delivery is being cancelled.
    The problem to cancel / reverse the entire delivery & material document is some of the line items are are already consumed.
    When we cancel/reverse some of the line items using MBST and there by cancel the material documents, system does not allow us to cancel the particular deliveriesdoes not re-open those line items). When we cancel the entire delivery, the link between the original delivery and already consumed materials is lost.
    I guess this is Standard SAP behaviour and some one would have encountered with a similar problem.
    Request you to check and let me know how to resolve this issue.
    Thanks / Sandeep

    The MBST is cancellation of material documents or in other word you are cancelling the action whic were carried out earlier.
    You might have noticed that when you are using MBST and entering input parameter as material documents system by default will carry all the infoermation which were there in that material documents.
    I fyou weants to cancel part of material  you can do this in MIGO sereen and select the option of return delivery and saelect the line item which youw wish to send it back or return to vendor.
    For partial returns you should always use MIGO, RETURN DELIVERY against MATERIAL DOCUMENT, put in the material document No. and then whichever line you want partially return, you enter the partial quantity and save the document.
    Hope this clear.

  • Cancelation of partial line items in the MBST is not opening the delivery

    Hi Gurus,
    We are posting the GR with 503 mvt type with ref to delivery. In this process when some of the line items have to be returned, we are posting MBST against those line items. To cancel / reverse the same in delivery using VL09, system (does not re-open those line items) is not allowing us to cancel partial line items. Instead the entire delivery is being cancelled.
    The problem to cancel / reverse the entire delivery & material document is some of the line items are are already consumed.
    When we cancel/reverse some of the line items using MBST and there by cancel the material documents, system does not allow us to cancel the particular deliveriesdoes not re-open those line items). When we cancel the entire delivery, the link between the original delivery and already consumed materials is lost.
    I guess this is Standard SAP behaviour and some one would have encountered with a similar problem.
    Request you to check and let me know how to resolve this issue.
    Thanks / Sandeep

    The MBST is cancellation of material documents or in other word you are cancelling the action whic were carried out earlier.
    You might have noticed that when you are using MBST and entering input parameter as material documents system by default will carry all the infoermation which were there in that material documents.
    I fyou weants to cancel part of material  you can do this in MIGO sereen and select the option of return delivery and saelect the line item which youw wish to send it back or return to vendor.
    For partial returns you should always use MIGO, RETURN DELIVERY against MATERIAL DOCUMENT, put in the material document No. and then whichever line you want partially return, you enter the partial quantity and save the document.
    Hope this clear.

  • Need to validate file Name,split the file name and store the splited values into Variables

    Dear All,
    Below is the my requirement.
    I have a folder, in that folder I have bunch of text files. The file name is below format
    ACA_122_pay_20140430_001
    Initially the file name start with ACA code,groupid,group name and date time stamp. This is the standard structure of file name.
    I want to check each and every file in the folder with this structure. The structure should be standard for all the files. If the structure same for all files I need to get codes form file name. For example
    If you see the below file name, I need to get ACA and put into variable,I need to get 122 and put into variable. For group name and date time needs to put in variable.
    If the file format is not valid state then I need to log exception.
    Let me know if I am not clear.
    Kindly provide the C# code for achieving the above requirement.
    As I am new to .net programming. kindly help me.
    Thanks in Advance,
    Regards,
    Madhava Ganji
    Madhava Ganji

    Hi MadhavaGanji,
    I have post how to validate the file name, header row against definition table which stored the file name and column definition. 
    Take a look and see if this is helpful.
    http://sqlage.blogspot.com/2013/11/ssis-validate-file-header-against.html
    http://sqlage.blogspot.com/

  • How to  validate a file  given the file name and the path

    hi ,
      is their any function module which can validate a file present in the presentation server given its filename and path name

    Hi,
    Refer Sample Code Below:
    Selection Screen
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS : rb_pc  RADIOBUTTON GROUP r1 DEFAULT 'X', "For Presentation
                 p_f1   LIKE rlgrap-filename,            
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN SKIP.
    AT SELECTION-SCREEN ON p_f1.
      IF  p_f1 IS INITIAL.
        MESSAGE e000(zmm) WITH text-002. ' Enter File Path
      ENDIF.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_f1.
    *-- Browse Presentation Server
      PERFORM f1000_browse_presentation_file.
    FORM f1000_browse_presentation_file .
      CONSTANTS: lcl_path TYPE char20 VALUE 'C:\Migration Files\'.
      CALL FUNCTION<b> 'WS_FILENAME_GET'</b>
        EXPORTING
          def_path         = lcl_path
          mask             = c_mask  "',.,..'
          mode             = c_mode
          title            = text-006
        IMPORTING
          filename         = p_f1
        EXCEPTIONS
          inv_winsys       = 1
          no_batch         = 2
          selection_cancel = 3
          selection_error  = 4
          OTHERS           = 5.
      IF sy-subrc <> 0.
        MESSAGE s000 WITH 'No file Selected'.
        flg_pre = c_x.
      ENDIF.
    ENDFORM.                    " f1000_browse_presentation_file
    *&      Form  f1001_browse_appl_file
          Select file from Application Server
    FORM f1001_browse_appl_file.
      DATA:  lcl_directory  TYPE char128,
             lcl_file       TYPE char10.
      lcl_directory  = p_direct.
      CALL FUNCTION <b>'/SAPDMC/LSM_F4_SERVER_FILE'</b>
        EXPORTING
          directory        = lcl_directory
          filemask         = c_mask
        IMPORTING
          serverfile       = p_f2
        EXCEPTIONS
          canceled_by_user = 1
          OTHERS           = 2.
      IF sy-subrc <> 0.
       MESSAGE e000(zmm) WITH text-039.
       flg_app = 'X'.
      ENDIF.
    ENDFORM.                    " f1001_browse_appl_file
    *&      Form  f1003_pre_file
          Open Presentation Server file
    FORM f1003_pre_file .
      DATA: lcl_filename TYPE string.
      CONSTANTS: lc_codepage(3) TYPE c VALUE 'IBM',        " Code page
                 lc_filetype    TYPE char10 VALUE 'ASC'.
      lcl_filename = p_f1.
      CHECK p_f1 IS NOT INITIAL.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = lcl_filename
          filetype                = lc_filetype
          has_field_separator     = c_x
        TABLES
          data_tab                = i_reg_grp
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          OTHERS                  = 17.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    <b>Reward points if this helps.
    Manish</b>

  • Problem to validate XML document if the type of root element is abstract

    I have the following XML document:
    <?xml version="1.0" encoding="UTF-8"?>
    <ct013/>
    It corresponds to the following XSD Schema:
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
         <xs:element name="ct013" type="foo"/>
         <xs:complexType abstract="true" name="foo"/>
         <xs:complexType name="fixedType">
              <xs:complexContent>
                   <xs:restriction base="foo"/>
              </xs:complexContent>
         </xs:complexType>
    </xs:schema>
    Please take attention to the fact that the type of root element of that BDD is abstract.
    XML Schema provides a mechanism to force substitution for a particular element or type. When an element or type is declared to be "abstract", it cannot be used in an instance document. When an element is declared to be abstract, a member of that element's substitution group must appear in the instance document. When an element's corresponding type definition is declared as abstract, all instances of that element must use xsi:type to indicate a derived type that is not abstract.
    Declaring an element as abstract requires the use of a substitution group. Declaring a type as abstract simply requires the use of a type derived from it (and identified by the xsi:type attribute) in the instance document.
    For more information of using abstract types please see chapter 4.7 Abstract Elements and Types of XML Schema Part 0: Primer Second (http://www.w3.org/TR/xmlschema-0/#abstract).
    In this case there is Oracle bug when I try to validate this XML document using Oracle XDK:
    String validate(String xml, String schema)
    throws XSDException, XMLParseException, SAXException, IOException
    System.setPropert("oracle.xml.parser.debugmode", "true");
    XSDValidator xsdValidator = new XSDValidator();
    XMLError xmlError = new XMLError();
    xmlError.setErrorHandler(new DocErrorHandler());
    XMLDocument xmlDocument = parseXMLDocument(xml);
    XMLDocument schemaXMLDocument = parseXMLDocument(schema);
    XMLSchema xmlSchema = (XMLSchema) new XSDBuilder().build(schemaXMLDocument, null);
    xsdValidator.setError(xmlError);
    xsdValidator.setSchema(xmlSchema);
    xsdValidator.validate(xmlDocument);
    return getValidationError(xsdValidator);
    I get the following error:
    Can't find resource for bundle oracle.xml.mesg.XMLResourceBundle, key XSD-2046.
    I tried to validate this XML document using two other libraries - XSD Schema Validator (http://apps.gotdotnet.com/xmltools/xsdvalidator/Default.aspx) and xsdvalid-29 (http://www.w3.org/XML/Schema#XSDValid). Both libraries pointed me on the error that the type of root element is abstract and it cannot be used for doing validation.
    I think that Oracle should return me explaining message but not to throw exception.
    Am I right? Is there really Oracle bug or I miss something?
    Any help, hits, advices would be gratfully apriciated.

    Define Element1 as follows:
    <xs:element name="Element1">
    <xs:complexType>
    <xs:complexContent>
    <xs:restriction base="xs:string"/>
    </xs:complexContent>
    </xs:complexType>
    </xs:element>
    Does the XML document get validated if the element is specified as
    <Element1></Element1>

Maybe you are looking for

  • Installed the Mac update, checked for faulty fonts, and ran the Font Test Script. PS still crashes

    Hi guys, Ive done everything suggested and my PS is still crashing. I will attatch my crash report to see if it helps with anything. I used Font Doctor and Font Book to check for bad fonts and removed the two that came up. Tried again and still nothi

  • Auto Incrementation of  a Selection-Screen Field

    Hi Folks, How to Increment a Selection-Screen Field (Consider Parameter).. When we press a back button on Urs Output List. ( For Example : we have a slelction screen field (parameter) by name customer. When we enter 1000(say) in it then an output lis

  • Question about Preview files

    So I understand clearly, when you're working on a RAW image are you actually seeing the "preview" file on screen or the actual RAW file? I'd hate to judge the adjustments I'm making based on a jpeg.

  • Help - Exception handling

    Hi All, Below is my pl/sql block. My question is why PL/SQL cannot handle the exception, and instead the exception is propagated to SQL Plus? I'm using oracle 8.1.7.0 TIA. SQL> begin 2 select * from emp; 3 exception 4 when others then 5 dbms_output.p

  • Upgraded ilife last week-update today says library needs upgrade to work

    I am afraid to allow this upgrade for fear I will lose my library. This is what pops up>>>> The photo library needs to be upgraded to work with this version of iPhoto. Library will not be readable by previous versions afterwards. Please tell me what