Make fields un-editable based on condition in Relationship tab of ACCOUNTS

Hi Friends,
Iam working in CRM 5.0. Application: ZCRMMACCOUNT           View: Z*ACC
I want to make the fields in the relationship tab of Accounts application to read only based on some condition (when the relationship is contact person).
I have tried all the ways:
1. In the READ method of Access Class, set the field property as 'A' in the et_field_attribute.
2. Use the method set_field_attr of class cl_bsp_bp_global_service.
But still the fields are in the editable mode. And here i cant use the Field Group Customization, because i want to make the fields read only based on some condition. I tried using field group variants, but while debugging, the method GET_FIELDGROUP_VARIANT is not called.
Can you please suggest me your ideas and how to work with this?
Regard,
Raju

Dear Raju,
I am new to CRM, if i am wrong in explaing the things dont consider it.
We to had the almost the same requirement then we went to the field groups level and chekced the following field groups and changed them to display only feature by checking the box in the field groups....
ADR_DETAIL_COMM_DATA
ADR_DETAIL_COMM_DATA_CAM1
and generated the layout for the following parent field groups....
ADR_DETAIL_COMM_ALL
ADR_DETAIL
BUP_ADR_DETAIL
ADR_DETAIL_2
and also check the field groups under the following parent field groups which matches to your requirement...by checking box of the related field group to display mode
BUP_GENERAL_DATA
BUP_BUS1006_SRES

Similar Messages

  • How to make fields Non Editable in Web ADI

    Hi All,
    Can you please let me know how we can make fields Non Editable in Web ADI?
    Thanks,
    Anil

    Hi,
    Are you trying to make required parameters readonly and does this variable have different values for each row. If not then I would suggest you use a wrapper for the API and get only parameters that you need from the excel sheet and the use the wrapper to send the other read only values.
    Thanks

  • How to make field is editable in ALV  CL_SALV_TABLE only)

    Hi,
    How to make field is editable in ALV  CL_SALV_TABLE only)
    Any one has tried to make field si editable by using CL_SALV_TABLE class.
    *I know how to do it in REUSEALV function module and CL_GUI_ALV class.*_
    Please reply only if you riedin CL_SALV_TABLE class method.
    Regards
    Rajesh V
    Moderator message: not supported, please read class documentation and search for previous discussions.
    Edited by: Thomas Zloch on Mar 17, 2011 2:07 PM

    Hi Chad,
    Please refer the link,
    Edit field in alv
    Regards,
    Hema.
    Reward points if it is useful.

  • How to make fields not editable in screen

    Hi gurus,
    I have a table and i need to make some fields not editable depending on the values of other fields of the table .
    Example :
    my table have these fields : begin_date, name.
    If the begin_date < sy-datum  -->  then the field  ' name' should not be editable.
    Tankyou.

    Hi,
      OK. I did some code and was able to get the results as you want. Created a table YTESTHV with two fields YYDATE and NAME. Generated a two screen maintenence for the table. Screen 2 - Overview screen, screen 3 Detail screen.
    Overview screen.
    PBO.
    PROCESS BEFORE OUTPUT.
    MODULE LISTE_INITIALISIEREN.
    LOOP AT EXTRACT WITH CONTROL
      TCTRL_YTESTHV CURSOR NEXTLINE.
       MODULE LISTE_SHOW_LISTE.
       MODULE DISABLE_FIELDS.
    ENDLOOP.
    MODULE DISABLE_FIELDS
      move extract to YTESTHV.
    if YTESTHV-yydate > sy-datum.
       loop at screen.
        if screen-name = 'YTESTHV-NAME'.
         screen-input = '0'.
         modify screen.
         else.
         screen-input = 1.
         modify screen.
        endif.
        endloop.
    endif.
    Details screen PBO.
    PROCESS BEFORE OUTPUT.
    MODULE detail_init.
       module change_mode.
    module change_mode
    if YTESTHV-yydate > sy-datum.
       loop at screen.
         if screen-name = 'YTESTHV-NAME'.
           screen-input = 0.
           modify screen.
         endif.
       endloop.
    endif.
    When YYDATE is greater than sy-datum field NAME is display only.
    Regards,
    Himanshu

  • Make fields only editable by certain useres

    hello,
    i have created several authorization schemes.
    In the "Security" section of a text field i can choose these so that the item is only displayed for authorized users.
    However, I would like everybody to see the text field, but only authorized users to edit it. There is a section "Read Only" but I cannot find how to use the authorization schemes there.
    Can anybody tell me how this works?
    Thank you

    I'm stil having a little problem.
    I have now made a pl sql function called "authorize", which is supposed to return a boolean value.
    What do i choose in the "read only condition type" field and what do i write in the condition field so that my function is called and the field is read only when false is the return value?
    I'd also like to know if its possible to test my function in the "run sql window"? Can I call it in there and see its return value?
    thanks for you help

  • Updating a text field in  aform based on conditions

    Hi ,
    We are developing a custom form which has a database datablocks.
    This form is a master detail form . It has a field called "status" whose initial values is 'Draft' and this field is present in the master part of the form.
    The Logic for "Draft" is written in Pre-Insert trigger of the header block.
    Question
    If condition "A" is met and "B" is met , status should be set as a value called as 'Submitted';
    If condition a is not met and B is met , status should be set as a value called as 'Created';
    We are doing this in the post-update trigger at block level. But the changes are not taking effect.
    Please let us know if this is the correct approach to handle the column. Note that the column "Status" is a database column.
    Thanks and Regards
    SR

    The above is not working
    Let me restate the problem statement
    Hi ,
    We are developing a custom form which has a database datablocks. This form is a master detail form . It has a field called "status" whose initial values is 'Draft' and this field is present in the master part of the form.
    The Logic for "Draft" is written in Pre-Insert trigger of the header block.
    Question
    The record is created with a status of Draft initially.
    Query and requery back and if condition is met , the value of status should be updated as follows......Condition A and B involves going an chekcing in some other table and based on that , we set the status column....
    If condition "A" is met and "B" is not met , status should be set as a value called as 'Submitted';
    If condition "A" is not met and B is met , status should be set as a value called as 'Created';
    We are doing this in the post-update trigger at block level. But the changes are not taking effect.
    Please let us know if this is the correct approach to handle the column. Note that the column "Status" is a database column.
    Also tried the following
    1) When validate item at block level by capturing the item in a parameter and then assigning the parameter to the status column in pre-update column . This is not working
    Thanks and Regards
    SR
    ----------------------------------

  • Make field non editable

    HI,
    I have a field on the form which is a database field and the value is populated by a LOV. The user should not be able to edit the value selected or enter his own values in the field. Basically the field should only be populated by the lov and should not be editable.
    I tried using the SET_ITEM_PROPERTY('XX.XX', UPDATE_ALLOWED, PROPERTY_FALSE); but this only disable update against existing value. If a user selects a new value from LOV that can be edited. Let me know how to solve this.

    Hi,
    If you don't want the user not to edit the field at all, then you can set its INSERT_ALLOWED, UPDATE_ALLOWED properties to FALSE at design time or at run time depends upon the requirement.
    SET_ITEM_PROPERTY('<block_name>.<item_name>', INSERT_ALLOWED,  PROPERTY_FALSE);
    SET_ITEM_PROPERTY('<block_name>.<item_name>', UPDATE_ALLOWED, PROPERTY_FALSE);Or you can set the item as Display Item.
    Regards,
    Manu.
    If my response or the response of another was helpful or Correct, please mark it accordingly

  • How to make fields non editable in MM02

    My user wishes to have access to change only the Bin Location field in MM02. How can we achieve this? or in other words how can we deliver MM02 to user with only the Bin Location field editable.
    My basis guy sees a possibility if we can some how provide the authorization objects of all the fields of MM02.Shall that be a practical approach. if yes, what is the way of finding the authorization objects?
    Regards,
    Alok.

    Create a transaction variant for MM02 --- Tcode to do this is SHDO or SHDS..
    While creating the variant u can check the screen fields of the transaction as Invisible that you want to HIDE ...
    Then Link ur Varient to a new t-code and ask ur users to0 use the Alternate T-code For EX: ZMM02
    I Hope this helps u
    Deepak

  • How to make use Modifier automatically based on Condition

    Hello all,
    I need help in using Advance Pricing modifier to adjust the sub total value of the sales order.
    AM populating a value in sales order header DFF Attribute5 with value.Then i Compare the this value with Sub total value based on Pre book order event using plsql
    If there is difference then modifier needs to be applied automatically.
    Ex:
    Sales Order Sub total value :1000
    Value in Attribute5 = 1400
    Diff amount = 1400-1000 = 400.
    Now i need to make use of modifier to adjust the sub total value to 1400.
    This should be done automatically..is that feasible..
    if yes please advise.
    else please provide best approach for the solution.
    Please let me know if you need more clarity on requirement.
    Thanks,Sarath.

    Dear,
    The scheduling is based on your MRP parameters. If you select the basic dates scheduling while running MRP, the system will consider the material master in house production time. It will not consider the routing standard values. In lead time it consider the routing value means timing form routing and component are assign to the operation so it calculated the component reqt date. And do the scheduling of order.
    In OPU5 there is setting for scheduling Adjust dates to order start will work for you.
    Regards,
    R.Brahmankar

  • Make Fields Non Editable on Debugger

    Hi..
    Well I have a program which deal with some sensitive data and passwords, I need to restrict users with debugging access from changing field content at runtime (in debugger). Is this possible?
    and also I have a password field, can I make it a password field at debugger? I do not want to show password on debugger.
    Thank you in Advance.
    Isuru

    As already mentioned you can always write the code inside a macro & prevent the developer from debugging it. But the flip side of using macro is "YOU CAN'T DEBUG !!!". Hence no troubleshooting
    Anyways back to your question. You can direct your query to your basis team if they can provide "no change" authorisation while debugging this particular program. Hope you get my point.
    BR,
    Suhas

  • Interaction Record : How to make it non editable based on user status = Complete and on click of  Save

    Hi Guys
    We have a requirement ,where we need to make the interaction record "not editable " when we set the user status to "Complete" and after "Save" button is pressed.
    Please note that we can't make use of status profile settings as we have to enter some information after the status is complete , that means
    after user selects status "Complete" he has to select the value from another drop down and then Save.
    Standard offers such that once the Complete is chosen in dropdown the whole screen is frozen.
    Once he saves it , the document should be locked(read only/non editable)
    Any pointers ?
    We tried "Set_view_Group_Context" and Order_Save BADI and we are not preferring disabling at attribute level as we might add few more attributes later.
    Regards
    Vinayak

    Hello,
    We had a similar requirement.
    The best way we found was to implement the enhancement spot in the beginning of method LOCK_ORDERS of class CL_CRM_METHODS_BTIL. Here, you can prevent the user from editing a business transaction. Be aware this method is called for any BT, so you need to adjust your custom development accordingly.
    Hope this helps.
    Best regards,
    Sylvain AGUETTAZ

  • How to make Date fields Editable or Non-Editable based on Call Staus

    Hi,
    We are using CRM2007 Web GUI for Service call creation. We are using date profile to populate the dates. Here my requirement is if call status is 'Call created' then some set of date fields to be appeared in display mode(Non Editable) and some set of date fields to be appeared in change mode(Editable). How to achieve this. Kindly suggest me.
    Regards,
    Steve

    Hello,
    Kindly check the following thread which is giving many solutions for your requirement:
    Re: how to make field non-editable (display mode)
    Kind regards,
    Nicolas Busson.

  • Make Item level field Non-Editable in VA01

    Dear Experts,
            I have a requirment to make ITEM Category field in item level of VA01
            make Non-editable based on the value of Sale order Type in the main screen
      i am using Program MV45AFZZ to make necessary changes i am able change any thing on the header level but i am not geting the control of item level Please suggest me how to change or make fields non-editable in Item level.

    Hi,
    Try writing code in FORM userexit_field_modification.
    *** Lock field pricing date in SO if delivery occured
      IF   screen-name = 'VBAP-PSTYV'  AND
           sy-tcode NE 'VA01' AND l VBAK-AUART EQ 'your document type'.
          screen-input = 0.
      ENDIF.
    ENDFORM.                    "USEREXIT_FIELD_MODIFICATION
    KR Jaideep,

  • Making Screen fields Non editable in Migo

    Hi TO ALL,
    In MIGO T-code , aganist oubound delivery under Batch Tab i want to make fields Non editable.
    I am unable to find suitable exit for this,can any body help me regarding this.
    Thanks

    Hi,
    Use Transaction variant (Tcode : SHD0) to make fields display only.
    Regards,
    Ashok.

  • ALV grid Editable based on a Field value

    Hi,
    I need to make a ALV Grid Row editable based on a particular field of that row.
    For example
    if fields are   A   B   C  D
    and if there are three rows of data
    I must make the Field B editable in all the rows which have D value as X else it must be non Editable.
    I searched in SDN but could not find a suitable answer.
    Hope I am clear with my issue.
    Regards

    this sample code makes the NETPR field editable based on a desired condition.
    this is the solution to your problem.
    * TABLES:     ekko.
    * TYPE-POOLS: slis.
    * TYPES: BEGIN OF t_ekko,
    *  ebeln TYPE ekpo-ebeln,
    *  ebelp TYPE ekpo-ebelp,
    *  netpr TYPE ekpo-netpr,
    *  field_style  TYPE lvc_t_styl,
    * END OF t_ekko.
    *DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
    *      wa_ekko TYPE t_ekko.
    *DATA: it_fieldcat TYPE lvc_t_fcat,    
    *      wa_fieldcat TYPE lvc_s_fcat,
    *      gd_tab_group TYPE slis_t_sp_group_alv,
    *      gd_layout    TYPE lvc_s_layo,  
    *      gd_repid     LIKE sy-repid.
    *START-OF-SELECTION.
    *SELECT ebeln ebelp netpr
    *   UP TO 10 ROWS
    *    FROM ekpo
    *    INTO  CORRESPONDING FIELDS OF TABLE it_ekko.
    *  DATA ls_stylerow TYPE lvc_s_styl .
    *  DATA lt_styletab TYPE lvc_t_styl .
    ** The following code sets it to be disabled(display only) if 'NETPR'
    ** is gt than 10.
    *  LOOP AT it_ekko INTO wa_ekko.
    *    IF wa_ekko-netpr GT 10.
    *      ls_stylerow-fieldname = 'NETPR' .
    *      ls_stylerow-style = cl_gui_alv_grid=>mc_style_disabled.
    *      APPEND ls_stylerow  TO wa_ekko-field_style.
    *      MODIFY it_ekko FROM wa_ekko.
    *    ENDIF.
    *  ENDLOOP.
    *  wa_fieldcat-fieldname   = 'EBELN'.
    *  wa_fieldcat-scrtext_m   = 'Purchase Order'.
    *  wa_fieldcat-col_pos     = 1.
    *  APPEND wa_fieldcat TO it_fieldcat.
    *  CLEAR  wa_fieldcat.
    *  wa_fieldcat-fieldname   = 'EBELP'.
    *  wa_fieldcat-scrtext_m   = 'PO Item'.
    *  wa_fieldcat-col_pos     = 2.
    *  APPEND wa_fieldcat TO it_fieldcat.
    *  CLEAR  wa_fieldcat.
    *  wa_fieldcat-fieldname   = 'NETPR'.
    *  wa_fieldcat-scrtext_m   = 'Net Price'.
    *  wa_fieldcat-edit        = 'X'. "sets whole column to be editable
    *  wa_fieldcat-col_pos     = 3.
    *  wa_fieldcat-datatype     = 'CURR'.
    *  APPEND wa_fieldcat TO it_fieldcat.
    *  CLEAR  wa_fieldcat.
    *  gd_layout-stylefname = 'FIELD_STYLE'.
    *  gd_layout-zebra             = 'X'.
    *  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
    *       EXPORTING
    *            i_callback_program       = sy-repid
    *            is_layout_lvc            = gd_layout
    *            it_fieldcat_lvc          = it_fieldcat
    *            i_save                   = 'X'
    *       TABLES
    *            t_outtab                = it_ekko

Maybe you are looking for

  • In pricing procedure In  What is use of printing  Indater  telme exactly

    Hi This is Mallik I ahve one question that In pricing procesure in 16 steps there is Printing  colum As per my knowledge this print particular condition type value in the document , but for Pr00 we will not assign Print option still it is prting in d

  • Bad Stats on threads for unanswered questions

    There seems to be a bug in the thread view for unanswered questions that says This question is not answered. Helpful answers available: 5. Correct answers available: 1. for any unanswered questions. The 5 and 1 numbers are fixed text and never change

  • Audit growth

    i am working in oracle 11.2 on HP-UX. My audit parameters are showing false... but there is an enormous grwoth of .aud files in the audit folder.... Audit parameter NAME VALUE audit_file_dest /oracle11g/app/oracle/product/11.2/rdbms/audit audit_syslo

  • Unable to set external display as primary/main monitor on Macbook Boot Camp

    I have an LG Flatron W1942TQ monitor hooked up to my Macbook right now. I am able to extend the desktop to this monitor and use it dual display style, but the Start menu remains on the Macbook display. I want the monitor to be the primary monitor. So

  • 10.5.6  breaks tap-to-click function

    after updating to 10.5.6.. my trackpad tap to click feature is sporadic. approximately every 15 mintues i have to open settings, uncheck the box, close, and then re-open and recheck the box. is there any way to keep it working? or to revert to 10.5.5