CRM 5.2 webclient -masking input field

Hi all,
i want to know how to mask a input field in Interaction center webclient in crm 5.2.
ex: we have a input field for "telephone" which is 10 digits long, i want to mask it so that it accepts only 7 digits.....
Regards,
chandan
Edited by: chandan rajgopal on Feb 6, 2008 6:00 AM

HI Chandan,
As per my understanding, the field is already available in UI. So the field must be available in the context node. To check it, you use F2 key to find the technical details of that from UI.
So once you know the attribute and context name. Copy the   GETM_XYZ under that context node and rename it to GET_M_<Attribute name> .
Sample code for get_m method is
DATA: attr    TYPE BU_PARTNER.
  DATA: dref    TYPE REF TO data.
  GET REFERENCE OF attr INTO dref.
  metadata ?= if_bsp_model_binding~get_attribute_metadata(
       attribute_ref  = dref
       attribute_path = attribute_path
       name           = 'BP_NUMBER'  "#EC NOTEXT
     COMPONENT      =
       no_getter      = 1 ).
Instead of BU_PARTNER, create another date element which matches with your requirement and use it.
Regards,
Manas.

Similar Messages

  • Adding new input fields in CRM

    Hello All,
    I have the below requirement.
    I have to introduce new input fields in CRM for sales order creatio. These fields are to capture customer PO line item number and customer material number.
    Is there any standard field already available where we can capture this and replicate to ECC?.
    If not please help me on the below things.
    How can i introduce new fields in CRMD_ORDER and map these fields to ECC fields.
    Please help me.
    Regards,
    Shanto Aloor

    Hello,
    I take a look at the table CRMD_ORDERADM_I and I see that there are two fields for the item number.
    - number_int - Internal position number
    - number_ext - external position number
    Maybe you can use the field number_ext for you customer line number
    For the field customer material number I found the fields:
    ORDERED_PROD - CRM product number and
    PARTNER_PROD - Product number of the business partner
    As well i am not sure, but maybe you can use the field PARTNER_PROD for the customer material number. If this is not working you can enhance the position fields on two ways:
    If this is not working you can enhance the position data:
    (1) Old way using easy enhancement Werkbench
    You can use the transaction AET to generate new fields at the position. On this ocasion you should enhance the CRMD_CUSTOMER_I database table.
    (2) New way using application enhancement workbench
    The AET can be used at the webclient ui. Here you can easily generate new fields for the order. Please use the expert mode, because there you can define the fieldname at the database. Here you enhance the table CRMD_CUSTOMER_I, too.
    For the replication you have to take a look at the BADI CRM_DATAEXCHG_BADI. You can use the method CRM_DATAEXCH_AFTER_BAPI_FILL to fill the bapi structures with your new fields and send it to the ECC.
    Greetings

  • How to add an input field in the web UI of CRM 2007

    Hi everybody.
    I want add an Input field in the Web UI Screen. How it is possible.
    I want get the information with detailed descriptions if possible with screen shorts.
    What type of methods it will be generated and what are the code we entered in those methods.
    Take according to any example. But with detailed description.
    I am new for the CRM 2007. So, please give the screen shorts with proper data.
    Not only adding the field. If any data i entered in the adding field then that will be stored in the tables otherwise no use by adding the field.
    So, Can anybody please send a proper information according to this.
    Here another one How to Add our own table (Ztable) field in the Web UI Screen.
    How to add the same field in the BOL.
    Please expalin about those concepts with full of screen shorts messages.
    Thank You.
    Regards,
    Krishna.

    If you want to add extra standard fields (like one you mentioned), you can use Component Workbench and Copy the configuration and create your own configuration and make the "Available Fields" appear there.
    If the standrd field is not available, you can Add Context Node using wizard and make it visible.
    If its a custom field (a new one); you will have to use EEWB and add the fields and then make it visible in the UI using Component Workbench.
    Regards,
    Alin

  • How to Add Input Field in IC Webclient

    Dear Experts,
           I want to add one Input field in Interaction Center Webclient(IC Webclient).Is it Possible?If Possible Kindly Send me the Step by step Procedure.
    It is Urgent Requirement.Please Help me.
    Helpful Answers Will be rewarded.
    Regards,
    Ashok.

    Dear Albert,
      I have read the Blog "IC Web Client - Modifying View Layout - I".I am realy Impressed.I got the similar kind of requirement from my Client.In this Blog they are not clearly Explained about Adding the functionality for that Input Field.
         could you Please Explain me about how to add the functionality For that input Field.It is Very Urgent.Please Help me.
    Thanks & Regards,
    Ashok.

  • How to mask and format an input field at the same time?

    Dear Experts,
    I need to have an input field, which has the following behavior:
    1. The input field accepts only number, i.e. characters other than number are ignored (not displayed on the text field).
    2. The number is automatically formatted to ###,###,### as the user enter the number.
    Example as the user enter 1-2-3-4-5-6-7, the sequence of number displayed in the text field is:
    1
    12
    123
    1,234
    12,345
    123,456
    1,234,567
    I have done the following:
    import java.awt.*;
    import javax.swing.*;
    import java.text.*;
    import javax.swing.text.*;
    class FormattedTFDemo {
         NumberFormat cf;
         JLabel jlab;
         JFormattedTextField jftfSalary;
         JFormattedTextField jftfEmpID;
         JButton jbtnShow;
         public FormattedTFDemo() {
              JFrame jfrm = new JFrame("JFormattedTextField");
              jfrm.getContentPane().setLayout(new FlowLayout());
              jfrm.setSize(240, 270);
              jfrm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              try {
                   MaskFormatter mf = new MaskFormatter("###,###,###");
                   jftfEmpID = new JFormattedTextField(mf);
              } catch (ParseException exc){
                   System.out.println("Invalid Format");
                   return;
              jftfEmpID.setColumns(15);
              cf = new DecimalFormat("###,###,###");
              jftfSalary = new JFormattedTextField(cf);
              jftfSalary.setColumns(15);
              jftfSalary.setValue(new Integer(7000));
              jfrm.getContentPane().add(new JLabel("First field"));
              jfrm.getContentPane().add(jftfEmpID);
              jfrm.getContentPane().add(new JLabel("Second field"));
              jfrm.getContentPane().add(jftfSalary);
              jfrm.setVisible(true);
         public static void main(String[] args) {
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        new FormattedTFDemo();
    }The "First field" adopts no. 1 behavior, i.e. it does not allow any character other than numbers, but the "," are always displayed and the number displayed as I enter 1-2-3-4-5-6-7 are:
    1 , ,
    12 , ,
    123, ,
    123,4 ,
    123,45 ,
    123,456,
    123,456,7
    which is not according to behavior no. 2
    The "Second field" displayed 1,234,567 only after the focus left the text field and not while typing. Moreover, characters other than number can still be displayed and only rejected after the focus left the text field.
    I need a guide of what text field and what filter / format / mask I should use. Am I correct to use JFormattedTextField? Is the only way to accomplish this by using JTextField and create my own PlainDocument for the textfield, where
    I rebuild the displayed output after each character is entered?
    Thanks for any advice,
    Patrick

    So exactly what do you want the user to put in? and what do you want to see?
    I need to have an input field, which has the following behavior:
    1. The input field accepts only number, i.e. characters other than number are ignored (not displayed on the text field).
    2. The number is automatically formatted to ###,###,### as the user enter the number.
    Example as the user enter 1-2-3-4-5-6-7, the sequence of number displayed in the text field is:
    1
    12
    123
    1,234
    12,345
    123,456
    1,234,567The user should type only numbers and when he types other than numbers, the field ignore it.
    What I want to see, as the user, for example, types 1-2-3-4-5-t-6-7 is:
    1
    12
    123
    1,234
    12,345
    <beep / ignore> (because t is invalid)
    123,456
    1,234,567
    Thus, I need a guide of what swing components should I use to accomplish this task. If you can give me the code, that will be perfect.
    Hope you can advise me,
    Patrick

  • How to set mask in web dynpro input fields

    i am looking for how to set mask in web dynpro input fields.
    Please suggest

    Argha,
    As Maksim suggested, read my weblog -- it is an exact answer for such "masking" (/people/valery.silaev/blog/2005/11/29/800format-your-way)
    Next, you may not add custom js files to WebDynpro and change the way WD processes client input, so there is no way to force user to type only digits and to insert hyphens automatically.
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • Assign a value from dropdownlist to input field value on BSP page

    Hi,
    I'm new to SAP and ABAP. We have a CRM project in which I have to maintain BSP pages.
    Now, coming to my problem: I have a input field with
    value = "//BTAdminH/HeaderInfo"
    This field is normally maintainable. The required function is now to set this field as not maintainable/readonly. Then, the value should be set automatically to an value, which will be selected from a dropdownListBox. After saving, the value HeaderInfo should have the same value like the selected value from the dropdownListBox.
    How can I now set the field as readonly (this should be the easier part) and
    how can I set the value for the HeaderInfo to the value of the selected value from the dropdownListBox?
    If I set it directly like this
    value = "//BTActivity/Priority"
    it is shown on the BSP page correclty, but it is not saved as HeaderInfo.
    Please help me.
    Enja

    Hello Gokul,
    test was only for test purposes! I am using as a separator the plus sign!
    But this is not the problem!
    In debugging, the local variable has the concatenated value! So, this is working!
    oncatenate ls_ddlb1-value ls_ddlb2-value ls_ddlb3-value into lv_headerinfo SEPARATED BY ' + '.
    But when I assign the value of my set_headerinfo to the local variable, then it is returning only the separator sign!!!
    if BTAdminH->GET_HEADERINFO( 'HEADERINFO' ) is initial.
        BTAdminH->SET_HEADERINFO( attribute_path = 'HEADERINFO' value = lv_headerinfo ).
      endif.
    If I declare the local variable as one of the dropdown values, then it is getting populated also for set_headerinfo
    lv_headerinfo  =ls_ddlb1-value.
    So, the assigning is also working! But it is not working, when the local variable equals more than one value! I hope that I could explained it in the right way for you!!!!
    So. why is the value for set_headerinfo not the same as the one for the local variable! The local variable has the correct value after the concatination.
    Regards
    Enja

  • How to map a context attribute to an input field

    Hi,
    I am new to CRM 2007 UI.I have a table control view on my screen and records are filled in this table when an user enters a value in an input field and presses enter.My bsp page looks something like this.
    <%@page language="abap" %>
    <%@extension name="chtmlb" prefix="chtmlb" %>
    <%@extension name="thtmlb" prefix="thtmlb" %>
    <%@extension name="uhtmlb" prefix="uhtmlb" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <%@extension name="xhtmlb" prefix="xhtmlb" %>
    <%@extension name="crm_bsp_ic" prefix="crmic" %>
    <%@extension name="bsp" prefix="bsp" %>
    <%
      DATA lv_xml TYPE string.
      lv_xml = controller->configuration_descr->get_config_data( ).
    %>
    <thtmlb:grid cellSpacing = "1"
                 columnSize  = "1"
                 height      = "100%"
                 rowSize     = "2"
                 width       = "100%" >
      <thtmlb:gridCell colSpan     = "1"
                       columnIndex = "1"
                       rowIndex    = "1"
                       rowSpan     = "1" >
        <thtmlb:label id   = "NAMELABEL"
                      for  = "NAMEINF"
                      text = "Enter a name" />
        <thtmlb:inputField          id                = "NAMEINF"
                                disabled          = "FALSE"
                                tooltip           = "Enter a name to see all records"
                                submitOnEnter     = "X"/>  </thtmlb:gridCell>
      <thtmlb:gridCell colSpan     = "1"
                       columnIndex = "1"
                       rowIndex    = "2"
                       rowSpan     = "1" >
        <chtmlb:configTable id              = "PaymentTable"
                            table           = "//HeaderData/Table"
                            xml             = "<%= lv_xml %>"
                            selectedRowIndex      = "<%= HeaderData->SELECTED_INDEX %>"
                            fillUpEmptyRows = "FALSE" />
      </thtmlb:gridCell>
    </thtmlb:grid>
    The problem is that I want to map this input field to my context attribute.I am from Webdynpro background and ther its pretty easy :)....
    Any suggestions will be helpful.
    Thanks
    Sourav

    Hi,
    you should add the context attribute to the html page itself, or another way of doing it is to implement the set_model method of the view controller.
    On the view controller you can find a lot of usefull attributes like the view manager which can help you understand the bsp framework
    Best regards,
    Erika

  • Convert Input Field in Picking List in the WEB UI interface

    Hi, Experts
    I´ve used the EEWB to create a new field (like a select-option) in the business transaction of opportunity in the new tab "Customer Fields". I´ve included it as a WEB UI, transaction BSP_WD_CMPWB.
    Using the transaction CRMD_ORDER the field appear as I want it. However in the WEB UI the field appears like a simple Input Field. I need to change the field´s type to Picking List, I imagine.
    But I don´t have idea how can I do it.
    Can anyone help me?
    tnks in advanced.

    Doug,
    Honestly the steps are pretty basic assuming you have an enhancement set setup in your client.  If not create one in table BSPWDV_EHSET_DEF and then assign it in view: BSPWDV_EHSET_ASG.
    1.  Find the name of the component and view that you need to enhance by hitting F2 on the screen in question.
    2.  In the SAP GUI go to transaction BSP_WD_CMPWB
    3.  Display the component that you want to enhance
    4.  Hit the enhance component button on display view of the screen
    5.  When prompted for a storage location name it Z<component_name>
    6.  Keep the repository.xml the same
    7.  Now that it is enhanced.. you see the screen as component xxxx enhancement set xxxx, you can right click on the view name in the tree and choose the enhance option.
    8.  Step through the screens to put in a transport request and then it should be ready to go.
    My blog here shows the basic steps:
    /people/stephen.johannes/blog/2008/01/25/crm-40-to-52-customerh-fields
    Keep in mind since you already have the field generated you don't have to do much else.
    Take care,
    Stephen
    Edited by: Stephen Johannes on Feb 12, 2009 11:20 AM

  • Compound date (dd.MM.yyyy HH:mm) from two input fields

    Hi,
    I need to compound a date field in format dd.MM.yyyy HH:mm from two input fields(date and time field). I was trying a lot but could not get it to work. So right now I'm trying to start it simple but still have a couple of problems.
    1.) To start easy I wanted to fill a hardcoded date into my field.
    setAttribute(MYDATE, "01.01.2005 12:10");
    brings (java.lang.IllegalArgumentException) Timestamp format must be yyyy-mm-dd hh:mm:ss.fffffffff
    2.) setAttributeInternal(MYDATE, "01.01.2005 12:10");
    brings JBO-27018: AttrSetValException Cause: The type of attribute value provided as an argument to the set() method for this attribute is not an instance of the Java type that this attribute expects.
    3.) The thing that I reall need is something like:
    DateFormat sim = new SimpleDateFormat("dd.MM.yyyy HH:mm");
    java.util.Date datum = new java.util.Date();
    try
    datum = sim.parse("01.01.2005 12:30");
    } catch (ParseException e)
    setAttributeInternal(MYDATE, datum);
    but right now this also ends with the JBO-27018
    I also did try different types (timestamp and date) in my entity object and different format masks. Not working at all. All the threads I found are pointing to articles from Steve, which are not available anymore (the links don't work). So any help is appreciated.
    Regards, Peter

    Thankyou for the hint. I get it to work with
    public void whatever
    DateFormat simple = new SimpleDateFormat("dd.MM.yyyy HH:mm");
    java.util.Date javaDate = new java.util.Date();
    try
    javaDate = simple.parse("01.01.2005 12:30");
    } catch (ParseException e)
    java.sql.Timestamp sqlDate = new java.sql.Timestamp(javaDate.getTime());
    oracle.jbo.domain.Date nowDate = new oracle.jbo.domain.Date(sqlDate);
    setAttributeInternal(MYDATE, nowDate);
    but is there an easier and more 'beautiful' way to do this? Like using a date formatter on oracle.jbo.domain.Date instead using the SimpleDateFormat? btw. did I mention that I'm a Forms and PL/SQL programmer ;-)
    Regards, Peter

  • Simulate FileUpload via HTTP Plain Adapter (input field type = file)

    Our Partner would like to get the payload via html input parameter with type=file.
    The Szenario:
    The payload is generatet in one CRM System as an individual structure. We send the payload via proxy to the integration enginge. Is it possible to simulate the fileupload technology of a simple html form with input field with type=file.
    Any idea is helpfull. Thanks!

    Hi Stefan,
    thank you for the tipps. I know about epilog parameters of plain http adapter and i. e. xslt mappings.
    I don' t know how the simple html upload works and if it is possible to build multipart upload?
    Manualy upload is resolvable with
    <HTML>
         <HEAD>
              <TITLE>Upload</TITLE>
         </HEAD>
         <BODY>
              <FORM ACTION="/cgi-sample/upload.pl" METHOD="post"
                                                ENCTYPE="multipart/form-data">
                         File: <INPUT TYPE="file" NAME="file"><BR>
                                   <INPUT TYPE="submit">
              </FORM>
         </BODY>
    </HTML>
    Meanwhile, we have solved the problem with a simple xslt mapping for plain html on the receiver side.
    Kind regards
    Jochen

  • Masking SSN field

    Hi,
    I have a requirement to mask SSN field on PA20 and PA30 transactions. I am aware of making changes in V_T588M to mask fields at the infotype level. I have got it done. However I do not know how to replicate the same at PA20 and PA30 transaction levels.
    Any thoughts as how to about it shall be helpful.
    Thanks in advance,
    VG

    Hi ,
    SSN field will be there for some specifc countries . Ex india dosent have a SSN field in IT0002.
    Your requirement will be for some specific countries where SSN is present and u need to mask it like USA ..
    // have a requirement to mask SSN field on PA20 and PA30 transactions.
    PA20 is display mode then i dont suppose u need to code for this . Just check if thisis on PA40 tcode.
    For PA30 if this is for set of countries then include ZXPADU02 is ok for PBO . If this is for a specific country like USA then you will have to handle the code for that particulare country in that screen no  like 2010 of MP000200.
    Loop at screen .
    if condition.
    screen-input =  '0'.
    modify screen.
    endif.
    endloop
    br,
    Vijay.

  • Input field Usages

    Hi Forum,
    I am new to CRM. the crm system has large no of fields used to capture data. It would be nice to know the meaning of all the fields and the data that goes in them.
    I wish to do a detailed study of every field but was wondering whether any of you guys/ girls have done such an exercise, then I would not have to spend mroe time on it.
    If so, can someone send me the details. I'm wish to know the input fields at user level. i.e. master data and transactions.
    Thanks in adv...
    [email protected]

    Pramod,
    A few years back when i started my journey in SAP CRM, I too was shocked to see a large no of fields in the system. This gives an indication of how much effort has gone into creation of such a system which helps capture tonnes of information. Hats off to SAP.
    I too searched and queried sdn in the quest of details of every field but all in vain. Well, guess wat you are not unlucky (as I was a few years back). Since I dint find any doc, I decided to do the job myself.
    And finally after 33 long working nights (while on support project ) I managed to complete the doc. The doc contains input field description and usage for BP, PM, Org. Management, and transactions(lead, oppty, sales order) and activities.
    I will send you the same... I have used CRM4.0...
    Your reward points will be the fruit of my efforts...so please do acknowledge by doing the needful... (ofcourse only if you find the doc useful)

  • Input Field Disabled in WEB UI

    Hi,
    I am new to CRM WEB UI.
    I have created Z Component and in that I have created controller and Views and model.
    I have also added all the views and models to Runtime repository.
    Created buttons for navigation which are working fine...
    I have added some fields in view via view Configuration but all the input fields are coming as disabled when I test the application.

    Hi ,
    Thanks,  S Reddy for this Post , My issue had solved.
    Thanks & Regard.
    Pappu Kumar Mehta.

  • Valitions on screen input field

    HI Experts,
                    I have simple report that shows 5 column. 1 Qty coloum is for input from user.
    write: itab-menge INPUT ON USING EDIT MASK ''.
    Before saving data how can I make validations on this field so that user can enter only Number without decimals.
    HOw I activate & link the SAVE button to my report so that user can save records by clicking it.
    Plz help its Urgent.
    Thanks.
    Khan.

    HI RAMESH,
                     First I fetch the data from ztable into itab. Then I show itab records on screen. one of the column (qty) shows as input fields. all the qty cells that has values are in disable mode. user can enter only new values. for reading the screen fields I used:
    READ LINE line_num FIELD VALUE ITAB-menge.
    put the value in itab after that validation part happens and then save it to DB.
    If validation shows error at any row, it shows error message. Then user has to correct the value on screen field that is currently not in itab. internally Loop again starts & read the screen fields and this time it find space not the new value. Below is my code:
    AT LINE-SELECTION.
      IF sy-lisel = '**** SAVE ****'.
        LOOP AT ITAB.
        line_num = 11 + N.
        IF ITAB-CHECK NE 'X'.
          READ LINE line_num FIELD VALUE ITAB-WERKS ITAB-MONTH ITAB-MATNR ITAB-MAKTX ITAB-MENGE ITAB-MEINS.
              IF ITAB-MENGE NE SPACE.
                IF ITAB-MENGE CO '0123456789'.
                    ZFORDATA-WERKS = ITAB-WERKS.
                    ZFORDATA-ZMONTH = ITAB-MONTH.
                    ZFORDATA-ZYEAR = ITAB-YEAR.
                    ZFORDATA-MATNR = ITAB-MATNR.
                    ZFORDATA-MAKTX = ITAB-MAKTX.
                    ZFORDATA-PQTY = ITAB-MENGE.
                    ZFORDATA-MEINS = ITAB-MEINS.
                    SELECT SINGLE * FROM ZFORDATA WHERE WERKS = ITAB-WERKS AND ZMONTH = ITAB-MONTH AND ZYEAR = ITAB-YEAR
                                                                AND MATNR EQ ITAB-MATNR.
                    IF SY-SUBRC = 0.
                    ELSE.
                      INSERT ZFORDATA.
                      XMSG = 'X'.
                    ENDIF.
                ELSE.
                    MESSAGE E013(ZMSG) WITH ITAB-MENGE.
               ENDIF.
             ENDIF.
         ENDIF.
         N = N + 2.
        ENDLOOP.
    Thanks.
    Khan

Maybe you are looking for

  • RE: [iPlanet-JATO] Parse error in JSP parser in IAS6

    Hi Todd, removing the defaultValue="" attribute works. I have not got around to testing the SP3. BTW. The reason the default value tag was added was to stop Null pointer exceptions being thrown in the HrefTag.beginDisplay(). buffer.append("?") .appen

  • How can I call a public function in one component from another component?

    I have two components: Form and Confirmation.  Form is a Canvas and Confirmation is a TitleWindow. Form contains several controls and a submit button.  Confirmation contains an OK button.  When the user clicks the submit button, the Confirmation appe

  • SOAP receiver adapter error

    Hi all. I have create a FM ZRFC_FILENUMBER on R/3 side. Then i created webservice in the R/3 itself for this RFC. It gave me WSDL file. I have loaded this WSDL file in XI external definitions. In the receiver adpater configuration i am using the URL

  • Unsolicited Remote Desktop Connection

    A large number of users on my SBS2008 domain receive the following message at frequent intervals "computername\admin wants to connect to this machine.Click OK to disconnect your session immediately or click cancel to stay connected.Otherwise you will

  • Why does Premier Pro CC crash so often?

    I just bought a kickass PC to edit a documentary and Premier Pro CC keeps crashing at least once a day. Now my computer has crashed all together! My PC configuration: 16 GB RAM 2 TB hard disk 3.9 GH processor 2GB Video Ram (NVIDIA) Windows 8 Adobe's