75 characters length EDITABEL field in my_alv_report?

Hello
I am trying to keep a 75 characters length EDITABEL cell/field in my_heiracrhial_alv_report, but, its allowing me to do only 40 charactares length!!
Pls. let me know how can i get 75 lenght EDITABEL field in my_heiracrhial_alv_report
Thank you.

I didn't see you've defined the catalog by yourself
Clemens is right....the problem is there in your "wrong" defination.
Just as Clemens says if you don't know very well the ALV, the meaning of every field of catalog table it should be better to use dictionary field as reference or the function 'REUSE_ALV_FIELDCATALOG_MERGE
If the field is not correctly defined strange behavior or dump can occur
I've changed my previous code in order to indicate the main fields have to be filled if it needs to set the catalog manually:
TYPE-POOLS: SLIS.
DATA: BEGIN OF ITAB1 OCCURS 0,
       BUKRS LIKE T001-BUKRS,
       BUTXT LIKE T001-BUTXT,
      END OF ITAB1.
DATA: BEGIN OF ITAB2 OCCURS 0,
       BUKRS LIKE T001-BUKRS,
       BUTXT2(80),
       BUTXT3(100),
       BUTXT4(150),
      END OF ITAB2.
DATA: GT_FIELDCAT   TYPE SLIS_T_FIELDCAT_ALV,
      GT_KEYINFO    TYPE  SLIS_KEYINFO_ALV,
      GT_REPID      LIKE SY-REPID.
DATA: LT_FIELDCAT_ALV TYPE SLIS_FIELDCAT_ALV.
DATA: LT_FCAT         TYPE SLIS_FIELDCAT_ALV.
START-OF-SELECTION.
  SELECT BUKRS BUTXT UP TO 1 ROWS INTO TABLE ITAB1
     FROM T001.
  LOOP AT ITAB1.
    ITAB2-BUKRS = ITAB1-BUKRS.
    APPEND ITAB2.
  ENDLOOP.
END-OF-SELECTION.
  GT_REPID = SY-REPID.
  GT_KEYINFO-HEADER01 = GT_KEYINFO-ITEM01 = 'BUKRS'.
  CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
      I_PROGRAM_NAME     = GT_REPID
      I_INTERNAL_TABNAME = 'ITAB1'
      I_INCLNAME         = GT_REPID
    CHANGING
      CT_FIELDCAT        = GT_FIELDCAT.
  LT_FCAT-COL_POS   = '1'.
  LT_FCAT-FIELDNAME = 'BUKRS'.
  LT_FCAT-TABNAME   = 'ITAB2'.
  LT_FCAT-REF_FIELDNAME  = 'BUKRS'.
  LT_FCAT-REF_TABNAME    = 'T001'.
  APPEND LT_FCAT TO GT_FIELDCAT.
  CLEAR LT_FCAT.
  LT_FCAT-COL_POS   = '2'.
  LT_FCAT-FIELDNAME = 'BUTXT2'.
  LT_FCAT-SELTEXT_L  = 'My Text 1'.
  LT_FCAT-TABNAME   = 'ITAB2'.
  LT_FCAT-OUTPUTLEN = '80'.
  LT_FCAT-EDIT    = 'X'.
  LT_FCAT-INPUT   = 'X'.
  LT_FCAT-DATATYPE  = 'CHAR'.         "<.---This part of deinition is missing
  LT_FCAT-INTTYPE   = 'C'.                   " in your code
  LT_FCAT-INTLEN    = 80.
  APPEND LT_FCAT TO GT_FIELDCAT.
  CLEAR LT_FCAT.
  LT_FCAT-COL_POS   = '3'.
  LT_FCAT-FIELDNAME = 'BUTXT3'.
  LT_FCAT-SELTEXT_L  = 'My Text 2'.
  LT_FCAT-TABNAME   = 'ITAB2'.
  LT_FCAT-OUTPUTLEN = 100.
  LT_FCAT-EDIT    = 'X'.
  LT_FCAT-INPUT   = 'X'.
  LT_FCAT-DATATYPE  = 'CHAR'.
  LT_FCAT-INTTYPE   = 'C'.
  LT_FCAT-INTLEN    = 100.
  APPEND LT_FCAT TO GT_FIELDCAT.
  CLEAR LT_FCAT.
  LT_FCAT-COL_POS   = '4'.
  LT_FCAT-FIELDNAME = 'BUTXT3'.
  LT_FCAT-SELTEXT_L  = 'My Text 3'.
  LT_FCAT-TABNAME   = 'ITAB2'.
  LT_FCAT-EDIT    = 'X'.
  LT_FCAT-INPUT   = 'X'.
  LT_FCAT-OUTPUTLEN = 150.
  LT_FCAT-DATATYPE  = 'CHAR'.
  LT_FCAT-INTTYPE   = 'C'.
  LT_FCAT-INTLEN    = 150.
  APPEND LT_FCAT TO GT_FIELDCAT.
  CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
    EXPORTING
      IT_FIELDCAT      = GT_FIELDCAT
      I_TABNAME_HEADER = 'ITAB1'
      I_TABNAME_ITEM   = 'ITAB2'
      IS_KEYINFO       = GT_KEYINFO
    TABLES
      T_OUTTAB_HEADER  = ITAB1
      T_OUTTAB_ITEM    = ITAB2.

Similar Messages

  • Update Rule routine to get last 4 characters of a field

    I am aware I can do this using a formula.  However, can someone assist in writing the routine which gets the last four characters of a field.  The field is part of the COMM_STRUCTURE? Thanks

    Hi,
    For determining the length of the field, you have to use first the statement DESCRIBE so you get the figure into a variable (I do not have a SAP system right now, so errors can occur in the following):
    <b>data length type i.
    describe comm_structure-field length into length.
    length = length - 4.
    result = comm_structure-field+(length)(4).</b>
    However, please shift your field is RIGHT JUSTIFIED earlier than using these statements. Please consider the instruction SHIFT. That will insure you that you get the right characters.
    Regards

  • Sample code to get 1st 5 characters of a field and also how to use help ?

    hi ABAP4 experts,
    We are kind of new at ABAP4. We'd be appreciated if you would provide sample code to get 1st 5 characters of a field and also let us know on how to use ABAP4 help to look for such kind solution that next time we don't have to bother you guys here!
    We will give you reward points!
    Message was edited by: Kevin Smith

    Hi Kevin,
    here is the Example for the offset which you want
    DATA TIME TYPE T VALUE '172545'.
    WRITE TIME.
    WRITE / TIME+2(2).
    CLEAR TIME+2(4).
    WRITE / TIME.
    <u>The output appears as follows:</u>
    172545
    25
    170000
    <i>First, the minutes are selected by specifying an offset in the WRITE statement. Then, the minutes and seconds are set to their initial values by specifying an offset in the clear statement.</i>
    <b>2nd Example:-</b>
    DATA: F1(8) VALUE 'ABCDEFGH',
    F2(8).
    DATA: O TYPE I VALUE 2,
    L TYPE I VALUE 4.
    MOVE F1 TO F2.      WRITE F2.
    MOVE F1+O(L) TO F2.      WRITE / F2.
    MOVE F1 TO F2+O(L). WRITE / F2.
    CLEAR F2.
    MOVE F1 TO F2+O(L). WRITE / F2.
    MOVE F1O(L) TO F2O(L). WRITE / F2.
    This produces the following output:
    ABCDEFGH
    CDEF
    CDABCD
      ABCD
      CDEF
    First, the contents of F1 are assigned to F2 without offset specifications. Then, the same happens for F1 with offset and length specification. The next three MOVE statements overwrite the contents of F2 with offset 2. Note that F2 is filled with spaces on the right, in accordance with the conversion rule for source type C.
    if you want more info
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb341a358411d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3294358411d1829f0000e829fbfe/content.htm
    hope this solves your Problem
    Thanks
    Sudheer

  • File Sender, Content Conversion - how to define variable length last field?

    XI 3.0 SP17
    With a File Sender communication channel, that uses Content Conversion - how do I define a 'variable length' last field?
    The scenario - the input file has four fields, of which the first three are a known fixed length, and the last (fourth, trailing) field is variable in length.
    Using a Message Protocol of 'File Content Conversion', how do I define that last variable length field (field name 'WOData' below) in the Content Conversion Parameters section?
    My current parameters are:
    Recordset Structure  -  Row,*
    ignoreRecordsetName  -  true
    Row.fieldFixedLengths  -  1,12,5,99999
    Row.fieldNames  -  WOType,WONum,WOLine,WOData
    I've tried the following for 'Row.fieldFixedLengths' to no avail -
    '1,12,5,*'
    '1,12,5,0'
    '1,12,5,'
    '1,12,5'
    The last two were grasping at straws )
    The only thing I've got to work is specifying a 'large' value for the final field (99999 above).
    In addition, does anyone know if specifying a large value (e.g. 99999) for the final trailing field will give rise to performance issues when the file is being processed?
    In the help for "Converting File Content in a Sender Adapter", it states -
    <Begin Quote>
    NameA.fieldFixedLengths
    If you make a specification here, the system expects a character string that contains the lengths of the structure columns as arguments separated by commas.
    If you also specify a separator for the columns, you must not add its length to the length of the columns.
    This entry is mandatory if you have not made an entry for NameA.fieldSeparator.
    <End Quote>
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm

    << note that fieldFixedLengths will not take any wildcard entries like *. So in these case it is ideal to provide a maximum char length.  But note that while the file is being created that many spaces will be created in your file !!! >>
    Hi Shabarish,
    Yes, no wildcard is the conclusion I came to, hence my maximum )
    The message size did not increase by any 'blank padding'.  When I look in [Message Display Tool (Detail Display)] 'Audit Log for Message: X'  -
    2006-10-17 18:22:42 Success Channel X: Entire file content converted to XML format
    2006-10-17 18:22:42 Success Send binary file  "X" from FTP server "X", size 103290 bytes with QoS EO
    2006-10-17 18:22:42 Success Application attempting to send an XI message asynchronously using connection AFW.
    2006-10-17 18:22:42 Success Trying to put the message into the send queue.
    2006-10-17 18:22:42 Success Message successfully put into the queue.
    2006-10-17 18:22:42 Success The application sent the message asynchronously using connection AFW. Returning to application.
    The input flat file in non-XML format was 92,132 bytes and the message payload into XI was 103,290 bytes.
    My understanding is that trailing spaces are stripped from XML nodes.

  • 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 to get subject of the Mail greator than 50 characters length

    Hi Friends,
    I am sending a mail by using the Class Interface cl_document_bcs and method create_document
    there the Parameter i_subject is of 50 characters length
    but the client need the subject of the mail nearly 100 chars lenght
    Please guide me how to go furthur
    are there any other Methods to go furthur to have subject of the mail greator than 50 characters lenght
    Thanks in Advance
    Ganesh

    Hi Ravi,
    could you plz help me how to set that subject... (len > 50 char )
    my previous code is
    TRY.
        gwa_sendreq = cl_bcs=>create_persistent( ).
        gwa_document = cl_document_bcs=>create_document(  i_type    = gc_htm
                                                          i_text    = gt_mail
                                                          i_subject = gwa_subject ).
       gwa_subject1  = 'Material Arrival (GIN No:12566) notification Against PO 26735 (To be Inspected)'.
       gwa_sendreq = cl_bcs=>set_message_subject( ip_subject = gwa_subject1 ).
        CALL method GWA_SENDREQ->SET_DOCUMENT( gwa_document ).
        gwa_sender = cl_sapuser_bcs=>create( sy-uname ).
        CALL METHOD gwa_sendreq->set_sender
          EXPORTING
            i_sender = gwa_sender.
        gwa_recipient = cl_cam_address_bcs=>create_internet_address( gv_mail_id ).
        CALL METHOD gwa_sendreq->add_recipient
          EXPORTING
            i_recipient = gwa_recipient
            i_express   = ' '.
        gwa_sendreq->set_send_immediately( gc_x ).
        CALL METHOD gwa_sendreq->send(
          EXPORTING
            i_with_error_screen = 'X'
          RECEIVING
            result              = gwa_sent_status ).
        IF gwa_sent_status <> 'X'.
        ENDIF.
      CATCH cx_bcs INTO gwa_bcs_exception.
    ENDTRY.
    COMMIT WORK.

  • Xpath in BPM correlation. Have to pass only few characters of a field in co

    Hi All,
    Header file:
    MDk-111;1728;175;02.09.11;781961.09;0.00;0.00;781961.09;;;;;;;;;0
    MDk-112;8574;175;02.09.11;4462;1112;104098800;104102150;;;;;;;;;2
    MDk-113;1729;175;02.09.11;781962.09;0.00;0.00;781961.09;;;;;;;;;0
    MDk-114;8575;175;02.09.11;781963.09;0.00;0.00;781961.09;;;;;;;;;0
    Detail file:
    MDk-112;8574;175;02.09.11;;DEBIT;;;;;-1112;;0;02.09.11;;;;20555;;;037;
    MDk-112;8574;175;02.09.11;;CREDIT;;;;;104098800;;0;02.09.11;;;;;;;099;
    - I have to merge header and detail records into one target structure..
    - For the records which doesn't consists of detail records should pass only header record. ex: MDk-113
    - To merge the both the files, im using BPM with correlation.
    The correlation which i need to use in BPM is the first record in both the files "MDk-XXX" where XXX is the number which may or may not match in both the files.. So i need to pass only first four characters of the first filed in the correlation ie. "MDK-".
    After file content conversion, the input xml payload will be as below
    <Code>MDK-112</bankCode>
    How can I pass only first four characters of this field ("MDK-") in Xpath in the correlation tab?
    Kindly suggest.
    Thanks
    Deepthi

    Hi Deepthi,
    You can send the substring of the Code value. This is explained in the following WIKI, have a look at this.
    http://wiki.sdn.sap.com/wiki/display/XI/XpathConditioninReceiverDetermination
    regards
    Ramesh

  • How can I pull info into a report using just the first two characters of that field?

    I am trying to pull a total cost based upon locations in a particular area(s). Can I get the formula to just do this based on the first two characters of that field?
    Here is what I have so far:
    if {PACKED.LOCATIONS.NEXT OPERATION} = ["xx"] THEN {Job.Total_Price}
    Packed locations is a table I'm pulling from and the column I want just the first two digits is the the Next operation. Once this meets the "xx" (whatever location) then give me the total price from the Job table.
    This works for one or two orders, but then blows up when I do 10 or so.

    Hi Steve, assuming that Next Operation is a string field...
    Create a new formula and place it in the field where you see the {Job.Total_Price} field (Detail or Group depending on your report) with the formula:
    whileprintingrecords;
    global numbervar TotalValue;
    if len({? Replace me}) <= len({PACKED.LOCATIONS.NEXT OPERATION}) then(
    if left(ucase({PACKED.LOCATIONS.NEXT OPERATION}),len({? Replace me})) = ucase({? Replace me}) then
    TotalValue := TotalValue + {Job.Total_Price}
    TotalValue;
    You can go ahead and suppress that field.
    Create a new formula to place where you want to view the summary using the formula:
    whileprintingrecords;
    global numbervar TotalValue;
    This method allows for a higher degree of flexibility and you can search for the first x characters of that field instead of only the first 2 characters

  • Characters[] length issue...

    Hi Folks,
    When using this method in my SAXParser:
    public void characters(char characters[], int start, int length)..the XML file that has been parsed is not quite being read correctly as the final length of 'characters[]' is always 2048. Is there anyway that I can assign the size of this array without it always being the default size?
    Cheers,

    Which "length" do you mean is always 2048?
    public void characters(char characters[], int start, int length)
      System.out.println( "length parameter is " + length);
      System.out.println( "length of array is " + characters.length );
    }It does not surprise me if you get "length of array is 2048". That is why you also get the parameter. I would be very surprised if you always got "length parameter is 2048" every time characters is called.
    The Sax processor uses a character array to receive input. They picked 2048 as the default size. If you have 3000 characters of text as a child of an element, you will get at least two calls to characters() -- one with the first 2048 and the second with the remaining 952 characters.
    That is why the recommended way to do harvest characters is using a String Buffer. You can do an append(char characters[], int start, int length) as the three parameters.
    Dave Patterson

  • More Than 250 Characters in single field

    Hi
       Can anybody help me Regarding this issue.
       Is there any possibilty to get More than 250 Characters in single field (i.e up to 500),whether in Background or Online Mode.

    Hi
    do declare the field  as string than Char .
    data var1 type string  , this can hold more 500 size .
    Please mark helpful answers

  • How to extract field name, length, descrip & field type out of repository

    How can I  extract field name, length, descrip & field type out of repository?  Or is it possible?

    Hi Victor,
    To get any info about any field you should know the code of that field that we specify in console while  creating field.
    Using this code you will get property whatever you defined in consloe.
    RepositorySchemaEx repositoryschema= MetadataManager.getInstance().getRepositorySchema(usrCtx);
    where usrctx is usersession context that you create to access yr repository
    FieldProperties fProp = repositoryschema.getField(tableName,fieldCode);
    where tablename is tablecode in which field belong
    field code is code of field that you define in console for that field
    if you check with frop then it will show  the general properties like type etc.
    suppose yr field of type text field then you can acces all properties that is coomon as well that is respective to text type field.
    FixedWidthTextFieldProperties textField = ( FixedWidthTextFieldProperties) fProp
    if you have other field type then that use thta properties . you will get in java api docs on help.sap.com whatever the properties MDM supporting.
    Hope ot helps  you get the solution
    thanks,
    sudhanshu

  • Illegal characters in key fields

    Hi,
    What are the illegal characters for key fields in the database for SAP ME?
    Br,
    Johan Nordebrink

    Hello Johan,
    Please refer to SAP Note #1363812.
    Regards,
    Alex.

  • How to get the Subject of Mail Greater than 50 Characters length

    Hi Friends,
    I am sending a mail by using the Class Interface cl_document_bcs and method create_document
    there the Parameter i_subject is of 50 characters length
    but the client need the subject of the mail nearly 100 chars lenght
    Please guide me how to go furthur
    are there any other Methods to go furthur to have subject of the mail greator than 50 characters lenght
    Thanks in Advance
    Ganesh

    Hi Ganesh
    Its not possible to use more thatn 50 characters in send mail step for subject. May be you can try with the FM SO_NEW_DOCUMENT_ATT_SEND_API1 with more than 50 line in the subject.
    Regards
    vijay

  • Write Superscript/Subscript Characters in Description Field

    How to Write Superscript/Subscript Characters in Description Field?

    aqeeliqbal2008 wrote:
    Follow following path on your windows - start all programaccessories -- system tool -- character map.Here select the font as "lucida sans UNICODE". And here you will get symbol subscript 0 to 9.Select it, copy it and paste it in SAP wherever required.
    The ones I mentioned from Wikipedia and lucida sans UNICODE are unicode characters... Both have same value, for example superscript 2 ( ² ) has uni-node value of U+00B2. 
    If it's working it does mean your system supports unicode in longtext.

  • Determine the Number of Characters in a field

    Hello All,
    I have a program where a character field of length 200 becomes populated with Purchase Order Text.  Is it possible through a function module or another option to determine the length of the field when populated?  For instance, if only 125 characters are populated in the 200 character field, then the function module would return the 125 value.  Thanks.
    John

    Sample code for ya.
    report zrich_0002.
    data: s type string.
    data: i type i.
    s = 'The string that we want to fing the length of'.
    i = strlen( s ).
    write:/ 'This length of "', s, '" is', i.
    Regards,
    Rich Heilman

Maybe you are looking for

  • Identity manager rcu failure

    Hi, I'm attempting to learn about Identity Manager, but I can't get the application installed. The error I'm seeing when running RCU with the Identity Manager repository selected is: RCU-6130/RCU-6136: Error while trying to execute SQLPlus action. Fr

  • How to change users short name in 10.7 Server version?  Command line possible?

    I just migrated from Snow Leo 10.6 Server to Lion 10.7 server.  All seems ok except for one user (me!).  It seems my short name is different.  It was Goerge Smith but now it is just George.   And All users can login and get mail etc, but not me. I tr

  • Integrate Spiceworks' Helpdesk with Desktop Central?

    Workstation is a Dell Precision 7810. Dual monitor setup with two NVIDIA Quadro K620. Its a fairly well spec'd machine, running windows 7. Monitor 1 is 1920x1080@60hz 32bpp. Monitor 2 1680x1050, 59.88hz, 32bpp, both DVIThe UI is lagging noticeably. E

  • Yellow startup screen!

    ok so I just installed Windows 7 on bootcamp (on Macbook pro) , installed drivers and all good ... then I went back to my loved OS Lion and.... the starup screen turned yellowish... :S then my intener wasnt working, wireless was on but just didnt wor

  • Firefox shows an old version of a website and not the updated version

    I have changed a Flash video on my website but FF still shows the old video. I looked at the source code and it is for the new version. In IE, I see the new version. I have cleared the history and cache on FF, but still see the old movie. I am using