ME22N - Make MEPO1211-EEIND non editable

Hello Experts!
I have the requirement to make non editable the field EEIND in ME22N.
The Screen is 1211 in program SALMEGUI,
I've seen others thread but didnt work for me ( becouse other thread was about addin fields )
Any idea of an Enhacement or Exit to this problem?
Thanks!

Hello friends,
I'm trying to make the field Collective number ( ekko-submi ) non editable only for a specific document type, using the logic above.
I change the badi ME_PROCESS_PO_CUST method FIELDSELECTION_HEADER with the code below. My problem is this method is not called in program LMEPOBADIU07 (FM MEPOBADI_FS_HEADER), becouse the insert command fails in the following code. Anybody already know this problem?
   LOOP AT ch_fieldselection ASSIGNING <fs1> WHERE metafield GE mmmfd_cust_01.
     INSERT <fs1> INTO TABLE lt_fieldselection.
   ENDLOOP.
   IF sy-subrc IS INITIAL.
     CALL METHOD l_instance_cust->fieldselection_header
The values in mmfd_cust_01 is '  90000000' (with 2 spaces in left side) and ch_fieldselection is
METAFIELD     FIELDSTATUS
         9 |.                                                            
        11 |+                                                            
        12 |.                                                            
        13 |+                                                            
        14 |.                                                            
        27 |.                                                            
        29 |.                                                            
       303 |.                                                            
       304 |.                                                            
       305 |.                                                            
       306 |.                                                           
       307 |.                                                            
Code writen in BADI:
METHOD if_ex_me_process_po_cust~fieldselection_header .
  DATA: l_persistent TYPE mmpur_bool,
        l_changeable TYPE mmpur_bool,
        mmmfd_coll_no TYPE mmpur_metafield VALUE 016,
        mmmfd_doc_typ TYPE mmpur_metafield VALUE 201,
        l_header TYPE mepoheader.
  FIELD-SYMBOLS: <fs> LIKE LINE OF ch_fieldselection.
* if the item is already on the database,
* we disallow to change field badi_bsgru
  l_persistent = im_header->is_persistent( ).
  l_changeable = im_header->is_changeable( ).
  l_header = im_header->get_data( ).
  IF l_changeable IS NOT INITIAL AND l_header-bsart EQ 'FI'.  "(me22n) AND OTHER CONDITIONS
    READ TABLE ch_fieldselection ASSIGNING <fs>
        WITH TABLE KEY metafield =  mmmfd_coll_no.
    <fs>-fieldstatus = '*'. " view
  ENDIF.
ENDMETHOD.

Similar Messages

  • Make 1 field non-editable while using transaction VA02.

    Hi,
    I want make a field non-editable under tab 'shipping' for transaction VA02. I know one way of doing it by adding code to  MV45AFZZ -> USEREXIT_FIELD_MODIFICATION. is there any other way ( other user-exit / BADI) to achieve the same.

    Hi,
    Please go through this link... It tells you the step to follow....
    http://www.sap-basis-abap.com/sapbs010.htm
    Also please refer these posts..
    Re: Transaction Variants & Variant Transactions
    Re: Transaction Variants

  • Needed to make baseline date non-editable

    Hi Gurus,
    My requirement is to make baseline date non editable for miro.Please help how to proceed for this.

    Hi,
      In txn. SHDO create a screen Variant for the tcode MIRO  (prog. SAPLFDCB, Screen 0020).
    Then click on Create icon from top
    It will open the MIRO screen, then click on payment tab, maintain entries in baseline date then clik enter it will popup one screen, there you need to flag under "output Only" for Baseline date, then save.
    this setting will make non editable field.
    Regards
    GK.
    Edited by: Gnana Kumar on Oct 28, 2010 2:34 PM

  • Custom ItemRenderer makes the column non editable

    Hi Folks,
    I have a DataGrid which s editable, I've created a custom ItemRenderer to deal with special format needed for Date variables, for that I extended the mx:Text class in order to get access to the listData.dataField variable.
    The problem is that this makes the column non-editable, the other column in the table are editabe.
    When I used a VBox container the column was editable however I didn't get access to the listData, which I need for the dataField variable.
    Any help will be appreciated.
    Thanks,
    MR.
    Here is the my DateItemRenderer code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Text xmlns:fx="http://ns.adobe.com/mxml/2009"
                                    xmlns:s="library://ns.adobe.com/flex/spark"
                                    xmlns:mx="library://ns.adobe.com/flex/mx">
         <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
         </fx:Declarations>
         <fx:Script>
              <![CDATA[
                   import aslib.common.Constants;
                   import aslib.common.Utils;
                   import aslib.connection.JSONConnector;
                   import mx.controls.dataGridClasses.DataGridListData;
                   import mx.controls.listClasses.ListData;
                   import mx.formatters.DateFormatter;
                   [Bindable]
                   private var _dispValue:String;               
                   public function dateStr(val:Object):String {
                        var innerDt:Date;
                        if(!(val is Date))
                             innerDt = Utils.convertDateStr(val as String);
                        else
                             innerDt = val as Date;
                        if(innerDt){
                             var df:DateFormatter = new DateFormatter();
                             df.formatString = "DD/MM/YYYY";
                             var formatedDate:String = df.format(innerDt);                                                       
                             return formatedDate;
                        }else{
                             return "";
                   public override function set data(value:Object):void {
                        var date:Object = value[(listData as DataGridListData).dataField];
                        if(date){
                             _dispValue = dateStr(date);
              ]]>
         </fx:Script>
         <mx:text>{_dispValue}</mx:text>
    </mx:Text>

    OK, found the issue, forgot to add 'super.data = value' in the set data method...

  • HOW TO MAKE TABLE CONTROL NON EDITABLE

    hi all
    how to make table control non editable
    Thanks & Regards
    harsha

    Hi,
    Try this code in the PBO inside the module in the LOOP...ENDLOOP.
       IF SY-TCODE EQ 'ZEMPLDISPLAY'.
        LOOP AT SCREEN.
         if screen-name eq 'column1' or screen-name eq 'column2'.  "Give the names of the columns in the table control
          SCREEN-INPUT = '0'.
          MODIFY SCREEN.
        endif.
        ENDLOOP.
      ENDIF.
    Or you can go the Layout of the table control in Change mode and for every column's attributes, make it 'Output' only field. Check  'Output only' field.

  • How to make a row non-editable depending on a db column value

    HI,
    I've an editable report region and the requirement is to make the row non-editable according to the value in one of the column. Like if the value for that column is null the row should be editable else non-editable. Any option to do this in Oracle APEX.
    Regards,
    Prasanth

    I assume you are using a tabular form. In that case, you would have to run a loop in Javascript to read all the rows in the Form. The example is given below. You can use Firebug in Firefox to identify your field names and replace f02, f03 and f04 with your field names.
    <script language="JavaScript" type="text/javascript">
    function f_readonly_items(){
    for (i=0;i<document.wwv_flow.length;i++)
    if (document.wwv_flow.f02.value) != Null
    document.wwv_flow.f02[i].readOnly = true;
    document.wwv_flow.f03[i].readOnly = true;
    document.wwv_flow.f04[i].readOnly = true;
    </script>
    Hope this helps.

  • I want to make a textfield non editable with blinking cursor,and the text is input from a custom keypad

    I want to make a textfield non editable with blinking cursor,and the text is input from a custom keypad....
    Please Help me.
    I want to make a numpad of my own from which i can set the text but i want the user to tap in between the text..

    You seem to stop the while loop to run the following code, then the program ends. Are you running this using the "continuous run" button????
    You need one big while loop containing the acquisition, then you build up the history data in a shift register. Clicking "save" will save the data, but not stop the loop.
    Why did you place a time-control in the FOR loop??? This is just post-processing so it should just do it without any delays. I don't understand the logic in the FOR loop. You are appending arrays, but then you delete the first element at each iteraction constantly trimming data from the beginning of the appended array. Then you autoindex at the output tunnel heavily duplicating all data. Ths make s no sense!
    Can you explain how you want you data saved?
    Message Edited by altenbach on 12-16-2005 11:20 AM
    LabVIEW Champion . Do more with less code and in less time .

  • Make rows as non editable in ALV

    Hi Experts,
    I have a standard ALV table where records are fetched from backend table. Here I have a field Approved as check box.
    My requirement is I need to make all the rows as non editable, if the Approved checkbox is checked. How can I achieve this.
    I went through the below discussion, but still am not clear of how to achieve it.
    How to set some rows in ALV to be editable or some non editable.
    I know to set a field as non editable in WD, but don't know how to set some specific rows as non editable in alv.
    Please help me.
    With Regards,
    Ramakrishnan M

    Hi,
    Create an Attribute in the Context say READ_ONLY of type wdy_boolean and bind the read only of cell editor to that attribute using set_read_only_fieldname( ) method. Then set the value of attribute READ_ONLY to abap_true/abap_false based on check box value.
    check this wiki for reference: How to edit conditionally row of a ALV table in Web Dynpro for ABAP - Web Dynpro ABAP - SCN Wiki
    Hope this helps u,
    Regards,
    Kiran

  • Make a filed Non-Editable for specific Users

    Hi Experts
    Any Idea How can I make fields of any Table non-editable for a specific Group of Users.
    My Requirement
    I have 4 fields namely, Customer Name, Address, Pincode,City which at time of creation is open to user but once updated and customer is created,  I need to make it non-editable for a specific Group of user.
    Please advice.
    Regards
    Prashant

    Hello Neethu,
    I just wanted to confirm one of the sentence in the above post.
    I feel that the option 2 can also be achieved (Once record is approved and gone through all processes of WF and saved in MDM.Specific users should not modify the record.)
    For this we need to create validation where we need to mention the User
    Just create a Status field and write an expression as
    IF(STATUS FIELD [RECORD]=STATUS[DONE] AND UPDATED BY="USER NAME",FALSE,TRUE)
    for this the automatic execution type property should be set to error.
    Only difficulty is that we need to mention all the users for whome we want to remove the write access once the record is saved.
    Rgds,
    Prasad.

  • How to make report output non editable

    Hi can any body give me sample code on how to make the report output non editable.
    thanks in advance
    kp

    Hi
    What are you meaning?
    U don't want to allow to change the data in the selection-screen?
    If it's so:
    AT SELECTION-SCREEN OUTPUT.
       LOOP AT SCREEN.
          SCREEN-INPUT = 0.
          MODIFY SCREEN.
      ENDLOOP.
    If you need to change only certain fields:
    PARAMETERS: P1 ......,
                P2 ...... MODIF ID AAA.
    SELECT-OPTIONS: SO_1 FOR .....,
                    SO_2 FOR ..... MODIF ID AAA.
    AT SELECTION-SCREEN OUTPUT.
       LOOP AT SCREEN.
          CHECK SCREEN-GROUP1 = 'AAA'.
          SCREEN-INPUT = 0.
          MODIFY SCREEN.
      ENDLOOP.
    Max

  • How to make a field non-Editable in Web UI

    Hello Experts,
    I am new to Web UI CRM 7.2. Could anyone pls guide me in making a field non-editable on Web UI.I have the field in one of the custom assignment block. Could you pls guide me with some sample code how to achieve this ?
    Thanks in advance.

    Hi experts,
    For the component 'ICCMP_EMP_SRCH' there is a view 'BUPAEMPSEARCH' , which has 2 context nodes 'CUSTOMER' AND 'SEARCHEMPLOYEE' , i need to add the field 'NICKNAME' which is part of the 'CUSTOMER' context node on the search screen. Currrently all the fields on the screen screen are from the 'SEARCHEMPLOYEE' context node. when i did the configuration , the 'NICKNAME' field is greyed out . I have already generated the Getter ,Setter , GET_I, GET_M methods for the 'NICKNAME' field and the context node and controller class and context class are all active .
    on debugging the GET_I method, i see that rv_disabled = 'TRUE' and the current = collection_wrapper->get_current( ) is returning empty value .
    for this rv_disabled to be set false , the code below is not triggered since there is no value in current.
    IF current->is_property_readonly(
    'NICKNAME' ) = abap_false. "#EC NOTEXT
    rv_disabled = 'FALSE'.
    ENDIF.
    when i check for other search fields of context node 'SEARCHEMPLOYEE' , all the fields are set to rv_disabled = 'FALSE'.
    can anyone suggest how to approch this. iam i missing any binding between context nodes or any activations ?
    The field properties are set as Input field and the display checkbox is not checked.

  • Make Screen field non editable

    Hi All,
    We have following requirement in our project:
    When entering infotype 1 in any action a check should be made to set default values in Work Contract. If Employee Group =u2019 1u2019, Work Contract u2018ZFu2019 should be set and this value must not be changed. If Employee Group u20181u2019 the Work Contract could be all other values except u2018ZFu2019.
    We are using badi HRPAD00INFTY to handle the above requirement. But there is a problem. When we perform an action and go to infotype 1 screen the contract field is populated with correct value and is display only field. Once you press enter on the screen the field becomes an editable field and can be changed by the user. I debugged the program and found that PSYST-NSELC is set as NO (0) in the program MP000130 and is checked if it has a value YES in module p0001 called in PBO of screen 2000 include MP000120. If the value is YES only then BADI is called else not.
    Can someone suggest what could be the problem area or any other way to meet the requirement ?
    BR Jaideep,
    Duplicate Post. Continue here: Screen field not getting editable..
    Edited by: kishan P on Sep 9, 2010 2:20 PM

    Can you explain how a physical inventory is done in your company., and what problems come up if a wrong date is entered?
    In my company we create and print the inventory documents immediatly before counting, and we are making sure, that the volume can be counted, entered and difference posted on the same day.
    Further we are setting a posting block in SAP, and of course we make sure that no physical movement happens during the count.
    And of course we make sure that everyting what was received or issued prior to the count is already entered in sAP before we start creating the documents.
    SAP takes the book inventory in the moment the counted quantity is entered in this case. No matter if the user enters a count date of today or of last week.
    But if you close the field (which is not possible with customizing), then you have to make sure that you enter the count on the same day you have counted, because if you would enter the count on the next day, then your counting date would be wrong and you would not have a chance to enter the correct counting date.
    And as SAP stores everything what a user enters, it is easy to identy the user who has fooled the system, and then the HR guy should do his job, especially as the physical inventory is in most countries a legal requirement, which has to be done seriously.
    don't give authorization to the guys who dont follow your policies.

  • Automatic Payment Program - Make House Bank Non- Editable

    Dear All,
    One of our client wants to make sure House Bank is not editable during Automatic Payment run!! i.e., Edit Proposal should nt basically allow the user to change the House Bank.
    Is that Possible. If so.. please advice how to acheive that.
    Thanks very much for your inputs
    regards
    Diwakar

    Dear Diwakar,
    It is certainly possible to create a transaction variant in SHD0 for the transaction FBZ0. Create a scrteen variant like ZFBZ0. I have done and tested the same and its working fine. When you are creating the screen variant, system issues certain warning messages when you are out of the reallocated option. Just ignore them and create the screen variant.
    Once you save the variant, you have to assign it to a package, 6-7 times the system will prompt for this depending on the number of screens in the transaction.
    Assign the screen variant ZFBZ0 to FBZ0 transaction using SHD0.
    Please let me know if you need further help.
    Thanks
    Aravind

  • Make Non-editable Column in Table Control of ME21N and ME22N

    Hi Experts,
    I was trying to look for a solution to make the columns for field MEPO1320-SLFDT(Stat Deliv. Date), MEPO1320-EEIND (Deliv. Date) and MEPO1211-NETPR (Net Price) from transaction ME21N and ME22N to be non-editable ONLY when Qty Received (MEPO1320-WEMNG) > 0.
    I'd found that the modify screen codes were located at Class CL_TABLE_VIEW_MM, Method MODIFY_SCREEN_TC_LINE but there were no enhancement spots available to add my code. Is there any other method i can use to make those fields non-editable?
    Thanks in advance!
    Cheers,
    Cheng
    Edited by: Cheng Mei Tan on Jun 4, 2009 9:31 AM

    Hi Cheng,
    I think you can use this BAdi: ME_PROCESS_PO_CUST - Enhance Processing of Enjoy Purchase Order.
    Use the method PROCESS_ITEM to control the fields at the item level.
    I think is not possible to make the fields non-editable, however, you can put an error message whenever your condition is verified, and the user won't be able to change the fields.
    Cheers,
    Pedro

  • Make parameter non editable

    Hi All,
    I have a requirement to make the parameters field non editable as i am displaying default values for that. can any one please help me.
    Moderator message : Not enough re-search before posting. Thread locked.
    Edited by: Vinod Kumar on Aug 3, 2011 11:42 AM

    If you have to make any field non editable
    1) you have to disable it either by $FLEX$
    2) you have to make it non display
    So it will not going to help.
    I get your requirement, you want to display some default value and you do not want any user to change it.
    Fortunately there is solution to this as follows
    First,define one independent valueset with the value you want to display.
    Second,add this valueset for that parameter in concurrent program window and give default value as same value.
    Now run that program if user will try to change the value he will not be able to do so as there is only one value in independent valueset.
    I hope this solves your problem.

Maybe you are looking for

  • Extreme Base station can't extend signal from Mini desktop ?TCP/IP settings

    I have a Mac Mini connected to DSL via a lynksys 8 port workgroup switch. I had 6 rooms in my house connected to the router by ethernet wiring. Worked great for several years. Now 2 rooms cabling seems to have gone bad (mice or squirrels, maybe). To

  • IS-RETAIL: How to update custom enhancement field using BAPI?

    Hi gurus, Like ECC BAPI: BAPI_MATERIAL_SAVEDATA, This BAPI(BAPI_MATERIAL_MAINTAINDATA_RT) is specific for IS-RETAIL to create and update material master data. But now If I append one custom field "ZFIELD" to end of table MARA, my question is how to u

  • Images in Premiere = blurry

    Hey, So I've made a video in premiere, I get to the finish line and then I get hung up by the credits. I made some images in Photoshop to create the credits/logo, but when I import those into premiere they are blurry. This isn't so noticible with a p

  • How to convert Special charachter in SAP PI

    Hi SAP PI Team, I am working on SAp PI 7.31 single stack . I have a requirement to convert the special character into entity reference as seen below. Name Character Entity Ref Quotation mark &quote; Ampersand & Apostrophe ' Less than sign < ⁢ Greater

  • INVOIC IDOC Segment

    Hi Experts, We are getting an Inbound IDOC for creating Invoice after service entry sheet is created for the service POs. If there is 1 Service entry sheet for the PO, we can create 1 Invoice but when we have 3 service entry sheet generated for same