Character length of an editable fields

hi frnz,
   I have created an editable field in an ALV report.My client wants the character length of this editable field as 1000.I have made the data type as 'STRINGS' and length as '1000', but still in this editable field i am able to feed only upto character length of 128 not beyond this value.The text which my client wants to feed is of 950 characters. Could anyone give some solution for this
Thanks
Praveen

Hi, i think you have to give intlen and outputlen in field catalog
FIELDCAT-INTLEN = 1000.
FIELDCAT-OUTPUTLEN = 1000.
Please check the doc of field catalog
[http://help.sap.com/saphelp_erp2004/helpdata/en/ff/4649a6f17411d2b486006094192fe3/content.htm]
Regards,
Ben

Similar Messages

  • How to get Length of Editable Field greater than 10 using ALV_GRID_DISPLAY

    Hi Experts,
    I am Using , REUSE_ALV_GRID_DISPLAY_LVC For Displaying  an ALV Report .
    Now i'm Using Few fields in Editable mode , but the problem is that , the length of those, editable fields is restricted only to 10 characteras.
    But i need a editable  field with length of 20 chars , ,for, entering some remarks..Is it possible ?
    Can anyone, help how to do that ..?
    Thanx in Advance .. 
    Regards,
    Rajesh

    you can make use of INTLEN
    set the value to 20 and then you can enter to 20 chars.
    FIELDCAT-INTLEN = 20.
    FIELDCAT-OUTPUTLEN = 20.

  • Restricting character values in Editable field in ALV

    Hi ,
    I am working on Editable ALV ..,
    Editable field is net amount field ,
    can you tell me how to restrict the user to enter the
    character values before he is going for saving.
    can i restrict the user while entering it self b'coz
    while saving message is getting but client want at user entry level itself..,
    code ::
      WA_FIELDCAT-FIELDNAME   = 'NETPR'.
      WA_FIELDCAT-SCRTEXT_M   = 'Net Price'.
      WA_FIELDCAT-EDIT        = 'X'. "sets whole column to be editable
      WA_FIELDCAT-COL_POS     = 7.
      WA_FIELDCAT-OUTPUTLEN   = 15.
      WA_FIELDCAT-REF_TABLE = 'EKPO'.
      WA_FIELDCAT-REF_FIELD  = 'NETPR'.
      APPEND WA_FIELDCAT TO IT_FIELDCAT.
      CLEAR  WA_FIELDCAT.
    regards,
    abdul

    Hi,
    Yes, you can ristrict the data entered by user.
    1. declare the field of type P for net price, if will not accept character values. and  if user entered char value and press enter it 
        will through error.
    2. check in loop, if net price is of P type, etc....
    3. u cas pass routine to your REUSE_ALV_grid_display.
    i_callback_user_command           = 'USER_COMM'  
    in user_comm you can write ur logic.
    Ex: when Save.
           check ur fiels etc...
    4. remove the given reference table and field name.
    EX :   LS_FIELDCAT-REF_FIELDNAME = 'NAME1'.
                LS_FIELDCAT-REF_TABNAME = 'ZCYLI_QUAN'.
    hope this will solve your problem.

  • Find length of  a particular field.

    Hi,
    I am new in ABAP. So Please guide me how to find out the length of a particular field and also give the function name with example.
    Ram Shanker

    Hi RAM,
    DESCRIBE FIELD
    Syntax
    DESCRIBE FIELD dobj
      [TYPE typ [COMPONENTS com]]
      [LENGTH ilen IN {BYTE|CHARACTER} MODE]
      [DECIMALS dec]
      [OUTPUT-LENGTH olen]
      [HELP-ID hlp]
      [EDIT MASK mask].
    Effect
    This statement determines several properties of the data object dobj and assigns them to the specified variables. The various additions enable you to determine the data type and the number of components for structures, the length used in the memory, the number of decimal places, the output length, the name of the data type for a reference to a data element of the ABAP Dictionary, and a possible conversion routine.
    Notes
    You can specify field symbols or formal parameters in procedures for dobj to determine the properties of the data object they represent at the time of the statement execution.
    The statement DESCRIBE is used to determine the properties of data objects of elementary data types. When DESCRIBE is used for structures or data objects of deep data types like strings, internal tables, or reference variables, you can only determine elementary properties. Further details, for example, the static or dynamic type of a reference variable cannot be determined using DESCRIBE. For this kind of information, you can use the type classes of Run Time Type Services (RTTS). They enable you to determine all properties of data objects of all data types.

  • Setting minimum length of a text field

    Forms [32 Bit] Version 10.1.2.3.0 (Production)
    Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
    With the Partitioning and Data Mining options
    Oracle Toolkit Version 10.1.2.0.2 (Production)
    PL/SQL Version 10.1.0.5.0 (Production)
    Oracle Procedure Builder V10.1.2.3.0 - Production
    PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
    Oracle Query Builder 10.1.2.3.0 - Production
    Oracle Virtual Graphics System Version 10.1.2.0.2 (Production)
    Oracle Tools GUI Utilities Version 10.1.2.0.2 (Production)
    Oracle Multimedia Version 10.1.2.0.2 (Production)
    Oracle Tools Integration Version 10.1.2.0.2 (Production)
    Oracle Tools Common Area Version 10.1.2.0.2
    Oracle CORE     10.1.0.5.0     Production
    Is there a way to set the minimum length of a text field without using a trigger?
    for example. I have a field called journal_no varchar2(7), I want to enforce that at least 4 characters are entered.

    In order to set a text item to a minimum value, you need to set the format mask.
    In my case it was
    AAAA
    and i was wrong...!!!!
    that just limits the number of characters to 4, i want at least 4, back to the drawing board......
    Edited by: DM on Jan 27, 2010 11:39 AM

  • "The even-numbered length of the DEC field I_DFZ_EX can lead to problems"

    Hi All,
    I am getting the following warning message while activating the PP datasources,
    2LIS_04_P_MATNR
    2LIS_04_P_ARBPL
    Warning Message: "The even-numbered length of the DEC field I_DFZ_EX can lead to problems"
                                   "The even-numbered length of the DEC field I_DLZ_EX can lead to problems"
                                   "The even-numbered length of the DEC field S_DFZ_EX can lead to problems"
                                   "The even-numbered length of the DEC field S_DLZ_EX can lead to problems"
    Checked in SDN, but no answer.
    Need your expert solution, to resolve.
    With Regards,
    Sekhar

    Thank you Des, for immediate response.
    But i have already gone through the Note.
    As we are using ghe standard datasources, can you suggest which option should i use to resolve.
    Solution
    If the field is not manipulated in the customer exit or elsewhere, no
    processing is required.
    If you change the field, the following possible solutions are available:
    1. You can make sure that the number of the characters does not
    increase after the manipulation.
    2. If you can change the extract structure of the DataSource without
    affecting other scenarios (for example, if it was generated in
    transaction RSO2), you can increase the length of the DEC field (or
    CURR, QUAN) there to the next odd character (in the example above:
    from DEC 4 on DEC 5).
    3. If neither of these solutions are possible, you can use a customer
    append that contains a relevant DEC field (or CURR, QUAN) with the
    next highest odd length. This can be used for the result of the
    calculations. This means that you do not have to manipulate the
    previous field.
    With Regards,
    Sekhar

  • Editable field lenght in ALV - given 254 but only taking 120?

    Hi Friends,
    I have an ALV grid in OO.
    There is a editable field for remarks to be entered, and it has been mapped to a domain with CHAR254.
    Following is the fieldcat set for the column
            LS_FIELDCAT-EDIT             = 'X'.
            LS_FIELDCAT-REPTEXT      = 'Remarks'.
            LS_FIELDCAT-SCRTEXT_L  = 'Remarks'.
            LS_FIELDCAT-SCRTEXT_M = 'Remarks'.
            LS_FIELDCAT-SCRTEXT_S  = 'Remarks'.
            LS_FIELDCAT-OUTPUTLEN = 254.
            LS_FIELDCAT-INTLEN         = 254.
    but still in the report, i am able to input only 120 chars, what could be the reason?
    Appreciate if someone can help me out.
    Thanks,
    Simha

    Hi Vijay,
    Its still the same result.
    i am not able to input more than 120char.
    Same is the case when i try to enter remarks using FM POPUP_GET_VALUES when i pass a field of length 254, i am able to input only upto 124(approx) char
    What could be the prob?
    how to over come this?
    Appreciate your help.
    Regards,
    Simha.
    Edited by: Simha on Nov 17, 2008 9:18 AM

  • Edit Field Validation - Use of the native string.find() Lua Function

    Hi,
    I have an edit field in which I want to be validated immediately upon change.  I ONLY want to accept alphanumeric characters (a-z and 0-9).  I have tried this many ways, but have failed to get it exactly as I want it.  First I tried Sample Code A, but that line of code fails because combination strings that contain the alphanumeric characters and a special character like the pound sign (#), will validate (Example: "hello1#").  I tried Sample Code B, but that isn't 100% what I want because if you were to add a character that isn't available on the keyboard, such as the copyright symbol or the trademak symbol.  Can someone help me, please?  Thank you.
    Sample Code A:
    interface:edit_field {
                                value = bind { key = 'new_table', object = properties },
                                fill_horizontal = 1,
                                immediate = true,
                                validate = function (interface, value)
                                  if string.find(value, "[a-z%d]")  then
                                    return true, value, "good"
                                else
                                        return false, value, "failed"
                                    end
                                end
    Sample Code B:
    interface:edit_field {
                                value = bind { key = 'new_table', object = properties },
                                fill_horizontal = 1,
                                immediate = true,
                                validate = function (interface, value)
                                    if string.find(value, "[~!@#$%^&*()_+`-={}|\%[%]:\";'<>?,./]")  then
                                    return false, value, "failed"
                                else
                                        return true, value, "good"
                                    end
                                end

    wallanceM wrote:
    Hi,
    I have an edit field in which I want to be validated immediately upon change.  I ONLY want to accept alphanumeric characters (a-z and 0-9).
    Sample Code A:
    interface:edit_field {
                                value = bind { key = 'new_table', object = properties },
                                fill_horizontal = 1,
                                immediate = true,
                                validate = function (interface, value)
                                  if string.find(value, "[a-z%d]")  then
                                    return true, value, "good"
    Hi,
    Sample Code A seems the best approach to use.  Trying to detect unwanted characters would be error prone.
    I noticed you are mixing character classes and ranges in your string.find pattern.  Have you tried using the following patterns instead?
                                  if string.find(value, "[a-z0-9]")  then
    or
                                  if string.find(value, "[%l%d]")  then
    Matt

  • Problem of character length

    I have a question about the length of character. If i set the variable  (e.g. GG) of internal table and its character length is 1000.    <e.g. data:  gg(1000).>
    and put it into one of the columns of the report listing.
    but that column only can see part of it (from 0 to 128 characters only).
    So if i want to change to excel, then the latter part of this field is omitted... How can i retain all the characters when export to excel format.
    coz i don't want to miss any data from here.

    but all the fields is get from the table (in the program)....
    for example:
    itab-CLOSING = xxxx-xxxxx. (which contains more than 255 characters)
    (i've use strlen( itab-CLOSING ) to check the length, it's normal ), but
      wa-fieldname = 'CLOSING'.
      wa-reptext_ddic = 'Closing Date/Time'.
      append wa to fcat.
      clear wa.
    the column itab-closing just show in the screen for the first 128 characters only. so i can't still get the whole data when export to excel ...

  • Character Length restrictions in BW

    Dear BW Experts,
    We are getting data from an external source. We have a field whose length is more than 60. I am unable to bring this field in to BW since BW has the restriction of not more than 60 character length. I cannot split the field since it is like a comment field.
    Could you tell me if there are other ways of getting such data in to BW where the length is more than 60 say like 500 or 1000 in length.
    Thanks,
    Sai

    Hi Sai,
    As we all know maximum length of info object is 60.The only way to get the data more than 60 is create another info object and add this as attributes to the base info object and make this attributes as display attributes.
    check the below blog, you have clear explanation
    /people/sap.user72/blog/2006/05/27/long-texts-in-sap-bw-modeling
    Regards,
    Venkatesh

  • ID character length - 16 or 20?

    What is the max character length of dimension IDs in BPC for NW? I thought it was 16 initially but now apparently is 20? According to an SAP doc:
    "Dimension field names may ONLY be max of 16 characters instead of 20"
    I understand property values can be up to 60 or greater. But, what about the the value of an ID? Does the above mean IDs can only be 16?

    Hi John,
    According to Scott from SAP, ID can be 20 characters.
    Ba
    Here is message from page 5 of below thread:
    BPC NW - Questions on How to Automate Master Data Loads
    Scott Cairncross      
    Posts: 272
    Registered: 1/5/05
    Forum Points: 548 
       Re: BPC NW - Questions on How to Automate Master Data Loads
    Posted: Jan 21, 2010 10:17 AM    in response to: Dries Paesmans           Reply 
    MDA - 20100121.zip (126.5 file.size.kilobyte) 
    Hi Dries,
    Velavan and I have been meaning to publish a new guide for sometime however we have not gotten the time to update everything. I am attaching a transport with the latest and greatest updates here to the forum for your and the rest of the communities benefit.
    There are some things to watch out for. Specifically if you are using scenario 1 of the guide and you are trying to load from an infoObject into a BPC Dimension where the infoObjects technical length is greater than 20 (the maximum length for a BPC Dimension) it automatically generates a hash key for the ID value that is 20 characters in length. This is not the behavior when running scenario 2.
    I hope this update helps.
    Cheers, Scott

  • Unable to capture context attributes of editable fields

    Hello All,
    In my application, there are two trans. containers. One holds set of material info fields at top and in the bottom the container holds a table with quantity data of the material.
    The material info container has a edit button and 3 fields are editable and saved from the container. In the bottom container there is button to move to next material. Before moving, I check if any data is changed in material info container and display pop up to save it.
    Now, when i click the save button in the mat info container the ediatbel fields data is passed and gets saved. But, when the same save method is called from the confirmation pop up in the bottom container table the editable fields data is not passed. No idea on the reason behind this behaviour.
    The code used to retrieve the data is      
    nd_vipos_mat_master->get_static_attributes(
                IMPORTING
                  static_attributes = lr_vipos_mat_info ).
    Kindly assist.
    Regards,
    Sharath

    Hi ,
    When you are saving data using popup, you must have subscribed an action with popup button. I hope it is not the same action which you are using with SAVE button.
    You can try subscribing the same action for popup which you used in Save button. Ex: if on saving directly, you are calling action "OnSave" and from popup, the triggered action is "OnActionSaveFrom Popup".  So dont use this new action while subscription with popup button. use "OnSave" with popup button also.
    if it is working with save button, it should be fine with popup also.
    Thanks
    Vishal

  • Editable fields in oracle report

    Hi,
    I am hoping someone can help what I am trying to create is a PDF oracle report with an editable field at the end of the report. The user would use this field to type comments about the report and then save the file with the comments attached.
    I did a search but couldn't really find anything relevant apart from this thread here: Re: How to add to report in pdf format editable fields but it looks like that was never answered.
    Users have access to Adobe Acrobat so an alternative solution could be just to create a rectangle and tell the users to write in that but it is not an ideal solution.
    If it is not possible in oracle reports we are also licensed for BI Publisher but as of yet I haven't been able to find anything that would do this using that tool either.
    Regards,
    Chad

    with an editable field at the end of the report.In Reports the user cannot add text after generation of the report. So, do it before generating the report. Add a parameter p_comment to the data model and add this to the parameter form (or whatever form you use to call the report, e.g. from Forms) and create a text field at the end of the report.

  • To capture the selected rows along with edited field contents in alv report

    Dear All,
             I do have requirement where, in alv report output one field is editable and need to save the content of the edited field along with the selected rows.
             For example If there are 10 records displayed in the alv output with 20 fields.
    Out of this 20 fields one field (say XYZ) is editable. Also i have already created a new pushbutton (say ABC) on alv output. Now in the alv output if we maintain some value in the field (XYZ ) for the 2nd and 4th record and select this two records, and when clicked on the pushbutton (ABC) it has to update the DB table.
          I am using the Func Module  'REUSE_ALV_GRID_DISPLAY'. 
          Your early reply with sample code would be appreciated.
    Thanks in Advance.

    HI Naveen ,
    There is an import parameter "i_callback_program" in the function module,
    plz pass the program name to it.
    Capture the command by passing a field of type sy-ucomm to "I_CALLBACK_USER_COMMAND ".  Check the returned command and
    and program a functionality as desired.
    u can try the event double_click or at line selection. there u can use READLINE command to c if the line has been selected.
    In case it is , process the code segment.
    Regards
    Pankaj

  • EDIT field in ALV GRID and on SAVE it has to update the DB Table

    Hi Experts,
    I have searched lot of forums...
    But i had not got the exact solution for this...
    I have multiple records that displayed in the ALV output screen and i had modified more than one record and then click on save.
    It has to modify all the lines that i had changed in the EDITABLE FIELD.
    Can any one help me in doing so...
    Sample code will be more help full....
    Thanks in advance,
    Kruthik

    Hi Kruthik
    Check [=> OO ALV Event DATA_CHANGED <= |http://abaptips.com/?p=70], hope you will get idea.
    Please reply in case of any confusion.
    Thanks and Best Regards,
    Faisal

Maybe you are looking for

  • Excise Invoice can not be capture for RG1 in STO

    Hi All, I created a Purchase order for STO with the help of STO I created Replenishment delivery then JEX Invoice then Excise Invoice. At the time of MIGO I put the Excise invoice no. for capturing the excise duty. now when i am saving the MIGO syste

  • Windows 8.1 does not recognize Touchsmart

    Windows 8.1 Pro does not recognize Touchsmart. This work like a mouse when I click on the display. In properties of system, says that won't have a pen and touch. Anyone know how to fix? Thanks. Edit: »HP ENVY 15t-j100 Quad Edition CTO Notebook PC (EN

  • Can't open NEF files in element taken by Nikon d7100

    I have element 11 and when I want to open a NEF file taken from my Nikon d7100 camera, it says that this camera raw program doesn't take in charge files from this type of camera. It udes to work, but it just stopped. Why?

  • How would I export a text graphic jpeg with an alpha background?

    Hi, I made a simple text title and am trying to export it as a still frame jpeg and I can't get the export to have a alpha background? Any suggestions? (I am using this text title for a new website.) (I just got photoshop elements and don't know how

  • Form session variable

    I have a form that covers 5 pages and I pass the form variables from one page to another until it gets to page 5 where all form variables are submitted to action page. If someone quits or stops during one of the pages is there anyway to store their i