Need to limit amount of visible characters in a field

I have a page that displays a list of projects. One of the
fields is a description field and I'm trying to figure out how to
have the description field display only about 200 characters
instead of the whole description. Ideally, I'd like to have a link
titled 'expand' to show the whole description in that field. The
data is part of a Spry Dataset so the field in the table is called
{system_description}. Are there any examples out there on how to do
this?

OpenSQL doesn't have a SUBSTRING statement as it does in PL-SQL. You could select the data into a work area and then do a substring on the field into a varaible within the code. Something like:
DATA: l_char9(9) TYPE c.
SELECT
  char30
FROM
  table_a
ENDELECT.
IF sy-subrc EQ 0.
  l_char9 = table_a-char30+0(9).
ENDIF.

Similar Messages

  • How to accomodate more than 255 characters in character field

    HI All
    i need to accomodate more than 255 characters in character field. How can i do that ?
    thanks in advance!!!

    Hi,
    You can try the following things:
    1. Use a datatype STRING and check it will work.
    2. In se11 transaction goto datatype and search for char* in data elements.
    You will find predefined data types ,you can make use of it.
    For eg. char2000,char3000,char4000 etc.
    Hope this will help.
    Regards,
    Nitin.

  • How do I limit the number of characters allowed in an input form and then how do I limit the number of lines?

    I'm selling Classified Advertising in a newspaper and I want my visitor to be able to enter their own ads.
    They need to be limited to 30 characters/line with a limit of 4 lines.  (120 characters total).
    How can I use html or css to limit the input to 30 characters per line and then limit them to 4 lines?
    Is that possible?
    Thanks so much.
    Dale

    I would place 4 text fields and use the maxlength attribute. Setting maxlength="30" will stop any more than 30 characters from being entered into any given text field...
    <p>
      <label for="textfield">Line 1:</label>
      <input type="text" name="textfield" id="textfield" maxlength="30">
      <br>
    <label for="textfield2">Line 2:</label>
      <input type="text" name="textfield2" id="textfield2" maxlength="30">
      <br>
    <label for="textfield3">Line 3:</label>
      <input type="text" name="textfield3" id="textfield3" maxlength="30">
      <br>
    <label for="textfield4">Line 4:</label>
      <input type="text" name="textfield4" id="textfield4" maxlength="30">
    </p>

  • Numeric field limit length to visible area

    I have a pdf saved as Dynamic XML Forms with a numeric field checked to limit length to visible area, but the "limit to visible area" option does not work. If save the same pdf as Static Form works fine.
    Can someone provide an example or tell me how to solve it?
    Thanks in advance

    In the change event you can place the following script (Java Script)
         if(xfa.event.newText.length >maxLength)xfa.event.change = "";
    Replace the "maxLength" with the maximum numbers you want the user to enter..
    This way it can stop the user to enter more characters after reaching the maxLength.
    Thanks
    Srini

  • C4T:RLU limit amounts

    Dear colleagues,
    We received a inquiry recently, since we didn't have experience on Travel onDemand. thus, can you help to check if below requirements is feasible?
    thanks a lot!
    * In 1405 there is the functionality to set up RLU’s with limit amounts to have the approval go to those RLU’s with the correct authorisation amount on the expense approval. DFS use the cost centre manager for approvals on the expense claim so they require:
    The same functionality but the first approver is a Cost Centre Manager not a line manager
    Could have multiple Cost Centre Managers for approval & each of their limits needs to be read
    If any of the Cost Centre Manager limits are below the expense part for their approval then the approval needs to go to the cost centre manager’s line manager & then on up the hierarchy (so same functionality as RLU in 1405)
    They use RLU’s for their Requests so this needs to be replicated
    * This is on the Expense claim approval
    Besides, do you know how to configure the different limit amount for each Cost Center Manager, can provide a screenshot or guideline?
    you can contact me via: [email protected]
    Best Regards,
    Qiang Zhu

    Hello Qiang,
    I have clarified your post with Peter, I hope you got relevant customer specific information via mail.
    After 1405 latest Approval Configuration & Use case will be available in help center.
    Regards,
    Rahul Mishra

  • How to limit the number of characters a label displays?

    Can someone please tell me how I can limit the number of characters a label displays from the text property?

    Ok. What I am trying to do is display a number with the format
    x.yy
    I need the display to show all characters all the time.  For example let me show you what I currently get and what I require.
    Current     Require
    0               0.00
    0.1            0.10
    etc
    To me its like the label is truncating the number appropriately and I dont want it to do that.  I need a fixed 4 character format.
    Hope this clears it up.

  • VKM4 credit limit amount

    Hello,
    I have the issue in vkm4 report in which credit limit amount shown in thousands.
    kindly tell me how i get the total value of credit limit in VKM4 report.
    thanx in advance.

    Hi Danish,
    There is no customizing on this as it is hardcoded. To force system to show limit not in thousands you need to modify FORM tausender_werte in include RVALVFORMS and comment out the line for field KLIMK (marked wit arrow below):
    FORM tausender_werte.
      LOOP AT postab.
        DIVIDE postab-amtbl BY 1000.
        DIVIDE postab-kwkkb BY 1000.
        DIVIDE postab-kwkkf BY 1000.
        DIVIDE postab-oeikw BY 1000.
        DIVIDE postab-olikw BY 1000.
        DIVIDE postab-ofakw BY 1000.
        DIVIDE postab-klimk BY 1000. "<--------------
        DIVIDE postab-kwkkd BY 1000.                           "P30K0022860
        postab-awaer = text-tsd.
        postab-awaer+1 = postab-cmwae.
        MODIFY postab.
      ENDLOOP.
      LOOP AT xvbkredet.
        DIVIDE xvbkredet-kwkkb BY 1000.
        DIVIDE xvbkredet-kwkkd BY 1000.
        MODIFY xvbkredet.
      ENDLOOP.
    ENDFORM.                               " TAUSENDER_WERTE
    BR
    Marcin

  • We need to transfer amount from one profit center to another profit centers

    Dear Gurus,
    We need to transfer amount from one profit center to another profit centers, wrongly posted how to do it?
    GL 600000 Sales a/c Domestic,
    around 5000 FI documents has post in worn profit center
    In the billing with material line items showing the correct profit center.
    we want reverse the GL 600000 a/c in our system what will be the impact in COPA Reporting. and how to do it?
    Pls advice me for the above said issues as we are nearing the year end pls help me.
    Thanks..Srirama

    Hai,
    You can do profit center posting 9ke0
    Profit center will derive from Material in your case it seems some subtitution changing the correct profit center in material master and putting this wrong profit center
    Profit center is not the deciding factor for COPA reports so there wouldn't be any impact in COPA report
    BR
    VSN

  • File Adapter -- Need to limit the number of files picked up

    One of my trading partners sends a .zip file.  The zip file contains check images and an index file.  The Index File is the same name every time.
    So, if the trading partner sends two zip files, we will lose the index file.  We need to limit the contents to a single file at a time.
    Secondarily, the file adapter also runs at a specific interval...evey X seconds.  Is there a method to "fire" the FTP channel at a specific time?  Say for example at 6:30am every day?

    Hi,
    To handle ur first requirement, you can use the OS Commands option in the file adapter. (you have to play around with the options like archiving etc )
    For scheduling the sender File CC:
    /people/shabarish.vijayakumar/blog/2006/11/26/adapter-scheduling--hail-sp-19-
    /people/deepak.shah/blog/2010/03/29/polling-vs-atp-in-sap-pi

  • How to limit the number of characters entered in a JTextfield???

    Hello there,
    I have created a Text box using swing component JTextField and I want to limit the number of characters entered to 8 characters..how do i proceed with that?
    Thanks in advance!
    Joe

    Ty out this
    import com.sun.java.swing.text.*;
    //import javax.swing.text.*;
    public class JTextFieldLimit extends PlainDocument {
    private int limit;
    // optional uppercase conversion
    private boolean toUppercase = false;
    JTextFieldLimit(int limit) {
    super();
    this.limit = limit;
    JTextFieldLimit(int limit, boolean upper) {
    super();
    this.limit = limit;
    toUppercase = upper;
    public void insertString
    (int offset, String str, AttributeSet attr)
    throws BadLocationException {
    if (str == null) return;
    if ((getLength() + str.length()) <= limit) {
    if (toUppercase) str = str.toUpperCase();
    super.insertString(offset, str, attr);
    import java.awt.*;
    import com.sun.java.swing.*;
    //import javax.swing.*;
    public class tswing extends JApplet{
    JTextField textfield1;
    JLabel label1;
    public void init() {
    getContentPane().setLayout(new FlowLayout());
    label1 = new JLabel("max 10 chars");
    textfield1 = new JTextField(15);
    getContentPane().add(label1);
    getContentPane().add(textfield1);
    textfield1.setDocument
    (new JTextFieldLimit(10));

  • TS3694 Error 3014 when trying to load ios6. I have cleared 2.5GB on the phone as it seems you need that ridiculous amount of space. Every time it just gives me 3014 error code within a minute of trying to download? Any help?

    Error 3014 when trying to load ios6. I have cleared 2.5GB on the phone (4s) as it seems you need that ridiculous amount of space. Every time it just gives me 3014 error code within a minute of trying to download? Any help?

    All,
    I thought it may be related to spaces in the path in which the script was called from. I tried having the ODBC command script in another directory but the same thing happens. It will give me the "CONFIGSYSDSN: Unable to create a data source for the 'Oracle in OraClient10g_home1' driver: Could not load the setup or translator library with error code -2147467259". As soon as the script is done running I can manually double click the script and it adds the DSN fine.
    Thanks,
    Clif Bridegum

  • I need to limit the range of my wireless router WRT54G - Any ideas are appreciated.

    I need to limit the range of my wireless router   WRT54G - Any ideas are appreciated.  I don't want to put on a password if I can avoid it.   Thanks for you advice in advance.  Milwaukie

    Trying to confine a wireless signal to your home is not a practical solution to security concerns.  The distance that a wireless signal will travel is mainly limited by the receiving antena and sensitivity of the receiver.  An ordinary wireless receiver can probably pick up your signal for 200 to 1000 feet.  A great receiver could probably pick up your signal from a mile or more.  The best alternatives are:
    a) convert your system to a wired system, or,
    b) encrypt your wireless using a good encryption method (WPA or preferably WPA2) and use a strong password.

  • Need to check whether first  two characters of a string is Alphabets or not

    Hi,
    Need to check whether first two characters of a string is alphabet or not.
    Lets say for Ex,
    String as 'DE123456' i need to check whether first  character is non-numeric and then second character as non numeric.
    kindly help me on this.
                    IF length(trim(p_parserec(31))) = 22 AND p_parserec(31) LIKE 'DE%'  THEN
                        AUFTRAGGEBERKONTONR := trim(p_parserec(31)) ;
                     ELSIF  (length(trim(p_parserec(31))) > 22 AND length(trim(p_parserec(31))) < 35)  AND p_parserec(31) NOT LIKE 'DE%'  THEN
                       AUFTRAGGEBERKONTONR := lpad(trim(p_parserec(31)), 34, 0) ;
                     ELSIF length(trim(p_parserec(31))) > 10 AND ascii(substr(p_parserec(31), 1, 2)) between 48 and 57 THEN
                       AUFTRAGGEBERKONTONR := lpad(trim(p_parserec(31)), 10, 0) ;
                     ELSE
                        p_errorcd   := sqlcode ;
                        p_errordata := sqlerrm ;
                   END IF ;
    Note : In the third else if condition the character should be greater than 10 and first 2 characters should not be alphabets.

    Siva.V wrote:
    Need to check whether first two characters of a string is alphabet or not.
    To this requirement only regexp_like will work too! No need of some other string function!
    Like:-
            -- in regexp_like last parameter shows to ignore case (optional).
    SQL> with t as
      2  (select 'AB123456' as key from dual union all
      3  select 'CD234567' from dual union all
      4  select 'A1234567' from dual union all
      5  select 'A52H4341' from dual union all
      6  select 'Dk274341' from dual union all
      7  select 'DE234556' from dual)
      8  select key
      9  from t
    10  where regexp_like(key,'^[A-Z]{2}','i') -- even '^[[:alpha:]]{2}' or '^\D{2}' pattern can be replaced for same result..
      11  /
    KEY
    AB123456
    CD234567
    Dk274341
    DE234556
    Thanks!

  • Limit on Number of Characters in a Cell

    All - I'm new to the iWork suite. Anyway, in MS Excel, there is a limit to the number characters a cell can hold. Something like 256 I think. While you can add more than that to a cell, the text that exceeds the 256 limit will be lost if you try to copy/move the cell. Is there a limit like this in the Numbers 09 application? If so, does anyone know what it is?

    Not a guaranteed responce.
    I pasted a long text (an applescript) in a single cell.
    It was truncated .
    The cell contain : 1698 characters, 1393 if we don't count spaces chars.
    With an other text, the final contents was 2110 characters, 1806 if we don't count spaces chars.
    In the index.xml file, the text is stored in a complicated way : there is one descriptor for each 'word'.
    This may explain the reported difference.
    Yvan KOENIG (VALLAURIS, France) lundi 15 février 2010 09:14:56

  • Limit the number of characters in Text Components

    I'm trying to limit the number of characters in text components. So I use the follow KeyListener:
    private class KeyHandler extends KeyAdapter{
    String oldText;
    private KeyHandler(){ }
    public void keyTyped(KeyEvent ev){
    String newText = textField.getText();
    System.out.println("Old text: " + this.oldText); //debug
    System.out.println("New text: " + newText); //debug
    if(newText.length() < limit){
    this.oldText = newText + ev.getKeyChar();
    }else{
    textField.setText(this.oldText);
    if(textField.getCaretPosition() + 1 > limit)
    textField.setCaretPosition(limit - 1);
    But the problem is that after that, the last key is typed in the component and the last key always appear.
    �Does anyone know the way for consume the key presses?
    Thank you

    (Belongs in the Swing forum.)
    The callback method keyTyped comes after keyPressed and keyReleased.
    The event.consume() should consume the event.
    Consider cut/copy/paste.
    Maybe a addPropertyChangeListener would be better?

Maybe you are looking for

  • Skype login history for criminal trial? Need IP Li...

    Hello, I am in a situation where a forged skype message is being used in court as evidence against a close friend of mine. We know the message is fraudulent but we need the skype-ip-login-history in order to prove it.  Is there a legal department or

  • Batch Release of PO and PR

    Hi, I have created workflows for PO and PR release. I used the method Single Release for both. Is there a way that my workflow will go directly to tcode me28 instead of me29n, and me55 instead of me54n?  We would like to do this for collective releas

  • Setting access rights at component level

    I have created a component. The business wants to restrict its use to a certain group of users. If a user is part of that group, ONLY then the coomponent should be available in sidekick at time of page creation. How is setting access rights at compon

  • Meve PO Number to table FBICRC002A when posting MIGO

    Hello, I have a requirement to find out where in ABAP code PO number and PO item are moved to table FBICRC002A durring posting in MIGO. So I've used a trace and now I know that it is done by Function Module G_GLDB_POSTING_A. But this function module

  • ODI Error when trying to Load Metadata into Essbase

    Hi - I get the following error when I try to Load Metadata into Essbase. org.apache.bsf.BSFException: exception from Jython: Traceback (innermost last): File "<string>", line 23, in ? com.hyperion.odi.essbase.ODIEssbaseException: Cannot build dimensi