Disable the Screen Field

Hello Abappers,
I have two radio buttons and two text box.
The text box refers to data dictionary and named as
   ZIXHR_S_APPROVAL-APPUSER
ZIXHR_S_APPROVAL-APPORG
When i click on a radio button the first text box should be disable and similar with the secon one.
How to disable the text box from the screen?
Please reply soon.
Regards,
Rahul

Hi,
Try the code given below.
Regards,
Wajid Hussain P.
if rb1 = 'X'.
loop at screen.
if screen-name cs 'ZIXHR_S_APPROVAL-APPUSER'.
  screen-input = 0.
  modify screen.
elseif screen-name cs 'ZIXHR_S_APPROVAL-APPORG'.
  screen-input = 1.
  modify screen.
endif.
endloop.
else.
loop at screen.
if screen-name cs 'ZIXHR_S_APPROVAL-APPORG'.
  screen-input = 0.
  modify screen.
elseif screen-name cs 'ZIXHR_S_APPROVAL-APPUSER'.
  screen-input = 1.
  modify screen.
endif.
endloop.
endif.

Similar Messages

  • Disable the screen field of  quantity field

    This User Exit is required for Validation check for Partial Delivery in reservation
    Using T.Code MB22 the quantity in reservation once created and partial issue has been completed then it should not be allowed to change the qty. Quantity change can take place till an issue is made. which should be done in the migo tcode for
    posting

    my requirement is to print the cheque to my requirement in that i want to print date , vendor name ,ammount and ammount in words in a cheque which will be put into the printer
    so i have modified the standard layout  F110_PRENUM_CHCK  in Z_F110_PRENUM_CHCK  and also the print program ZRFFOUS_C every thing i have done sucessuffuly and my cheque dimention is in width is 207 mm and height  is 94 mm. for which i  have created an output device in spad tcode  and i have design in portrait form .
    and my printer is of HP laser jet and the device type is HPLJ5.
    the problem  is when i am putting a physical cheque horrizontally into the printer the cheque is going into the printer
    and getting printed into the required blocks of a cheque . but it is not comming out of the printer i have to manually open the catrig and have to take out the cheque , can any one give the
    solution how to bring the cheque out of the printer automatacally when it is printer , its urgent.
    Regards
    sarfaraz

  • 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

  • Disabling single Screen field

    Hi Friends,
    Plz help me how to disable single Screen field in Module pool.
    I have a scenario where One of the field is drop down box,in that options if i select 1 option the next Input/outputfield and Group of radio buttons(2buttons) should be disable.
    PlZ help me with the solution

    hi
    it may help u.
    in drop down box each option should have function code.
    now in pai
    use
    case ok_code.
    when 'option 1'
    loop at screen.
    if screen name = 'group1' or screen name = ' input field name'.
    screen input = 0.
    modify screen.
    endif.
    endloop.
    endcase.
    or
    if ok_code = 'option1'.
    loop at screen.
    if screen name = 'group1' or screen name = ' input field name'.
    screen input = 0.
    modify screen.
    endif.
    endloop.
    regards
    anil

  • Populating the screen field when the cursor moves to that field

    hi every one,
    I want to populate the screen field(MODULE POOL) When the cursor moves to that field.
    So can any one help me out with this.
    EXAMPLE..
    I want to populate 'S10_TOT_PRICE' (Total Price). When the fields like 'S10_PIECES' (Number of Pieces) will be entered. I want to populate 'S10_TOT_PRICE'  without pressing any button on the screen nor when enter is hit. When the field 'S10_PIECES''  will be entered with some value and the cursor moves to 'S10_TOT_PRICE' . The Total Price field should be populated. Please help me out with this.
    THANKS & REGARDS.
    Mahanta.
    POINTS WILL BE REWARDED.

    Sorry but look at this SAP documentation <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/54/0608162d0711d295520000e8353423/frameset.htm">User Actions on Screens</a>
    Extract :
    <i>User Actions on Screens
    There are various ways in which users can interact with screens.
    Filling Input Fields
    Users can enter values in any input field on the screen, or change the value using the mouse, in the case of radio buttons and checkboxes. The contents are placed in the corresponding screen field. Filling an input field does not normally trigger the PAI event. Exceptions to this are Checkboxes and Radio Buttons with Function Codes and input fields with Drop Down Boxes.</i>
    So, i fear that you cannot "take hand" when user fill a numerical field to perform calculations and update the screen.
    Regards

  • How can we read the screen field values from the report selection screen wi

    Hi expart,
    How can we read the screen field values from the report selection screen with out having an ENTER button pressed  .
    Regards
    Razz

    use this code...
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_posnr.
    **Read the Values of the SCREEN FIELDs
    CALL FUNCTION 'DYNP_VALUES_READ'

  • Is it possible to disable the screen saver for a certain app?

    Is it possible to disable the screen saver just while a certain application is running?
    The app seems to crash when the screen saver comes on.
    Just so you know, application I'm using is Hogwasher; a newsgroup reader.

    Not really. Just disable it manually when you run that application. Then, send off a bug report to the app's developer and tell him to update it for the latest Tiger. Alternatively, use another newsgroup reader.

  • Disabling the Qty field for Input for Sub items in Sales Order and Delivery

    Hi..
    I have a requirement, where by we need to disable the qty field vbap-kwmeng for input for sub items of the BOM.
    I am planning to use the user exit USEREXIT_FIELD_MODIFICATION...in the include MV45AFZZ for sales orders.
    But i need to disable the input only after the BOM Explosion and item category determination in the sales order.
    Can i Use the same exit ?? what additional conditions i need to take into account.
    also we need to disable the delivery quantity field also for the sub items of this sales bom.
    I see that this User exit is not available in delivery procesing.  How to acheive the required functionality in the delivery processing...
    your advice is much appreciated in this matter.
    Regards
    Srini

    hi,
    Route is determined
    1.Country of Departure & Departure Zone taken from Shipping Point
    2.Country of Destination & receiving Zone from Ship to party
    3.Shipping condition from CMR
    4.Transportation Group from MMR
    5.Weight Group which is optional.
    Check the above.
    Route is determined in delivery.
    ASHA

  • How to Read the Screen Fields after a Transaction ?

    Hi all,
    I am working on the Transaction 'O4K_LICENSE'. After the transaction is run, it generates an Internal License number which is displayed on the screen. I tried using 'GET PARAMETER', but as the CALL TRANSACTION is called within a loop, the SAP Global memory is not getting refreshed and iam getting the same value for every loop for the Internal License Number.
    Is there any function Module other than DYNP_VALUES_READ to get the screen field values? I tried using the above function module, but in vain and it is not getting any values.
    Warm Regards,
    Vijay.

    Well .... let me explain this very clearly.
    The table OIHL has a composite primary key which is the combination of "External License Number" and "Internal License Number". The latter is generated after running the O4K_LICENSE transaction.
    Moreover, iam attaching every record with a record generated in the program. Now, the same User(ERNAM) can create records having the same External License Number.
    For example:
    If i created a record yesterday with an external License Number 123, then say an internal lic no of 3 is assigned to it.
    If i Create another record today with the same external lic no of 123, and an internal no of say 20 is attached to it, then i donot have any criterion to select the one which i have created today, as it fetches both the records.
    To add to the worst, there is no timestamp field also.
    Message was edited by: Vijay Sai

  • BDC-How to get the value of the screen field

    Hi All,
    I am facing a problem while writing the BDC code for the XK02 transaction.
    Recording:
    We have recorded like this :after giving the values in the initial screen(vendor no and purchase group and selecting the purchasing data check box) and enter into the second screen and then click on alternative data icon.There we ll have set of plants we have to check auto ordering (by selecting the plant and click purchasing icon)for the plants which are in the given file.
    Problem:
    Suppose there are five plants(like 1,2,3,4,5) for a particular vendor but we are having only three plants in the file for which auto ordering check has to be done.The problem is that its doing auto ordering check for the first three plants(1,2,3) in the transaction.But  in the file we are having Plants like (1,3,5).How to get the screen field value directly or is there any other way to resolve the problem?

    Dear Raja,
    You cannot get hold of screen values while running through the BDC Operation.
    Only way you can get the value --> populating an Internal Table from the Database Table.
    Regards,
    Abir
    Don't forget to award Points *

  • How to disable the text field in File upload element?

    Hi,
    How can we disable the text field in the "File upload" UI element so that the user won't be able to type the file path there, but he will still be able to browse the file using the Browse button?
    Regards
    Praveen

    Hi Praveen,
    This is not possible with the Web Dynpro File Upload UI element.
    Thanks,
    Samta

  • How to enable/disable the input fields based on the data entered/user action in the web dynpro abap?

    How to enable/disable the input fields based on the data entered in the web dynpro application abap?  If the user enters data in one input field then only the next input field should be enabled else it should be in disabled state. Please guide.

    Hi,
    Try this code.
    First create a attribute with the name readonly of type wdy_boolean and bind it read_only property of input field of which is you want to enable or disable.
    Next go to Init method.
    Set the readonly value as 'X'.
    DATA lo_el_context TYPE REF TO if_wd_context_element.
         DATA ls_context TYPE wd_this->element_context.
         DATA lv_visible TYPE wd_this->element_context-visible.
    *   get element via lead selection
         lo_el_context = wd_context->get_element( ).
    *   @TODO handle not set lead selection
         IF lo_el_context IS INITIAL.
         ENDIF.
    *   @TODO fill attribute
    *   lv_visible = 1.
    *   set single attribute
         lo_el_context->set_attribute(
           name =  `READONLY`
           value = 'X').
    After that Go to the Action  ENTER.
    First read the input field ( first input field, which is value entered field) , next give a condition
    if input value is not initial  then set the readonly value is '  '.
    DATA lo_nd_input TYPE REF TO if_wd_context_node.
         DATA lo_el_input TYPE REF TO if_wd_context_element.
         DATA ls_input TYPE wd_this->element_input.
         DATA lv_vbeln TYPE wd_this->element_input-vbeln.
    *   navigate from <CONTEXT> to <INPUT> via lead selection
         lo_nd_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
    *   @TODO handle non existant child
    *   IF lo_nd_input IS INITIAL.
    *   ENDIF.
    *   get element via lead selection
         lo_el_input = lo_nd_input->get_element( ).
    *   @TODO handle not set lead selection
         IF lo_el_input IS INITIAL.
         ENDIF.
    *   get single attribute
         lo_el_input->get_attribute(
           EXPORTING
             name =  `VBELN`
           IMPORTING
             value = lv_vbeln ).
    if lv_vbeln IS not INITIAL.
        DATA lo_el_context TYPE REF TO if_wd_context_element.
        DATA ls_context TYPE wd_this->element_context.
        DATA lv_visible TYPE wd_this->element_context-visible.
    *  get element via lead selection
        lo_el_context = wd_context->get_element( ).
    *  @TODO handle not set lead selection
        IF lo_el_context IS INITIAL.
        ENDIF.
    *  @TODO fill attribute
    *  lv_visible = 1.
    *  set single attribute
        lo_el_context->set_attribute(
          name =  `READONLY`
          value = ' ' ).

  • How to find where the screen field is stored in table

    Hi all,
    How to find where the screen field  is stored in the table .
    for some transactions if i press F1 on the field and after checking for the technical help.
    I can only find the struture for the screen field, but whereas i need table name for it.
    Can anybody help me how to find the table name where the field is stored.
    Regards,
    Madhavi

    Hi,
    Just hitting a F1 on screen field and getting structure name will not help in getting table name.
    First you need to know the flow of data in the reqd module, which will help you know all the tables in that module with there most of the fields with the data flow, now you need to work on your own to figure out that in which actual tables that value is stored.
    Hope this helps you.
    Regards,
    Tarun

  • How to maintain default values to the screen fields.

    hi,
    i m creating screen in se51.
    when i press New button the screen is filled with default values
    nrart = 'h' and proz1 = '100' .
    how can i set default values.
    plz give me a response

    HI,
              You can set default values on to screen fields using SET and GET PARAMETER command, You need to assign a PARAMETER ID for that screen field and then use SET PARAMETER before the screen is called or in the PBO of the screen, you can set default values direcly in PBO of the screen but then you have hard code those value or read the data from database.
    You need to have a TABLES statement to create a strucutre that you used to create your screen fields, then when you set value to these strucutre fields these values will get tranported to the screen fields automatically.
    Regards,
    Sesh

  • Can you disable the screen shot feature?

    I need to be able to disable the screen shot feature.  Anyone know how to do this?

    I can't tell you how to use it, but I do know that the iPhone Conficuration Utility can be used for this purpose.
    http://support.apple.com/kb/DL1465
    Matt

Maybe you are looking for

  • BPS Retraction for Cost Center Accounting - Cost Element - Compounding with

    Hello everybody, I'm using the "BPS Retraction for Cost Center Accounting" described in the blog from Praveen Mayalur. I have customized the BPS system  (3.5) as described. But if i started the retraction i receive a dump. I have debug a little bit a

  • File-XI-HTTP Scenario with multipart

    Hello everyone, Argentina has a legal requirement which is necessary to send a TXT file containing data related to outbound delivery (transaction VL03N) in a website created by the government. Nowadays the users are using a HTML page to send this fil

  • Count number of children movie clips?

    I have buttons that create specific movie clips such as a library object named "Clip_1": function b_Add_Clip_1(event:MouseEvent):void var b:MovieClip = new Clip_1(); b.name = "Clip_1"; container.addChild(b); I can add many Clip_1's, Clip_2's and so o

  • Disaster recovery server

    hi experts i am using SAP Version: ECC 6.0 SR3 Database Version: 10.2.0.4 OS Version: HP-UX B.11.31 i have a server where O/S installed. i want to make this as a disaster Recovery server. now i want to know. 1- what is the man power needed.? 2 -which

  • In"about this Mac" my largest item are backups. How do I free that space?

    After deleting numerous items from my HD, using Daisy Disc and the Finder, my HD's capacity is not larger like expected, but I now have a 250gb Backups file. I don't know how to get rid of it or even look at the items backed up. This is annoying...I