Counting the Field characters.

Hi Experts,
Can you tell me how to count the field character.Suppose i want to maintain the equipment description then how can i know how many characters it will accept.i know i can count by putting the character but can you tell me the way such that system should tell.
There is someway like press F1 and so on.
AR

Hi Amit,
The equipment discription is stored in table ITOB field SHTXT.
use tcode SE11. give input as ITOB and go to line having field SHTXT. There you will be able to see character length.

Similar Messages

  • Dynamically count the field

    I have a scenario where the target field of one idoc segment should get populated ie. field should count how many other different segments are generated in the target.for example
    segment  A comes to 2 times then say field of segment C should be 2 in the target

    You can use the following UDF's for increment and initialisation of the counter
    Increment the Global Variable Counter
    public String incrementCounter(String a,Container container){
       //write your code here
    if(a.equals(" "))
    Object o = container.getGlobalContainer().getParameter("CNTR");
    Integer ii;
    if( o == null ) ii = new Integer(0);
    else ii = (Integer)o;
    ii = new Integer( ii.intValue() + 1);
    container.getGlobalContainer().setParameter("CNTR", ii);
    String temp = ii.toString();
    return temp;
    else return " ";
    <b>Intialise the Counter</b>
    Object o = container.getGlobalContainer().getParameter("CNTR");
    Integer ii = new Integer(0);;
    container.getGlobalContainer().setParameter("CNTR", ii);
    return "1";

  • Setting a reverse counter of the # of characters as form is being filled.

    Hi,
    This question maybe a little strange.
    I was wondering, if it's possible to have a <counter> that counts the # of characters as it<s being typed into the field that I'll create in a form using Acrobat Pro.
    I've seen this function before, but in other forms, where if the the field is limited (to example: 100 characters), then, whatever I input into the field, will be shown in a <same-time> fashion... so if I were to type in: ABC (I'd have 97 characters left within that field).
    Is this a field that could be created? or maybe a function that wouldn't require a script?

    HI GKaiseril:
    I'm really not good with scripts and those I've encountered so far were basic. 
    Is what you have above the actual script?   Or, it's a description of the script?
    Can you explain the script?
    If it's too complex, could you suggest another way that doesn't require a script ? Or, a simplier script (if that exists?)
    The reason why I wanted a 'count-down' character meter, is because I will  have a text field with lots of words/text.  In order to limit that entry (since it'd be exported into .xls format) and that has a limit of about 1,000 visible characters, I want to set a limit of 900 characters within that 1 field.  As a reminder for those entering the info.
    If you think there is another simpler way to remind end-users,  please do share.
    Thanks,

  • How to COUNT all data Characters in an IDOC ?

    Hi All,
    I am doing an IDOC-->File scenario.
    As per the Third party system requirements, I need to COUNT all the Data characters (Minus the EDIDC record) and  write this value at the end of the trailer record in the file.
    Example:
    EDIDC--> SAPR3, LS...
    E1KNA1M-->SHIRIN, UK, SW1DPL
    E1KNBKM-->SHIRIN, CITIBANK
    So in this example I should sum up(COUNT) all the characters(of Data) belonging to segment E1KNA1m and E1KNBKM. So here COUNT is '28'. So I need to write the value '28' at the end of the file.
    I want to know, is it possible to count data in XI mapping or should this be done in R/3 itself and appended as a COUNT field to the IDOC.
    Appreciate any suggestion help on this. All I want to know which is the best practise/place to count the data characters in this scenario.
    Thanks
    Shirin

    Hi,
    Thanks for explaining.Really appreciated.
    Just to confirm,
    in Java edit Section I have added the following data: Please let me know if that is correct.
    Imports:
    Global Variables: len
    Initilisation section: 0
    Clean-up:
    Similarly in UDF I have entered the following data:
    Label/Description: Calculate length
    Cache: Value(radiobutton)
    Arguments: a
    Next screen:
    Imports:
    public String Calculate(String a, Container container)
    Then entered ur code.
    When I save and activate I get the following error
    Starting compilation  Source code has syntax error:  D:/usr/sap/XRD/DVEBMGS02/j2ee/cluster/server0/./temp/classpath_resolver/Map2494b0c0596b11dda115001a4b52813a/source/com/sap/xi/tf/_MM_ALLOCATION_RESPONSE_.java:32: <identifier> expected public /*!_$ClNRep_*/_MM_ALLOCATION_RESPONSE_(){} ^ D:/usr/sap/XRD/DVEBMGS02/j2ee/cluster/server0/./temp/classpath_resolver/Map2494b0c0596b11dda115001a4b52813a/source/com/sap/xi/tf/_MM_ALLOCATION_RESPONSE_.java:210: ';' expected } ^ 2 errors
    Appreciate if you could help.
    Thanks
    Shirin

  • Increase Of Bank Account no. field Characters

    Hi
    We have one requirement like in infotype 0009 for the field bank a/c no. we have 18 characters as standard now
    our client want to increase the characters of the that particular field to 25.
    what is the impact of changing the field characters to 25 and how it is possible to change.
    Please help.
    rgds
    Radhika

    Hi Radhika,
    To change bank key length, follow below path.
    1. Go to table V_005_B and select your country and then click on overview. Change digit what ever you want as per country requirement.
    2. SPRO > SAP net weaver > General settings > Set countries > Set country specific checks > Select country > Click on overview > Change length as per requirement.
    Regards,
    Purnima

  • Counting the number of characters entered into a page item

    Is there a way to count the number of characters that are entered into a page item. I've got a field that can contain up to 20 characters. If 20 are entered I can do a = on my search, if less than that, then I have to do a wildcard search. I currently do a substr on the field to see if position 21 is null and position 20 is not null, then I have a 20 character field. Is there a more efficient way to do this and also is there a way to actually show the character count as the page item is being populated

    Hello user8014695 (name please),
    Try coding the select for your search as
    select ...
    from some_table
    where some_field like case when length(trim(:YOUR_ITEM)) = 20 then :YOUR_ITEM else :YOUR_ITEM || '%' end
    Note - I included the trim() assuming blank characters before or after shouldn't count.
    To show the character count as the item is being keyed-in, Google "javascript character count" for lots of ways to do this. To work these solutions into ApEx, check the ApEx help/documentation for incorporating JavaScript into your application - specifically the references on accessing page items using JavaScript.
    Hope this helps,
    John

  • Count number of Characters in CLOB field

    Hi all,
    I posted this on another database, but I think it really belongs here. I have a CLOB field that stores reports in HTML markup languate. Here's an example of a report.
    <br><br></title> </head> <body contenteditable="true" text="#000000" bgcolor="#ffffff"> this is a test for a bilateral modifier </body> </html><br><br>
    I'm trying to provide a query that counts the number of characters that is not a HTML tag nor whitespace. I've attempted to use a combination of the length and replace function which first replace all HTML tags and whitespaces with nothing and then uses length to calculate the number of characters. Here's what the function looks like.
    <br><br>length(trim (both ' ' from replace (replace (replace(replace (replace(replace(replace(replace (replace(replace(replace (replace(replace (replace(reports.report_text ,'</head>',''),'</title>',''),'<body contenteditable="true" text="#000000" bgcolor="#ffffff">',''),'</body>',''),'</html>',''),'',''),'',''),'',''),'',''),'',''),'',''),'',''),'',''),'>','')))
    <br><br>
    For the example above, the number of characters counted in the outputs is 66, which is clearly incorrect. I need to only count these characters for the example above "thisisatestforabilateralmodifier", but there is still white space that remains after I do the sequence of replaces. If someone can help, it's be greatly appreciated. Thanks.
    Message was edited by:
    user577468

    If you can convert your html string to valid xml you can do the following:
    michaels>  SELECT str, LENGTH(REPLACE(REPLACE(XMLTYPE (str).EXTRACT ('//text()').getclobval(),CHR(10)),' ')) length
      FROM (SELECT
    '<html>
    <head>
      <title></title>
    </head>
    <body contenteditable="true" text="#000000" bgcolor="#ffffff">
       this is a test for a bilateral modifier
    </body>
    </html>' str FROM DUAL)
    STR                                                                        LENGTH
    <html>                                                                         32
    <head>                                                                         
      <title></title>                                                               
    </head>                                                                        
    <body contenteditable="true" text="#000000" bgcolor="#ffffff">                 
       this is a test for a bilateral modifier                                      
    </body>                                                                        
    </html>                                                                          Otherwise regex_replace would be an alternative (on 10g).

  • Counting the number of digits in a field

    Hello friends,
    does anyone know of any function module by which we can count the number of digits in a field.
    Say i have a priority field which is numc2, and the the user fills in a 5 digit number in it, i was to calculate this and raise an error if the number of digits is more than 2.
    Thanks in advance.
    charu.

    data : text(10),
          len type i.
    text = <your variable which user is passing>
    len = strlen( text ).
    if len gt 2.
    message 'Length incresed' type 'E'.
    endif.
    regards
    shiba dutta

  • How to  remove the Special characters like @,#,$ ,..from field

    How to  remove the Special characters like @,#,$<,..from text  field. we nedd to remove any specila char from text field .
    ex:text  = just#fi%cation@text
    the text should be justification.

    hi check this ..
    data:char(25) value '5#4#2#&1#&',
         char1(9) .
           replace all occurrences of '#' in char with 'and' .
           replace all occurrences of '&' in char with 'num' .
         write: char.
    or use this..
    data:char(25) value 'test@ing*5#4#2#&1#&',
         char1(9) .
           replace all occurrences of '#' in char with space .
           replace all occurrences of '&' in char with space .
           replace all occurrences of '@' in char with space .
           replace all occurrences of '*' in char with space .
         write: char.
    regards,
    venkat.

  • Which table contains the field CNTRC(Counter Reading)?

    Hi Guys,
    1) Can anybody tell me which table contains the field CNTRC (short description is Counter Reading) ?
    2) CNTRC is available in the structure RIMR0. In a situation like this, how do we identify the table name?
    Thanks in Advance,
    Vijay

    Dear Vijay
    The counter reading is available in IMRG table in field CNTRR. It is available in exponential form. you need to convert to decimal from using the FM FLTP_CHAR_CONVERSION_FROM_SI
    Please go through the below link for the
    same
    Link: [Re: Counter reading in IK11]
    Regards
    gajesh

  • I am trying to add, through an amplification project, the field counts alte

    hello dear, 
    I have a countable document with several positions with classes of costs, which have imputation object the order co. 
    I am trying to add, through an amplification project, the field counts alternative to transaction KSB1. 
    the problem that I have in the routine, is that, he/she repeats the last bill alternative to all the positions of the cost classes. 
    the routine is the following one: 
    clear CS_RECORD-ZZ_LOKKT. 
    select * from bseg where bukrs eq ld_documents-bukrs 
                             and belnr eq ld_documents-docnr 
                             and gjahr eq ld_documents-ac_gjahr. 
            if not bseg-kostl is initial. 
               CS_RECORD-ZZ_LOKKT = BSEG-LOKKT. 
            endif. 
    endselect. 
    example of the result that it shows me:                                                                               
    It counts Alternative 
    30101001 COMMISSION SUB-AGENCY 113,64       6220000 
    30202001 SALARIES                             142,05       6220000 
    grateful of their help, 
    greetings 
    jorge silva

    Make the back of the car a 3D layer. Add a camera. Animate the camera so the motiion looks right.
    Another option, track something in the frame that is in the same plane as the back of the car. Track scale. Apply the tracked scale information to the back of the car layer.
    A better way to get better suggestions. Post a screenshot of the video or better yet, upload the video to You-tube and let us see what you are trying to do.

  • How do you count the multiple columns of a field in a table

    How do you count the multiple columns of a field in a table

    Hi,
    4396bf34-e890-4202-a6b0-4e08c9ff0e89 wrote:
    How do you count the multiple columns of a field in a table
    Whenever you have a problem, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002
    "Field" isn't a standard database term.  Some people say "field" when they mean "column", but I don't think that's what you mean ("How do you count the multiple columns of a column ..").  Do you want to know how many times a column is used (as opposed to NULL), or the number of different values in a column?  You really need to show what you want.

  • Urgent help!!how to count the no of fields retrieved by recordset??

    hello friends,
    i need to count the no of fields and not rows returned by the recordset
    plz. help me soon,
    Ex. rs.executeQuery("select * from table");
    now how many columns will be there in the table,i need to know that
    thanx in advance,its urgent so reply soon,
    Vishal

    hey, i am getting an error as follows
    cannot resolve symbol
    symbol : method getMetaData (java.lang.String)
    location: class front1
    ResultSetMetaData rmd= getMetaData(globals.s);
    ^
    1 error
    can u expand the code a bit , so this error is solved ?
    thanx again

  • What is the max characters  memo field can hold on crystal Xi?

    Post Author: chulheekim
    CA Forum: General
    Can anyone help me with memo field that I have on crystal XI?
    I see only about 200 characters on a memo field.
    what is the max characters  memo field can hold on crystal XI?
    I've got to bring this answer to the meeting tomorrow morning. I'm doomed.

    Hi Umesh,
    as for as i know SAP PO system can handle the file till GB also but this will be based upon your system resources and configuration as well.
    Please find the below link for further information.
    http://scn.sap.com/community/pi-and-soa-middleware/blog/2010/10/18/pixi-pi-73-processing-of-large-files--teaser
    Regards,
    Naveen

  • How to count the number of characters

    Dear All,
                Can anyone tell me a Function Code or sample code to count the number of charactes in a text.
    Regards,
    Vijay

    hi
    <b>use the inbuilt function strlen</b>
    Number of characters in arg; blanks at the end of data objects with a fixed length are not counted, although they are counted in type string data objects. If you use a non-Unicode double-byte code, a character that occupies 2 bytes is counted twice.
    <b>example</b>
    data: v_len type i,
    v_str type string value 'gggugik'.
    v_len = strlen( v_str ).
    write:/ v_len.
    Regards,
    ravish
    <b>plz reward points if helpful</b>

Maybe you are looking for

  • My phone won't download my apps

    so I got a new phone today and I have to enter my apple ID but the it says the password is wrong when I know it's right. I've changed my password on my iTunes two times and it's the right information but it wont let me download my apps onto my phone.

  • No Receiver in SOAP header in sxmb_moni

    Hi all My scenario is using the HTTP sender channel.the url is like this: <u>http://xiserver:8000/sap/xi/adapter_plain?namespace=http%3A//my&interface=MI_Leo_HTTP_Sou_OB&service=ZBS_Leo_Http&party=&agency=&scheme=&QOS=EO&sap-user=*****&sap-password=*

  • PSD file corrupted!

    I was working in a project for a client, when the lights go out. When  the computer start again, I see that my PSD file is there, I can see a  thumbnail preview, but when I try to open with Photoshop CS5 (the same  that I used to create it) It says:"

  • Basic IDOC Structure Enhancement

    My requirement is to add a new segment to the basic IDOC structure I have tried this using a <b>Z</b> type IDOC with reference to the basic type then i am getting an error saying that clipboard is empty. Please help me to solve this. <b>Thanq</b>

  • Safari 6.0 Search / Address Bar

    Hi Under Safari preferences you can select your search engine, but how can one localize the search? E.g. for South Africa: use google.co.za, not .com. Cheers, Mike