Length of Input field in PCUI ???

Hello Expert,
Is there anyway to change the length of input field ?
I created a input field of lenght 1 in GUI. and added this field PCUI also. In pcui this field is accepting only one char but the field visiable on screen is too long for a single char.I want to change this visiable length of the field on the screen.
Please Guide me!!!
Thanks
Amit

Thanks Thirumala for ur reply
Dear visiable length is not taken from DDIC structure field
length, that also control length of input value.
Visiable length is controled by layout Algo. only this much i know.How can we change that, No idea.
Thanks
Amit

Similar Messages

  • How to restrict the length of input field

    Hi,
    How to restrict the length of input field. That is we should not be able to enter more thatn 10 charecters.
    Regards,
    H.V.Swathi

    Hi swathi,
    For this you have to create a simple data type. No need of writing a code.
    Go to Dictionaries -> Local Dictionary -> Data Type - > Simple Type - > Right click and "Create Simple Type".
    Here you should create a Simple type with String as built-in Type. Here you will also see the Length Constraints option.
    Set the value of maximum length and minimum length. In your case set the value of maximum length to 10. At runtime this will not allow the user to enter more than 10 characters.
    Now create an attribute and bind it to this newly created simple type. Bind the value of the input field with this particular attribute.
    Regards
    Manohar

  • Restricting max lenfth in Input field

    Hi,
    I have use BW standard Object and this is binded to my Input field. Since BW Object is of length 60, Input field in Web Dynpro is allowing me to enter 60 Character. I want to restrict the input field to 40 so that user can not enter more than 40 character.
    Is there any possiblity to restrict input field without changing binding elemnt.
    Thanks
    Abhishek

    Other option is restrict the no of characters entered by user by binding it with context attribute of char40.
    OR 
    you could even avoid the OnEnter event of Input field if you have some more UI fields in your layout i.e.
    If you have a dropdown or a button to naviagate to other screen, then you could check there also.
    If there is no other UI, Try writing the code in wddomodify, but please be aware that wddomodify is called on evry event.
    So if you are writing code to restrict no of characters to 40 in wddomodify, write it with a conditon like :
    if lv_input is not initial.
    <  check the no of char and throw erro.>
    endif.
    lv_input has the value of input field which you could read by code wizard i.e control + F7.

  • OVS: Input Field length?

    Hi,
    I have an OVS that is using a BAPI. This BAPI has a field for email with type AD_SMTPADR - length 241 Characters.
    When I create an OVS with that the Input Field for search shown has length 241 which is way to big. Any chance to adjust that? I tried to manually adjust the generated type in web Dynpro field external representation, but with no success. Where does the OVS take the length of the input field from?
    Any official way to do that? Other then changing BAPI Type or implementing view etc. on my own?
    Thx in advance,
    Frank

    The problem is not the input field to whom I bound the OVS... The problem is the search field I have in the OVS itself.
    I have the personal number as OVS result, but I want the user to search for email, surname and lastname. The email Input field is 241 characters big, which is way TOO big. Looks very ugly.
    For now I changed the type in ABAP but this is not very satisfying. I just read about OVSConfigurator in 7.11 but I'm in 7.10. If the UI of the OVS can not be changed, it is pretty useless in my opinion...
    Thx anyway,
    Frank

  • How to compare text field length with the length of input characers

    I hae a problem with the length of text field
    I want to fix the length of TextField by taking the length of attribute to, whihc i have to use in text field
    Like i have set the max length of Attribut to 10 and set the length of textfield also 10.
    But the problem is that if i enter 10 'i' it dosn't fill even half the space in TextField
    And opposit if i enter 10 'W'
    I wonder if there is a solution for this problem
    i ma using True Type of Font

    * paint method in your own class that extends Canvas
    * @param g where to paint e.g. printer, screen, ram
    public void paint (Graphics g)
    // display word "today" centred at x,y
    FontMetrics fm = getFontMetrics( g.getFont( ) );
    String wording = "today" ;
    int xadj = fm.stringWidth( wording )/ 2;
    // position bottom left corner of the text
    g.drawString(wording , x-xadj, y );
    // draw a red line from x1,y1 to x2,y2
    g.setColor( Color .red );
    g.drawLine( x1 , y1, x2, y2);
    // draw an pre-existing Image. imX,imY is top left corner of the Image.
    g.drawImage ( image , imX, imY , imWidth, imHeight , this);
    } //end paint

  • Problem with increasing input field length in module pool programming.

    Hi All,
    I have created a screen in which i have used table control wizard. In my table control I have an input field. The problem is, this input filed only takes 23 inputs at a time. I need to make this field unfixed. This is an quantity field. I am not understanding why this is happening. Can anybody plz help me in this regard ?
    Thanks in advance.
    Tripod.

    HI Tripod  ,
    YOu can add  Lines to Table control  .
    Add one button  by name ADD LINES  : give func code 'ADD'
    IN PBO  ...
    if it_mat[] is not initial .
        describe table it_mat lines ln  .
        tab_ctrl-lines = ln .
      endif.
    case sy-ucomm .
    when  'ADD' .
          perform add_lines .
    endcase  .
    form add_lines .
      ln  = ln + 1 .
      clear it_mat .
      append initial line to it_mat .
    endform .
    regards
    deepak.

  • Restrict Input Field For Fix Length

    I want to restrict the input field to 10 chars.
    Both JTextField + PlaintDocument or JFormattedTexTField + MaskFormatter can do that.
    So, I want to know which one is much better.
    Thank you!

    I, personally, prefer the approach via PlainDocument. The thing about JFormattedTextField is that it's giving a pretty bad user feedback as it allows entering the text and then rejects it when losing focus. With subclassing PlainDocument you ensure the user won't enter more than 10 characters in the first place.

  • Creation of Dropdown "custom" field in PCUI

    Hello
    I have created a new field through EEWB and want to place it in both form view and list view of Accounts transaction (crmm_account) in PCUI. This field should be come as a drop down field and should have specific values to be picked from the domain associated with its data element.
    Problem is
    1. When I converted it into a drop down field through Blueprint tables, it is showing properly in form view but "not" in list view. In list view It creates a "drop down list" but without any option values.
    2. If I dont create a dropdown field then it gets displayed as a Input Field with "F4" option list. However, it lets a user enter ANY value in the Input field. (Ideally it should allow user to put only the values being shown in F4 options list like Country Field)
    Any input to resolve the issue is welcome.
    Regards

    Mani,
    You may want to look at IMG and check your entries for the respective fields.
    If you dont want users to enter any value, check and mark the respective control attributes for those fields.
    Hope that helps.
    Bala Nair

  • Limitation on the number of characters in an input field

    Hi All,
    We are on EP 7.0 SP12.
    When I select an input field/text editor and map it to a field in a BAPI it truncates the value to 80 characters and thus I get the truncated value in the result.
    When I pass a value larger than 80 characters in length while doing test data service, it works fine and I face this issue only while passing the data from the screen. Is this a bug in VC? Or if any one has a solution to this?
    Regards,
    Murtuza

    Hi Ganesh,
    Following are the Answers regaring your queries:
    Query : 1
    There is no limitation on the number of components (objects, classes, tables, joins, hierarchies, lov's, etc) in a universe. But of course as the number of components increases, you could run into problems  related to performance.
    This depends on available RAM and the processing speed.
    Query 2:
    There is NO such option to select the number of table to be automatically inserted in to the universe because Suppose if you have 22000 tables in DB and you want only 1000 table ,you entered 1000 tables as the value to insert tables in Universe then How Designer will come to know which tables you want to take in Schema to build the Universe?
    It all depends on the DBA and Universe Designer which tables are important for organizations reporting needs.
    When you  create connection to the DB then Connection will fetch all table from the database and we canu2019t limit  DB data retrieval.
    I hope this Helps...
    Thanks...
    Pratik

  • Disable an Input field with the help of a radio button selection.

    Hi Guys,
    I know it is a very basic question and also has many threads for the mentioned query. None of the threads gave me a real clue about the problem. It is as follows:
    Simply, I have an input field and there are two more radio buttons on the screen, say rd1, and rd2.
    Initially Rb_gtgr is active and input field is blank and disabled, and when i select Rb_selgr, input field should be active and mandatory. It means when i try to execute the code with out entering any value after it is enabled, an error message should appear. For this the code is as follows:
    AT SELECTION-SCREEN OUTPUT.
      PERFORM screen_grace_on.
    AT SELECTION-SCREEN ON p_grace.
      PERFORM check_grace_days.
    FORM screen_grace_on .
      DATA: l_v_grace TYPE char2.
      CONSTANTS: l_c_grace TYPE char7 VALUE 'P_GRACE'.
    l_v_grace = p_grace.
    CLEAR p_grace.
      IF rb_selgr EQ c_x.
        LOOP AT SCREEN.
          IF screen-group1 = 'ABC'.
            screen-required = 1.
           screen-active = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          IF screen-group1 = 'ABC'.
            screen-input = 0.
            screen-active = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " SCREEN_GRACE_ON
    FORM check_grace_days.
      IF rb_selgr EQ c_x AND  p_grace EQ 0.
        PERFORM screen_grace_on.
        MESSAGE e492(/ams/ramfcmess1).          " Enter the number of Grace days
      ELSEIF rb_selgr EQ c_x AND p_grace GE 0.
        PERFORM screen_grace_on.
      ENDIF.
    ENDFORM.
    Ideally this code should work since in the PBO i.e., At selection screen output i am enabling the fields, and also when i select the second radio button i am also checking for the value too..
    I am working on 4.7 version of SAP. The Most interesting observation is it works fine for few variants, and not with others.
    Thank you

    Hi,
    Go through this following code,
    selection-screen begin of block B2 with frame title TEXT-005.
    selection-screen begin of line.
    parameters:     P_BIRPT type C radiobutton group RAD1 default 'X' user-command UCOMM.
    selection-screen comment 3(20) TEXT-002 for field P_BIRPT.
    selection-screen end of line.
    selection-screen begin of line.
    parameters:     P_COLRPT type C radiobutton group RAD1.
    selection-screen comment 3(20) TEXT-003 for field P_COLRPT.
    selection-screen end of line.
    selection-screen begin of line.
    parameters:     P_PAYRPT type C radiobutton group RAD1.
    selection-screen comment 3(20) TEXT-004 for field P_PAYRPT.
    selection-screen end of line.
    selection-screen end   of block B2.
    selection-screen begin of block B1 with frame title TEXT-001.
    select-options: SO_KTOKD for  KNA1-KTOKD modif id M4,
              SO_BLART for  BSIS-BLART modif id M2.
    parameters:     P_PAID   type ZCLEAR     modif id M3 as listbox visible length 20.
    selection-screen end   of block B1.
    at selection-screen output.
      loop at screen.
        if P_BIRPT eq 'X'.
          if SCREEN-GROUP1   = 'M2' or SCREEN-GROUP1 = 'M3' .
            SCREEN-INVISIBLE = '1'.
            SCREEN-ACTIVE    = '0'.
            modify screen.
          endif.
        elseif P_COLRPT eq 'X'.
          if SCREEN-GROUP1   = 'M3'.
            SCREEN-INVISIBLE = '1'.
            SCREEN-ACTIVE    = '0'.
            modify screen.
          endif.
        elseif P_PAYRPT eq 'X'.
          if SCREEN-GROUP1   = 'M2'.
            SCREEN-INVISIBLE = '1'.
            SCREEN-ACTIVE    = '0'.
            modify screen.
          endif.
          if SCREEN-GROUP1   = 'M4'.
            SCREEN-INVISIBLE = '1'.
            SCREEN-ACTIVE    = '0'.
            modify screen.
          endif.
        endif.
      endloop.
    Thanks
    Anil D

  • Disable a button under certain circumstances and disable input fields

    Scenario: My user receives a PDF (dymanic XML) where they fill in fields and click a Submit button to send the data to the server. They receive a confirmation copy of the form back. In our older version of Livecycle, the confirmation form was locked down - no fields were editable, the Submit button was disabled. We still need the ability to not input/change any data on the confirmation copy and not be able to click the Submit button. Under ES4, everything started out editable.
    On the confirmation copy, there are messages that I check. When those messages are present I would like to hide the buttons (optimal solution) or at the very least, disable them so the user cannot resubmit the form again.
    I've managed to put Javascript in place to lock down all input fields, I just can't get the script to work to hide the buttons. I'm beginning to wonder if the script to lock down all input fields is causing the scripts to hide the buttons to not work.
    Sample code to disable editing of input fields:
    - had to provide this code at the table level so that when a table flows to a second page, the fields are locked. When I put it at the page level or top level of the hierarchy, it only worked on the one page when I need it to cover fields that have flowed on to a second page. Even at the table level, there are still some tables that remain open until a change is made, then the fields on the second page become locked.
    - when this is entered at the subform level, second page of the subform is modifiable
    rfqHeader.rfqHeader.IssuerInfo::ready:layout - (JavaScript, client)
    if (rfqHeader.rfqMessages.Message.rawValue != null)
    // Get the field containers from each page.
    for (var nPageCount = 0; nPageCount < xfa.host.numPages; nPageCount++)
    var oFields = xfa.layout.pageContent(nPageCount, "field");
    var nNodesLength = oFields.length;
    // Set the field property.
    for (var nNodeCount = 0; nNodeCount < nNodesLength; nNodeCount++)
    oFields.item(nNodeCount).access = "readOnly";
    Sample code to make the button hidden:
    rfqHeader.rfqFooter.button.SubmitButton::initialize - (JavaScript, client)
    if (rfqMessages.Message.rawValue != null)
    this.presence = "hidden" ;
    Any help and suggestions would be welcome!
    Thanks, Josie.

    Hi Josie,
    I think, for what you are trying to do, you must be in the doc:ready to be able to do this.
    All because the doc:ready is the last event to be fired when a form is reopen...
    rfqHeader.rfqFooter.button.SubmitButton::docReady - (JavaScript, client)
    if (rfqMessages.Message.rawValue ! = null)
    this.presence = "hidden" ;

  • How to restrict number of character to be entered in an input field??????

    Hi All,
    I am using the tab phtmlb:formLayoutInputField to define an input field. I need to restrict the end user from entering a maximum of 70 characters(can be any character/number) in the textbox.
    I'll explain in another sentence:::: the end user should be able to enter only 70 characters in the textbox and 71st character should not be allowed to enter. Could anyone please suggest as to how I can achieve this?
    Thanks a lot in advance,
    Best Regards,
    Varun

    Hi,
    We can limit the length of an inputfield by mentioning the maxlength properties of an inputfield.
       <htmlb:inputField   id= "get"
    maxlength="6" />
    This restricts the
    Hope this helps you.
    Regards,
    Rajani

  • "F4" search-help for custom field in PCUI

    Hello all,
    Does anyone know how I can create my own simple F4-help for a custom field I have added to a custom Tab Page in the PCUI? It should show a selection from a custom table.
    I couldn't find an useable example in the PCUI-cookbook.
    Any ideas anyone?
    Kind regards,
    Martijn de Jong.

    Hi Manuel,
    I saw that paragraph but didn't know how to implement it. Maybe you or someone else can explain/translate in steps what I have to do, according to the text underneath, i want to use a combobox:
    "If you want the application to specify the values for selection (within popup or dropdown list box or
    combobox (COBX respectively TIME)) at runtime instead of using predefined domain values, data
    must be provided by the application via the method FILL_DROPDOWN_LISTBOX. That scenario
    works if the field type is "Input Field" and the F4 application is set to "VALUE_TABLE". With these
    customizing settings, the method FILL_DROPDOWN_LISTBOX of the interaction layer is called at
    runtime and the actual field values will be passed to the application via importing parameter
    IT_SCREEN_STRUCTURE. Thus the application can provide context-sensitive help values within a
    popup or a dropdown list box respectively combobox (COBX respectively TIME). Within the popup
    more than one column of values can be displayed."
    How/where do I (re)define method FILL_DROPDOWN_LISTBOX? Do i have to maintain an own class? and how do i ensure that more columns are shown?
    Kind regards,
    Martijn de Jong.

  • Restricting a user to enter fixed characters in an input field (mobile)

    Hi All,
    I have created a simple type and set its length to some fixed characters. I have mapped this simple type to an input field. When I run this application on desktop it doesn't allow the user to enter characters more than the fixed length of the simple type. But this functionality is not available on the mobile ie. when I try to enter some text in the input field on the mobile device it allows me to enter as many characters as I want and the fixed length property of the simple type doesn't work here. Can anyone suggest me a solution for this. Reply ASAP.
    Thanks in advance,
    Murtuza

    padma,
    You have to set it in the wdDoModifyView()
    if ( firstTime )  {
    IWDInputfield inp_field  = (IWDInputfield) view.getElement("<inputField_ID>");
    inp_field.requestFocus();
    regards,
    nikhil
    xxxxxxxxxxxxxxx
    Edited by: Armin Reichert on Feb 23, 2008 6:29 PM

  • The list doesn't appear in the input field

    Hi All
    The list doesn't appear in the input field when I make input or press the BACKSPACE key.
    Notes:
    I made this modifications:
    1. In connection properties I set High speed connections (LAN)
    2. In local data settings I set the historial to ON
    we had SAPGUI 620 in workstations and now we have installed SAPGUI 710
    Thanks for your time and help
    Message was edited by:
            Genner Sanchez

    Hello Genner,
    see note 399180:
    o  FIELD NAME LENGTH
       The history is only written for field names with a maximum length
       of 40 characters. In earlier SAP GUI versions, this length was
       restricted to 30 characters. The history file must be deleted to
       achieve extended support.
    o  FIELD LENGTH
       If the length of the input field is 60 or more characters,
       history is not written either. "Input field length" refers to the
       dictionary length of the field, not to the "visible length" on
       the screen. (The restriction of the input data to 60 characters
       results from the fact that text editors were often built as lists
       of text fields with a length of 60 in the past. In those editors,
       this history was quite annoying.  On customer request, this was
    Regards, Martin

Maybe you are looking for