Enabling screen field

Hi Friends,
I am validating value of a field and showing an error message in an user exit. When the error message appears all the screen fiedls are disabling for input. I want to enable the checked field for input.
Please note the error message code is in vendor master user exit before saving. As of my knowledge we can use loop at screen for a field at PAI of dialogue program. How to handle this in the exit.
Regards.

hello
what you need to do is write the module for validation along with the keyword field < fieldname> like :
field <fieldname >  module validation.
write your code in this module.
if any error comes in this module,the field which is mentioned here will remain open for input and others will be disabled. but if you want other fields also to be open for input when any error message comes the use the varios field name in between chain and endchain like :
chain 
field <field1>
field <field2>
field <field3>
field <field4>
module validation.
endchain.
now if any error comes in this module,the fields which are
mentioned here will remain open for input and others will be disabled.
hope this helps.
regards
geeta gupta

Similar Messages

  • Enable screen field in WebDynpro ABAP

    i,
    I have WebDynpro ABAP screen where I have defined a read-only input field. Now I want to make this field input enable based on certain logic during run time.
      CALL METHOD lo_el->set_attribute_property
        EXPORTING
          attribute_name = 'SP'
          property       = lo_el->e_property-read_only
          value          = ''.
    I have written following code in method "WDDOMODIFYVIEW",
    but somehow this is not working. Any Idea what is going wrong.
    Regards,,,
    Sunil Joyous

    Manas,
    You said,
    You need to bind the read only poperty of input field with an attribute of type WDY_BOOLEAN, then based on your logic you can set the bound attribute to true or false in any method.
    how do I do this ? Now I have done following
      DATA : lv_wdy_boolean TYPE wdy_boolean.
      lv_wdy_boolean = ''.
      CALL METHOD lo_el->set_attribute_property
        EXPORTING
          attribute_name = 'SP'
          property       = lo_el_credit_note->e_property-read_only
          value          = lv_wdy_boolean.
    but still it is not working.

  • 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.

  • 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

  • Selection screen field

    Hi,
    A field in the selection screen of the report program should be disabled by default.
    I have written the logic for the same in at selection-screen output.
    If the user enters value in another field in selection screen,the field should be enabled for input.
    When the user executes the program,o/p is displayed.
    When the user clicks back button in the o/p screen,the field is again shown in disabled mode as the event at selection screen o/p is being triggered.
    The field should be enabled when the user cliks back button in the o/p.
    How to achieve this? => by writing the code. And we cannot do that for you.
    Moderator Message:
    Also,
    Total Questions:  141 (102 unresolved)
    suggests that you do not get back to the people who spend time on your issues. Be a responsible forum member by acknowledging people's time and effort.
    Edited by: kishan P on Nov 11, 2010 4:16 PM

    Hi,
    If i understood correctly you requirement you just have to make use of a global variable i.e. gv_enabled, which will be used as flag. Before disable the field in at selection-screen output event, check if gv_enabled is initial. When you enable the field for input, for the first time just move 'X' to gv_enabled.
    Best Regards
    George Zervas

  • Problem with G/L account screen field in PR for Services?

    Hi all,
    While creating PR, I am facing an issue with the screen field G/L account for services i.e item category 'D' .
    Once service number is entered in the screen, a pop-up window is triggering to enter the G/L account.
    once the G/L account is entered and click continue, unable to change this G/L account again because the
    field is greyed out(in Account asisgnment Tab)?
    Is it the standard SAP behaviour? Are there any settings to change the field in to input enabled?
    Please help.
    Thanks,
    Aravind

    Hi Aravind,
    To edit the G/L Account in the Service PO, first select the "Service" tab at Item detail screen, select your Service line in the Item detail, and then press " Account Assignment" icon which is available below the Item details screen ( In Service" tab). There you can edit the G/l account field.
    Umakanth R

  • Selection screen fields in which values have been entered

    Hi All,
    Is there any standard function module which enables us to determine which fields on the selection screen have values entered for them. In other words, I wish to determine which selection screen fields are no longer initial.
    Thanks and Regards,
    Vidya.

    Hi,
    Why cant you simply use in this way?
    if sel_screen_field1[] is not initial.  "for selet-options
    endif.
    if sel_screen_field1 is not initial.  "for parameters
    endif.
    is it not suitable for your case?
    //Kothand

  • Regarding screen fields include in purchase order transaction

    Hai guys,
        I need to add new field in purchase order transaction ( me21n, me22n, me23n ) . i have added the new field in screen painter. when i was creating the field and then i made the field to refer from dictionary , when i refer from dictionary the field is showing in non-editable format.how to make the field  as editable format to enter the value.what is the settings behind it please explain.
    for your information i have added one more field without refering dictionary it is accepting inputs .
    Regards,
    N.selvamuthukumar.

    thanks for your reply.
    we have already  done the changes as you mentioned. but still we are facing the same problem of inactive state on the newly created field.
    kindly suggest any other settings to be done for dictionary related fields.. (we have enabled the dictionary related option in the screen field properties menu)
    otherwise provide step by step setting for new field creation.....(se51)
    thanks with regards
    selva

  • Validations on the screen fields in a module pool program

    Hi all
    i am creating a sales order against a purchase order ,i am selecting a PO click on a button to call another screen which has all the mandatory fields of the SO i want validations on the screen fields or the input fields as when i enter the header data and the items data and the partner data from the input serach help that is already enabled on the screen fields ,if there is any mismatch among the fileds and an error message is displayed for example:-" material no 100-100 does not exist for  sales area" then only that field where this message is present should be field enabled and the rest of the fields should be field disabled.
    also the error message i m displaying is in short text form and not in long text i clicked on it (long text) however how to use it was not known to me .
    thanks
    varun
    Moderator message: please do more research before asking, try solving problems yourself first, look for previous discussions of similar issues, post texts in more readable format, you have been warned several times before.
    Edited by: Thomas Zloch on Feb 7, 2012

    i want to have input search help as if i select sales document type then corresponding sales organizations should appear
    This would be quite opposite of what h_vakz does. h_vakz gives Sales document based on Sales org..and you want vice versa. Create a simple SH with
    selection method : TVAKZ
    AUART as importing only
    VKORG as exporting only. So when you enter an AUART you get all VKORG it is defined in. I'm not aware of a standard search help which matches the requirement. If anybody does please help me.
    i have header data (only mandatory fields),items data,partner data(all mandatory fields)
    and when i select all the header data the search help that is on the material number and partners role and number should appear corresponding to that header data
    You will have to be more specific sir..
    not able to apply please guide someone
    As for that just mention them in SCREEN->ELEMENT LIST->REFERENCES

  • How to add a search help on a screen field from screen painter

    Hi,
    I would like to add an existing Search Help on a screen field in Screen painter.
    Of course it's possible to just click on th screen field and in the property box, I just have to set the name of teh search help.
    The problem is that I need the screen field to be grey and user musn't be able to change the field value if he doens't use the search help.
    I'm not allowed to modify the existing search help or to built it on my own from source code, I must use the existing one.
    Do you have an idea on how to do so?
    Regards,
    Morgan

    Dropdown Box:
    In the screen painter for that field goto properties -> Dropdown ->select listbox.
    Option 1:
    Instead let that field be in change mode and if user enters any wrong entry which is not there in the table give a error messgae.
      CHAIN.
        FIELD addr1_data-country.
        MODULE modify_screenfields1.
      ENDCHAIN.
    MODULE modify_screenfields1 INPUT.
      CASE sy-ucomm.
        WHEN 'ENTER' OR 'EXECUTE'.
          IF NOT addr1_data-country IS INITIAL.
            SELECT SINGLE landx FROM t005t INTO lws_landx WHERE
                                          land1 = addr1_data-country
                                      AND spras = 'EN'.
            IF sy-subrc <> 0.
              MESSAGE e000(zo_spa) WITH text-022.  " Invalid Country code
            ELSE.
              t005t-landx = lws_landx.
            ENDIF.
          ELSE.
            CLEAR: t005t-landx.
          ENDIF.
       ENDCASE.
    ENDMODULE.                 " modify_screenfields1  INPUT
    Option 2: Other than if u want the way u like, let that field be greyed out. don't attach the search help.
    In the PROCESS ON VALUE-REQUEST.
      FIELD addr1_data-region MODULE region_pov.
    MODULE region_pov INPUT.
    Using the F4IF_INT_TABLE_VALUE_REQUEST table value request show the search help.
    also make that field input enabled.
    ENDMODULE.                 " region_pov  INPUT
    I think this will solve ur problem.
    Regards,
    Prakash.
    Message was edited by: Prakash Ramu

  • Module Pool Programming - Radio Buttons & Screen Field Invisible or Display

    Hi,
    I have 2 radio buttons in my screen and both of them are checked or on. Not sure how to make one of them is on and other is off at a time. If A is off, i need to make few screen fields invisible or display. if A is on, i need to make the screen field invisible or input enabled.
    Can  you please suggest me a suitable way to accomplish this task.
    Appreciate Your Help in Advance.
    Thanks,
    Kannan

    hi
    try this
    go to SE38 create a program of type M
    go to SE51,give a screen no (ex : 0800) and click on create
    then click on Layout in se51
    in the Layout select the Radiobutton icon and drag/drop it on the layout
    Define them as by double clicking on the radiobutton icon
    First Radiobutton name : RB1, Groups : u can see 4 boxes,in the first box give group as G1
    do the same for the Second Radiobutton RB2.
    Now select both the radiobuttons RB1,RB2 both at a time and right click the cursor
    Radiobutton - Define.
    Then drag and drop a i/o field name : wk_name. save & activate the layout.
    in se51
    PBO
    Module_status_0800.
    Module_screen_modif.
    PAI
    Module_user_command_0800.
    in se38
    data : wk_name(10) type c.
    data : rb1,rb2.
    Module_screen_modif_o/p.
    if RB1 = 'X'.
    LOOP AT SCREEN.
    IF SCREEN-NAME = 'WK_NAME'.
    SCREEN-INPUT = '1'.
    SCREEN-INVISIBLE = '0'.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    if RB2 = 'X'.
    LOOP AT SCREEN.
    IF SCREEN-NAME = 'WK_NAME'.
    SCREEN-INPUT = '0'.
    SCREEN-INVISIBLE = '1'.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    endmodule.
    Module_user_command_0800.
    case sy-ucomm.
    when 'EXIT' or 'BACK' or 'CANCEL'.
    LEAVE PROGRAM.
    endcase.
    Endmodule.
    Regards

  • Hiding screen fields at an event

    hi,
    assume that i am having 3 fields in a screen.
    after antering the values on the first field and if i place the cursor on the second or third fields then these  fields (second and third ) should be disabled.
    can anyone help me out in this. For me it works only by pressing the enter key. I want that to work if the cursor has been placed on other fields.is there any event available for that.
    or pls tell me how to do this.
    regards,
    Phyrose.

    Hi,
    check the below.
    *& Report ZHAR_DYN_SELSCR.
    *& This program demonstrates how easy it is to set selection screen
    *& element properties dynamically
    *& The program uses 3 radio buttons to set the display and input
    *& properties of selection screen fields dynamically
    *& URL: http://allaboutsap.blogspot.com
    REPORT ZHAR_DYN_SELSCR.
    DATABASE TABLES
    tables : mara.
    SELECTION SCREEN
    selection-screen begin of block b1 with frame.
    *--- Radio buttons to set properties
    PARAMETERS:
    rad1 RADIOBUTTON GROUP rad default 'X' USER-COMMAND radio,
    rad2 RADIOBUTTON GROUP rad,
    rad3 RADIOBUTTON GROUP rad.
    *--- Selection Screen fields
    SELECT-OPTIONS:
    s_matnr FOR mara-matnr MODIF ID MI1,
    s_mtart FOR mara-mtart MODIF ID MI1,
    s_mbrsh FOR mara-mbrsh MODIF ID MI2,
    s_matkl FOR mara-matkl MODIF ID MI2.
    selection-screen end of block b1.
    AT SELECTION SCREEN
    at selection-screen output.
    loop at screen.
    *--- If Radio Button 1 is checked
    IF rad1 = 'X'.
    IF screen-group1 = 'MI2'.
    *--- Fields with MODIF ID MI2 disappear from the screen
    screen-input = 0.
    screen-invisible = 1.
    ENDIF.
    *--- If Radio Button 2 is checked
    ELSEIF rad2 = 'X'.
    IF screen-group1 = 'MI1'.
    *--- Fields with MODIF ID MI1 are input-disabled
    screen-input = 0.
    ENDIF.
    *--- If Radio Button 3 is checked
    ELSEIF rad3 = 'X'.
    IF screen-group1 = 'MI1' or screen-group1 = 'MI2'.
    *--- All fields will appear input-enabled
    screen-input = 1.
    ENDIF.
    ENDIF.
    *--- MODIFY SCREEN mandatory addition to apply changes to the screen
    Modify screen.
    endloop.
    Reward if helpful.
    Regards,
    Harini.S

  • Enable a field in VF01 transaction

    Hi All,
    I need to enable a field 'Exchange rate-accntg'VBRK-KURRF'  of the transaction VF01,
    Please guide me how to do this using SHD0 transaction or if any other way is possible.
    Regards,
    Sowjanya

    In SHD0  Enter the Transaction code & Enter the variant for particular transaction & click on change with processing Here you can select the field what ever you want to display ..
    Other way---->
    Go to SPRO --> Find for Exchange rate in accounting area --> here go for general settings & double click on the screen fields --> click on radio button what ever the field you want to see (VBRK-KURRF)
    in transaction VF0

  • How to enable pernr field in  miro

    Hello,
    while creating invoice in miro, pernr(emp no.) field is in display mode but i want the field in changeble mode.
    for the above requirement I have enabled pernr field in miro by going to transaction olmrlist   and then entering the below
    Transaction          MIRO
    Screen variant       7_6310
    Program              SAPLMR1M
    Screen               6310
    and by checking  the attributes of field Personnel no .
    while doing so the quantity field which was intially enabled got  disabled .
    I want the quantity field to be enabled.
    I am working in sap ecc600.
    Kindly help me .
    Regards,
    Rachel
    Edited by: Rachel on May 7, 2008 11:24 AM

    I got the answer for my Q.
    Purchase order is a service PO and in case of service PO, you can
    enter the quantity during MIRO only if GR-based IV and SRV-based IV
    indicators ( at invoice tab of PO) are ticked. Since  PO  present in system these indicators  not ticked so quantity field is set as displayed.
    Regards,
    Rachel

  • Unable to capture screen fields in eCATT

    Problem description 1 : Unable to capture screen fields in eCATT
    Recording using SAP GUI Method.
    Problem description 2 :Unable to capture Tab controls while recording
    in eCATT using SAP GUI Method.
    Thaks for any suggestion you could provide me and once again for your courtesy attention.
    Regards,
    Eric Monteiro

    Hi Phani,
    Please try below code:
    *data declaration for reading values given by user in the selection screen field.
      DATA: BEGIN OF i_tab OCCURS 0.
              INCLUDE STRUCTURE rsselread.
      DATA: END OF i_tab.
      MOVE: 'LOGSYS' TO i_tab-name,
            'P' TO i_tab-kind. u201CP For parameter
      APPEND i_tab.
      MOVE: 'GP_SIMVE' TO i_tab-name,
            'P' TO i_tab-kind. u201CCheck if field is Parameter
      APPEND i_tab.
    *move program name and screen number into local variable.
      l_prog = sy-repid. u201C(Try by directly passing program name also)
      l_dynnr = sy-dynnr. u201C(Try by directly passing Screen number also)
    *calling function module to get the value given by user.
      CALL FUNCTION 'RS_SELECTIONSCREEN_READ'
        EXPORTING
          program     = l_prog
          dynnr       = l_dynnr
        TABLES
          fieldvalues = i_tab.
    Hope this should slove your issue.
    Thanks & Regards,
    Gaurav.

Maybe you are looking for

  • Will a Mini-Displayport to VGA adapter work with new macbook pro 2011

    I was thinking of getting a mini-displayport to vga adapter for my external monitor I wanted to hook up but I wasnt quite sure whether it would work as my macbook pro has the new thunderbolt port, I was confused if the new port would only work with t

  • MacBook Pro suddenly running slow

    I used to be able to mulit function, moving from multiple screens quickly without any delays in action.  Now I have to wait patiently for things to "keep up".  I have always backed up to my time capsule, but I am (and will) be away from the capsule f

  • Variable Exit for YTD using posting period

    Hi Friends, I need to calculate the YTD amount per user entry, i.e., when user enters the posting period value as 5 the Actual value should calculate the amount for posting period 5 and Actual YTD value should calculate the amount from Period 1 - 5.

  • Error while loading the planning book

    Hi There, I am getitng the below error while loading the data in planning book "Error for COM routine using application program (return code 40,016) Error reading data - Planning book cannot be processed further" Ran  /SAPAPO/TS_LCM_CONS_CHECK and /S

  • Creative Muvo TX FM and Yahoo Music prob

    We bought both our daughters a Muvo TX FM for Christmas. We joined Yahoo Music and are trying to transfer songs to the device. We keep getting an error about the license not being valid. Could you tell me if there is a way to fix this? Also, what mus