Displaying std field in enable mode after throwing error msg

Hi experts,
I have a requirement where i need to  check the value enterred in standard field (final grade) of infotype 0022 and need to throw error message, when the user click save button in PA30.
But the problem is, if i throw Error message, that field becomes disable and the user have to go back and come back for entering the correct value. So, my requirement is taht the field should still be in enable mode even after getting the error message.
pls tell me how to achive the same?

Hi Shanti,
You don't need to display a message of type ERROR as this will lock the screen and will prevent the user from providing further input. You can use the following thing
MESSAGE i001 DISPLAY LIKE 'E'.
This will serve your purpose by displaying the error but will not lock the screen field and thus will not prevent the user from further input.
Have a look at the following link for more details : [ MESSAGE KEYWORD|http://help.sap.com/abapdocu_70/en/ABAPMESSAGE_OPTIONS.htm]
Hope this will help.
Thanks,
Samantak.

Similar Messages

  • HT1414 My ipad has gone into recovery mode after an "error occured" whilst trying to update it. Will it come out of recovery on its own? There is a lot of data I want to save

    My ipad has gone into recovery mode after an "error occured" whilst trying to update it. Will it come out of recovery on it's own? There is a lot of data I want to save before restoring it to factory settings

    FORCE IPAD INTO RECOVERY MODE
    1. Turn off iPad
    2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
    3. Plug USB cable into computer's USB port
    4. Hold Home button down and plug the other end of cable into docking port.
    DO NOT RELEASE BUTTON until you see picture of iTunes and plug
    5. Release Home button.
    ON COMPUTER
    6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
    7. Select "Restore iPad"...
    Note:
    1. Data will be lost if you do not have backup
    2. You must follow step 1 to step 4 VERY CLOSELY.

  • ADC PHP enabling shell script throws errors

    Hi, guys.
    I recently tried to enable PHP on my MacBook Pro.
    I speak some bash, but no AppleScript.
    On the Apple Developer Center they write you a little script to enable PHP, which failed repeatedly before numerous edits by me. I eventually massaged the script to work, but I want to understand *why* the script didn't work.
    The code they give is as follows (and you can find it here: http://developer.apple.com/mac/articles/internet/phpeasyway.html):
    set admin_email to (do shell script "defaults read AddressBookMe ExistingEmailAddress")
    user_www=$HOME/Sites
    filename=php-test
    user_index=${user_www}/${filename}.php
    user_db=${user_www}/${filename}-db.sqlite3
    # NOTE: Having a writeable database in your home directory can be a security risk!
    conf=`apachectl -V | awk -F= '/SERVER_CONFIG/ {print \$2}'| sed 's/"//g'`
    conf_old=$conf.$$
    conf_new=/tmp/php_conf.new
    touch $user_db
    chmod a+r $user_index
    chmod a+w $user_db
    chmod a+w $user_www
    echo "Enabling PHP in $conf ..."
    sed '/#LoadModule php5_module/s/#LoadModule/LoadModule/' $conf | sed
    "s^[email protected]^\$admin_email^" > $conf_new
    echo "(Re)Starting Apache ..."
    osascript <<EOF
    do shell script "/bin/mv -f $conf $conf_old; /bin/mv $conf_new $conf;
    /usr/sbin/apachectl restart" with administrator privileges
    EOF
    Here are where this code throws errors for me:
    First:
    set admin_email to (do shell script "defaults read AddressBookMe ExistingEmailAddress")
    I don't even recognize the shell syntax that this would work in. It's sort of csh like. Is this AppleScript?
    Anyway, OS X bash chokes on this at the first '(' and I changed it to:
    admin_email=`defaults read AddressBookMe ExistingEmailAddress`
    which works just fine.
    Second:
    chmod a+r $user_index
    I have no idea how his is supposed to work without 'touch $user_index'
    I added:
    touch $user_index
    to the script.
    Third:
    conf=`apachectl -V | awk -F= '/SERVER_CONFIG/ {print \$2}'| sed 's/"//g'`
    Okay, this actually *works*, but I don't know why it should. In my book, it should choke on the \$2, because the \ is invalid.
    I've left it because it works and if it works it isn't wrong, but I would have written:
    conf=`apachectl -V | awk -F= '/SERVER_CONFIG_FILE/ {print $2}' | sed 's/"//g'`
    which I've tested and also works.
    I'd like to know why Apple's first line works.
    Fourth:
    sed '/#LoadModule php5_module/s/#LoadModule/LoadModule/' $conf | sed "s^[email protected]^\$admin_email^" > $conf_new
    The error here is that:
    sed "s^[email protected]^\$admin_email^"
    doesn't replace [email protected] with the contents of $admin_email.
    I don't know what the and are supposed to do, but this just replaces the string '[email protected]' with the string '\$admin_email'
    I replaced this with:
    sed 's^[email protected]^'$admin_email'^'
    This gives me a final script of:
    #!/bin/sh
    admin_email=`defaults read AddressBookMe ExistingEmailAddress`
    user_www=$HOME/Sites
    filename=php-test
    user_index=${user_www}/${filename}.php
    user_db=${user_www}/${filename}-db.sqlite3
    conf=`apachectl -V | awk -F= '/SERVER_CONFIG/ {print $2}'| sed 's/"//g'`
    conf_old=$conf.$$
    conf_new=/tmp/php_conf.new
    touch $user_index
    touch $user_db
    chmod a+r $user_index
    chmod a+w $user_db
    chmod a+w $user_www
    echo "Enabling PHP in $conf ..."
    sed '/#LoadModule php5_module/s/#LoadModule/LoadModule/' $conf | sed 's^[email protected]^'$admin_email'^' > $conf_new
    echo "(Re)Starting Apache..."
    osascript <<EOF
    do shell script "/bin/mv -f $conf $conf_old; /bin/mv $conf_new $conf; /usr/sbin/apachectl restart" with administrator privileges
    EOF
    which works just fine.
    But I'm still confused - why did ADC have a code snippet that could have never worked? Or am I missing something obvious?
    - Nathan

    Hey, RanjeetJones!
    You're probably right - it's a lot of code to uncomment a line and change the administrator setting.
    And the first time I set up PHP, I just found and edited the config file.
    But the script had me so confounded I went back to troubleshoot it and got all wrapped up in why it ended up that way.
    And this will help the next coder who wants to learn PHP and maybe doesn't speak bash.
    - Nathan

  • Making field input editable after giving error msg from table event 01

    Hi All,
    I have a requirement of giving error msg and making that row or the particular field input editable by writing code in table event 01 i.e before saving any record in a z-table i have to chk some condition for a column value and if that condition fails then i have to give error msg and make that column input editable.
    I have created a routine for event 01 and written the code to give error msg. But my problem is that column is not becoming input editable. Could you pls tell me how can i make that field editable?
    Thanks in advance.

    Hi Piyali,
    Use SET PARAMETER & GET PARAMETER ID  .
    You will get it.
    Best Regards,
    Pravin

  • Performance issue: Calling a BAPI PO create in test mode to get error msgs

    Hi,
    We have an ALV report in which we display purchase orders that got created in SAP, but either got blocked due to not meeting PO Release strategy tolerances or have failed output messages. we are displaying the failed messages even.
    We are looping the internal table of eban(PR) & calling bapi po create in test mode to get failed messages.
    Now we are facing performance issue in production. What can be the alternate efficient way to get the error msgs with efficiency
    Regards,
    Ayub H.
    Moderator message: duplicate post (different ID, same company...), see below:
    Performance issue calling bapi po create in test mode to get error messages
    Edited by: Thomas Zloch on Mar 9, 2012

    Hi Suvarna,
    so you need to reduce the number of PO-simulations.
    - Likely you checked already, that all EBAN-entries should already be converted into POs. If there would be a large number of "new" EBAN-entries, they don't need to be simulated.
    - If it's a temporary problem: give aid to correct the problems (maintain prices or whatever the error-reasons are) Then the amount of not-converted purchase requisitions (PR) should drop, too
    - If it's likely, that your volume of open PR will stay high: create a Z-Table with key of EBAN and a counter, simulate (once a day) PO conversions and store the results in the Z-table. In your report you can use the results... if they are "new enough". From time to time new simulations should be done, missing master data might be available.
    Maybe users should be allowed to start this 2nd report manually (in background), too -> then they can update the messages after some data corrections themself, without waiting for the result (just check later in online report and do something different in between).
    And you might need to explain, PO simulation takes as long as PO creation... there is no easy or fast way around this.
    Best regards,
    Christian

  • Row Navigation not possible after Faces Error Msg

    Hi,
    I have a pop up where form allows to add multiple rows so i do have navigation buttons(first, previous, next, last).
    Once if any i/p requirement is not fulfilled, the error msg displays normally which was given in bean like JSFUtils.addFacesErrorMessage("......"); , the navigations button is not functioning even after giving the required i/p. Those buttons are bindings based.
    I have created multiple records but navigation stops in the record where that error msg comes. How to solve?
    Regards,
    Ramz

    As Far As I know to fill form in popup successfully you must set the partial submit of the input fiels to true on the form maybe that fix your problem too.

  • Transaction goes to display mode after an error message / POPUP - Urgent

    Hi All,
        We have a requirement that, in the Service order transaction IW31/ IW32 in the components tab ,  based on the material numbers entered by the user we need to call a Popup and inform user to fill in the correct value for special stock indicator.
       I tried using the BADI Workorder_update , but within that I could not call a pop up or a message.  I tried using the exit  EXIT_SAPLCOMK_014 where
       in I collect the incorrect components and call a POP UP with all of them. But once I call the POP UP the IW31/IW32 screen in the background goes
       to display mode and then we are not able to change the value as per information from the POP UP.  This is the same problem that we faced with the
       BADI.
      Please let me know if this could be handled in any other way.
    Regards,
    Prabaharan.G

    check with exit
    Transaction Code - IW31                     Create Order
    Exit Name           Description
    IWO10012            Maintenance order: Priority handling on central header
    No of Exits:          1
    Transaction Code - IW32                     CHANGE ORDER
    Exit Name           Description
    IWO10012            Maintenance order: Priority handling on central header
    No of Exits:          1
    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.sap-img.com/ab038.htm
    http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
    Rewards if useful.........
    Minal

  • Hi ALL How to keep field in input mode even if  error is fired in the PAI

    Hi all my requirement is like this
    Here in one screen am using the table  control now in the table control user is providing data .
    while user will press the save button after providing the respective data then it should check one validation by looping on the table control and adding all data bringing into an internal table which is working absolutely fine . the validation is the (result added data is validated against the data which is there in the database) .
    if validation fails then user gets one error message but at that time all fields are going to display mode .
    but user wants to be present in the screen and rectify the data .
    PROCESS BEFORE OUTPUT.
      MODULE sub_get_fs_data_0111.
      LOOP AT it_fs INTO wa_fs WITH CONTROL file_system_tab.
        MODULE sub_populate_fs_screen.
      ENDLOOP.
    PROCESS AFTER INPUT.
      MODULE user_command_0111.
      LOOP AT it_fs.
        MODULE sub_read_fs_data.
      ENDLOOP.
    MODULE user_command_0111 INPUT.
      CASE sy-ucomm.
        WHEN 'SAVE'.
          PERFORM sub_compute_sum.
          PERFORM sub_upd_fs_tbl_0111.
      ENDCASE.
    ENDMODULE.
    FORM sub_compute_sum .
    data : l_error type p decimals 2.
      CLEAR: g_storagesansum,
             g_storagelocsum.
      LOOP AT it_fs INTO l_fs.
        ADD l_fs-zz_storage_san TO g_storagesansum.
        ADD l_fs-zz_storage_loc TO g_storagelocsum.
        l_sansum = l_sansum.
        l_locsum = afvu-zz_aodfield75.
        IF l_sansum < g_storagesansum.
          l_error = l_fs-zz_storage_san.
          EXIT.
        ENDIF.
        IF l_locsum < g_storagelocsum.
          EXIT.
        ENDIF.
      ENDLOOP.
      l_tempsum = l_sansum - g_storagesansum.
      IF l_tempsum GE 0.
        g_availablesan = l_tempsum.
      ENDIF.
      l_tempsum = l_locsum - g_storagelocsum.
      IF l_tempsum GE 0.
        g_availableloc = l_tempsum.
      ENDIF.
      IF l_sansum < g_storagesansum.
        IF g_onetimeflagsan = ''.
          g_onetimeflagsan = 'X'.
           g_storagesansum =  g_storagesansum - l_error. " testing
           leave to screen 0.
          MESSAGE E021. "Total storage exceeds total SAN available
        ELSE.
          g_onetimeflagsan = ''.
          l_tempsum = l_sansum - g_storagesansum.
          IF l_tempsum GE 0.
            g_availablesan = l_tempsum.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDFORM.
    please answer if there is any way to do this

    Thanks
    Yeah That can be done but i was looking at some Solutions which generally is done In sap screens
    like in the standard transactions if we will give anything wrong value then only that row and that particular field will be open for the input in the table control
    Cant we do it ...
    Before submitting this i already checked all the forums regarding table controls
    There were some regarding how to apply chain and end chain but this is a tricky situation
    none carries this type of problem so i posted this would anybody  answer this qs?

  • Help! ipad stuck in recovery mode after itunes error 6

    so I was gonna update my ipad 3 from 6.1.2 I think, to 7.0.4 but I got the error 6 in itunes. now my ipad is showing the connect to itunes symbol and itunes wants to restore my ipad, which I wouldn't wanna if there was any chance to get it out of that frickin mode. I've tried anything I could find on the internet, like several tools such as tiny umbrella, redsn0w, ireb (which said my device wasn't supported cause of the A5) etc. but after rebooting the connect to itunes comes on again.
    so if there is any method left that might work for me, pleeeease help me   
    a restore is the last thing I wann do, of course I have a backup and so on but it takes so much time to get all my stuff back on and everything

    Once the Device is asking to be Restored with iTunes... it is too late to save anything...
    After you have Recovered your Device...
    Re-Sync your Content or Restore from the most recent Backup...
    Restore from Backup  >  http://support.apple.com/kb/ht1766

  • IPad stuck in recovery mode after unknown error occurred during update via iTunes

    how can I save photos Stored on that iPad ? please help.

    If the device is in Recovery Mode, the data is already lost. You will have to restore the device to regain access, and restoring will delete all content. If you have the photos in a backup, you can restore to that backup and it will restore the photos.

  • Report opens in "Design" mode and throws error

    Hi All,
    One of my user gets an attached error when he opens a report. I noticed that, this happens because his report always open in "Design" mode. Now when we click on "Reading" mode, it works fine.
    Also, this behavior is happening only for one report. What can be the issue ? Is there a way in settings that I can do, so that the report always opens in "Reading" mode.
    BI4.1 SP1
    Thanks,
    Anupam,

    Check this KB:
                  2016483  - error: "while trying to
    invoke the method java.util.List.iterator() of null object loaded from
    local variable 'nodes' (Error: INF)”

  • G4 shuts down in "T"arget Disk Mode after iPod error

    I am attempting to clone my old G4 to my new G4. I had hooked up the forewire cable to both systems while I still had my firewire iPod plugged in to the new target desktop. It showed up on the other desktop but not the new one and I unplugged it (w/o it being ejected). When i rebooted the new desktop it opened in a Darwing/BSD Login window. Eventually, I did a clean reinstall from OS Disk (10.2.8 is the latest disk i have both were 10.3.9 before). So now when i attempt to Boot the new G4 in TDM it shuts off. A tech paper in support says it will shut off unless it has a Bus 0. I went to the genius bar and he was stumped but suggested I use back up software to the iPod then clone from it. I was also told that by dapping pram (done) and mram it would reset to default bus. How do you zap mram?

    Hello! You'll find the instructions for resetting the pram and nvram HERE. As for FTDM, it only works with the drive that is the master jumpered drive and not the secondary or "slave" drive. If your OS is on the slave (which it will boot just fine as the os doesn't care if it's the master or slave) then it won't be seen in FTDM. Tom

  • Throwing error msg in selection screen

    Hi all,
    I want to throw one error message in selection screen .
    This message is of more than 1000 chars.   and i want to show these 1000 chars in  a pop up window and when i press 'TICK' mark, it should stay only in the selection screen . It should not go to the output screen and it should not leave the transaction either..
    Can anyone help me in this by providing the coding for this..
    Regards,
    Shanthi

    Hi Shanthi,
    Your requirement is fulfilled by standard SAP message processing. Through message maintenance (TCode SE91), you define a message with a long text.
    Let us say the message class is ZSHANTHI and the message number is 025. Besides the message short text you defined say 'Something wrong with &. Refer Long Text', un-check the checkk-box 'Self Explanatory', choose this message number and click on 'Long Text' button on the application toolbar. You will get long text editor and you can compose your 1000 lines or even 1000 pages story there.
    Now let us see what you need to do in the report program. Your requirement is 'Issue the error message. When user hits Tick, display long text in a modal window and later stay in the same selection screen'.
    You just issue this message in AT SELECTION-SCREEN event as:
    MESSAGE e025(ZSHANTHI) WITH 'requirement'.
    The error message will display on the status bar and when user hits the message X button, the long text with your story will appear in a modal box and still selection screen stays.
    If your client is adamant in having only 'Tick' mark (this sucks me), you can add DISPLAY LIKE 'S' addition to the above message statement. But this addition works only 4.7 upwards.
    If you want to  issue this error message in list processing events like START-OF-SELECTION, then, you need to issue the following statements:
    MESSAGE s025(ZSHANTHI) WITH 'still weird requirement'.
    Note the message type 'S' above.
    LEAVE LIST-PROCESSING.
    Hope this helps.
    Regards
    Suresh Radhakrishnan

  • Enabling custom field in screen after error msg

    HI experts,
    I m facing problem in enabling screen field in infotype screen. That is, i have added a custom field in std infotype screen and this is shown in enable mode by default. In PA30, im enterig values for all fields in the infotype and press SAVE.
    At that time, an error message is thrown by the system. Becoz of this error message, my custom field is changed to disable mode and also gets shrinked.
    Can anyone suggest me how to enable my own field in screen even after the error msg returned by the system?

    There are two ways to cater such a kind of problem.
    either you can enable custom field manually by writing code or
    you can change field group.

  • Hide the error msg for the mandatory fields

    hi
    how can i hide the error msg for the mandatory fields when they are not entered?? when i don't put a value in a mandatory field and commit the form, an error msg occurs teelling to enter the value for that mandatory field, but the error msg is not friendly at all and i want to hide it.
    thnaks

    User,
    I'll assume you are talking about ADF Faces + ADF Business Components application, since you don't mention it.
    If you are talking about the pop-up Javascript dialog box that pops up, you can do the following:
    1). Set required=false on those fields in your JSP.
    2). Set showrequired=true on those same fields so that there is a visual indication that the fields are required
    3). Ensure the attribute to which the fields are bound have "mandatory" set to true in the BC's
    Now, when you commit the form, you will not see the Javascript pop-up, but you will see a message in the af:messages component.
    Best,
    john

Maybe you are looking for