Input in required fields

Hi,
I have made input required in some of the input fields in a screen. But I want the user to be able to go back in the program whitout putting values in the required fields by pressing back, cancel etc.
But no matter what button is pressed the program diplays a message "Make an entry in all required fields". The only way to get out of the screen is to make entries in the required fields or close the session. Does anyone know how to get around this?
All answers will be appreciated and rewarded.
Thanks
Magnus

Hi
You have to active a code for EXIT-COMMAND in yor bar.
PROCESS PAI.
  MODULE EXIT AT EXIT-COMMAND.
MODULE EXIT.
SET SCREEN 0. LEAVE SCREEN.
ENDMODULE.
From SAP help:
The module is only processed if the user enters a command beginning with "/E" in the command field, or chooses a function type E (assigned in the function list in the Menu Painter).
This addition is also valid for standalone MODULE statements without field assignment.
AT EXIT-COMMAND is only allowed in the PROCESS AFTER INPUT event. A module with this addition is processed before the automatic input checks and before all other PAI modules.
Max

Similar Messages

  • How to require field input using the this.mailDoc function

    I have a this.mailDoc script in a form I'm putting together. It's working fine, but what I'm needing are instructions on how to require certain fields to be filled in before the this.mailDoc can execute. I know how to do this using the stock Submit Form button, but that won't work for me in my particular situation. Thoughts?

    You have to use your own validation function to make sure the required
    fields are filled-in.
    I've posted some code that does this on these forums a while ago... Try
    searching for "validate required fields".

  • Check for required fields before locking subforms and submitting

    Hello,
    I have a 5-page form with many questions, to be completed by the original requestor and multiple approvers.  What I'm trying to do is have the original requestor's Submit button on p. 3 lock the input on the first three pages, but first check if all those fields have some content.  I currently have all the fields on pp. 1-3 set to "Required" in the object properties, but my script still locks them when there's is one empty one.  Here's what I have:
    //Lock portions of form
    Page1.access = "readOnly"
    Page2.access = "readOnly"
    Page3.access = "readOnly"
    //Save document, allow user to change name
    app.execMenuItem("SaveAs");
    //Submit via e-mail
    Submit_REAL.event__click.submit.target = "mailto:[email protected]" +
    "?subject=Subject text" +
    "&body=Message";
    Submit_REAL.execEvent("click");
    The automatic check for required fields happens after the pages get locked.  I would like the check to stop the process before it locks the pages.  Is there any way to check all at once that all "Required" fields on those pages have some content before allowing the script to proceed?  I know how to script it to manually check the 50 or so questions on those pages, but I would like to avoid that.  Thanks for any help.

    There are a few problems that I can see from the start. First, your code is going to pick up EVERY node that exists on these pages. Some of those nodes will not have a rawValue, and some will not have an actual name. As an example, you can take your code and create a text field to dump all of the names of the nodes that you get when you pull in all of the nodes this way. Here's an example:
    The result:
    Now, the question is, do you have a consistent naming convention for your fields that might be empty? That could be text fields, radio button lists, etc. For instance, I always prefix the names of objects in order to more easily keep track of what they are in scripts. Since I'm doing that, I can check the name of the field for tf, nf, rbl, cb, or whatever I have included to make sure that I'm checking an actual field before I check for things like rawValue.
    var nodeName = oNodes.item(nNodeCount).name;
    if (nodeName.indexOf("tf")>-1 || nodeName.indexOf("rbl") > -1 || /*check other field types*/) {
      //insert your code to check for empty answers here
    As for your line 7 issue. The syntax problem is that you've put extra parentheses in your if statement. Take out the parentheses that are just before and after the or "||".
    *This is my fourth attempt to reply. Something was going on with Adobe/Jive earlier, I suppose.

  • Field Bline date is a required field for G/L account 1200 122400

    While posting a Good receipt document using MIGO for a PO I am recieving the following error
    Field Bline date is a required field for G/L account 1200 122400
    Though both the document date and Posting date fields are filled with appropriate date.
    The detailed message reads as follows, now my question is how to change the baseline date  for the Cocd 1200 for GL account 122400
    Field Bline date is a required field for G/L account 1200 122400
    Message no. F5 808
    Diagnosis
    The value for field "Bline date" in the interface to Financial Accounting is an initial value but you are required to make an entry in the field selection for G/L account "122400" in company code "1200" linked to the field selection for posting key "81".
    System Response
    Error
    Procedure
    It might be an error in the configuration of the G/L account field selection. The initial application, used to call up the interface must otherwise define a value for field "Bline date". If this is the case, contact the consultant responsible for the application used to call up the interface or get in contact with SAP directly.

    Hello Ravinagh,
    Heres what I did:
    OB41> Double clicked on posting key 81> clicked on field status> Payment transactions> Both Due date and Value date have already been set to optional.
    For OB14 it asks me to input a field status variant.
    There are three of them. Now here is the tricky part, how do I find out which field variant has been assigned
    0001     Field status for 0001
    1000     Field status for CoA 1000
    3000     Field status for CoC 3000
    I went further and check for all the three variants one by one
    and found out that in the field status> Payment transactions for the following entry in the field status group
    G045     Goods/invoice received clearing accounts
    The DUE DATE and  VALUE DATE are suppressed. What do I need to do here?
    Next I checked OBB8 to find  the following three Options I dunno which one of them is applicable to the GL account 122400 for Cocd 1200. Where can I find the assignment? How can I find which payment term is being used.
       PayT        Sales text                                                                    
      Day limit   Explanations                                                                  
      0001                                                                               
    0           Payable immediately Due net                                                                               
      0002                                                                               
    0           Within 14 days 3 % cash discount                                              
                  Within 30 days 2 % cash discount                                              
                  Within 45 days Due net                                                                               
      0003                                                                               
    15          Within 14 days 2 % cash discount                                              
                  Within 30 days 1.5 % cash discount                                            
                  Within 45 days Due net                                                        
                  Baseline date on 30 of the month                                              
    Entry 1 of 40                                                                               
    Well I went ahead and clicked on each of them
    For 0001 the Default for Baseline date is set to Posting date (Do I need to change anything here?)
    For 0002 the Default for Baseline date is set to Document date (Do I need to change anything here?)
    For 0003 the Default for Baseline date is set to Posting date (Do I need to change anything here?)
    Please guide me here. If you need screenshots I would be glad to mail it to you.
    I hope you understood the scenario.
    Thanks
    Ron

  • How to display custom error message if the Required field is not entered?

    Hi,
    I have made one input field as required field in a view.
    I want to display one custom error message ,if the required input field is not entered.
    Please help me regarding this.
    Thanks,
    Deepika

    hi deepika....
    First go to message pool under webdynpro components.
    Create a new message there..of type error.
    Enter your text.
    Now to avoid null pointer exception , in wdDoInit(), initialise the value
    wdContext.currentDateTimeElement().setDate("");
    now create an action for submission of data. If field is empty, then within the button write:
      msg = wdComponentAPI.getComponent().getMessageManager();
        if(wdContext.currentDateTimeElement().getDate().equals(""))
        msg.raiseMessage(IMessageCompTodatDateTime.ERROR,new Object[]{""},true)     ;
    between begin others put:
    regards,
    pinki
      IWDMessageManager msg = null;

  • Field Text is a required field for G/L account ZA01 476900

    Dear SAP Guru's,
    When I am doing the MIGO for the purchase order from the Sales order purchase requisition.
    I am Getting the error.
    Field Text is a required field for G/L account ZA01 476900
    Where can i define the feild text for G/L Accounts.
    regards,
    Amlan Sarkar

    Dear Freinds,
    Thanks for you valuable input.
    But I have maintained the Header Text for the MIGO transaction But the error persists.
    Even the OBC4 also I have checked.
    What should I do?
    regards,
    Amlan Sarkar

  • Unable to make Postal code as required field in Vendor master creation

    Hi,
    We have a requirement of making Postal code (POST_CODE1) field under street address of new vendor master creation/change as a required field.
    In the configuration settings of vendor account group (OBD3), SAP provided Postal code City combined as only one field.
    Even after making the Postal code&City field as required in the configuration of a particular Vendor group (OBD3), the system is allowing to create new vendor master under that particular group with out the input of Postal code.
    The system only making the city (CITY1) as required filed but not the Postal code (POST_CODE1) even after setting Postal code&City field as required in OBD3.
    Could you please provide  the activities to be performed apart from the above so as to make Postal code as required filed at the time of the vendor master creation/change
    Regards
    Mani Prasad

    Yes, it is country specific. It will affect in vendor masters as well Customer masters.
    You have two options now :
    Create a Transaction variant using SHD0 and Make Postal code field as required and create a custom transaction code in SE93 (Transaction with Variant (Variant transaction) and assign here and save. Your requirement will be fulfilled.
    Else you can go for Enhancement using EXIT_SAPMF02K_001 Vendors: User Exit for Checks prior to Saving
    The following user exits exist for vendor master records:
    o   Check entered data before saving
    Please refer to the interface description of the function module to see which data is available.
    If we found any other solution we will let you know the same.

  • Error: The following required field is missing from the launch file: jnlp

    PLEASE help me.
    I was at Starbuck's today trying to install new software for my new wireless internet card and when I finished I could no longer access any of my applications that require java... I have a macbook pro dual platform computer. When I try to access www.bayphoto.com to download my application it says: (see below) (which I think is strange because it's all about Starbuck's and it should be my java code- I think...). Like I said - I have no idea what's going on or how to fix this. Please help me or at least tell me whom to call- I feel so stupid- I just need help- ATT? Starbuck's? Sun?
    Error: The following required field is missing from the launch file: <jnlp>
    Under the "exceptions" tab it says:
    MissingFieldException[ The following required field is missing from the launch file: <jnlp>]
         at com.sun.javaws.jnl.XMLFormat.parse(XMLFormat.java:88)
         at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(LaunchDescFactory.java:52)
         at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(LaunchDescFactory.java:64)
         at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(LaunchDescFactory.java:72)
         at com.sun.javaws.Launcher.updateFinalLaunchDesc(Launcher.java:214)
         at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:127)
         at com.sun.javaws.Launcher.launch(Launcher.java:95)
         at com.sun.javaws.Main.launchApp(Main.java:305)
         at com.sun.javaws.Main.continueInSecureThread(Main.java:213)
         at com.sun.javaws.Main$1.run(Main.java:108)
         at java.lang.Thread.run(Thread.java:613)
    Under the "launch file tab" it says:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
    <title>AT&T Wi-Fi Service @ Starbucks</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="description" content="Starbucks Entertainment presented by AT&T Hotspot" />
    <meta name="keywords" content="AT&T, Starbucks, Wi-fi, Wifi, Hotspot, coffee, music, books, games, fresh sheet, third place, online" />
    <meta name="author" content="Starbucks Entertainment" />
    <link rel="shortcut icon" type="image/ico" href="/favicon.ico" />
    <script type="text/javascript" language="javascript" src="/dhtml/master.js"></script>
    <script type="text/javascript" language="javascript" src="/dhtml/x_core.js"></script>
    <script type="text/javascript" language="javascript" src="/dhtml/x_event.js"></script>
    <script type="text/javascript" language="javascript" src="/dhtml/x_xhr.js"></script>
    <script type="text/javascript" src="/dhtml/att/dhtml.js"></script>
    <style type="text/css">
    copied from starbucks master.css
    body {
         background:#200D06 url("/graphics/att/themes/sbux/hotspot_bkgd.jpg") repeat-x scroll;
         color:#555555;
         font-family:Arial,Helvetica,sans-serif;
         font-size:small;
         line-height:1.5em;
         margin:0pt;
         padding:0pt;
         text-align:center;
    #wrap {
         font-size:95%;
         margin:0pt auto;
         text-align:left;
         width:980px;
    #starbucksframe {
         margin:15px 0pt 0pt;
         padding:0pt;
    /*our addendae*/
    div#header {
         height:95px;
         width:980px;
         background-image:url("/graphics/att/themes/sbux/header_bg.jpg");
         background-repeat:no-repeat;
         margin:0px;
         background-top:0px;
         background-left:0px;
         background-color:transparent;
    div#btn_ctti {
         position:absolute;
         top:10px;
         margin-left:388px;
    div#sbux_lfrm {
         display:inline;
         font-size:10px;
         color:#FFFFFF;
         margin-left:245px;
         top:49px;
         position:absolute;
         line-height:10px;
         font-family:verdana,arial,helvetica,sans-serif;
    div#sbux_lfrm form {
         margin:0px;
    div#sbux_lfrm a, div#sbux_lfrm a:link, div#sbux_lfrm a:hover, div#sbux_lfrm a:active, div#sbux_lfrm a:hover {
         color:#FFFFFF;
    div#sbux_lfrm form label {
         display:none;
         visibility:hidden;
    div#sbux_lfrm form input, div#sbux_lfrm form select {
         font-family:verdana,arial,helvetica,sans-serif;
         vertical-align:middle;
    div#sbux_lfrm input.example {
         color:#656565;
    #sbux_lfrm_row1, #sbux_lfrm_row2 {
         margin:0px;
    #sbux_lfrm input#username, #sbux_lfrm input#password, #sbux_lfrm input#password_pw {
         width:136px;
         margin-right:6px;
         font-size:10px;
    #sbux_lfrm select#roamRealm {
         width:130px;
         font-size:10px;
         color:#656565;
         margin-right:6px;
    #sbux_lfrm_row2 {
         position:absolute;
         top:21px;
         left:-4px;
    div#aupAgree_row {
         margin-top:4px;
         position:relative;
         left:-4px;
    div#aup_box {
         float:left;
         position:relative;
         top:-3px;
    div#aup_text {
         float:left;
         line-height:10px;
    div#tm_badge {
         width:115px;
         height:94px;
         float:right;
         margin-right:0px;
         margin-top:0px;
    div#password_value {
         display:inline;
    div#hidden_pw_field {
         display:none;
         visibility:hidden;
    div#sbux_lfrm.css_form {
         margin-top:0px;
    </style>
    <style>
    /* IE specs */
    body {
         font-size: x-small; /* IE5 Win */
         voice-family: "\"}\"";
         voice-family: inherit;
         font-size: small;
    html>body { /* be nice to Opera */
         font-size: small;
    /* self-clearing floats
    /* trigger hasLayout and target ie5+6/win only */
    *:first-child+html #header,
    *:first-child+html #login_wrapper {
         height:95px;
    #ny_legal {
         color:#CAC3BF;
         font-size:11px;
         font-weight:bold;
         padding:0;
    #ny_legal a:link {
         color:#CAC3BF;
         font-size:11px;
         font-weight:bold;
         padding:0;
    </style>
    </html>
    TOO LONG TO INCLUDE ALL CODE

    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp codebase="file:///C:\eclipse\workspace\studentconverter\webroot" href="studentconverter.jar" >two things wrong here -
    first codebase is not legal URL, File.separator (backslash on windows) needs to be converted to forward slash in URL's.
    second, the href is not to the jnlp file, it is to the jar !
    href="studentconverter.jar" - should this be href="studentconverter.jnlp" ?
    /Dietz

  • Purchase Req for third party items on SO-where are required fields defined?

    I have that issue where when a third party item is entered on a sales order, it goes on credit hold and when you release it, it tries to create a purch req but can't because of the required field - Val Price is not automatically filled in. I thought I could make the field not required by going to config and under purch
    requistion>Define Screen layout at Doc level and changed the price and
    unit option to optional instead of required but it still treats it like
    a required entry. That config change only affected that field if creating a purch req from scratch, didn't affect if creating one from sales order third party item.
    Thanks for any input!

    Hi Mike,
    Please contact to sd consultant regarding that.
    Regards,
    Anil

  • Required fields in a presentation

    In a bpm object presentation we want to have some of the text input fileds required.
    When they are not filled in we want a message to display to the user.
    i tried setting the Not Null attribute in the bpm object but that does not work.
    We are using 6.0.3 Studio.
    Any ideas?

    Hi,
    Here's one technique to do this. There's another way, but I like this better:
    1. Take off the "Not null" for the attribute.
    2. Create a new method called "onSubmit()" in the BPM Object. In this method add the logic:
    <pre class="jive-pre"><p />if (myAttribute = null || myAttribute = "") then
    showError("Please enter a value in the field highlighted below")
    setForegroundColor this using componentId = "textFieldNameForMyAttribute",
    color = “Red”
    else
    submit("submit")
    end</pre>
    3. Make the Submit button on your presentation invoke an action and have it call the new "onSubmit()" method.
    Hope this helps,
    Dan

  • Post invoice F-43 use alternative payee, found error require field Tax Jur.

    Hello everyone
    i have some problem
    when i want to post invoice F-43,
    and document need alternative payee.
    in page input alternative payee data , system require field Tax Jurisdiction.  that i donot need it.
    you can see picture at link below.
    http://picturepush.com/public/3913234
    http://picturepush.com/public/3913243
    how can i remove required field Tax jurisdiction for alternative payee data ?
    I try to go to IMG  -> preparation for creating vendor master data-> Define account groups with screen layout (Vendors)
    and choose group 0003 (ALternative payee) but i donot found field Tax Jurisdiction for configure it.
    what shoud i do?
    please help.

    Hi,
    After entering the path : IMG-Financial Accounting-Accounts Receivable and Accounts Payable-Vendor Accounts-Master data-Preparations for creating vendor master data-Define Account Groups with screen layout(Vendors)
    select the 0003 for Alternative payee
    Duble click on it
    D'click on General data and D'click on Control
    You will find the Tax jurisdiction code there you can make changes
    thanks and regards
    ramanuja

  • View Criteria non required field

    Hello,
    I have a view object with a viewCriteria with the following condition: No between no1_prm and no2_prm, the condition for required is optional and I checked ignore null values.
    The bind variables of the view object are not required.
    I made a page with a search form (af:query) but I want that even I complete only one field (no1_prm or no2_prm) to receive the result for that parameter. Now I receive error that the filed is required.
    How can I make :
    - when I complete one value for the parameter to receive exact value for that parameter
    - when I complete the two values for the parameters to receive all the numbers between the two parameters.
    Thank you in advance.

    I set only that condition : No between no1_prm and no2_prm with validation optional and ignore null values checked.
    The all view object where clause is :
    ( ( NR BETWEEN :nr_prm1 AND :nr_prm2 ) OR ( :nr_prm1 IS NULL AND :nr_prm2 IS NULL ) )
    I mention that in my page I must to have only : No label : input text for no1_prm - input text for no2_prm. If I complete only input text for no1_prm I receive the error for required field.
    Thank you.

  • * is missing for required field in error message

    Hi all,
    I am using JDeveloper 11.1.1.2 with ADF BC. I have a simple form in a jspx with some fields for user to input.
    The page contains 3 mandatory fields (simply set required=true): Surname, Name and Title. Where Surename and Name are inputText, and Title is a Select One Choice with List Of Value defined in VO.
    If user submit data without anything in the required fields, an error message will popup. But the content of the error message is not quite correct!
    All the required inputText has a prefix: *, but Select One Choice do not have a leading *.
    Error
    Messages for this page are listed below.
      * Surname  You must enter a value!
      * Name     You must enter a value!
      Title      You must enter a value! is there anyway to add a * to the error message for Select One Choice? or remove all the *? It looks very confusing.
    Thanks in advanced,
    Samson Fu

    not sure,
    but try to set the ShowRequired for this LOV in property inspector to true

  • Debug not showing & required fields not working

    I have MX 7.0.2 Developer's Version installed on W2K and MX
    7.0.2 on W2003 soon to be production server. On my Developer's
    Version the debug output shows up and the required fields using an
    input tag work. The same code on the production server, with the
    same admin settings doesn't show debug output and the required
    fields don't catch that the field is blank. I have read in the
    forum that it is very likely that the /cfide virtual mapping is not
    configured correctly, but not specifically how to fix the problem.
    I see cfide in the admin setting, mappings on the production server
    and have tried turning debug on and off, but still no debug output
    and required fields not catching and not showing validation
    message. Any help would be appreciated.

    Hi Amit,
    Do you mean to say that you are not able to see these settings in SE16 where as other users are able to? If that is the case , there might be an authorization problem for you.
    or try logging off and loginto the system. that should work sometimes. If not try to go to SU53 and check whether your auth has failed to see for this table.
    Regards
    Srini

  • Required field error

    Hi,
    I have two very basic queries:
    1) I created a simple non-mvc based bsp application wherein I marked few input fields mandatory by setting required property to true. On submitting the page it used to give me error incase I have left any required fields blank of its own, but after I created the entire application now the error has disappeared and it is allowing me to post the data from the page even if the mandatory fields are left blank. Kindly guide so as to what changes I could have done that the error has disappeared or how can I get it now.
    2) When I am doing any server side validation based on the user input I want to show some values calculated at runtime as a javascript alert but unable to pass the value to javascript.
    Please help.. any 1-2 liner code would help a lot..
    Saurabh Tripathi

    hi raja,
    regarding issue 1:
    layout-        <htmlb:inputField id        = "firstname"
                              value     = "<%= gs_transaction-firstname %>"
                              size      = "40"
                              maxlength = "40"
                              required  = "TRUE"
                              disabled  = "<%= lv_disabled %>" />
    oninputprocessing()-
    lr_event = cl_htmlb_manager=>get_event( runtime->server->request ).
    CASE lr_event->server_event.
      WHEN 'onSubmit'.
        navigation->use_auto_submit_form( ).
    ....logic...
    endcase.
    now pls help as where to write a code where firstname is checked as required field and also help me with the purpose of use_auto_submit_form() here, i thought it should automatically tell the required field errors

Maybe you are looking for

  • PATH and LD_LIBRARY_PATH on Linux

    Hi I want to run an executable within a java program, since the executable requires certains dirs in its PATH, i need to set the PATH and LD_LIBRARYPATH. I am not sure how to set the LD_LIBRARY_PATH since i dont know what the system property name for

  • Download to Excel from ALV

    Hi,    I ran the program 'BALVEX02' and i got the output i clicked on ALV standard application tool bar button 'Spreadsheet' (Ctrl_shift+F7) and unfortunately i selected HTML format radio button and selected check box that 'Always use the same format

  • Password changed, now email doesn't work on iPhone & Macbook

    I changed my gmail email password and now my iPhone 4 will not take the updated password. I've re-entered the new password several times, and I've also deleted and reactivated the account but to no avail. I've also done the same on my macbook. But I'

  • My backup file missing (info.plist)

    I did upgrade from 4.2.1 to 4.3.3 but my 4.2.1 backup file missing. missing is only 5 files ( Info.plist Manifest.mbdb Manifest.mbdx Manifest.plist Status.plist ) I was recorver HDD so got 4 files ( Manifest.mbdb Manifest.mbdx Manifest.plist Status.p

  • Adobe Shockwave Player version 11.5.0.595

    Install Adobe Shockwave Player Adobe Shockwave Player version 11.5.0.595 Windows | English | 3.33 MB http://sdc.shockwave.com/shockwave/download/download.cgi