Disabling netprice field in PO(ME21n-Screen)

Hi.,
      what are the ways to hide netprice field in item details of a Purchase Order  ME21N Transaction .Is there any EXITS or BADI's available for this requirement .
Regards.,
S.Sivakumar

Hi siva.
if you want to hide some fields in Standard transaction. use this.
Go to Transaction SHD0. - Creating Screen Vareant.
Here give your Transaction name like me21n.
and you can select, fields to display from here.
Regarda.
Sreenu.

Similar Messages

  • To disable one field of standard sap screen.

    Hi,
    I want to disable one field of standard SAP screen for example
    tran code : MD61
    Field : Version.
    Can Anybody suggest me with simple coding.
    thanks
    naresh

    Naresh,
    I guess this can be done using Transaction Variant SHD0.
    Just try to check the links related to transaction variant.
    1.go to SHD0
    2.give the transaction as MD61     
    3.Transacation variant as zmd61
    4.now press create button
    4.Here you will get to see the initial screen on MD61
    5.Press enter
    6.You will get to see the field attributes in a screen called 'Confirm Screen entries"
    7.There you can make a field as required/invisible/ouputonly.
    Do check other links available in SDN for more info.
    K.Kiran.

  • Disabling certain fields on the selection screen.

    Hi all,
              I want to disable certain fields on selection screen of my program, also i want to display certain fields on selection screen only if a particular field on the selection screen is checked or selected. Please guide me how this can be achieved via coding in a program.
    Thanks & regards,
    Chetan.

    Hi Chetan,
    try this.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: pa_file TYPE rlgrap-filename MODIF ID abc,
    pa_lifnr TYPE lfa1-lifnr MODIF ID abc,
    pa_vkorg TYPE vbak-vkorg MODIF ID abc.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS: pa_kunnr TYPE vbak-kunnr MODIF ID def.
    SELECT-OPTIONS: s_lifnr FOR gs_lfa1-lifnr MODIF ID def,
    s_date FOR gs_lfa1-erdat MODIF ID def,
    s_augru FOR gs_vbak-augru MODIF ID def,
    s_vbeln FOR gs_vbak-vbeln MODIF ID def.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pa_upd RADIOBUTTON GROUP g1 USER-COMMAND uc01 DEFAULT 'X'."#EC *
    SELECTION-SCREEN COMMENT 3(60) text-004 FOR FIELD pa_upd.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pa_rep RADIOBUTTON GROUP g1 ."#EC *
    SELECTION-SCREEN COMMENT 3(60) text-005 FOR FIELD pa_rep.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b3.
    IF pa_rep EQ gc_x.
    LOOP AT SCREEN.
    IF screen-group1 = gc_abc.
    screen-input = gc_zero_num.
    ELSEIF screen-group1 = gc_def.
    screen-active = gc_one_num.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    ELSEIF pa_upd EQ gc_x.
    *For Reprocessing
    LOOP AT SCREEN.
    IF screen-group1 = gc_def.
    screen-input = gc_zero_num.
    ELSEIF screen-group1 = gc_abc.
    screen-active = gc_one_num.
    ENDIF.
    MODIFY SCREEN.
    CLEAR pa_upd.
    ENDLOOP.
    ENDIF.
    REPORT zrich_001.
    PARAMETERS: p_rad1 RADIOBUTTON GROUP grp1 DEFAULT 'X'
    user-command chk,
    p_rad2 RADIOBUTTON GROUP grp1.
    SELECT-OPTIONS: s_datum1 FOR sy-datum MODIF ID d1,
    s_datum2 FOR sy-datum MODIF ID d2.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF p_rad1 = 'X'
    AND screen-group1 = 'D2'.
    screen-active = '0'.
    ENDIF.
    IF p_rad2 = 'X'
    AND screen-group1 = 'D1'.
    screen-active = '0'.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    reward if useful.
    regards,
    sravanthi.

  • BADI for Disabling NetPrice field in ME21N & ME22N based of Material Type.

    Hi.
    I had a requirement to disable "net price" field while creating or changing a PO (ME21N & ME22N) based on the type of material entered.
    Please asssit me in finding the BADI or exit name which can meet my requirement. Thanks.

    Hi Ranga nadh,
       The BAdi what you have mentioned is correct.
    ME_PROCESS_PO_CUST - In this BAdi, we are having a method PROCESS_ITEM. These method is used to process all the Item data. As the field Netprice is at the level. You can use this method.
    Here inside this method we are having a parameter IM_ITEM
    So, You create a implementation and inside this method you can code here to appear the field in disable mode.
    Cheers,
    Swamy Kunche

  • Disabling I/O Screen Field in Cost center Screen Enhancement

    Hi all,
         I am doing screen exit for Cost center master. While using KS03 transaction, I have to disable the newly added I/O screen fields. So, I added the following code in PBO module.
    *** PBO
         MODULE modify_screen_input.
    *** Include program of PBO
         MODULE modify_screen_input OUTPUT.
           IF sy-tcode EQ 'KS03'.
             LOOP AT SCREEN.
               IF screen-group1 eq 'CO'.
                 screen-input = 0.
                 MODIFY SCREEN.
               ENDIF.
             ENDLOOP.
           ENDIF.
         ENDMODULE. 
    But, screen fields with that group are not getting disabled. Is there any way to disable those screen fields?
    Thank You.

    Hello Shrilatha,
    Please try with below code
    IF sy-tcode EQ 'KS03'.
             LOOP AT SCREEN.
               IF screen-name = 'CI_CSKS-ZFIELD'  ->changeit to field name
                 screen-input = 0.
                 MODIFY SCREEN.
               ENDIF.
             ENDLOOP.
           ENDIF.
         ENDMODULE.
    Thanks

  • How to disable a field in selection screen based on condition.

    Hi,
    I have 2 radio buttons- p_normd, p_recov  and 2 other controls - like text boxes, say tb1 and tb2. and some mandatory fields below.
    If i choose p_normd, i want one control(tb2) to be disabled and if i choose p_recov, i want the other control(tb1) to be disabled(tb2 should be enabled then.)
    Currently i am using the following code. The 1'st radiobutton is intially checked. But the problem is when i click on the 2'nd radio button, the other control(tb1) is not getting disabled. When i double click, i get an error telling mandatory field to be filled. Only after the other mandatory fields below are filled, and after i double click on the unchecked radiobutton, the other control gets disabled.
    Please suggest what to do..
    The current code below:
      AT SELECTION-SCREEN OUTPUT. "ON RADIOBUTTON GROUP rg01.
      LOOP AT SCREEN.
      IF  p_normd EQ c_x  AND screen-group1 = 'SC2'.
            MOVE 0 TO screen-input.
          MODIFY SCREEN.
      ENDIF.
      IF p_recov EQ c_x AND screen-group1 = 'SC1'. "IF screen-name = 'ERDAT-LOW' OR screen-name = 'ERDAT-HIGH'.
            MOVE 0 TO screen-input.
            MODIFY SCREEN.
      ENDIF.
      ENDLOOP.
    Thanks,
    Ammu

    Hi
    declare your parameter as below:
    parameters: p_x type c radio button group g1 user-command r.
    in at selection screen output event .
    check for the radio button.
    loop at screen.
    if screen group is <desired value>
    then screen-active = 0 or 1. <do whatever you want to do.>
    modify screen.
    endloop.
    see below the sample code.
    <<<<<AT SELECTION SCREEN EVENT>>>>>
    AT SELECTION-SCREEN ON BLOCK B1.
      IF P_LCOST = C_X.
        PERFORM CLEAR_FIELDS.    " Clearing fields before loading the screen
        CALL SELECTION-SCREEN 100 STARTING AT 20 5.
      ELSEIF  P_MCOST = C_X.
        PERFORM CLEAR_FIELDS1.          " Clearing fields before loading the screen
        CALL SELECTION-SCREEN 101 STARTING AT 20 5.
      ENDIF.
      IF SY-SUBRC = 0.
        PERFORM VALIDATION.             " Validating selection screen input
      ELSE.
        LEAVE TO TRANSACTION C_TRAN.
      ENDIF.
    <<<<<<DECLARATION PART>>>>>>
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: P_LCOST RADIOBUTTON GROUP GI DEFAULT 'X',
                P_MCOST RADIOBUTTON GROUP GI.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF SCREEN 100 AS WINDOW TITLE TEXT-002.
    SELECTION-SCREEN BEGIN OF BLOCK B2.
    PARAMETERS: P_COAREA TYPE CSKS-KOKRS OBLIGATORY,         " controlling area
                P_FYR    TYPE COEP-GJAHR OBLIGATORY,         " fiscal year
                P_PERIOD TYPE COEP-PERIO OBLIGATORY.         " fiscal period
    SELECT-OPTIONS: S_CCNTR FOR V_KOSTL OBLIGATORY,       " Cost Center
                    S_COELM FOR V_KSTAR MODIF ID M1,       " Cost element
                    S_PDATE FOR V_BUDAT OBLIGATORY.       " posting date.
    SELECTION-SCREEN END OF BLOCK B2.
    SELECTION-SCREEN END OF SCREEN 100.
    SELECTION-SCREEN BEGIN OF SCREEN 101 AS WINDOW TITLE TEXT-003.
    SELECTION-SCREEN BEGIN OF BLOCK B3.
    PARAMETERS:     P_CCODE  TYPE T001-BUKRS OBLIGATORY,         " Company Code
                    P_FYEAR  TYPE COEP-GJAHR OBLIGATORY.         " fiscal year
    SELECT-OPTIONS:   S_GLACC FOR V_HKONT OBLIGATORY,       " G/L Account
                      S_PCNTR FOR V_PRCTR MODIF ID M2,      " Profit Center
                      S_PODATE FOR V_BUDAT OBLIGATORY.      " posting date.
    SELECTION-SCREEN END OF BLOCK B3.
    SELECTION-SCREEN END OF SCREEN 101.
    thanks
    LG
    Edited by: LalitG on Apr 13, 2011 1:38 PM

  • Disable a field in selection screen

    Hi,
         I have a field in the selection screen and currently i am disabling in the code like:
    loop at screen.
    if screen-name = 'V_GROUP'.
       screen-input = 0.
       modify screen.
    endif.
    endloop.
    my problem is that if i choose a variant and if it has a value for group then it
    overwrites it.
    is there any way where i can avoid it?

    Yes,  I believe that you can check for the variant, then clear it out.  Check against sy-slset.  This will hold the variant name if one is being used.
    report zrich_0003 .
    parameters: p_check type c.
    parameters: p_group type c.
    at selection-screen output.
      loop at screen.
        if screen-name = 'P_GROUP'.
         screen-input = '0'.
          modify screen.
        endif.
      endloop.
    start-of-selection.
      if sy-slset <> space.
        clear p_group.
      endif.
    Regards,
    Rich Heilman

  • How to set a value to a disabled field in an B1 screen ?

    Hi,
    Can anyone tell me how to set a value to a disabled field in an existing screen.
    For example , I want to set a value to the Paid/Credited field in the Sales - A/R Invoice screen, which is a disabled field.
    I tried setting the field as enabled but it throws an error.
    Thanks in advance
    Mina

    It depends on the business process required for generating the invoice.  (What is this process just now?)
    I can think on quite a few ideas, but can't be sure if any of them will match your specific requirements.  I'll list a few here and see if any of them might work, or at least generate some new ideas for you. (Unfortunately you can't change an existing payment object to add an invoice to it at a later date, nor is the reconciliation process exposed through the SDK.  This limits your options a bit.)
    1) Is there a need for a separate delivery and invoice?  Would skipping the delivery process and using the standard Invoice + Payment screen work for you?  Stock would be issued, invoice created and payment matched directly to invoice without any work.
    2) This might apply if the invoice is simply a one for one match with the delivery.  Rather than just generate a payment in the delivery screen, generate the invoice and a payment at the same time.  The standard invoice screen will then show it as paid.  You can control the dates on the invoice raised through DI code.
    3) Where do you write the Paid Amount to?  How is it not available in the invoice screen?  Put it somewhere accessible and write it to the user field.
    John.

  • Field symbols for fetching ME21N screen data

    Hi,
    I need to fetch ME21N screen data,i.e,line item data( material number),for which i have written code as below:
    IF SY-TCODE = 'ME21N' OR
       SY-TCODE = 'ME22N'.
    ematn = '(SAPLMEGUI)MEPO1211-EMATN'.
    ENDIF.
    FIELD-SYMBOLS : <fs1> TYPE ANY.
    ASSIGN (ematn) TO <fs1>.
    But data is not coming to <fs1>.
    Can any one tell me whether any mistake in above statement.
    Or alternatively whether any better method available for fetching screen data?
    I need to use this data in a pricing routine.
    Thanks & Regards
    Seshagiri.

    Hi,
    The combination of both these can be used-
    we can read the screnn fields using this FM-
    DYNP_VALUES_READ
    ***TO READ VALUES
    CALL FUNCTION 'DYNP_VALUES_READ'
           EXPORTING
                DYNAME                   = W_PROG
                DYNUMB                   = W_DYNP
                TRANSLATE_TO_UPPER       = 'X'
           TABLES
                DYNPFIELDS               =  T_DYNPRO.
      READ TABLE  T_DYNPRO INDEX 1 INTO FIELD_VALUE.
      W_CARRID = FIELD_VALUE-FIELDVALUE.
    Paricularly for Material numbers this aslo shoud be used -
    CONVERSION_EXIT_MATN1_INPUT
    Thanks & Regards,
    Chandralekha.

  • Material descri screen level field greyout in ME21N/ME22N/ME23N-Urgent

    Hi,
    I have a requirement in ME21N/ME22N/ME23N is that when i want to change a PO, the material short description field should be grey out after the material is entered in the item level.
    Can anybody suggest me how to do screen level field greyout in ME21N/ME22N/ME23N.
    Thanks in advance,
    Esaki

    Hi,
    This query can be solved by modifying some configuration part. Your MM consultant in project can do this or you can also try this following meintioned path: Goto tcode SPRO
    SPRO>Materials Management>Purchase Order-->Define Screen layout at document level.
    In this screen layout for the mentioned transactions ME21N/ME22N/ME23N ,material short description field can be greyed out by selecting display mode for that field.
    For more clarification refer documentation against this point in SPRO.
    Hope this solves your problem.
    Regards,
    Brajvir

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

  • 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

  • Disable few fields me21n, if the PO is creating with ref to PR

    Hi All,
    hw can i make disable few fields like vendor etc, while creating PO with the reference to the PR.
    hw to change the screen elements.. what is the exit for this..
    thanks

    thanks for the reply..
    based on condition i have to make it disable.. in field exit hw can i do this..
    when the po is creating without ref of PR than those fields should be enabled.
    hw can i do this..
    thanks

  • 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 restrict the user to change/enter field value in me21n?

    Hi, Experts,
    in the me21n screen..for matkl field we need to validate the user authorization.
    if that user having the authorization then it should allow to enter value in the matkl(material group) field.
    other wise it should not allow.
    how to do this validation?
    can anybody help me on this.
    Thanks and Regards,
    venkat

    Hi Aprna,
    Thanks for your reply, but can you give some code for that.
    actually i am new to badi or userexits...
    if you can provide code it will be more helpful for me.
    Thanks in Advance,
    venkat

Maybe you are looking for