Mandatory check on fields

Hi,
We have upgraded to CRM 7.0.
We have placed mandatory check on some fields in service tickets in UI. But the mandatory checks work in a wired way.
For example if I am in Interaction History work center where we have marked partner as mandatory field for search.
But If I do not perform any search and try to navigate to the other workcenter the system throws a mandatory check error.
Is this the standard behaviour in CRM 7.0.
Regards
Yogesh

Hi Gopi,
Why do you want to perform the checks on Serverside event....why not on client side event ie. onClientClick ?
For validations on serevr side event onClick you can use the method
Data: it_fields type  it_fields TYPE tihttpnvp .
CALL METHOD request->get_form_fields
        CHANGING
          fields = it_fields.
This table it_fields contains values of all the elements in the form.
Hope it helps.
Regards,
Anubhav.

Similar Messages

  • Mandatory check problem!

    Hello,
    I have a problem with PCUI field ,have set 2 field attribute as Madatory 'C' but while trying to change from this screen tab to another tab a client check popup appears 'Fill required fields', The only check present for this fields is on 'save' for which error is shown at the top of the screen, there is no other validation present from the backend.
    We have other fields mandatory in other tab but we dont have problems like this with these.
    Is there a setting to block the client side check for mandatory at a Tab level.
    We have developed using CRMC_blueprint T-code to create screens.This was a custome development, not standard.
    Please provide solution.
    Thanks
    Prashant

    Dear Prashant,
    Apart from setting the attribute 'C' for mandatory for a field, There is other way to remove the mandatory field check at Field group customing. Go to transaction CRMC_BLUEPRINT_C (customer namespace), here find the Field group for which the Field belongs
    select the field group and go to define layout, Here you can uncheck the flag 'Mandatory' to remove the client side validation for the field. Please try this and do let me know in case of any issues.
    Thanks & regards,
    Bhavya

  • MANDATORY CHECK FOR SELECT OPTION.

    Hi gurus,
    How to do a mandatory check on select options..
    how do wegive messages in webdynpro..as in information, error as we do it in report programming..!
    Best Regards,
    Navin fernandes.
    Edited by: NAVIN FERNANDES on Dec 30, 2009 3:18 PM

    Hi,
    To make a selection field mandatory:
    wd_this->m_handle->add_selection_field(
                            i_description = 'Candidate Profit Center'
                            i_id = '/MRSS/T_RMOR_PROF_CENTER'
                             i_value_help_type = if_wd_value_help_handler=>co_prefix_searchhelp
                            i_value_help_id = '/MRSS/SH_RM_PC_GROUP'
                            it_result = lt_range_table
                           *I_OBLIGATORY = ABAP_TRUE*
                            i_read_only = read_only ).
    MAKE THE PARAMETER ABAP_TRUE  TO MAKE IT MANDATORY.
    OR PUT THE PARAMETER AS ABAP_FALSE.
    Priya
    Edited by: Chaitanya Priya Puvvada on Dec 30, 2009 6:34 PM

  • Deactivate mandatory check bank account,bank control key

    For certain Italian customers we use payment method 'R' where it is only necessary to have a bank key and no bank account or bank control key. Unfortunatly SAP always asks for those 2 when you enter a bank key. In other words, you cannot only enter a bank key.
    We don't like to enter dummy bank data in order to get the data in without errors. Is there a way to deactivate the mandatory check on bank account and bank control key when you use payment method 'R'?
    Thanks in advance.

    Hi Tom,
    You can try to change the Field checks of the countries, but it will work for all applications of these data for the bank data for this country. See SAP Note 31203 ' Entry of bank data w/o bank number (bank code)' as a sample.
    I hope this helps you
    Regards
    Eduardo

  • Mandatory segments and fields of Idoc...

    Hi Experts,
    I am very keen to know the mandatory segments and fields of the ORDERS05 IDOC so can you please let me how to check the mandatory feilds and segnents of this particular Idoc.
    Thanks in advance.Your help is highly appreciated.
    Thanks,
    Kiran.

    Hi,
    U can check in WE60 transaction code where u have to specify the basictype ORDERS05 AND THEN CLICK ON HTML FORMAT BUTTON..Now u can see the documentation of the idoc...
    Regards,
    Nagaraj

  • Set mandatory Sales Organization field in VF04 transaction

    Dear All,
    How set mandatory Sales Organization field in VF04 transaction.
    Regards'
    Kumar

    Can't check second part (new transaction run with a variant) as per constrains in my system. Running a new tcode with a variant worked for me in the past.
    Unfortunately it doesn't work here in VF04. Even if we create new transaction with VF04's program system doesn't allow to enter our customized variant. It only allows one standard variant and we cant make changes in that standard variant. After checking all these possibilities I suggested to go for ABAP
    PS: This logic worked for me in past in other transactions but VF04's behaviour is quit different.
    Thank$

  • Af:table - Programmatic mandatory check on a column

    I have a usecase wher in, i need to programatically apply a mandatory check on a column inside a table.
    User can add multiple rows in a table and only on the click of a button(say "Save"), all the rows in the table should be validated and those with missing value for mandatory column fields should be marked in RED. Say if user, adds 4 rows consecutively and he doesnt provide value for mandatory column of first and last rows, then tht specific fields should be marked in red.
    Any pointers?

    Hi,
    create a boolen variable in managed bean and bind with mandatory field.
    <af:inputText>
    required="#{EditDetails.valueReqXX}"
    binding="#{EditDetails.reasonCommentXX}"
    </af:inputText>managed bean code :
    private Boolean valueReqXX;
    private RichInputText reasonCommentXX;
        public void setValueReqFhlmc(Boolean valueReqXX) {
            this.valueReqXX = valueReqXX;
        public Boolean getValueReqXX() {
            return valueReqXX;
        public void setReasonCommentXX(RichInputText reasonCommentXX) {
            this.reasonCommentXX= reasonCommentXX;
        public RichInputText getReasonCommentXX() {
            return reasonCommentXX;
    public String buttonAction()
                    valueReqXX = true;//or false based on logic
                    AdfFacesContext.getCurrentInstance().addPartialTarget(reasonCommentXX);
    return null;
    }~Abhijit
    Edited by: Abhijit Dutta on Oct 20, 2011 6:19 PM
    Edited by: Abhijit Dutta on Oct 20, 2011 7:02 PM

  • How to insert check box fields in a htmlb: tableview

    Hi,
    Can anybody tell me how to insert check box fields in a htmlb: tableview in a sequence of rows in a table view. How to generate the sequence no for the checkbox inorder to know the row that is checked.
    Thanks in advance,
    Aruna.

    Here is the code which has the custom "Checkbox" in the tableview & Triggers the event. <b>You can identify the checkbox based on cell ID (p_cell_id)</b> in the method "IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START" & Based on the event name + Cell ID. Look at the code & let me know if you any issue.
    <b>Layout:</b>
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content id               = "content"
                   design           = "design2002+design2003"
                   controlRendering = "SAP"
                   rtlAutoSwitch    = "true"
                   forceEncode      = "ENABLED" >
      <htmlb:page title="Test " >
        <htmlb:form>
          <%
      data TV_ITERATOR Type Ref To zcl_itr.
      data iterator type ref to IF_HTMLB_TABLEVIEW_ITERATOR.
      create object tv_iterator exporting appl_cons = application.
      iterator = tv_iterator.
          %>
          <htmlb:tableView id              = "fligts"
                           headerText      = "Flight"
                           width           = "100"
                           headerVisible   = "true"
                           design          = "alternating"
                           visibleRowCount = "10"
                           fillUpEmptyRows = "true"
                           showNoMatchText = "true"
                           filter          = "server"
                           sort            = "server"
                           onHeaderClick   = "MyEventHeaderClick"
                           table           = "<%= APPLICATION->itab %>"
                           iterator        = "<%= ITERATOR %>" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    <b>Event Handling:</b>
    DATA: EVENT_ID1 TYPE REF TO IF_HTMLB_DATA.
    EVENT_ID1 = CL_HTMLB_MANAGER=>GET_EVENT_EX( REQUEST ).
    CASE EVENT_ID1->EVENT_SERVER_NAME.
    IF NOT event_id1 IS INITIAL.
       if event_id1->server_event+0(9) = 'chkevent'.
      SPLIT event_id1->server_event AT '-' INTO v_event v_dummy v_row v_col.
      endif.
    endif.
    method IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS.
         CLEAR p_column_definitions.
        CLEAR p_overwrites.
        DATA: tv_column  TYPE TABLEVIEWCONTROL.
        tv_column-COLUMNNAME  = 'FLDATE'.
        tv_column-edit        = 'X'.
        tv_column-sort        = 'X'.
        tv_column-TITLE               = 'Flight Date'.
        tv_column-WIDTH  = '100'.
        APPEND tv_column TO p_column_definitions.
        CLEAR tv_column.
        tv_column-edit        = 'X'.
        tv_column-COLUMNNAME          = 'CONNID'.
        tv_column-TITLE               = 'Conn.ID'.
        tv_column-WIDTH  = '70'.
        tv_column-HORIZONTALALIGNMENT = 'center'.
        APPEND tv_column TO p_column_definitions.
        CLEAR tv_column.
        tv_column-edit        = 'X'.
        tv_column-COLUMNNAME          = 'CHECKBOX1'.
        tv_column-TITLE               = 'Check Box'.
        tv_column-WIDTH  = '30'.
        tv_column-HORIZONTALALIGNMENT = 'center'.
        APPEND tv_column TO p_column_definitions.
    endmethod.
    METHOD IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START.
           DATA: L_EVENT TYPE STRING.
      CASE P_TABLEVIEW_ID.
        WHEN 'fligts'.
          CASE P_COLUMN_KEY.
            WHEN 'CHECKBOX1'.
    *          CONCATENATE 'chk_event' '123' '2323' INTO L_EVENT SEPARATED BY '-' .
    CONCATENATE 'chkevent' p_cell_id INTO l_event SEPARATED BY '-'.
              P_REPLACEMENT_BEE = CL_HTMLB_CHECKBOX=>FACTORY( ID = P_CELL_ID
            ONCLICK = L_EVENT CHECKED = 'false' ).
          ENDCASE.
      ENDCASE.
    ENDMETHOD.
    Hope this will solve your problem.
    <b><i>* Reward each helpful answer.</i></b>
    Raja T
    Message was edited by:
            Raja T

  • Validation to check a field in Purchase Order.

    Dear friends ,
    Could we create an Validation to check a field in tcode ME21N, and this validation must check if field (header) is empty if yes when SAVE send error message"You could not create PO without release strategy , please contact IT area! "
    Rule to check it.
    Tcode ME21N
    if field EKKO-FRGSX or EKKO-FRGKE without value when Saving document so send an error message as discribed above not allowing user to save and create PO.
    Best regards
    Ale

    hi Amams
    check this link
    Adding Fields to Sales order
    i think it may give u some idea
    Regards,
    Naveen

  • Mandatory for Date field

    Hi All,
         I want to display to Mandatory field if date field is blank or null...
    But this code only valiadate ,the Entered date correct or not...
    So how to display the Mandatory date field..
    Please suggest me ...What is the error..
         IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();
              Object attributeValue = wdContext.currentDateFieldsElement().getAttributeValue(fieldName);
              Date theDate =
                   (Date) wdContext.currentDateFieldsElement().getAttributeValue(
                        fieldName);
              IWDAttributeInfo attributeInfo =
                   wdContext.nodeDateFields().getNodeInfo().getAttribute(fieldName);
              Calendar c = Calendar.getInstance();
              c.set(Calendar.HOUR_OF_DAY, 0);
              c.set(Calendar.MINUTE, 0);
              c.set(Calendar.SECOND, 0);
              c.set(Calendar.MILLISECOND, 0);
              Date currentDate = new Date(c.getTimeInMillis());
              if (theDate.before(currentDate)) {
    //       Throw an error message
                msgMgr.reportContextAttributeMessage(
                               wdContext.currentDateFieldsElement(),
                               attributeInfo,
                               IMessageRequisitionForm.MISSING_INPUT,
                               new Object[] { fieldLabel },
                               true);
    Please Tel me ......
    Thanks & regards
    Mathi

    Hi,
    Thanks for ur reply...
    I tel u what i do..
    1.first i set property...(reauired and set th label for)
    2.i code in method take a current date
    IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();
              Object attributeValue =
                   wdContext.currentDateFieldsElement().getAttributeValue(fieldName);
              Date theDate =
                   (Date) wdContext.currentDateFieldsElement().getAttributeValue(
                        fieldName);
              IWDAttributeInfo attributeInfo =
                   wdContext.nodeDateFields().getNodeInfo().getAttribute(fieldName);
              Calendar c = Calendar.getInstance();
              c.set(Calendar.HOUR_OF_DAY, 0);
              c.set(Calendar.MINUTE, 0);
              c.set(Calendar.SECOND, 0);
              c.set(Calendar.MILLISECOND, 0);
              Date currentDate = new Date(c.getTimeInMillis());
              if (theDate instanceof Date) {
              <b>removeLeadingZeroes</b>(
                                  wdContext.currentDateFieldsElement().getAttributeAsText(
                                       fieldName));
                   if (theDate.before(currentDate))
                             //       Throw an error message
                             msgMgr.reportContextAttributeMessage(
                                  wdContext.currentDateFieldsElement(),
                                  attributeInfo,
                                  IMessageRequisitionForm.DATE_IS_IN_PAST,
                                  new Object[] { fieldLabel },
                                  true);
    public java.lang.String <b>removeLeadingZeroes</b>( java.lang.String fieldName )
                  if (fieldName == null)
                   return null;
              int i = 0;
              int n = fieldName.length();
              while (i < n) {
                   if (fieldName.charAt(i) != '0')
                        break;
                   ++i;
              return fieldName.substring(i);
    if could not give removeLeadingZeroes it produced error (runtime exception) (Null pointer exception)..
    My Question is...Mandatory is worked if date is incorrect....
    I want to set mandatory if that field name is null or balnk...
    Please suggest me ....what is my mistake...
    Thanks & regards
    Mathi

  • How do you spell check a field?

    How are people spell checking their fields?
    In searching around, I have only found (a) suggestions to yank the text into MS Word, do a spell check, then yank the resulting text into the field; (b) software from DC AL CODA that we aren't clear how they actually work (http://www.dcalcoda.com).
    Specifically, my manager wants a tool that'll interface with Oracle like this: give a table name and a field name and be asked about each spelling error, much like an email spell check. The tool would change things as you ask, directly in the database. You wouldn't have to cut and paste into it and back to the db fields.
    We aren't using forms. We use SQL*Plus, Quest Software's TOAD, and our own Java servlets (using JDBC to enter SQL statements).
    I would love to hear how people do their spell checking.
    Hopefully this is an appropriate forum for this question. There doesn't seem to be a general or SQL forum. Our database tables include a fair amount of text that shows up on Web pages. These are the fields we want to spell check.

    I thought I'd reply to my own question since I found a workable solution, at least for our office which has MS Windows.
    MS Access can connect directly to an Oracle data source. Access has a spell checking feature where you can select a field and spell check it. Below are tips and instructions for doing this.
    TIPS:
    It's surely a good idea to back up tables and be the only person or process changing those tables during the spell check.
    One thing to watch for is whether the entire table comes in. At the bottom of the screen is a >* button which seems to get all fields. For large tables, you have to hit this button before you get the entire table.
    Another glitch is that all of the given database user's tables show up in one list box -- makes for some painful scrolling, but all of the tables are listed.
    A much smaller glitch is that if you widened any of the fields in the view of the table, when you close the window, it asks if you want to save the formatting. It has nothing to do with saving the data (that is automatic). It's safe to say no.
    The spell check doesn't recognize HTML tags (asks about "br"s from <br> tags) but seems to know to ignore things like &quot;
    How to set up an ODBC Data Source in Windows:
    1. MS Start -> Settings -> Control Panel -> ODBC Data Sources (32 bit)
    2. Drivers tab, scroll down and select Oracle ODBC Driver
    3. OK
    4. User DSN tab, Add...
    5. Select Oracle ODBC Driver and Finish
    6. Make up a data source name (example: src)
    7. Enter a description for it
    8. For Service name, put what your service name is (for an SQL*Plus connection, 'usr/passwd@svc', this is 'svc')
    9. For UserID, put your user id (for an SQL*Plus connection, 'usr/passwd@svc', this is 'usr')
    10. Ignore the rest of the fields, click OK
    11. Another OK.
    How to use Access to Spell Check an ODBC Data Source Field:
    0. Install Access from (MS Office 2000).
    1. Start Access (by the way, you might find it way down the list in Start -> Programs).
    2. Open file, in the file type box, scroll to the end: ODBC Databases. You'll get a dialog.
    3. Machine Data Source tab, select the name you gave it (src in step 6 above)
    4. You'll be prompted for the password (for an SQL*Plus connection, 'usr/passwd@svc', this is 'passwd')
    5. Select from the huge list of every table the table you want. Ok.
    5.a. If the table has no key, you'll be prompted for the unique key from a list of all fields.
    6. Double click the item that has just been added to the dialog that remains on the screen. It'll have a globe next to text like USR_TABLENAME. This brings up a randomly sized first chunk of the table.
    7. To make sure you get the entire table, on the paging buttons on the bottom (|< < > >| >*), click >*. It may take a few moments to get a huge table.
    8. Click the heading of the field (column) you want to spell check). This selects the entire column.
    9. Hit spell check (ABC checkmark tool or Tools -> Spelling)
    10. Check away. The changes are made immediately to the database.
    11. Close the table display window.
    null

  • How to check which fields of a table are changed

    Hi
    I have a FM in which i pass VBAK and VBAP. I store records of table in internal tables and update the values during execution and at the end of this i have to cpmare VBAK and VBAP with internal tables to chcek which field value is changed in both VBAK and VBAP. Its not possible to check all fields bcause there are so many fields in VBAK and VBAP. Can any body help me.
    Thanks and Regards
    Aditya

    Hi,
    Try using where used list.
    click on the field. pree F1. select Technical Info from the pop-up. then from the field data, double click one the field name. it will navigate to the table/structure where the field is used. double click on the field there or
    press CntrlShiftF3.
    It will give you the where used list.
    Pls reward poins if useful.
    Regards,
    Chandru

  • Incoming Payment Check No. field not editable directly

    SBO 2007A, PL 42
    Banking >> Incoming Payments >> Payment Means
    When I am entering an incoming check from a customer, on the Payment Means window, I can't click in the Check No. field and enter data, but if I tab over it to it from the amount field, I can.
    Is this by design or a bug? What's the point of it?

    Hi Cindy
    It works fine on mine .Is that you are having problem when you enter incoming payment at first time or when you are trying to edit .
    It is working fine on mine .I can put check number .
    What patch level you are in ? which SBO version
    Thank you
    Bishal

  • Check number field coming in blank

    I am new to this forum, and I am searching but canu2019t find a solution.
    I have a database, which contains a field called u201CCheck Nou201D, which contains the check numbers as well as type of payment received from a contributor.
    So, if the contributor paid which a check, then the check number is there, but if they paid by money order, pay pal or cash, then those terms are there.
    The problems is when I bring the data into CR, it is only bringing over the check numbers, as number.
    Now, I wrote a formula to convert the numbers to text, but it still is not reading the literal data, u201Cmoney order, pay pal or cashu201D.
    The formula that I wrote is:
    If {2009.CHECK_NO} = 0.00 Then
    "*CASH*"
    Else
    ToText ({2009.CHECK_NO},0,"")
    and believe, it or it works, u2018cause the check numbers come in great.
    I called tech support up and they told me something about marking the field as u201Calphanumericu201D, and to look to the forum for a solution, or else pay $195 per incident for tech support.
    I figure this must be a common occurrence, u2018cause all organizations maintain some type of check register, and there are times, now a days when pays with something other than a check, e.g. wire transfer, debit card, etc.., and if that literal text is in the check number field, Iu2019d like to bring it over as such.
    Thx in advance for answering my question.

    Here is the formula I have in my CR report:
    ToText ({Sheet1_.F3},0,"")
    and here is the result I get:
    Check No     
    4204     
    6008     
    448     
    2079     
    13495     
    1216     
    369     
    320     
    2227     
    231     
    139     
    351     
    524     
    1562     
    402     
    5098     
    1109     
    2240     
    922     
    Where the blank lines are records containing text entries in that field, such as "cash, credit card, paypal".
    My problem is that no matter what I'm trying, the numbers come across fine, but now the literal text isn't.
    I've tried some variation of the formula as follows:
    If IsNull({Sheet1_.F3}) then "" ELSE
    if not(Isnumeric({Sheet1_.F3}))  then ({Sheet1_.F3}) else 1
    As a suggestion from the board, but when I check for errors, I get various errors such as  "string needed" or something else.
    I'm getting lost on this.
    And, I'm sure it is something simple, but I just can't grasp it from the manual or help screen.
    Please help!!

  • Check list field values using LINQ

    I have to check if the CURRENT USER is already in the list USERS by comparing his AccountName to the list field ACCOUNTNAME.
    If the USER is on the list I have to check if the field IsFollower is YES or NO and change it according to some conditions.
    I think LINQ would be the correct way of doing this but I have no clue how to do that.
    Any ideas pls, thanks

    Hi,
    Yes, you can query the list using LINQ.
    You need to get the SPList Object firstly, and then you can query list item value using LINQ.
    More information about how to check list field value using LINQ:
    http://msdn.microsoft.com/en-us/library/office/ee538250(v=office.14).aspx
    http://www.wolfsys.net/query-sharepoint-lists-with-linq/
    http://geekswithblogs.net/TanviBlog/archive/2013/06/06/linq-in-sharepoint-and-querying-list-items.aspx
    More information about how to use Server Object Model in SharePoint lists:
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splist.aspx
    http://msdn.microsoft.com/en-us/library/office/ms456030(v=office.14).aspx
    Best regards

Maybe you are looking for

  • APPLE TV YOUTUBE IS NOT WORKING MANY POST BUT NO SUPPORT FROM APPLE STAFF

    In this forum and in many forums I have read posts regarding YouTube is not working. In my situation I have updated to the latest version of apple tv (2.3). My Leopard is up to date / itunes also. I am sharing internet connection in imac using Airpor

  • HT1414 Message on screen: iPad Not Backed Up. Screen is frozen, cannot shutdown.

    My Ipad is frozen with message on screen: "iPad Not Backed Up". I cannot shut down or swipe the screen to continue. I had just updated the software last week to iOS 6.1. Has anyone encountered this problem?

  • Why are my web browsers constantly freezing?

    Whether it is safari, firefox, camino or seamonkey, after leaving the browser idle for like 5 minutes while reading a page then clicking a link to visit another page the browser freezes and I must use force quit and restart. This is so frustrating, a

  • Are there any metal parts on the outside of the No...

    Hi all. I'm thinking of buying a Nokia 1650, but first I need to know whether or not there are any metal parts on the outside of the phone (for skin allergy reasons). I can't tell from the pictures whether the shiny parts on the front are in fact met

  • How to remove QuickTime Streaming Server

    Hi, I recently installed the QuickTime Broadcaster and the QT Streaming server. Unfortunately I had some problems and I don't want use them anymore. I've already removed the QT Broadcaster but I don't know how to uninstall the Streaming Server. Every