Disabling the fields

Hi All,
  How can i disable the fields when i press on Display button, the data shud be retrieved but the fields shud be in display mode only.
  waiting for ur reply.
Thanx  & Regards
Srinath

You need to loop at screen and modify the attirbutes of the screen structure. Do this in the PBO and before doing this , check if the transaction is in Display mode or Change mode.
if display_mode = 'X'.  "Variable set depending on the transaction
Loop at screen
  screen-input = 0.
  screen-active = '0'.
modify screen.
endloop.
endif.
regards,
Advait.

Similar Messages

  • Routing : disable the field "net price" in external process

    Hi all PP guru,
    in Routing, is there any way i can disable the field "net price" in external process, not let user enter any value in, also force the Purchase info record as mandatory field ?
    anyone know how to use "OP5D" ?
    Regards
    kh

    Hi,
    In the Transaction: OP5D:
    Select PP/QM task lists: operation screens
    In the Next Screen all the Fields are arranged in the Alphabetical Order.
    For Net Price: Select the Disp. Radiobutton (Display)
    For Purcase Infor record: Select the Req Radiobutton ( Required)
    Every time the Filed Net Price is for display purpose and Purchase Info Record is a Mandory Field for you.
    Hope this helps..
    Regards,
    Siva

  • Disabling the field 'Bill-to party' in sales order screen

    Hi friends,
    I need to disable following fields in the partner functions tab of sales order ,while creating/changing a sales order,since they will be automatically populated and user should not be able to modify.
    1.Bill-to party.
    2.Payer.
    I have tried with user exit MV45AFZZ,but program control is not coming there regarding PARTNERS tab,for diabling the screen.
    Can you give me some hints like,any other EXIT or BADI exists for writing the code for this?
    Thanks & Regards
    Seshagiri.

    Hi,
    Your requirement is to identify the bill to based on ship to. if so do the following.
    maintain the partner tab in ship to master record, here you assign the bill to party to whom you have to send the bill.
    Now in partner determination procedure maintain the bill to source as ship to. In partner determination procedure you have all the options from where system has to look for the other partner functions.
    In this processes system first checks with Sold to, finds out a ship to, now from ship to partner tab it automatically finds out the bill to in to the sales order.
    Hope you understood, if not let me know.
    Reward if it helps you.
    Venkat Cheedalla

  • How to disable the field-input in xd01

    Hi Abappers,
                         I have created subscreen in xd01 using BADI: CUSTOMER_ADD_DATA_CS. After giving input to field, it has to go disable mode how is it possible.How to disable that field.
    Regards,
    simba.

    Hi,
       after u add some data to that field. Now check the field, if it is not initial then make that field in disable mode.
    for eg:
    loop at screen.
                 if itab-<fieldname> is not initial.
                 screen-input = 0.
                 modify screen.
                 endif.
              endloop.
    Regards,
    Kasuladevi Srinivas
    Edited by: Kasuladevi Srinivas on Sep 11, 2008 7:26 AM

  • Disabling the field in SM30 based on some condition

    Hi all,
    I hv 11 fields in my custom table.I have a field called STATUS in it. The data into the table is automaticcaly generated when v run a report. when v go to SM30 only 3 fields are enabled. User has the provision to change only those fileds...
    The STATUS field may be 'C' or 'P'. If it is 'C', i shd make it as disabled,
    and if it is 'P' , when changed to 'D' shd be disabled.
    For this i hv taken the program name & screen no...in se51 i had created a new module in PAI.
    MODULE disable_flds1.
    module DISPLAY_FLDS1 input.
      IF ztest-zstatus EQ 'C'.
        LOOP AT SCREEN.
          IF screen-GROUP1 EQ 'STA'.
            screen-input = 0.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    endmodule.                 " DISPLAY_FLDS1  INPUT
    But the above logic is not workin...
    Can anyone help me..
    Thanx...

    Hi all,
    I hv 11 fields in my custom table.I have a field called STATUS in it. The data into the table is automaticcaly generated when v run a report. when v go to SM30 only 3 fields are enabled. User has the provision to change only those fileds...
    The STATUS field may be 'C' or 'P'. If it is 'C', i shd make it as disabled,
    and if it is 'P' , when changed to 'D' shd be disabled.
    For this i hv taken the program name & screen no...in se51 i had created a new module in PAI.
    MODULE disable_flds1.
    module DISPLAY_FLDS1 input.
      IF ztest-zstatus EQ 'C'.
        LOOP AT SCREEN.
          IF screen-GROUP1 EQ 'STA'.
            screen-input = 0.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    endmodule.                 " DISPLAY_FLDS1  INPUT
    But the above logic is not workin...
    Can anyone help me..
    Thanx...

  • Disable certain fields during the creation of SC using "create limit item"

    Hi,
    I have a requirement to disable certain fields from the role "SHOP" associated with the operational purchaser role. I would like to disable the fields "Unlimited check box", "Service Agent", " Invoice Only radio button", "Unknown account assignment radio button" from the screen I get during creation of SC using the option "Create Limit Item". Also i need to disable the option "Good / Service" entry box as we are using only free text items and donu2019t want this option to be seen in the screen when using the operational purchaser role.
    Please advise how can I achieve this.
    Regards
    GGL

    Hi,
    I have a same requirement to disable certain fields from the Shopping Cart Limit Item. I would like to disable the fields  "Service Agent", "Unknown account assignment radio button" from the Detail  screen. during creation of SC using the option  Limit Item .  Also i need to make default Value "Known" and "Invoice Only". But this is in SRM 7.0. Notes You have mentioned supports only Release 5.5, But I am in Release 7.0. Any idea?
    I appreciate your help
    Thanks,
    Monica

  • How to disable a field on the basis radio button value selected.

    hello to all,
    i am facing one problem.I have declared two selection screen blocks.
    In one i hvae declared two radio button r1 -Fiscal year and r2--Datewise.
    And in another selection screen block all i/p fields. like plant. date.year etc.
    Now if user select r1-Fiscal year  then i/p field - date of second block should be disable.
    And if user select r2-Datewise  then i/p field - year of second block should be disable.
    SELECTION-SCREEN BEGIN OF BLOCK BLK WITH FRAME
              TITLE TEXT-002.
           PARAMETERS: R1 RADIOBUTTON GROUP RA1 user-command ucomm,
                       R2 RADIOBUTTON GROUP RA1 DEFAULT 'X'.
       SELECTION-SCREEN END OF BLOCK  BLK.
    selection-screen begin of block b1 with
      frame title text-001.
    parameters : gjahr like ZSA_DETAIL-gjahr  MODIF ID YAR,
                 aedat like ZSA_DETAIL-aedat  MODIF ID DAT,
                 werks like ZSA_DETAIL-werks .
    selection-screen end of block b1.
    AT SELECTION-SCREEN on RADIOBUTTON GROUP RA1.
       BREAK-POINT.
        IF R1 = 'X'. "fiscal
         LOOP AT SCREEN.
            IF screen-group1 = 'DAT'.
             screen-active = 0.
             screen-invisible = 1.
             MODIFY SCREEN.
             ENDIF.
            endloop.
       ELSEIF R2 = 'X'.
         LOOP AT SCREEN.
         IF screen-group1 = 'YAR'.
           screen-active = 0.
          MODIFY SCREEN.
         ENDIF.
         ENDLOOP.
        ENDIF.

    Hi Shikha,
    Regarding your query, when you select a particular radio-button then the fields pertaining to that radio-button should get activated or get displayed, otherwise it should be hidden.
    This can be done adding the addition to the Radiobutton 'USER-COMMAND' this will automatically enable-up
    the functionality of the fields related to that radiobutton, while disabling the others.
    If USER-COMMAND isn't given, then ENTER key serves the purpose.
    DATA:
    w_carrid LIKE sflight-carrid,
    w_connid LIKE sflight-connid.
    PARAMETERS:
    p_carrid RADIOBUTTON GROUP airl USER-COMMAND airline,
    p_connid RADIOBUTTON GROUP airl.
    SELECT-OPTIONS:
    s_carrid FOR w_carrid,
    s_connid FOR w_connid.
    INITIALIZATION.
    p_carrid = 'X'.
    Now enabling desired fields and disabling the others, can be done by the following snippet.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF p_carrid EQ 'X'.
    IF screen-name CS 'S_CONNID'.
    screen-active = 0. " Disable the field S_CONNID
    MODIFY SCREEN.
    ELSEIF screen-name CS 'S_CARRID'.
    screen-active = 1. " Enable the field S_CARRID
    MODIFY SCREEN.
    ENDIF.
    ELSEIF p_connid EQ 'X'.
    IF screen-name CS 'S_CARRID'.
    screen-active = 0.
    MODIFY SCREEN.
    ELSEIF screen-name CS 'S_CONNID'.
    screen-active = 1.
    MODIFY SCREEN.
    ENDIF.
    ENDIF.
    ENDLOOP.
    Hope, this would help you solve your problem.
    Thankyou,
    Zahack.

  • How to disable the geotag NAG screen.

    1. Is there a way to either to (ENABLE/DISABLE) geo-tagging permanently.
    2. If YES, is there a way to disable the NAG question when taking pictures.

    Hi,
    In case you want to disable the screen elemnts/fields when one clicks on 'DISPLAY' then you have to do the following:
    This should be written in PBO (Process before output).
      LOOP AT SCREEN.
        IF screen-group1 = 'DIS'.
          screen-input = '0'.
          MODIFY SCREEN .
        ENDIF.
      ENDLOOP.
    This will disable the fields you want on your screen.
    the fields that you want to disable should be put into a group say 'DIS'(screen-group1 as seen above) in SCREEN PAINTER.
    Hope this helps.
    Thanks,
    Rashmi.

  • How to disable a field in a standard transaction

    Good day,
    Can any one tell me , with an example of , how to disable (the field should not allow any input ) a parameter  or a select option in a standard transaction.

    Probably the only way to achieve this is by creating transaction variants:
    In the SAP Reference IMG, you can create transaction variants. Choose Basis Components ® Application Personalization ® Tailoring of Application Transactions ® Configure Transaction-Related Display Values for Fields (Transaction SHD0). Transaction variants allow you to preset values for fields in a transaction, set field attributes, or hide entire screens.
    To execute a transaction variant, you define a variant transaction using the Transaction Maintenance transaction (SE93).
    Once you have entered a transaction code and short description, choose transaction type Transaction with variant (Variant transaction).
    To define a variant, enter the name of the transaction and the name of the variant. You can then use the new transaction code to start the special variant of the transaction.
    Steps :-
    Transaction SHD0 - Create a variant for the required transaction bychanging the layout through hiding fields and screens.
    Transaction SE93 - Create a variant transaction (e.g. for VA02 you canname it as ZA02). Next allocate the transaction variant to this varianttransaction.

  • Disabling subscreen fields..

    hi,
    i have a screen with a subscreen that has a tabstrip with 5 tabs.
    during one of the operations i need to disable all the fields in all the screen areas of that screen inclduing the subscreen tabstrip fields.
    its not working, in my PBO module i write as follows:
    LOOP AT SCREEN.
        SCREEN-INPUT = '0'.
        MODIFY SCREEN.
    ENDLOOP.
    only the fields of the current screen are disabled. the fields in the tabstrip in subscreen are still in input mode !! what to do ?
    thks

    you need to do the same logic for the subscreen also.
    if you placed the above logic for main screen . place the same logic for subscreens also.
    main screen logic
    process before output.
    call subscreen sub including sy-repid '0200'.
      module status_0100.
    process after input.
    module user_command_0100.
    subscreen logic.
    process before output.
    * MODULE STATUS_0200.
      module status_0100.
    process after input.
    * MODULE USER_COMMAND_0200.
    module code.
    module status_0100 output.
    *  SET PF-STATUS 'xxxxxxxx'.
    *  SET TITLEBAR 'xxx'.
    loop at screen.
    screen-input = 0.
    modify screen.
    endloop.
    endmodule.                 " STATUS_0100  OUTPUT
    this work for me, you try it from your end.

  • Enabling / Disabling a field on a Form

    Hi, I would like to enable a field for user input query value,
    but once the data is returned to the form, I want to disable that
    field so that it cannot be editable. (i.e. it is the PK for that
    table). Anyone has any suggestions / Ideas.
    Thanks
    Srini

    Hi,
    If you can find the form element in Javascript using
    document.forms[0].elements[i] - where i is the element number
    then you can disable it by
    document.forms[0].elements.disabled=true;
    and enable it by
    document.forms[0].elements[i].disabled=false;
    the javascript would be something like:
    if (document.forms[0].elements[i].value > "") {
    document.forms[0].elements[i].disabled=true;
    this will disable the field if it has a value.
    you should put this in AFTER displaying the form since otherwise
    the form is not there for the code to run on.
    Regards Michael

  • Disable a field at Item level for SC confirmation Screen

    Dear All ,
    PLEase help me with a step by step instruction on how to disable field at Item level of  confirmation screen of SC .
    I tried in Webdynpro component : Web Dynpro Component:/SAPSRM/WDC_DODC_CONF_IBD in se80 and below is what I get ;
    When I click on Display it asks me for an access key which I dont have ..
    When I click on the enhancement option it asked me to create an implemenation which I did as seen in yellow below and still the enabled field is not getting editable so tha I can uncheck and make the field dissapper .
    Please can some one really help me in understanding what exactly I am doing wrong ?
    Also  Please let me know if the SPRO path related in this to be able to do in any which way ... I tried expanding
    Configure field control .. and it doesnt expand so dont know which other option to use ..
    Thanks for your help in advance .
    Kindly let me know !!
    Regards
    Vinita

    HI Laurent .
    1. Thanks for your input . I wasnt able to open the SPRO path coz I was using SAP 720 and when I installed 730 I was able to use it .
    2. I am still not able to udnerstand how to configure it through Meta data .. What does Final_Entry mean .. I want to disable the field Last del indicator and its flag box and the label as well ..
    3. I tried through component configuration and it worked ..as below :
    I went to the webdynpro component and started the component configiurator :
    Here I made both the field and Label insisible and was able to do this .
    Please can some one help ,me know how to configire this through Meta data concept as well .. I wanted to try that method as well for my understanding ..
    Would appreciate your help and would be closing this post soon ..

  • Disable the 'CHANGE' button in CRMD_ORDER

    Hi Experts,
    I have a requirement, where I need to disable the change button in CRMD_ORDER transaction for only few orders...
    am not sure about the disabling the change button, so I tried to disable the fields for input.
    I tried to use the function module 'CRM_INTLAY_SET_PROCESS_TYPE' and also other BADIs like CRM_ORDER_AUTH_CHECK, CRM_BTX_EXTENSIONS...but not able to disable the fields completely.
    The Conditions tab at the item level is still in change mode...
    Appreciate your help on this..
    Thanks
    Padma.

    Hi Padma,
    If you plan to use your idea with CRM_ORDER_AUTH_CHECK, you must also set the CRM_PRIDOC_COMM_BADI for the item condition tab. Set the CS_COMADM_I_COM-KAEND_TYP as 'X' in this BAdI.
    And implement note1148666 too, if your version is fit.
    Regards,
    Masayuki

  • Disable mapping fields

    Hi
    Is there any way to disable the fields in mapping.
    I am using same Message Type for source and target. But i want to disable some fields in source structure... is there any way to disable the fields in source structure.
    Thanks & Regards
    Sowmya....
    Edited by: Sowmya on Jun 2, 2008 11:20 AM

    HI,
    To Disable fields from Source structure will not make any logic as either the Source structure fields are mandatory or optional and you will be sending any data to it by any means either directly or by UDF, only target side Structure is important. Thus you can disable the fields in Target Structure.
    Right click on any of the field in Mapping -> Mark Disable filed option to disable the field
    Thanks
    Swarup
    Edited by: Swarup Sawant on Jun 2, 2008 8:03 AM

  • Disable the components of UI

    I have one requirements, where i have three Team member say A(Super), B and C. This all team is resulted in a table. When i click on A, i should see/updates the details of A, B and C. But if i click on B, the user can see/updates details of him(B) but can only view details of A and C. Same applies for C.
    How should i handle this. Can it be achived using personalization?

    You should write logic in the controller for this, when you select B, disable the fields that details A and C, so that these are not updatable.
    Thanks
    Tapash

Maybe you are looking for

  • PSE 7: Editor exits to Organizer - Bug?

    Hi, I did ask this question once before, but it may have gone to the bit bucket. So I try again if any of you have an idea why the Editor shows this behaviour. Thanks for any "illumination"! I wonder if the following is a PSE design feature or is rea

  • BI Apps load - DAC variables not substituted.....

    HI All, Source - EBSR12.1.1 Server A : Target is Win Server 2008, Oracle 11g, DAC 10.1.3.4.1, IPC 8.6.1 (HF 11), BI Apps 7.9.6.2 - tried loadin HR In this it substitutes one $$variable incorrectly. I did this long back and so I am not sure what this

  • Refuses to boot

    I got a used mdd g4 recently, but when I try to boot it from the internal hdd, it shows the apple logo for a bit, then i see a black rectangle instead of the logo. Then it freezes irrevocably. I can boot into single user mode, and fsck gives me somet

  • JNDI Exception while trying to create home object

    Hi everyone, I'm trying out a test application to create a home object in a remote computer. I'm using the SUN Ref-Impl v1.3 . I ran the small code below, try { Hashtable env= new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.co

  • HT3728 Time Capsule turned "off" and won't turn back "on"

    My Time Capsule shut down last night--completely turned off--and won't turn back on. It felt warm, so I unplugged it overnight. I tried plugging it back in this morning and it still doesn't have power. I've also tried plugging it in somewhere else, a