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

Similar Messages

  • 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

  • To get f4 help for salesperson field ,transaction me21n & me22n

    Hi Super-Techies,
    I am a new-bie in the world of enhancement.
    The reuirement here is I need to create a custom table with 1 field (prep_name). (This is done)
    Now the reuirement is that whenever user goes to transaction ME21N/ME22N, he wants me to add a f4 help for salesperson field (navigation : ME21N/ME22N -> CLICK ON COMMUNICATION TAB -> SALESPERSON). The f4 help should display the field from my custom table.
    As far as my knowledge is cond=cerned, I can use the function module 'F4IF_INT_TABLE_VALUE_REQUEST' to achieve this requirement.
    But the issue I am facing is where to write this logic and how to proceed. Can anyone help me in this case?
    Any help in this regard would be appreciated.
    Thanks & Regards,
    Vinit
    Edited by: vinit005 on Nov 1, 2010 12:43 PM

    Hi Vinit,
    I also had that requirement. There is no customer exit/BADI by which we can achieve that(as far as my knowledge), we have to use access key to achieve that. So we have gone for customer exit "MM06E005" to add Customer data tab in header and added our own fields, like Sales Person, Buyer Details etc.
    Thanks & Regards,
    Faheem.

  • Badi: for user defined fields in Budget Entry Document

    HI,
    I am implmenting BADI for user defined field in budget entry document definatin name 'FMBW_CUSTOMER' . I have created two fields in include 'CI_FMBH' and also created a sub screen and assign this subscreen to badi. I have called get data and put data methods in PBO and PAI. like this.
    <b>
    PBO
    create object grid1.
      CALL METHOD grid1->if_ex_fmbw_customer~get_data_from_screen
      importing doc_header = doc_header.</b>
    <b>PAI
      CALL METHOD grid1->if_ex_fmbw_customer~put_data_to_screen
        EXPORTING
          doc_header = doc_header
          processing_mode = 'CRE'.</b>
    But the system is not saving these fields in database.
    What could be the problem .

    Hi, did you have any advance on this issue?

  • Field Selection Based on Material Type

    Hello!!
    Can any one tell me how to make a single field mandatory in material master based on material type?
    I know we can use OMS9 to make it mandatory... the field i was looking is in a field selection group....when i make it mandatory i am actually making all the fields in the field selection group as mandatory...i dont want to do that...i just want to make only one field as mandatory.....
    If some one has any kind of training documents...could you please send it across?
    Thanks in advance.....

    Dear,
    Go through: http://help.sap.com/saphelp_45b/helpdata/en/08/6dec6eb435d1118b3f0060b03ca329/frameset.htm
    http://help.sap.com/saphelp_45b/helpdata/en/8e/204b6e5733d1118b3f0060b03ca329/frameset.htm
    Re: New Movement Type
    Define field in a particular movement type
    Regards,
    Syed Hussain.

  • FM / BAPI to update STEUC field in marc Table basing on material and plant

    Hi,
    I need to to update STEUC field in marc Table basing on material and plant. please suggest FM / BAPI.
    Thanks.
    raviraj.

    Hi
    Try this BAPI function module:
    " BAPI_MATERIAL_MAINTAINDATA_RT "
    Data: LS_HEADDATA TYPE BAPIE1MATHEAD,
             LS_RETURN TYPE BAPIRETURN1,
              LT_PLANT TYPE TABLE OF BAPIE1MARCRT,          LS_PLANT TYPE BAPIE1MARCRT,
              LS_PLANTX TYPE BAPIE1MARCRTX,          LT_PLANTX TYPE TABLE OF BAPIE1MARCRTX.
            CALL FUNCTION 'BAPI_MATERIAL_MAINTAINDATA_RT'
                   EXPORTING
                       HEADDATA   = LS_HEADDATA
                   IMPORTING
                       RETURN     = LS_RETURN
                   TABLES
                       PLANTDATA  = LT_PLANT
                       PLANTDATAX = LT_PLANTX.
    Check the PLANTDATA in the above fm in which pass your ''STEUC'' to BAPIE1MARCRT-CTRL_CODE......
    Hope this works.....

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

  • Non Editable NETPR field in me21n, me22n

    Hi
    I have a requirement where in PO I need to make NETPR (Net Price) field editable or non editable based on KONNR (Outline agreement number).
    For this BAdI 'me_process_po_cust' has to be used and method 'fieldselection_item'.
    In this method we have got an internal table 'ch_fieldselection' that actually allows to change the field properties.
    The issue is I am not getting NETPR value in it in anyform (MMMFD code is used inside it).
    Can anybody help me out how to push value of NETPR (MMMFD value 62) in this internal table so that I can do operations on this field as desired.
    Thanks in Advance
    Zafar

    Hi,
    If my understanding is correct, you can manipulate the NETPR field using method,
    ls_mepoitem-NETPR = 'xxxxxx'.
    im_item->set_data( ls_mepoitem ).
    If you want to enable or disable the field, you can use
    FIELD-SYMBOLS: <fs> LIKE LINE OF ch_fieldselection.
    READ TABLE ch_fieldselection ASSIGNING <fs> WITH TABLE KEY metafield = '079'.
    <fs>-fieldstatus = '*'. " Display
    Regards,
    Sudhakar Rayala
    Edited by: SudhakarRayala on Feb 14, 2010 8:53 PM

  • Badi For Account Assignment Category in me21n

    Hi All,
    I am trying to implemnt badi for me21n for assigning default account assignment category as  E.
    i got the badi for  ME_PROCESS_PO_CUST .
    But the the problem is i dont find account assignment category field(KNTTP) in trhe metyhods tab.
    No othe badi is getting triggered.
    Please help me out in  this regard.
    Thanks and regards
    Ibrahim

    hi,
    i hope this will help you.
    DATA:
             ls_acc TYPE REF TO if_purchase_order_account_mm,
             ls_item     TYPE REF TO if_purchase_order_item_mm   ,
             ls_hdata    TYPE mepoheader                            ,
             ls_header   TYPE REF TO if_purchase_order_mm           ,
             ls_idata    TYPE mepoaccounting,
             ls_data     TYPE mepoitem_data    .
      DATA : lv_werks TYPE wrf1-locnr .
      DATA : vlfkz  TYPE wrf1-vlfkz.
      DATA : matkl  TYPE mara-matkl.
      DATA : ls_ana   TYPE zmm_ana_hesap.
      DATA : lv_okset TYPE c.
      ls_acc = im_account .
    *get item from account
      CALL METHOD ls_acc->get_item
        RECEIVING
          re_item = ls_item.
    *get item header
      CALL METHOD ls_item->get_header
        RECEIVING
          re_header = ls_header.
    *- Get item header data
      CALL METHOD ls_header->get_data
        RECEIVING
          re_data = ls_hdata.
    *- Get item data
      CALL METHOD ls_item->get_data
        RECEIVING
          re_data = ls_data.
    *- Get account data
      CALL METHOD ls_acc->get_data
        RECEIVING
          re_data = ls_idata.
      lv_werks = ls_data-werks.
    ***Conversion Exitler
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = lv_werks
        IMPORTING
          output = lv_werks.
      SELECT SINGLE vlfkz FROM wrf1 INTO
         vlfkz
        WHERE locnr EQ lv_werks.
      SELECT SINGLE matkl FROM mara INTO
         matkl
        WHERE matnr = ls_data-matnr.
      SELECT SINGLE sakto INTO ls_ana-sakto FROM zmm_ana_hesap
        WHERE matkl = matkl
        AND vlfkz = vlfkz
        AND bsart = ls_hdata-bsart
    AND knttp = ls_data-knttp
      IF sy-subrc EQ 0 .
        ls_idata-sakto = ls_ana-sakto.
        lv_okset = 'X' .
      ENDIF .
    * buraya lv_check ya da sakto bou015F ise için kosul gelecek
    IF lv_okset IS NOT INITIAL .
    *- Set item
        MOVE-CORRESPONDING ls_data TO ls_idata .
        CALL METHOD ls_item->set_data
          EXPORTING
            im_data = ls_idata.
      ENDIF.
    ENDMETHOD.

  • Standard screen field validation : ME21n/ ME22n

    Hi experts,
    I have a requirement in which we are supposed to do field validations while creating or changing POs/Purchase requistions.
    Suppose if at item level in Account assignment category is 'F' and the order entered by user is of type 'Z560' then in that case user will be allowed to enter only specific G/L account for eg : 712546 or 715486.
    Please guide how can that be accompalished. I couldn't find any proper exit for this.
    Thanks
    Vishal

    Hi Vishal,
    there is a very helpful BAdI for this: ME_PROCESS_PO_CUST.
    Re: user exit/ badi for me21n
    Roy
    Edited by: RobbdB on Jun 30, 2010 9:09 AM

  • Add new field in me21n/me22n/me23n

    Hi everyone,
    Is it possible to add a field in the Additional Data tab in the PO header and append the field in the PO table(EKKO) also or should I add a new tab and place my new field in the new tab? Is it possible also to add the field using a user exit instead of BADI?

    Hi ,
    U can add the additional screen field in the additional data tab or u can have a seperate tab for it. If u want to go for the additional data tab the badi ME_GUI_PO_CUST will be usefull here u can add the additional screen fields directlly . Please check this...
    U can add the field in the statndard table like ekko by using the append structures.
    To add a screen field u need a screen field exit or a badi that allow u to add a acreen field . In PO the SAP has provided the above mentioned BADI for doing this..
    Hope this will solve ur query to an extent ... Reward points if found useful .

  • BADI for validating asset value in ME21N

    Hi,
    I have a requirement where i need to validate the value entered in anln1 (asset) field in ME21N transaction and throw an error message if it matches on e particular value.
    Thanks,
    Abhinay

    Hi,
    I have a requirement where i need to validate the value entered in anln1 (asset) field in ME21N transaction and throw an error message if it matches on e particular value.
    Thanks,
    Abhinay

  • Report based upon material type against movement type for a period ?

    i need a inventory report which should be based upon materil type & movement type for a particular period.
    For example- for last monthe how much Raw material has been issued againast production order. i would like report to allow me  ROH and movement type 261/262 and period entry. MB5B does not satisfy my requirements, ist of all there si no material type/secondly it restricts itself if i use movement types
    thanks
    sam

    Hi,
    You can create a small program to get report.
    Input fields Date of posting BUDAT, Movement type BWART (Plant if required).
    Check field BUDAT (Posting Date. Should check based on input date field.) In table MKPF.
    If data falls in required date range. Pick MBLNR-MKPF (Mat doc number).
    Go to table MSEG compare MBLNR-MKPF and MBLNR-MSEG if same pick field MATNR-MSEG (Mat number).
    Go to MARA check MTART-MARA for picked MATNR-MARA (in previous step). Take the material type.
    Add the below fields to out put
    MATNR, MTART, BWART-MSEG (Movt type), ERFMG-MSEG (quantity posted), WERKS-MSEG (Plant received), LOGRT-MSEG (S. Loc received).
    Please take advise from ABAPer regarding prog logic
    Thank you,
    Anand K

  • How to get F4 help for Standard Text Key of a operation based on Order type

    Hi Experts,
      How to get F4 help for Standard Text Key (STK) of a operation based on Order type entered in selection screen. The F4 help should give the STK of related order type. At the same time the F4 help for Task Types based on Notification type. How to acheive the above two. Please provide the table names or any search help name if exists or Function modules...
    Thanks in Advance.
    Regads,
    Bujji

    Hi Guys,
       Any help on this...
    Regards,
    Bujji
    Edited by: Bujji on Dec 22, 2008 12:42 PM
    Edited by: Bujji on Jan 5, 2009 2:00 PM

  • How to make the logs captured for Z fields in ME21N/ ME22N

    Hi
    I have  devloped new tab(Screen) and added Z field in the PO header (ME21N) as per my requirement. But whenever I do changes to the perticular Z field, logs are not captured (ME21N->ENVIRONMENT-->HEADERLOG). How to make the logs captured for Z fields like standard fields. Is there any way?
    Regards
    Raj.

    HI Ranjitha
    For the data element of Z fields go to further caracteristics of tab and make change document checkbox ticked.

Maybe you are looking for