How to make the custom field enable/disable in ME21n/ME22n/ME23n trans

Hi Experts,
I need help.
I have created one custom field in the transaction ME21n/ME22n/ME23n under customer data 2 tab. But my problem is the field is always in enable (means editable only)  even in Display mode. How to make the field is non editable in display mode and editable in change mode.
I have tried by putting some logic to make that field to change alternatively according to change/display button. And it is working fine but if we click any othe button , this field is becoming editable even in display mode.
How to make this field to behave as standard fields?
Please reply me <removed by moderator>
Thank you in advance.
Best Regards,
Divakar.
Edited by: Thomas Zloch on Mar 2, 2012

If you have BADI implimented for custom tabs then you can do this in method ME_PROCESS_PO_CUST~FIELDSELECTION_ITEM
lv_changeable = im_header->is_changeable( ).
  LOOP AT ch_fieldselection ASSIGNING <fs>
    IF lv_changeable IS INITIAL.
      <fs>-fieldstatus = '*'. " Display
    ELSE.
      <fs>-fieldstatus = '+'. " Change
    ENDIF.
endloop.

Similar Messages

  • Problem with the custom field - enabling

    hi,
    i am using one customer field in the shopping card header , and using BBP_DOC_CHECK_BADI to issue an error message if this field is left empty.
    but the problem comes after the error message is issues , this field becomes disabled , and the user has to go back , and again come to the order screen to enter the value and order the cart.
    i have tried all possible options , to keep the customer field enabled , but not able to do so.
    have you got any inputs for me..
    Edited by: khan voyalpad usman on Aug 21, 2008 12:29 PM

    Hi,
    Have you checked the BBP_CUF_BADI_2 implementation in your system ??
    May be some logic there is disabling the customer field right after the error message is generated..
    Thanks,
    Pradeep

  • How to make the CATEGORY field mandatory in the SMIN Support Ticket in test management?

    Hi,
    how to make the CATEGORY field mandatory in the SMIN Support Ticket in test management?
    Rg,
    Karthik

    Hi Kamal,
    This note steps will no validation that the user actually enters a value and the message will be created even if this 'required field' is left blank.
    Any other way to validate the enter a value also?
    Rg,
    Karthik

  • How to make a custom field as text as well as value fied in ad hoc query

    hi,
      i have created a custom infotype 9004 in which the custom field contain the code values, and the text of this code values are maintained in another ztable.
    when i am viewing this infotype in Ad hoc query i am able to see this fields as only value fields and hence i am unable to get text for this field i.e when we right click on this field only the value option is enabled and the text option is disabled, both these options are enabled in some other standard fields like pernr(personnel no), persg(employee group),persk(employee subgroup).
       can anybody suggest me how to enable both these options for custom fields.

    Assign you table of text as a table text to the data element/domain of your custom field or thru external key on your infotype.
    Query is able to analyse these links.
    Regards.

  • How to make added custom field Delta mechanism work for LO Cookpit?

    We appended a new custome field into extraction structure of the LO Cookpit datasource 2LIS_02_ITM through RSA6. And then run CMOD to write the exit code to populate the value and it works fine. But after we read Roberto's Weblog:
    /people/sap.user72/blog/2005/02/14/logistic-cockpit--when-you-need-more--first-option-enhance-it , find the enhancement we did can't make the Delta mechanism works if only this new field gets changed in a record, and the change cannot be reflected on BW.
    In order to make the Delta mechansim works, one option is to append the custom field into one of the LIS Communication Structure MCEKKO of  2LIS_02_ITM extraction structure and then write the enhancement code to this LIS Communication Structure.  In this way, the custom field can be treated like standard field that whenever it gets changed, the Delta mechanism or the user exit will be triggered.  The enhancement for this LIS Communication Struture is LEINS001. 
    Now we've got two problems when doing the above enhancements of the LIS Communication structure:
    1.  Maintain extraction structure problem in LBWE:
    We added a custom field, e.g., called ZZZ in LIS Communication structure MCEKKO (Purchasing Document Header) by creating a new custom append structure and add the field ZZZ into it, then activate the new append structure, but get warning msg like "Field name DUMMY is reserved (Do not use structure as include in DB table)".
    We do find a field called DUMMY in the structure MCEKKO. How to get rid of the warning msg and successfully activate the new custom append structure with the new field ZZZ?
    You could say that we can ignore the warning msg, but why the new custom field appended can not be seen from the right side pool of the Maintain Extract Structure in LBWE?  We need to make the new custom field shows up in the right side pool and then drag it over to the left side frame and to activate the extraction structure to change it.  But now it doesn't show up in the right frame pool!
    2. Refer to Sanyam's weblog
    /people/sanyam.kapur/blog/2005/04/30/custom-fields-and-bw-extractors-making-a-mixed-marriage-work-part-ii, there is a sample code inside this article which tells us how the sample code looks like to write this LIS Communicaton structure enhancement to make the Delta mechanism works, below is the code we modified to suit our needs, but don't know if it would work?
    DATA: i_t_ekko LIKE ekko   OCCURS 1 WITH HEADER LINE.
    DATA: ebeln LIKE ekpo-ebeln,
          it_ekko TYPE TABLE OF ekko WITH HEADER LINE,
          old_val(50) TYPE c.  "For storing the value from the Field Symbol
    FIELD-SYMBOLS <fs> TYPE ANY TABLE.
    CASE zeitp.
      WHEN 'MA'.                            "When creating a purchase order
        MOVE '(SAPLEINS)T_EKKO[]' TO old_val.
        ASSIGN (old_val) TO <fs>.
        i_t_ekko[] = <fs>.
        LOOP AT xmcekko.
          ebeln = xmcekko-ebeln.
          IF xmcekko-supkz = '1'.            "Old Value ?
            SELECT SINGLE * FROM ekko INTO it_ekko WHERE ebeln = ebeln.
            xmcekko-ZZZ = it_ekko-ZZZ.
          ELSE.                              "New Value ?
            READ TABLE i_t_ekko WITH KEY ebeln = ebeln.
            xmcekko-ZZZ = i_t_ekko-ZZZ.
          ENDIF.
          MODIFY xmcekko.
        ENDLOOP.
    EndCase.
    Share your ideas and we will give you reward points!

    Hello Kevin
    We have exactly the same problem. Did you solve it? If you did, could you please tell us how you did it? We neither see our field in LBWE. Our field is a Z field from a Z table.
    I hope you could help us. We just have this issue to finish our project.
    Thanks a lot in advanced

  • How to make the description field as mandatory in IW31 T.code

    Hi All,
    My requirement is make the Description field as mandatory in T.code: IW31
    That field is CAUFVD-KTEXT.
    How to make this field as mandatory,
    I tried with BADI: IWO1_SCREEN_MODIFY
    And some customer exists also (ZXWOCU04, ZXWOCU09) but unfortunately I couldnu2019t reach my functionality
    Can any please help me to reach out my functionality?
    Thanks and Regards,
    Rambabu.

    Dear Friend,
    go to spro - plant maintenance and customer service - maintenance and service processing - maintenance and service orders - define field selection for order header data(pm) -Field Selection for Order Header Data and Reference Object
    here keep CAUFVD-KTEXT is mandatory for your order types.
    Regards,
    pardhu

  • SRM 7 - How to make a custom field dynamically retrieved trigger a refresh?

    Hi all,
    we're working on a brand new installation of SRM 7.
    For contracts and purchase order, we created an enhancement on the webdynpro that manages header document data; in such view, custom fields are obtained dynamically and populate a Transparent container; by code, some tray group visually all the custom fields related to a specific section.
    Now, the task is quite general; some of these "dynamically retrieved" fields should refresh, when populated, the view.
    That is to say, in our context, that some custom field should automatically trigger the WDDOMODIFYVIEW method (which has been extended via overriding with an enhancement) when a value is inserted.
    This would be a simple task if the field is explictly visible in the layout screen, since I could easily associate an event to the field itself.
    But, since these custom field are automatically extracted in the WDDOMODIFYVIEW method, we don't know how to manage these field's behavior, e.g. after an input value has been inserted.
    Each dynamic custom field is a type ref to cl_wd_uielement; we wonder if we have a way to associate an event (e.g., onEnter) to such an element.
    Thanks in advance for any suggestion or help you will give us
    EDIT: I guess this could not be the best section for such a kind of question ... I'd gently ask moderators eventually to move the thread to the Webdynpro section, if necessary. Thanks in advance.
    Edited by: Matteo Montalto on Oct 7, 2010 6:01 PM

    Closed. I opened a thread on this topic in a more convenient section of SDN forums (Specifically, web dynpro abap). Thanks anyway:)

  • How to make the obligate field in selection screen

    Hi ,
    In my report two radio buttons and two bloc selection screens are there.When we select the first radio button first screen will be editable second screen will be non-editable vice-versa.
    but the problem is in each selection screen one mandatory field is required  suppose if i give the one field obligatory in first block screen it is not allowing the second readout please help me regarding this how i will make the mandatory field in both screens.
    Thanks,
    Harinath

    Hi...
    Dont Declare your field as OBLIGATORY.
    Instead perform the validation in AT SELECTION-SCREEN event. But validation should be only when Particular Radiobutton is selected.
    And Generate only Error Message (Type E).
    Try this code:
    AT SELECTION-SCREEN on <yOUR mandatory field>.
       IF PA_UPD = 'X'.
             IF <YOUR MANDATORY FIELD>  IS INITIAL.
                  Message 'Entry is must in this field' type 'E'.
             ENDIF.
       ENDIF.
    AT SELECTION-SCREEN OUTPUT.
    IF pa_udp = 'X'.
    LOOP AT SCREEN.
    IF screen-group1 = 'ABC'. "#CCE
    screen-active = 1.
    ELSEIF screen-group1 = 'DEF'.
    screen-input = 0.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    ELSEIF pa_rep = 'X'.
    LOOP AT SCREEN.
    IF screen-group1 = 'ABC'. "#CCE
    screen-input = 0.
    ELSEIF screen-group1 = 'DEF'.
    screen-active = 1.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    ENDIF.
    <b>Reward if Helpful</b>

  • How to make the Deprtmnt field in the cost center master data as required ?

    Dear Experts,
    I want to make the Department field in the cost center master data as required field.....how do i do it?
    regards
    Suresh

    Hi Eli,
    Thanks for the quick reply
    while creating the Cost center itself the field should come as required field........can that be met with this enhancement?. Because the transaction code being used int the enhancement is for change mode but i want this feature in  create mode itself.
    thanks
    regards
    Suresh

  • How to make the payroll field in the assignment screen mandatory using personalization ?

    I am trying to make the payroll field required in the assignment screen using personalization , but it's not working, can anybody assist me ?
    Thanks.

    Hi,
    Navigate to Assignment Screen. Help > Diagnostic > Custom Code > Personalize
    Create a new  item : say "Mandatory Payroll Name"
    Condition:
    Trigger Event:WHEN-NEW-BLOCK-INSTANCE
    Trigger Object: ASSGT
    Actions:
    Object type: Item
    Target Object: ASSGT.PAYROLL_NAME
    Property Name: REQUIRED
    Value: TRUE
    Apply / Save.
    Exit form and re-enter Assignment Screen to check.
    HTH.
    Regards,
    Rajen.

  • How to update the Customer field value of PO Item under the Delivery Address Tab?

    Hi Friends,
         i tried to update the Customer field Using Bapi_PO_change.I passed the PO Order no,POADDRDELIVERY data with Item no,Adrees no,Customer no.But i am getting no data changed message from return table.I attached the screen shots.So please suggest me the helpful information for resoving this issue.
    Thanks,
    Dinesh

    Thank you friends,
                My Problem was resolved.In my case i have passed the customer value in BAPI_PO_CHANGE POITEM Table with updated customer value.
    Thanks,
    Dinesh

  • How to make the Reference field in the in Accounting Tab a required field.

    Hi,
    Can i make the REference field in the Accounting tab required. I want to enter contract number from RE in that field.
    Thank you.
    Rachelle

    Hi,
    Goto t.code OVA2 select A-sales header and then click on procedures in the left--> select the procedure in which you want to incolude this field and new entries the table name is VBAK and field is XBLNR for the reference field in the accouting tab and accordingly assign the status 01 or 02 as per your requirement.
    Then you need to assign the incompletion procedure to the sales document type in VOV8.
    Regards,
    Gopal.

  • How to make the text fields as mandatory (in 'notes and attachment' tab)?

    Hi,
    We have defined some Fixed Values for texts under IMG>SRM>SRM Server>Cross Application Basic Settings>Text Schema>Define Fixed Values for Texts, for a certain transaction type of RFx responses for a text schema.
    Because of this, the bidder can choose one of these fixed values for texts. This is perfectly working fine.
    Now the question is, we want to make the texts fields as mandatory. i.e. The bidder should not be able to submit the responses if certain texts are blank.
    Is there be any BadI for this?
    GH

    You can use BBP_DOC_CHECK_Badi for this field validation using a filter value RFx/Bid (I ont remember exact word).
    Regards,
    Jagadish.

  • How to define the customer field in SC as mandatory

    Hi all,
    Could someone help me to define the customer field as
    mandatory in the shopping cart?
    Thank you a lot.
    Best regards,
    Danijela

    Hi Danijela,
    you could implement the BBP_DOC_CHECK_BADI and check if the customer field is filled. If not, you can issue an error message (Type 'E') in the BAdI. This message will be visible in the browser. The user will only be able to order the shopping cart when this error message is gone.
    Best Regards,
    Olaf

  • How to make the checkbox field as enabled/disabled?

    HI,
    i want to enable/disable the checkbox
    at run time??
    is it possible to do it??

    Hi user10185229 ,
    You can do this with SPEL.
    Thanks.....

Maybe you are looking for

  • Problem while updating a database table

    Hi experts,                      I've used the FM 'HR_INFOTYPE_OPERATION' to update the database table. In that i used the MOD operation to update the Infotype PA0315.  But it return an error message like "Infotype does not exist". What could be the

  • Error in executing triggers on instance shutdown

    Hi, I got the error message in the trace file and trigger was not executed Error in executing triggers on instance shutdown *** 2010-08-31 19:49:59.573 ksedmp: internal or fatal error ORA-00604: error occurred at recursive SQL level 1 ORA-04052: erro

  • Quality issues when importing still images as frames for animation

    hello, i've imported roughly 600 hand-drawn and scanned (600 dpi) images as frames for video. the images themselves are really crisp and perfectly how i want them to appear. i've imported each to play for 2 frames then move to the next. once done, i

  • Best AVI settings for import?

    Does anyone know what are the best practices for saving and AVI for import into presenter?

  • Add data under a selected group

    Hi, How coud I add some employees under a certain group. e.g. from hr schema employees table I have all managers and I wnat to select one and under this manager to add an employee. Thank you