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.

Similar Messages

  • How to change the field length in standard sap program.

    Hi All,
    How to change the field length in standard sap program.
    Urgent
    Example:
    Text1 type c length 75,
    To change :
    Text1 type c length 150,
    Point will be rewarded..
    Thank you,
    Vikram.C

    If the only solution is to change the sap standard program, simply change the program, it will prompt for an access key. This key can be retrieved in the SAP support portal (service.sap.com) at keys and requests, sccr keys, register object.
    Sometimes these actions are outsourced to a competence center, so maybe youre not entitled to do this, in any case ask a resident senior developer for support.
    regards, Rob

  • How to disable amount field in me21n/me22n

    Hi all,
    In me22n how to disable amount field in condition tab based on condition type.
    Regards
    suni

    Hi,  check SPRO

  • 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

  • How to move the fields in the standard webdynpro component.

    Hi ,
          I am new to webdynpro dynpro.
    I have a requirement in which i have to move the standard fields to some other place.
    The webdynpro component isn HRRCF_C_PERSONL_DATA_UI.
    In this i have to move the fields location and poastal code above the fields country and region which comes in ADDRESS .
    First i enhanced the application . then i right clicked the field , but the up menu is disabled since it is a standard one.
    kindly give suggestion to move the fields.
    Thanks & Regards,
    S.Velsankar

    Hi
    You need to delete that UIElement from standard component and create similar new UIElement, Now you can move your UIElement as per  your requirement. if you want to come back to original state of your component, delete your enhancement and the deleted UIElement will be back.
    Thanks
    Vishal Kapoor

  • How to add a field in elementary standard search help ? (H_T012)

    Hi everyone,
    I need to add a description field in the standard H_T012 search help, I know that collective search helps can be modified by appends, but, how can it be done in an elementary search help ?
    Thanks on advance,
    VSwaret

    hi swaret,
    i tried ur problem.....
    nothing special as to be done to add a new field in elementary search........
    just press F4 at parameters.
    there are already 4 fields...
    BUKRS
    HBKID
    BANKS
    BANKL
    you just add ur field.....
    TEXT1
    and specify Lpos and Spos as 5.
    and activate...... thats all......
    i tried and it worked for me........
    i hope it was helpful for u.

  • 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 populate custom fields in SAP standard Basic type DELFOR01(E1EDK09)

    I've a requirement to include and populate 2 custom fields in SAP standard basic type DELFOR01 and Segment E1EDK09 (it is at hierarchy level 1 ) .
    The requirement looks very simple but for this, as per my knowledge, I have to create a new  Basic type with the copy of segment E1EDK09 and attach it to outbound process code and write my own function module to populate the segments.
    It seems ok but the there are some existing codes in the user-exits for the SAP standard function module.These codes will not get triggered.(Or I've copy the user-exits code in my FM)
    Can we do it any other way to handle this kind of situation?
    Thanks in advance for your suggestions and help.

    Hi Phani,
    You have done it correctly. ECC additional data to be moved to EWM, 1. you need to enhance the CIF for master data/ bapi  to populate the data in the custom field in EWM. 2. Make your your are not enhancing only one structure. You need to do it in the CI includes so that the field is available in all the related tables/structures.
    3. The BAPI/FM which updated these tables will take care automatically to update the custom field data if the field is correctly added in all the tables.
    4. If the custom fields are added correctly and still the data is not getting saved , then need to check the mapping of the custom field and bepi extension.
    Let me know if this helps.

  • How to populate a field in a standard SAP screen through FMs and Workflows

    Hello Everyone,
    I have a requirement in which I have to populate a field in an standard SAP Screen.The logic for finding the value of the this field will be done in a new FM and this value has to be passed to this field on the standard SAP screen through workflow.I am new to workflows and need some quick help.Kindly let me know the basic steps I need to follow to realise this requirement.
    Thanks,
    VP

    Hi,
    You can create the task in the workflow which contains the method in which you set the value of the field in standard screen using set parameters id and the aprameter name attach to the field

  • How to disable individual field of a search view

    Hi All,
    Is there a way to disable individual search field of an advance search view ?
    The reason for this is that for a particular search field I am defaulting the value and do not want the user to be able to change this default value, in effect filtering out their search.
    I have tried get_i method but the advance search (thtmlb:advancedSearch) does not seem to trigger the get i method, disabled just disable every fields likewise the global edit/viewgroup context.
    Thanks in advance for your assistance.
    Edited by: ANDREW NGUYEN on May 12, 2010 10:45 AM

    Hi,
    I checked it now and found that the GET_I_FIELD is not getting triggered. Sorry for my wrong solution.
    You can use the rt_result parameter in GET_POSSIBLE_FIELDS method in IMPL class.
    It returns the search fields visible in the view.
    Regards,
    Arun Kumar
    Edited by: Arun Kumar on May 12, 2010 11:35 AM
    Edited by: Arun Kumar on May 12, 2010 11:38 AM

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

  • Need to make some fields mandatory in standard transaction XK01

    HI All,
    Is it possiable to make some fields in standard transaction like XK01 mandatory?
    or any work around ?
    thank in advance for your replies.
    Regads,
    Riyaz.

    Hi,
    From configuration(SPRO) u can easily make some fields mandatory in XK01. Otherwise create a transaction varition for XK01 using TC SHD0.
    Rewards points if helpful.
    Regards,
    Srinivas Ch

  • How to display verfication fields in ITS mobile transactions

    Experts,
    We are working with ITS mobile for the first time.We are not sure how to display the verification feilds in ITS mobile transaction.I see these are displayed in backend. Since these verification fields are dynamic, how do we get them on ITS mobile transactions.Can anyone tell me how to do this.
    [How to display Verification fields in ITS mobile trnasactions.|How to display Verification fields in ITS mobile trnasactions.]
    Thanks in advance
    Edited by: RKsap193 on Apr 5, 2010 8:13 AM
    Edited by: RKsap193 on Apr 5, 2010 8:14 AM

    Hi Vinod,
    It does not show up unless with some coding. there must be some Java script or HTML code to write in the ITS transaction to enable these dynamic fields to dsiplay.We have issue with regard to how to display these fields when required.
    Thanks in advance
    Any suggestions from experts on how to control these verification fileds on ITS transactions.Also I can not control ITS RF screens upon scanning as to trigger SAVE + NEXT , or COPLETE like we do in the backend transactions.
    Edited by: RKsap193 on Apr 5, 2010 10:32 AM

  • How to Disable an Item of OAF Standard Page through Personalization.

    Hi,
    My requirement is to disable an item of Standard Page through personalization
    so that users can't edit that field.
    I tried checking for Disable under Personalization Properties but didn't find Disable Property.
    Can any one give me an idea how to do that?
    Thanks in advance.
    Regards,
    Subramanyam.

    Hi,
    Do as suggested by Abdul Wahid.
    Please tell me which type of item is this like LOV, textbox...
    Regards,
    Reetesh Sharma

  • How to Disable Updates in Adobe Acrobat Standard

    About 8 months ago we installed about 40+ Adobe Acrobat Standard 9.0 installations throughout our environment.  We then have had the time to create a completely hands free installation .msi that disables the AutoUpdate feature and a configures a few more items.
    My question is:
    How can I disable the AutoUpdate feature on Adobe Acrobat Standard 9.0 without having to go into the Edit>Preferences Menu and deselect it?
    Thanks for your time.

    Go here:
    http://www.adobe.com/go/acrobatitinfo
    The Updater guide has your needed information.
    If you get the AIM AIR app, you'll get a database of other configurable preferences.
    Ben

Maybe you are looking for