After Showing ERROR message make the field editable in subscreen.

Hello Experts,
I have a requirment where i have added a subscreen to the standard screen of ME31K for creating the contract. In my Subcreen i have my custom screen fields that i'm updating in EKKO table through include structure.
Now if user forget to fill the details in my custom fields in the subscreen then i'm giving the error message prompting the user to fill the value in fields.
But the problem is the screen is locked there itself i want to make the field editable so that user can enter some value in the fields. I can not use the stuatus or information message here because doing this i will get the item overview screen which should not come as i want to restrict the user to header details only and fill all the custom fields.
Please provide me with your helpful responses.
Thnaks,
Naveen

Hi Naveen,
Sorry for the delay.
The code which I gave for popup, i hope its being shown in an IF . . . ENDIF.
So in that condition u can add the following :
IF < ur condition >
   < Call message FMs >
    SET SCREEN SY-DYNNR.   "this would set screen to current screen which is 0201
    EXIT.
ENDIF.
Other than this if you like you can set some parameters in the PAI of this screen which redirect to current screen based on some conditions.
So u can manually set OK-CODE and CALFCODE as SPACE, but i dont know how much this can impact the process.
So please follow the above code.
This is available in
Main Program     SAPMM06E
Source code of   MM06EF0F_FCODE_CALL
IF OK-CODE EQ SPACE AND
   CALFCODE EQ SPACE.
  SET SCREEN SY-DYNNR.
  EXIT.
ENDIF.
Hope this helps.
Regards,
Ateet

Similar Messages

  • Show Warning Message near the field

    Hi all,
    I want to show my warning message near the field which is required instead of right at the bottom.
    I use the following onSubmit() Method when the user hits the submit button to check for required fields:-
    if (this.testfield == null) {
    this.setBackgroundColor(componentId : "testfield", color : "Red");
    this.focus(componentId : "testfield");
    this.setVisible(componentId : "testfield", visible : true, collapsed : false);
    this.showWarning(warning : "Testfield is Required");
    else {
    this.submit(text : "submit");
    This gives me the error message right at the bottom of the presentation as opposed below the field.
    How can I get this message to appear right below the field which is required?
    Any idea?
    I tried this.setText()
    But it does not work.

    The "showWarning" and "showError" methods used to be more useful when we had the option in earlier releases (5.7) to place them at either the top or the bottom of the presentation.
    I now never use either one of them.
    This is not what you want to hear and know you've thought of this, but what I do is add text attributes (errorMessage1, errorMessage2,...) to the BPM object and then place the text fields on the presentation as read-only, bold red foreground color text fields directly above the field causing the error. In my presentation's initialization method, I always use the setVisible method to false and collapse them. In your submit logic, you'd set the value of the error message attribute and set the error message field to be visible and not collapsed. You need to add an on change event for the field causing the error that will make the error field not visible and collapsed. Similarly, if you have a Save button, you need to make all the error fields not visible and collapsed.
    Dan

  • Error message disble the Fields in Selection Screen

    Hi,
    In my Report i am validating some fields as mandatory.
    If the field is initial then one Error message should be display in the screen and user has to modify the selection screen.
    But after displaying the errro message my selection screen is input disable except the mandatory field.
    I want all the fields should be input enable.
    Sample code for Error message,
    MESSAGE E018 WITH 'Enter Plant'.
    Please provide the code for this.

    Performing checks on SELECTION-SCREEN
    - if the check uses only one independent field (e.g.: value exist in a table) use a[ AT SELECTION-SCREEN ON <field>|http://help.sap.com/abapdocu/en/ABAPAT_SELECTION-SCREEN_EVENTS.htm#!ABAP_ALTERNATIVE_2@2@], the field will be editable when error is raised
    - if the check uses some fields, group them using [SELECTION-SCREEN BEGIN OF BLOCK <block>/END OF BLOCK <block>|http://help.sap.com/abapdocu/en/ABAPSELECTION-SCREEN_BLOCK.htm] and then [AT SELECTION-SCREEN ON BLOCK  <block>|http://help.sap.com/abapdocu/en/ABAPAT_SELECTION-SCREEN_EVENTS.htm#!ABAP_ALTERNATIVE_4@4@], each field of the block will be editable when error is raised
    So, if you really want that each and every field be editable when an error is raised, declare every parameter and select-options in a big block, and perform the check in a unique AT SELECTION-SCREEN ON BLOCK xxx.
    Use Error message, Warning and Information don't break the flow of the report.
    Regards,
    Raymond

  • SO items are refreshed after showing error message in VA01

    Dear experts:
    I have a problem in VA01, please kindly help me.
    If we use the expression " message err_msg type 'E' " in userexit_save_document of MV45AFZZ , the system would show pop-up window with message "Item 000010 does not exist", then I can only quit VA01 screen and input SO data again.
    Why the so items are refreshed and how to solve this?Thanks a lot!

    Hi,
    Bcoz you are using Error   ("E") message .if u will use meassage type 'W' or 'I'(information) it will not happend. use any one.
    OR if want only error message u have to use in AT EXIT-COMMAND.
    regds,
    paras

  • How to show error message in a report program

    Hello Guys,
    I am making a report using smartforms. I am successful in showing data  but problem is if if i put a value in parameters that does not exist is database, the smartform runs and related fields shows as empty fields. But the form is running. I want to show error message if the parameter values dose not matches with the database values. The message will show as Document not exists
    So i used related error msg here like
    if sy-subrc ne 0.
              message e357.
               endif.
    But it is not working for passing values to smartform. It works if i use in classical report. Plz help me on this issue.
    Thanks,
    Rosaline.

    >
    Rosaline. wrote:
    > Thanks all for reply.  Should i have to use message before call function 'SSF_FUNCTION_MODULE_NAME' ? I tried it but not working.
    >
    >
    if it_final[] is not initial.
    >*             if sy-subrc ne 0. ---> "Remove this condition check, it not required
    >            Message e000(8i) with 'Parameter value not found'.
    >            endif.
    > *            endif. ---> "remove this
    >
    Hi,
    Sy-subrc doesnt need to be validated here, remove that If condition and check again.
    Regards,
    Karthik D

  • Error message at the selection screen while processing screen logic

    Hi All,
      I need to show error message at the selection screen.
    I am calling the screen inside the START-OF-SELECTION, and processing the calculation and putting the data into i_final internal table. If internal table I_FINAL is empty I have to show error message saying ' DATA is empty' , this error message should be shown at the SELECTION SCREEN (Report input screen 1000) and provide the user to enter the input values once again.
    But whenever I am populating error message, I am getting a pop up to chose exit, and process is terminating.
    Since I am in the middle of the screen processing whenever I am giving a error message.
    Please let me know how can I populate error message without terminating the process while I was in the middle of the screen processing logic.
    Regards,
    Mahesh

    hi
    If u are trying to validate a field use
    AT SELECTION_SCREEN ON <field>
    if want to validate a block
    AT SELECTION SCREEN ON <block>
    If Universal Validation
    AT SELECTION SCREEN
    and display a 'E' Message inside the block.
    You can Enter Correct Value and start processing Forward.
    hope this will help.
    Regards
    Sumit Agarwal

  • Showing error messages on click of Save button only

    Hi,
    Generally SAP web client GUI is showing the error message on pressing of Enter button (or) picking up any data field and stepping out of it. We want to show error messages for mandatory fields only when user clicks on Save. How can this be done in SAP web client GUI?
    Regards
    --Hari

    Hi Hari,
    If you want to raise an error message on save. Try this.
    method eh_onsave
    DATA: lr_msg_service    TYPE REF TO cl_bsp_wd_message_service.
      DATA: ls_msg_no TYPE symsgno.
    if ( condition failed)
      lr_msg_service = me->view_manager->get_message_service( ).
        lr_msg_service->add_message(
        iv_msg_type       =  'E'
        iv_msg_id         = 'Z_MSG_CLASS'
        iv_msg_number     = ls_msg_no ).
    exit the method once the error message is raised
    exit
    endif.
    end method.
    Note : specify the message class and message number in the add_message menthod.
    Hope this was helpful.
    Best Regards,
    Lakshminarayana

  • When trying to install nwds tool , showing error message not properly insta

    hi ,
    when i am trying to install nwds in system, it showing error message at the end stage.
    The following program files could not be registered:
    *     c:\windows\sapwksta\setup\splash.dll*
    *     c:\program files\common files\sap shared\wdadobecontrol.dll*
    *     c:\windows\system32\librfc32.dll*
    *     c:\program files\common files\sap shared\sapchart.ocx*
    The installed applications may not function correctly until all program files are successfully installed.
    what is the problem. when i am click on nwds icon on desktop, it showing error message
    c:\program files\sap\ide\ide7.0\eclipse\sapide.exe is not valid wid 32 applicaiton.
    i installed java and gave environment variables settings . it is not a problem.
    please give reply

    Hi Sujana,
    I am also faced the same issue when I install the NWDS softward.
    Reason: Maybe you have install higher version NWDS.Beside that SAPGUI will also use librfc32.dll.
    Solution: Please delete librfc32.dll in c:\windows\system32 and install again
    I have did the same thing, itsh installed successfully.
    Hope it shold works fine.
    Regards,
    Venkata Ramireddy

  • How to show error message next to the field?

    Hi All,
    I am writing my own form handler and I am trying to show form field errors without using errormessageforeach droplet for learning purpose.
    I am able to show to the fields errors but I want to show them next to the fields.
    How can i achieve this functionality?
    Regards,
    Prateek

    PrateekG wrote:
    Hi All,
    I am writing my own form handler and I am trying to show form field errors without using errormessageforeach droplet for learning purpose.
    I am able to show to the fields errors but I want to show them next to the fields.
    How can i achieve this functionality?
    Regards,
    Prateek
    You can use JQuery/JavaScript to validate for errors and div to show error after field like below:
    <dsp:input type="text"  bean="MyFormHandler.cashierId"  />
         <dsp:valueof bean="MyFormHandler.errorMap.firstname"/>
    <div id="firstNameError">Your error message will goes here<div>
    -RMishra

  • After editing a photo, I sometimes get an error message that the "File is empty".  Can revert to original and start again, but file disappears after editing.

    So frustrating!  I open the photo.  Edit by cropping, adjusting color, etc.  It's perfect.  I click DONE and move on to the next.  When I come back, the first photo is gone.  I can see it in the album but cannot open it.  When I look at the file information, it shows zero KB.  If I move it to the desktop and try to open it, the error message says the file is empty.  I can revert to original and there it is.  Edit again, and again it disappears.  What am I doing wrong?  I am using iPhoto 09

    You shooting with a Nikon? We've seen a few examples of this bug with Nikons on 09 and 10.6, with no solution except to upgrade.
    Regards
    TD

  • While trying to run it show error message : "The application or DLL C:\Program Files\Mozilla Firefox\sqlite3.dll is not a valid Windows image. Please check this against your installation diskette

    Just updated firefox. While trying to run it show error message : "The application or DLL C:\Program Files\Mozilla Firefox\sqlite3.dll is not a valid Windows image. Please check this against your installation diskette." Tried to download and install new firefox, but it alway show that the file is corrupt
    == Today ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)

    Do a clean reinstall and download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
    Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    You can skip the step to create a new profile, that is not necessary for this issue.
    See http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • How to give error message for the screen element text field when wrong i/p

    How to give error message for the screen element text field when wrong i/p
    when wrong input given
    eg. 
    I have a text box with SBOOK-CARRID
    so when user give wrong entry in text box i.e LG
    then I should give some error stating that the the input is invalid or not available ,
    now it showing the error of standard messages,
    i want manual message to be displayed when error comes.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla

    Hi all,
    Thank you for your valuable reply,
    but the thing is that its a screen field,
    i.e text box not a selection screen
    i created in screen layout
    with name sbook-carrid
    now i want to get error message display if wrong i/p is given
    thank you.
    Regards,
    Jagrut bharatkumar Shukla,

  • When deploying the webdynpro java application , showing error message

    Hi Masters,
    when deploying the webdynpro java application , showing error message. Please reply why this problem showing and what is the solution
    But Iogin to sdm tool ( remote gui .sh) with same password, which password  i am using for deploy the webdynpro java application.here in sdm tool i am able to login. and i restart the sdm , and again trying to deploy the same problem it showing.
    URL to deploy : file:/C:/DOCUME1/ppuser/LOCALS1/Temp/temp30925rupa.com~sales.ear
    Result
    => deployment aborted : file:/C:/DOCUME1/ppuser/LOCALS1/Temp/temp30925rupa.com~sales.ear
    Aborted: development component 'sales'/'rupa.com'/'LOKAL'/'0.2010.02.13.14.32.39':Caught exception during application deployment from SAP J2EE Engine's deploy API:com.sap.engine.deploy.manager.DeployManagerException: ERROR: Cannot connect to Host: [devsap] with user name: [J2EE_ADMIN]                     Check your login information.                     Exception is: com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception while trying to get InitialContext. [Root exception is com.sap.engine.services.security.exceptions.BaseLoginException: No login module succeeded.] (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).DMEXC)
    Deployment exception : The deployment of at least one item aborted
    Edited by: sujana mullapudi on Feb 13, 2010 2:52 PM

    Hi Sujana,
    For deploying Web Dynpro for Java application, J2EE_admin correct password must be stored in the scured area of config tool.
    Your error show that J2EE_admin information is not correct.
    So, Please ask your basis team to update new J2EE_ADMIN password or you can do it in scured area of config tool.
    Hope this will helps you.
    Thanks
    Arun Jaiswal

  • Disabling fields(Make the field as non-editable)  in webdynpro ALV

    HI All,
    I have a requirement in the ABAP webdynpro where I have to disable(Make the field as non-editable) the field(or that ALV cell alone)  in the ALV after the user has inputed in that field.
    Is it possible, if yes, could you please give me some sample code , or links to which I can refer to.
    Thanks for your help.
    Regards,
    Subash M

    Hi,
    Use the following approach :
    1. Create an ALV and create an inputfield cell editor for the column that you want to make editable/disable.Refer this tutorial for creating an [Editable ALV|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3133474a-0801-0010-d692-81827814a5a1]
    2. Now under the same node create an attribute EDITABLE type boolean and bind this to the readonly property of the input field. Include the following code while creating Input field for binding.
    lr_input_field->set_read_only_fieldname( 'EDITABLE' ).
    3. Now implement the onDataCheck event or OnCellAction event and pass abap_true to this attibute to make the cell readonly/disable.Refer this tutorial for [Events in ALV|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/bd28494a-0801-0010-45a3-fc359d82d3e8]
    Hope this helps.
    Regards,
    Radhika.

  • Download error under apps. After following download steps multiple times still showing error message.

    Download error under apps. After following download steps multiple times still showing error message.

    Hi There,
    Kindly try the below mentioned links.
    Creative Cloud Help | Download Error in Apps tab of Creative Cloud Desktop Application
    Creative Cloud - Download error - stubborn error
    Thanks,
    Atul Saini

Maybe you are looking for

  • Serving multiple SSL websites on one box behind one public IP

    I maintain a small private Arch server which I use to serve up a personal website and serve websites for a couple of friends as well. Currently, I do this with name based virtual hosting, but I would like to be able to secure each of these sites with

  • Vendor data in PO - Note: 1260486

    Hi, We are in SRM 4.0 and using extended classic scenario. In process purchase order transaction if we change the vendor from (V1) to (V2), purchasing data of the vendor (V2) like Payment terms, ERS, GR based IV are not getting updated in the Po auto

  • Error: oracle.sysman.emSDK.util.jdk.EMException  with 9iAsR2 on linux

    We are using 9iAs/R2 on linux. When I start or stop services I get the message: oracle.sysman.emSDK.util.jdk.EMException This action results in following status information: - BC4J is down - Clickstream Collector is running - HTTP Server has question

  • How do I get thumbnails when converting RAW files from Lumix TZ60?

    I recently purchased a Lumix TZ60 camera because of its ability to record in RAW format and am extremely pleased with its performance. However, although I am able to convert the RAW files on my iMAC using Adobe DNG Converter (Version 8.7),  the conve

  • "Student & Teacher Creative Suite 6" download error

    I have "Student & Teacher Creative Suite 6" and I can not install on my Mac. I have only installed it once before on my PC. Error message: "This serial number is not valid for Creative Suite 6".