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

Similar Messages

  • How to grayed out fields in Pop screen in FBL1n while doing mass change

    Dear All,
    I want encorporate user specific screen with some edit fileds  with validations and some grayed out fields in pop screen
    in FBL1N Transaction while mass change option.
    Can you tell how can achive if any BADI or enhance pont or BTE or any exit .
    Regards
    Amar

    Hi amar,
    try with transaction variant
    with transaction variant we can hide or grey out fields
    bye
    T Bharat Bhushan

  • Add custome field in VA01/VA02/VA03 without access key

    Hi,
    I need to add some custom fields in VA01/VA02/VA03 screen at item level. But i am unable to find out any screen exit/BADI  for the same.
    Can anyone tell me plz how i can achieve this without using access key.
    Thanks in advance.

    hello,
    you could try using GuiXt. With this adds on you could add: fields, button, input parameters, change standard screens layout etc.
    read this tutorial http://www.synactive.com/tutor_e/lesson00.html for the start.
    br,
    dez_

  • How to block delete option in va01 , va02, va03

    hi,
    i like to know how to block delete option in va01 , va02, va03.  I need to block the delete option in the menu to delete the sales order by the user.
    Please reply ASAP.
    <removed_by_moderator>
    Please read the "Rules of Engagement"
    thanks in Advance,
    With best regards,
    sathies
    Edited by: Juan Reyes on Jul 29, 2008 1:05 PM

    Hi,
    Do a user trace in st01 for that transaction and find which auth object it is refering to and the auth value then maintain the values accordingly.
    Regards,
    Vamshi.

  • How to gray out certain fields on the selection screen based on the radio b

    HI All,
      I have an ALV report. On the selection screen I have 2 radio buttons ..for eg..A and B.
    When radio button A(its on by default) is on..certain fields not relevant to this should be grayed out. Similarly when radio button B is on, certain fields should be grayed out.
    I did the AT SELECTION SCREEN OUTPUT and also did the
    LOOP AT SCREEN....ENDLOOP logic. The logic works but when I click the radio button B...the screen fields automatically does not gray out. I have to press ENTER and then its grays out.
    I know a USER_COMMAND needs to be attached.
    Can anyone give me a step by step details of how to do this. I truly appreciate it. if a screen painter thing is required..please give me the tcode and step by step detail to do this.
    Thanks

    Try this one too:
    REPORT ztest.
    TABLES: mara,
            bkpf.
    CONSTANTS:
                  c_pos(3) TYPE c VALUE 'POS',
                  c_acc(3) TYPE c VALUE 'ACC',
                  c_all(3) TYPE c VALUE 'ALL',
                  c_x TYPE c VALUE 'X'.
    The Selection Screen Definition
    SELECTION-SCREEN BEGIN OF BLOCK b_0 WITH FRAME TITLE text-000.
    SELECT-OPTIONS: s_mara FOR mara-matnr.
    SELECTION-SCREEN END OF BLOCK b_0.
    SELECTION-SCREEN BEGIN OF BLOCK b_1 WITH FRAME TITLE text-037.
    PARAMETER: rb_all RADIOBUTTON GROUP rb1 USER-COMMAND rad default 'X',
               rb_acc RADIOBUTTON GROUP rb1.
    SELECTION-SCREEN END OF BLOCK b_1.
    SELECTION-SCREEN BEGIN OF BLOCK b_2 WITH FRAME TITLE text-011. "Acct
    SELECT-OPTIONS:   s_blrtc1 FOR bkpf-blart MODIF ID acc,
                      s_blrti1 FOR bkpf-blart MODIF ID acc.
    SELECTION-SCREEN END OF BLOCK b_2.
    SELECTION-SCREEN BEGIN OF BLOCK b_3 WITH FRAME TITLE text-011. "Acct
    SELECT-OPTIONS:   s_blrtc2 FOR bkpf-blart MODIF ID all,
                      s_blrti2 FOR bkpf-blart MODIF ID all,
                      s_blrtv2 FOR bkpf-blart MODIF ID all.
    SELECTION-SCREEN END OF BLOCK b_3.
    AT SELECTION-SCREEN OUTPUT
    AT SELECTION-SCREEN OUTPUT.
      PERFORM f0200_screenfield_hide_logic.
    initialization.
      PERFORM f0200_screenfield_hide_logic.
          FORM f0200_screenfield_hide_logic                             *
    FORM f0200_screenfield_hide_logic.
      LOOP AT SCREEN.
        IF rb_acc = c_x.
          IF screen-group1 = c_all.
            screen-active = 0.
          ELSE.
            screen-active = 1.
          ENDIF.
        ENDIF.
        MODIFY SCREEN.
        IF rb_all = c_x.
          IF screen-group1 = c_acc.
            screen-active = 0.
          ELSE.
            screen-active = 1.
          ENDIF.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    ENDFORM.                    " F0200_SCREENFIELD_HIDE_LOGIC

  • How to mapped Gray out field in web dynpro for ABAP.

    Hi,
    While preparing a WD Application i m using a RFC,which has one input parameter as MODE.
    IF MODE = 'DIS' (DIS stands for Display) then all fields of layout in web dynpro should be gray out.
    and
    IF MODE = 'MOD' (MOD stands for Modification) then all fields of layout in web dynpro should be opened of entering the data.
    Can anyone help me to solved this scenario.
    Regards,
    <b>Seema</b>

    Hi Seema
    I had the same issue a while ago.  I ended up with an assistance class with  set/get read only methods.  I then used the following type code to set the read only property in the WDDOMODIFYVIEW:
    DATA: lr_start_date TYPE REF TO cl_wd_input_field,
            lr_end_date TYPE REF TO cl_wd_input_field,
            lr_pernr TYPE REF TO cl_wd_input_field,
            lv_read_only TYPE abap_bool.
    lr_start_date ?= view->get_element( 'INP_START_DATE' ).
      lr_end_date ?= view->get_element( 'INP_END_DATE' ).
      lr_pernr ?= view->get_element( 'INP_PERSON' ).
    lv_read_only = wd_assist->get_read_only( ).
      IF lv_read_only = abap_true.
        lr_end_date->set_read_only( abap_true ).
        lr_start_date->set_read_only( abap_true ).
        lr_pernr->set_read_only( abap_true ).
      ELSE.
        lr_end_date->set_read_only( abap_false ).
        lr_start_date->set_read_only( abap_false ).
        lr_pernr->set_read_only( abap_false ).
      ENDIF.
    All my business logic is within my assistance class so it makes it easier to maintain. 
    Regards
    Ian

  • 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

  • Grayed out field, but there is no screen variant in SHD0

    I am in the middle of a configuration of sales order using Third Party.
    In VOV6 for the incompletion Procedure (V_TVEP-FEHGR) the field is grayed out and wont allow an input.
    How can I find out where is the code to make this happen, I already look on SHD0 and there are no variants for that program/screen.
    Regards,
    Carlos

    HI,
    Switch on the debugger(/h) before calling the tcode.
    Now oen tcode..in debugger, place breakpoint at statement - MODIFY.
    Now keep pressing F8 and look for MODIFY SCREEN, which will be there after graying out the field.
    Regards,
    Harsh Bansal

  • Problem with validating a field in VA01/VA02

    Hi,
    I was required to add validation for Material Group 3 (VBAP-MVGR3) in 'Additional Data A' tab (VA01/VA02). The corresponding screen number in 4459. In the PAI section, there is a module called 'vbap_bearbeiten'. In this module, there is an enhancement point called 'VBAP_BEARBEITEN_10 '. I created an implementation of this enhancement point to call a validation subroutine which i put in user exit MV45AFZZ. My problem is whenever a wrong entry is entered for that field, the whole screen in the 'Additional Data A' tab turned grey and disabled for user entry. Re-entry for the correct Material Group 3 is not allowed.
    Initially, i used a different approach. I made a core change to screen 4459 by adding a statement like below in the PAI section :-
    FIELD vbap-mvgr3 MODULE zsd_check_mvgr3 ON REQUEST.
    In fact, the validation worked without any issue. User was prompted for an error message and then was allowed to re-enter a correct entry for that field if a wrong entry was entered initially. However, since this approach involved a core change, it was not allowed by my superior and he demands for using the enhancement framework approach.
    Kindly please let me know if you have any idea of resolving this issue. Thanks much in advance.

    Hi guys, thanks much for your feedback.
    I tried to call my validation subroutine from USEREXIT_CHECK_VBAP (MV45AFZB). However, it did not work as well. Although the validation subroutine was successfully called in USEREXIT_CHECK_VBAP and error message dialog box was shown if entry was not correct, but when i clicked on the dialog box / pressed the 'enter' key, the 'Material Group 3' field was not opened for re-editing (it was still shown in grey and disallowed for user entry). In fact, through debugging, i found that USEREXIT_CHECK_VBAP was called again (after i pressed the 'enter' key) and it caused the program to enter an infinite loop.
    On the other hand, i also tried to use USEREXIT_MOVE_FIELD_TO_VBKD (MV45ZFZZ). Unfortunately, i also met with the same issue as described above.  Kindly please let me know if there is a way to solve this issue. Thanks.

  • Creating customer fields in VA01/Va02 transaction in additonal tab 2

    hi,
        I have to create Customer fields in the item level to va01 / va02 transaction in additional tab 2 subscreen.
    Include MV45AFZZ is used for validation. help needed for adding customer fields. thanks in advance.

    The program SAPMV45A screen 8309 is the Additional Data B tab provided by SAP to add your custom fields . In order to capture the data from your custom fields you can use the user exit MV45AFZZ, USEREXIT_SAVE_DOCUMENT_PREPARE OR
    USEREXIT_SAVE_DOCUMENT depening on your functionality.
    You need to append the fields in VBAP. Then use the screen painter to add the fields in the screen.
    Thanks
    Vinod

  • PR - material number gray out field

    hello
    I need to know if there is any way to gray out Material number field  in PR when I just enter to Tx Me51n.
    thks in advance.

    Dear,
    This action need to be done in development Enviro.
    go to IMG  screen -.> MMPuchasing---> Purchase Requisition --- > Screen Layout  , Choose ME51N (Screen Variant) field Material No choose Display.

  • Re: How make delivery group field mandatory in va02 in shipping tab in sap abap

    /h
      Hi experts i want to make delivery group field mandatory in va02 in shipping tab using enhancements. can anybody help me
    <removed by moderator>
    With Best Regards
    Nagaraj
    /h
    Message was edited by: Manish Kumar

    Hi Nagaraj Muniyappa,
    Can please show me a snapshot of the same? Because I didn't found any delivery group field in shipping tab in VA02.
    And there are many exits/badis are available for sales order you can use them.
    regards,
    Rajesh Sadula.

  • How to Gray out a row in ALV ?

    Hi Experts,
    I am having a requirement to gray a specific row in ALV . Is it possible through List Display  ? Or Is it possible through Grid Display ?
    If it is possible, please let me know how to achieve this .
    Thanks and regards,
    Kiran.

    Hello kiran kumar  ,
    you can colour a cell in AlV ie.  in turn you can colour entire row in one  Colour...just check out the blew given link
    http://wiki.sdn.sap.com/wiki/display/Snippets/ColorindividualcellsofanALVGRID
    Hope it helps.

  • How to insert export data in VA01/Va02?

    Hi,
    when i create a sales-order via VA01 i need to see the
    Commodity Code/Import Code Number for Foreign Trade of an material-number.
    This number is inserted in material-data via MM01/MM02.
    When i create a delivery based on the sales-oder i can see the
    Commodity Code/Import Code Number for Foreign Trade at export data.
    How is it possible to see this data in the sales-oder?
    Thanks.
    Regards, Dieter

    Hi dieter
    First of all do configuration in Foreign trade in IMG -> SPRO -> Foreign trade data .Once you configure then assign to the material By selecting the foreign trade data tab and fill the fields in that tab (foreign trade data) .
    Regards
    Srinath

  • How to gray out textbox and button

    Hello, I am new to Java, and I am do not know how to disable a textfield and a button, as in just gray it out. Does anyone know how to do this.
    Button max = new Button("Max");
    TextField box = new TextField("Enter your name",20);
    box.whatDoIputHere(false);
    max.whatDoIputHere(false);Thanks for any help

        box.setEnabled(false);
        max.setEnabled(false);

Maybe you are looking for

  • Trying to create a password protected disk image in 10.8.4

    Trying to create a password protected disk image in 10.8.4. I follow steps in Apple:Support but I get an error saying "Resource busy"?

  • Ipod touch not recognized on any computer

    i have just updated my ipod touch from 1.1.2 to 1.1.4 and now it is not recognized by itunes. i have tried multiple ports on both my mac and pc. itunes will auto-start, and my ipod charges, but does not show in itunes or finder. i went to my console

  • 11.1.2.1 SSO configuration

    We are trying to setup SSO integration between Hyperion and EBS 12.1.3 for seamless drill down. EBS SSO integration is working fine, but Hyperion integration fails. After OAM authentication the workspace screen is not shown but EPM login screen is sh

  • Jump/RRI from BCS to GL

    Hello BI gurus, We have BCS reporting and GL reporting. The requirement is to jump from a BCS report (containing Consolidated numbers) to the GL line item level (for the Unconsolidated numbers). Our BCS report has BCS_LITEM/Account in the rows, time

  • JEditorPane/HTML image loading delay

    I am using a JEditorPane to render HTML to a graphics buffer which I then write as an image file. Since HTML loading is asynchronous I wait for the "page" property change event after calling setPage() before using print() to capture the rendered HTML