How to activate screen fields of VA01 after an error displayed

Hi
I have an issue working with USEREXIT_CHECK_VBAK, which affects transactions VA01, VA02 and VA03.
I have written the logic to validate the combination of Sold-To and Ship-To, against the Partner Table KNVP, under USEREXIT_CHECK_VBAK. And, if a user enters wrong combination of Sold-To and Ship-To, say in transaction VA01, USEREXIT_CHECK_VBAK will be triggered and the validation error message will be displayed. So, once the error is displayed, all the fields available on the screen are getting inactive. The requirement I have is that, after the error message is displayed, both the Sold-To and Ship-To fields should be ready for input again by the user, and the error should be displayed each time user enters wrong combination, but the fields should always be ready for input.
I have tried working with USEREXIT_FIELD_MODIFICATION, to no avail.
Could anyone help on this, or give me an idea on how this requirement could be achieved.
It's urgent.

You can try it with warning message instead of error message.
Or else have a lok at below link which gives the details of VA01 exits so that u can find out the corresponding exit where you can make the changes.
http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm
I hope it helps.
Best Regards,
Vibha
*Please mark all the helpful answers

Similar Messages

  • HT201407 How to activate my i pad 2 after restoring

    how to activate my i pad 2 after restoring

    Full Error is
    "Activation Failed
    This iPad is not able to complete the activation process. Please press Home and start over. If the issue persists, please visit your nearest Apple Store or Authorized service provider for more information or replacement."
    The device has not been jail broken nor has my computer jail broken any devices. The device was working fine on wednesday and I did a restore and wipe, to switch from one user in the family to another. When I went to restore, I received this error. I have been through the restore and update process (says updating firmware, etc.) but at the end of the process I get the same message.
    My big concern is this is an iPad 2 I bought new years ago and I'll be upset if the Apple Store folks say, "sorry, hardware issue."
    Dan

  • How ti disable screen fields in Module pool

    hi
    How to change screen fields to DISPLAY MODE aftr clicking on a particular pushbutton in Module pool  prg .
    regards
    chetan
    Edited by: chetan teli on Jul 29, 2008 1:04 PM

    hiiii
    use following code for disabling field
    IF p_rad2 IS INITIAL .
        LOOP AT SCREEN.
          IF screen-name CS 'p_docno'.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.                           " IF screen-name CS 'p_docno'.
        ENDLOOP.                           " LOOP AT SCREEN.
      ELSE.
        LOOP AT SCREEN .
          IF screen-name CS 'p_docno'.
            screen-active = 1.
            screen-input = 1.
            MODIFY SCREEN.
          ENDIF.                           " IF screen-name CS 'p_docno'.
        ENDLOOP.                           " LOOP AT SCREEN .
      ENDIF.                               " IF p_rad2 IS INITIAL .
    regards
    twinkal

  • How to keep the field open for input with error message in report program

    Hi,
      Need a help in solving the below issue.
    "How to keep the field open for input with error message in report program"
    Regards,
    C.Shasiraj.

    Hi...
    you have to use the event:
    <b>AT SELECTION-SCREEN ON <FIELD> EVENT.</b>
    u have to give an error message in this event.
    Consider the following <b>Example:</b>
    <b>PARAMETERS : NUMBER TYPE I.
    AT SELECTION-SCREEN ON NUMBER.
      IF NUMBER = 10.
        MESSAGE 'Number vakue is 10' TYPE 'E'.
      ENDIF.
    START-OF-SELECTION.
      WRITE NUMBER.
    </b>
    in this if u give the value of number = 10, it will not proceed further, if u give some other value other than 10 you will proceed further...
    Execute this program once u will understand....
    also Consider the following links :
    <b>Regarding events:</b>
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/34a237d9b511d1950e0000e8353423/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/34a23ad9b511d1950e0000e8353423/frameset.htm
    <b>Regarding messages:</b>
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/aa575426ad11d2954d0000e8353423/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/aa575426ad11d2954d0000e8353423/frameset.htm
    This is very useful.......
    Reward points if useful....
    Suresh....

  • How to gray out fields in VA01 & VA02

    Hi All,
    My requirement is to restrict manual entries of line items.
    While creating a  credit memo with refrence to billing document the items from billing document gets copied to this document.
    User wants to restrict entering more line items apart from these.
    Therefore the rows after the last line item should be grayed out i.e in display mode. (Not the columns).
    This should happen in VA01 & VA02 transaction.
    I have found the Userexit_field_modification in include MV45AFZZ.
    Also the screen nunmber is 4902 and table control TCTRL_U_ERF_GUTLAST whose screen input should be 0.
    Please let me know if there is some other way by which this can be achieved also if this is correct; then how should I proceed with the logic.
    Thanks in advance.
    Regards,
    Darpana.Ahire

    Hi,
    For doing so you can use the concept of the transaction variants. Using transaction variants, you can do the below:
    1) Make fields mandatory on screen
    2) Hide fields on the screen
    3) Default values on screen fields
    4) Make fields input disable on screen.
    Hence for doing this, go to SHD0 transaction and do the recording for the standard transaction. Once done Save the transaction variant.
    Finally from menu((tab page: Standard Variant in SHD0): Activate as Standard Transactions variant.
    Give the Name as your Transaction variant name.
    Once you active the transaction variant as the standard variant, then if the std transaction is called, the screens which you defined in the transaction variant will be called.
    No code changes need to be done. The transaction variant will only change the appearance of the screens
    Regards
    Shiva
    Edited by: Shiva Kumar Tirumalasetty on Sep 11, 2009 4:41 PM

  • How to make screen field enable when table control gives an error

    Hi,
        I had a scneario like when table control data wrong then one parameter of the screen should be enabled for the input, i knew that screen-name will not work since it will have always table control fields only when table control gives an error.
    How to make the other parameter enable when table control throws an error.
    Regards,
    Jaya

    Hi Gobi,
         Thanks for your response, but issue is - how to make other screen fields enable when there was an error in the table control data.
    For table control - lets say we will use the code as i mentioned above.i am sure that we cant write the code for field enable in between loop & endloop.
    as you said if we right outside the loop-endloop, the module wont be triggered when table control throws an error, because that statement was not there in the loop-endloop.
    please let me know if you need any more information on the issue. I hope there is alternative for this in SAP.
    Thanks
    Jaya

  • How to change screen field value.

    Hi Experts,
             I like to change the screen field MSAUS(check box) of program SAPLIQS0 in one of the exit.But if I use
    (SAPLIQS0)VIQMEL-MSAUS = 'X'. its showing compile error.Please tell me how can i change this field in this exit.
    Regards,
    Ajish.

    try something like this:
    create field symbol
      FIELD-SYMBOLS: <fs>.
    Assign value of variable from calling prog to field symbol
      ASSIGN ('(SAPLIQS0)VIQMEL-MSAUS' ) TO <fs>.
    <fs> = 'X'.
    Regards,
    ravi

  • How to activate batch field in Planned Order

    Hi all Gurus,
    My customer asked me to activate batch field in Planned Orders (MD12) so that they can enter batch number before converting planned order to production order. By entering a variant in the table I could make it display in the table but not in change mode.
    Is it something to do with screen variant or do you have any suggestions?
    Thanks in Advance
    Sree...

    Hi,
    Please maintain following config...
    1. Go to Production --> Material Requirements Planning --> Procurement Proposal --> Planned Orders --> Define Layout for components list.
    2. Then go to Field Selection Profile. Select the profile and click on profile field selection fields
    3. Click on Change Field Selection and Select Batch or any other required field. Save the changes.
    This should work, pl come back to me in case you have any further doubts.
    Regards,
    Gaurav

  • How to access screen field value in a module pool programming?

    Hi Experts,
       I have create a module pool program SAPMYDLG. It contains two screens 100 and 200.
       The first screen contains Employee_ID field. This field is not a dictionary field.
       In the second screen 200, I want to access the value of Employee_ID field from first screen.
       For this I created a global variable v_empid in TOP include.
       Then in the PAI of the screen 100 I have assigned the screen field value to global variable.
       v_empid = Employee_ID.
       But this gives an error saying " Field  Employee_ID not defined".
       What am I doing wrong? How can I access the screen field value?
    Thanks
    Gopal

    Hi,
    Employee_ID field also must u define in the top include when u define that 100 screen and 200 screen will access.
    regards,
    muralii

  • How to Activate "Site" Field in MIRO - G\L Account Tab

    Hi Experts,
    I need to make "Site" Field in Tcode MIRO - G\L Account Tab as inputable field for User which is currently not visible in screen.
    This field is available in Standard Layout provided in SAP as Invisible.
    I cannot able to make the field as Optional in Standard Layout.
    The field is also available in Structure ACGL_ITEM-WERKS.
    Can Anyone tell me how to make the field ready for User Input in MIRO Screen.
    Thanks and Regards,
    Selvakumar. M

    Hi Selvakumar,
                                                                                    Please note that the following fields are not supported for G/L direct  posting in MIRO:                                                                               
    ACGL_ITEM_VALUT (Value data )                                                
    ACGL_ITEM_VBUND (Trading partner)                                            
    ACGL_ITEM_GRICD (Activity code)                                              
    ACGL_ITEM_GRIRG (Region)                                                     
    ACGL_ITEM_GITYP (Distrib.type for employ tax)                                
    ACGL_ITEM_FKON  (Fin. Budget item)                                           
    ACGL_ITEM_ETEN2 (Sched. Line is sales order)                                 
    ACGL_ITEM_WERKS (Plnt)                            <<<                        
    ACGL_ITEM_EBELN (Purch.doc.)                                                 
    ACGL_ITEM_EBELP (Purchase document item number)                              
    ACGL_ITEM_PRCTR (Partner profit center)                                      
    ACGL_ITEM_BEWAR (Trans. type)                                                
    ACGL_ITEM_MATNR (Material)                                          
    ACGL_ITEM_BWTAR (Material valuation type)                                                                               
    These fields are not saved in the logistic invoice document so their value can not be transferred. They can be made visible by changing   screen variant however, this still means that the fields will not be ready for input, you can only see them.  technically, when an invoice with the item referred to a G/L account is posted, the field 'Plant' cannot be properly saved in the database table RBCO, because there are no fields for them in the table RBCO       
    and this can cause problems by following processes.  The field can be made visible by changing screen      
    variant however, this still means that they will not be ready for input.                                                                               
    Regards,
    Mauro

  • How to activate NVDIA GTX 580 for After Effects cs5?

    Hello,
    I have adobe CS5. I bought an NVDIA GEFORCE GTX 580 .
    I activated for Premier CS5, but I do not know how to activate for After Effects.
    Can anyone help me?

    What is it that you're expecting it to do?
    After Effects doesn't use CUDA for processing. That's just Premiere Pro.
    After Effects can use OpenGL for speeding up previews. See this page.

  • How to fetch screen field in HR abap

    hi friend,
      I need to fetch a screen field q0128-tdline. And the field should be included in payslip. Is there any user exit to proceed with this.Please reply ASAP.
    Thanks and Regards
    K.karthikeyan.

    hi,
    Use the user exit PBAS0001.
    you need to write the code in include ZXPADU02 to get that field.

  • How to update screen fields dynamically

    Hi,
    Can any one help me in updating screen field dynamically using so_expr, so_where,so_flds

    Hi,
      Use this type of logic. Though this code is for selection-screen, but you can use this type of logic for screens by using screen table and implement this logic in PAI.
    REPORT z_sdn.
    PARAMETERS:
      p_num RADIOBUTTON GROUP rad1 DEFAULT 'X' USER-COMMAND abc,
      p_char RADIOBUTTON GROUP rad1.
    PARAMETERS:
      p_num1 TYPE i MODIF ID num,
      p_num2 TYPE i MODIF ID num,
      p_char1 TYPE c MODIF ID chr,
      p_char2 TYPE c MODIF ID chr.
    AT SELECTION-SCREEN OUTPUT.
      IF p_num EQ 'X'.
        LOOP AT SCREEN.
          IF screen-group1 EQ 'CHR'.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          IF screen-group1 EQ 'NUM'.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    Regards
    Abhijeet

  • How to make a field editable again after displaying error msg (validation)

    Dear All,
    In dialog programming, I have written a validation on a text field that it should not be left blank by the user, but after displaying the message the field becomes gray (non-editable). How can I make it editable once again after displaying the error message.
    My code is as following:
    ***INCLUDE MZFBPS1_SAVE_DATAF01 .
    *&      Form  save_data
          text
    -->  p1        text
    <--  p2        text
    FORM save_data .
    ****************Check For Empty Fields Start
    if ZFBPS_GATE_IN-truck_code is INITIAL
    or ZFBPS_GATE_IN-truck_no is INITIAL
    or ZFBPS_GATE_IN-transporter_code is INITIAL.
    MESSAGE e020(zmatlist).
    endif.
    ****************Check For Empty Fields Start
    Regards,
    Alok.

    hi,
    u can do it in chanin end chain.
    For example if there are 10 fields in the screen and for 5 fields whenever the user enters wrong values u like to give some error message. You can declare that fields in the chain enchain so that only those fields will be input enabled and all other fields will disabled.
    CHAIN.
    FIELD chk_connobj.
    FIELD chk_inst.
    FIELD chk_devloc.
    FIELD ehaud-haus.
    FIELD eanl-anlage.
    MODULE modify_screenfields.
    ENDCHAIN.
    *& Module modify_screenfields INPUT
    * text
    MODULE modify_screenfields INPUT.
    CLEAR okcode.
    okcode = sy-ucomm.
    CASE okcode.
    WHEN 'ENTER' OR 'EXECUTE'.
    IF chk_connobj IS INITIAL AND chk_inst EQ c_x AND
    chk_devloc EQ c_x.      -----------> ur condition
    IF ehaud-haus IS INITIAL.
    SET CURSOR FIELD 'EHAUD-HAUS'.
    MESSAGE e000(zo_spa) WITH text-017. " message obj
    ELSE
    loop at screen.
    if screen-name = 'FIELD_NAME'.
    field-name-input = 1. -----------> chnges to non-edit mod
    modify screen.
    endloop.
    ENDIF.
    ENDIF.
    ENDMODULE.
    Rgds
    Anver
    if hlped pls mark points

  • How to make screen fields editable

    Hi all,
    iam writing a validation for FD32 transaction in exit, if the validation fails showing error message.
    Porblem is when ever error message comes and after that if i press enter fields are going to mode of non editable ( Display mode), how to make them editable which were already editable ( before error message comes).
    Iam not using module pool program for this, iam writing code in include exit and throwing the message.
    Thanks,

    Hi,
    You can use pop up window to display error message as below:
    -Quote-
    AT SELECTION-SCREEN ON ABCD.
      IF <condition fails>.
        CALL FUNCTION 'FC_POPUP_ERR_WARN_MESSAGE'
          EXPORTING
            popup_title        = 'Error'
          IS_ERROR           = 'X'
            message_text       = 'Error message description'
            start_column       = 25
            start_row          = 6
        STOP.
      ENDIF.
    -Unquote-
    You may also use:
    -Quote-
      IF <condition fails>.
        MESSAGE 'abcd' TYPE 'E'.
      ENDIF.
    -Unquote-
    Kindly let me know whether this is of any help or not.
    Regards,
    Shayeree.

Maybe you are looking for