XL email attachment wider than 255 Characters

Hi Everyone,
I'm trying to send an e-mail with an XL attachment which needs to be
wider than the standard 255 characters. I'm using the function module
SO_DOCUMENT_SEND_API1 and am passing it a tab delimited table in it's
objbin parameter. Objbin is only 255 characters wide!
Can anyone show me how to send a wider attachment.
Thanks,
Sanjeev Jain

https://forums.sdn.sap.com/click.jspa?searchID=21457040&messageID=6721630
jus check this.there are many similar threads.
hope it helps.

Similar Messages

  • SAP Query:Error 'List is wider than 255 characters '

    Hi all,
    i m new in SAP Query.
    one query is already done.
    one change is come out.
    requirement is - Add one extra column
    when i m going to add one extra coulumn and test it then message is come out.............
    List is wider than 255 characters (generation not possible)
    Message no. AQ255
    Diagnosis
    You attempted to define a query where the line width of the generated list is greater than 255 characters.
    You define the line width on the Title, Format screen which permits a maximum width of 255 characters. However, when defining statistics and ranked lists, you can implicitly increase this value, since the lines cannot be broken up. This is the case here. An implicit increase in the width of the list would result in a list wider than 255 characters. For this reason, the query cannot be executed.
    Procedure
    Check which of the statistics or ranked lists is responsible and modify it so that the resulting list width is no greater than 255 characters.
    plz help me and suggest me as soon as possible

    hi  Shafiq ,
    i am aslo facing same problem of  (List is wider than 255 characters  )
    There is limitation of 255 characters  .. can we extend that   .
    When we check  by editing program in sq01  it show only 255 character limitation  .
    Regards
    Deepak.

  • Greater than 255 characters not allowed - CSV attachment

    While sending the data as a CSV attachemnent, its not allowing more than 255 characters per line.
    I want to send more than 255 characters in a line  (in the CSV attacment. how to do this ?
    The function module which i used is
    SO_new_document_att_send_appi1.
    or else suggest me a function module used to send csv attachement more than 255 characters in a line
    Thanks

    Check below code and adjust your code for compress/decompress...
      DATA : l_email_title TYPE sood1-objdes.
      DATA : l_file_name TYPE soobjchgi1-obj_descr.
      DATA : lit_email_receiver TYPE zphr1_email_tab.
      DATA : lit_email_msg LIKE soli.
      DATA : lit_attachment LIKE soli.
      DATA: l_lines LIKE sy-tabix,
             l_msg_lines LIKE sy-tabix.
    Creation of the document to be sent
      CLEAR:  l_email_title,
              l_file_name,
              lit_email_receiver,
              lit_email_msg,
              lit_attachment,
              gf_doc_chng,
              it_objtxt,
              it_objbody,
              it_objpack,
              it_objhead,
              it_reclist.
      REFRESH: it_objtxt,
               it_objbody,
               it_objpack,
               it_objhead,
               it_reclist.
    *Passing mail subject
      gf_doc_chng-obj_name =  text-035.
      gf_doc_chng-obj_descr = text-036.
    Fill the document data.
      gf_doc_chng-doc_size = 1.
    Populate the subject/generic message attributes
      gf_doc_chng-obj_langu = sy-langu.
      gf_doc_chng-obj_name  = c_saprpt.
      gf_doc_chng-sensitivty = c_value_f.
    Fill the document data and get size of attachment
    DESCRIBE TABLE it_output_soli LINES l_lines.
      gf_doc_chng-doc_size =
          ( l_lines - 1 ) * 255 + STRLEN( it_output_soli ).
      gf_doc_chng-obj_langu  = sy-langu.
      gf_doc_chng-obj_name   = c_saprpt.
      gf_doc_chng-sensitivty = c_value_f.
    *Passing text for mail body
      it_objbody = space.
      APPEND it_objbody.
      CLEAR  it_objbody.
      it_objbody =  c_hi.
      APPEND it_objbody.
      CLEAR  it_objbody.
      it_objbody = space.
      APPEND it_objbody.
      CLEAR  it_objbody.
      it_objbody = text-036.
      APPEND it_objbody.
      CLEAR  it_objbody.
      it_objbody = space.
      APPEND it_objbody.
      CLEAR  it_objbody.
      it_objbody = c_thanks.
      APPEND it_objbody.
      CLEAR  it_objbody.
      it_objbody = space.
      APPEND it_objbody.
      CLEAR  it_objbody.
      DESCRIBE TABLE it_objbody LINES l_msg_lines.
      READ TABLE it_objbody INDEX  l_msg_lines.
      gf_doc_chng-doc_size = ( l_msg_lines - 1 ) * 255 + STRLEN( it_objbody
    Creation of the entry for the compressed document
      it_objpack-transf_bin = ' '.
      it_objpack-head_start = 1.
      it_objpack-head_num = 0.
      it_objpack-body_start = 1.
      it_objpack-body_num = l_msg_lines.
      it_objpack-doc_type = c_doc_type.
      APPEND it_objpack.
      CLEAR it_objpack.
      LOOP AT it_output_soli.
        it_objtxt = it_output_soli.
        APPEND it_objtxt.
        CLEAR it_objtxt.
      ENDLOOP.
    Passing the heading of the report
      it_objhead = text-037.
      APPEND it_objhead.
      CLEAR it_objhead.
    *To compress the table to size of 255 characters
      CALL FUNCTION 'TABLE_COMPRESS'
        TABLES
          in  = it_objtxt
          out = it_comprsd.
      IF sy-subrc <> 0.
      ENDIF.
    To decompress the compressed table
      CALL FUNCTION 'TABLE_DECOMPRESS'
        TABLES
          in  = it_comprsd
          out = it_decomprsd.
      IF sy-subrc <> 0.
      ENDIF.
    Creation of the document attachment
      CLEAR : l_msg_lines,l_lines.
      DESCRIBE TABLE it_decomprsd LINES l_lines.
      IF l_lines <> 0.    "Don't create attachment if no data is present
    Creation of the entry for the compressed attachment
        it_objpack-transf_bin = c_value_x.
        it_objpack-head_start = 1.
        it_objpack-head_num = 1.
        it_objpack-body_start = 1.
        it_objpack-body_num = l_lines.
        it_objpack-doc_type = c_excel.
        it_objpack-obj_name = sy-repid.
        it_objpack-obj_descr = text-036.
        it_objpack-doc_size =  l_lines * 255.
        APPEND it_objpack.
        CLEAR it_objpack.
      ENDIF.
      LOOP AT s_email.
        it_reclist-receiver = s_email-low.
        it_reclist-rec_type = c_rec_type.
        it_reclist-express  = c_value_x.
        APPEND it_reclist.
      ENDLOOP.
    *Passing maild of the user(who runs the report)
    with extension @eur.appliedbiosystems.com
      CLEAR it_reclist.
      CONCATENATE sy-uname text-031 INTO it_reclist-receiver.
      it_reclist-rec_type = c_rec_type.
      it_reclist-express  = c_value_x.
      APPEND it_reclist.
    with extension @applera.com
      CLEAR it_reclist.
      CONCATENATE sy-uname text-032 INTO it_reclist-receiver.
      it_reclist-rec_type = c_rec_type.
      it_reclist-express  = c_value_x.
      APPEND it_reclist.
    *Sending mail with attachment
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
          document_data              = gf_doc_chng
          put_in_outbox              = c_val
          commit_work                = c_val
        TABLES
          packing_list               = it_objpack
          contents_bin               = it_decomprsd
          contents_txt               = it_objbody
          receivers                  = it_reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      IF sy-subrc IS NOT INITIAL.
        WRITE: / text-034.
      ELSE.
        WRITE: / text-033.
      ENDIF.

  • SQ01 Output fields having more than 255 characters

    Hello,
    I need to show query output more than 255 charaters but system is not allowing
    Here is the Error message:
    List is wider than 255 characters (generation not possible)
    I used SQ01 as t-code to create query.
    How can i show my output more than 255 characters
    Thanks

    Refer SAP Note 857823, ALV grid cannot display more than 128 characters per field and will truncate all the characters beyond if it's an ABAP program
    From my experience it will not display the field at all in SQ01.
    You need to write an abap program and split the field into two fields of length 128 and display side by side.
    Work around:  If you cannot write abap program uncheck (no display in query) that field in SQ02 and generate it. Execute your query and copy the key field use se16n to input in the key fields and use import to excel sheet function to get the required data.

  • How to send text file as an email attachment havin more than 255 characters

    My requirement is to generate a text file and to send this text file as E-mail attachment. I am using FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' to send the E-mail. but here the limitation is the number of characters per line must not be more than 255 characters whereas in my case it is exceeding 1000 characters per line. could anyone please suggest me what should i do now ? Each field in the text file has to be tab delimited.

    Simplest might well be to use javamail API instead of the two tags that Sites provides, e.g. see email - Sending mail attachment using Java - Stack Overflow for a full example.
    Phil

  • Send excel attachment with more than 255 characters in the internal table

    Hi,
    I need to send an attachment in the form of spreadsheet.
    But the internal table that is being used for sending attachment in mails can have only 255 characters in one row.
    Whereas my spreadsheet requires a greater width than 255 characters .

    Hi,
    I need to send an attachment in the form of spreadsheet.
    But the internal table that is being used for sending attachment in mails can have only 255 characters in one row.
    Whereas my spreadsheet requires a greater width than 255 characters .

  • More than 255 characters required in excel send as attachment in mail.

    Hi Experts,
    I have a requirement to send displayed list in an ALV report as attachment in excel through mail. I have used FM SO_DOCUMENT_SEND_API1. Now the problem is my excel data in more than 255 characters in a line. It is about 400 characters.But it is taking upto 255 characters in the internal table which is passed to parameter contents_bin . This is because the internal table is of type SOLISTI1. But the excel should hold atleast 400 characters as per my requirement. How to overcome this issue ? Please suggest me...
    Regards,
    SURYA

    Say your records are exactly 400 length (I am saying 400 for sake of simplifying things, in reality record lengths can be variable and have to be calculated using STRLEN)
    You will cut the first record at 255 length and put it in first row. You will put next 145 characters in 2nd row, followed by newline characters (hex 0D and 0A) at positions 146 & 147 (which indicates end of record for excel, so that it puts next record in a new excel row).
    The second record will start from 148th character in second row till 255, that is 108 characters and will extend into 3rd row till 400 - 108 = 292th character followed by newline characters (hex 0D and 0A) at postions 293 & 294, followed by contents of 3rd record and so on and so forth.
    If you records are of variable length you can also think of always blank padding them to create a record of such a fixed length that always your records are lesser than that and fit into it. This will leave some blank spaces at the end of each record in excel, which may be fine.

  • ABAP Programming to display more than 255 characters in the screen

    Hi
       I want to display more than 255 characters in the screen after executing a report but i cant able to do that.
    Please help me to find out the solution.
    Thanks
      Mrutyunjaya Trpathy

    Hai tripathy,
    when the output of a report contains columns extending more than 255 characters in length.  In such cases, this set of ALV functions can help choose selected columns and arrange the different columns from a report output and also save different variants for report display. This is a very efficient tool for dynamically sorting and arranging the columns from a report output. The report output can contain upto 90 columns in the display with the wide array of display options.
    The commonly used ALV functions used for this purpose are;
    1.REUSE_ALV_VARIANT_DEFAULT_GET
    2.REUSE_ALV_VARIANT_F4
    3.REUSE_ALV_VARIANT_EXISTENCE
    4.REUSE_ALV_EVENTS_GET
    5.REUSE_ALV_COMMENTARY_WRITE
    6.REUSE_ALV_FIELDCATALOG_MERGE
    7.REUSE_ALV_LIST_DISPLAY
    8.REUSE_ALV_GRID_DISPLAY
    9.REUSE_ALV_POPUP_TO_SELECT
      hope u can try in this way.
    REGARDS,
    PRABA.

  • ALV Cell with more than 255 characters.

    Hello Guru's,
    I need to display a longtext in ALV with other details. I am using READ_TEXT to get the Longtext and appending it to Internal table field, which i have defined as a string. I have debugged the code and it is containing around 450 characters. But, when i am trying to display using "REUSE_ALV_GRID_DISPLAY" it is only displaying 255 characters.
    Please suggest a solution.
    Thanks,
    Sudhir.

    Sap provides a set of ALV (ABAP LIST VIEWER) function modules which can be put into use to embellish the output of a report. This set of ALV functions is used to enhance the readability and functionality of any report output. Cases arise in sap when the output of a report contains columns extending more than 255 characters in length.
    In such cases, this set of ALV functions can help choose selected columns and arrange the different columns from a report output and also save different variants for report display. This is a very efficient tool for dynamically sorting and arranging the columns from a report output.
    The report output can contain up to 90 columns in the display with the wide array of display options.
    The commonly used ALV functions used for this purpose are;
    1. REUSE_ALV_VARIANT_DEFAULT_GET
    2. REUSE_ALV_VARIANT_F4
    3. REUSE_ALV_VARIANT_EXISTENCE
    4. REUSE_ALV_EVENTS_GET
    5. REUSE_ALV_COMMENTARY_WRITE
    6. REUSE_ALV_FIELDCATALOG_MERGE
    7. REUSE_ALV_LIST_DISPLAY
    8. REUSE_ALV_GRID_DISPLAY
    9. REUSE_ALV_POPUP_TO_SELECT

  • Excel 2007 to Sql server table. Column with more than 255 characters.

    Hi there,
    I am facing a problem while converting data from Excel 2007 to SQL server 2005 table. I am using BIDS 2005.I have an excel file where one particular column has more than 255 characters. I use OLEDB connection for excel file as there is no driver for Excel
    2007 in BIDS2005. I am using Microsoft Office 12.0 Access Database Engine OLE DB Provider for Excel file.
    Next, I changed advanced properties for the column to DT_NTEXT. But when I am getting errors on execution. They are:
    [OLE DB Source [1949]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E21.
    [OLE DB Source [1949]] Error: Failed to retrieve long data for column "action".
    [OLE DB Source [1949]] Error: There was an error with output column "action" (2046) on output "OLE DB Source Output" (1959). The column status returned was: "DBSTATUS_UNAVAILABLE".
    [OLE DB Source [1949]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "output column "action" (2046)" failed because error code 0xC0209071 occurred, and the error row disposition on "output column "action"
    (2046)" specifies failure on error. An error occurred on the specified object of the specified component.  There may be error messages posted before this with more information about the failure.
    Please advise on how can I deal with columns having more than 255 characters in Excel file.
    Thanks!

    Here is what your connection string should look like for excel source
    Provider
    =Microsoft.Jet.OLEDB.4.0;Data
    Source=c:\temp\test.xls;Extended
    Properties="EXCEL 8.0;HDR=YES";
    http://sqlworkday.blogspot.com/

  • Spool output more than 255 characters

    Hi ,
    i am running a ALV report in background whose output is more than 255 characters . but spool is showing only 255 charcters.
    Do we have any setting to change to display all characters.
    Or any OSS notes that can be applied.
    Thanks & regards,
    Sonika Ahuja

    Hi,
    You need to change the Format Type through SPAD transaction. The Format Type decides the number of rows and columns per page. By creating a new format type as per your requirement would solve the probelm.
    Also, in the Report declaration, change the Line-Size to 300 or as per the width of your output.
    For further details pls. refer this thread :
    Re: Spool List output display > 255 char when the rpt is run in Background
    Best regards,
    Prashant

  • More than 255 characters in a table text field

    Dear experts,
    i am facing a problem (in WD Alv too) that i can not display more than 255 characters in a single text field.
    I want to display a table containing a description field without a limitation of its length. As soon as providing a (formatted) string longer than 255 characters of length, no interactive form is shown on screen.
    Debugging a while, the following error message occurs;
    ADS: com.adobe.ProcessingException: com.adobe.ProcessingException: XMLFM Exception - PDF render operation exception, reason code: 0 : InvalidXDPException: Xml parsing error: reference to invalid character number (error code 14) ...
    Does anybody have similar problems to mine?
    Did anyone resolve the issue to show more than 255 characters in a table in interactive form?
    Regards,
    Florian Royer
    Edited by: Florian Royer on Feb 11, 2010 2:48 PM

    CALL METHOD lr_service_manager->retrieve
            EXPORTING
              iv_bo_name       = 'cPro_Project' "lv_bo_name "cPro_Project
    *      iv_bo_name      = cl_dpr_api_co=>sc_bo_cprojects "
              iv_bo_node_name =  'Longtext.Root' "lv_bo_node_name "Longtext.Root
              it_keys         = lt_ltext_key
              iv_edit_mode    = '0' "iv_edit_mode "0
            IMPORTING
              et_data         = lt_longtext_mast
              et_failed_keys  = lt_ltext_key_fail.
          READ TABLE lt_longtext_mast INTO ls_longtext_mast INDEX 1.
          MOVE ls_longtext_mast-longtext TO ls_action_item-zz_description.
    This is how i get the text with format (line feeds).
    zz_description is type string.
    My table is on a page, wrapped in a subform. and zz_description is type text field.
    Yes, i maintained "allow multiple lines" and did not limit length somehow.
    The problem arises in portal, pressing the preview button of a zform. providing a string <255 characters of length, everything works fine.
    Edited by: Florian Royer on Feb 11, 2010 3:10 PM

  • 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.

  • Display more than 255 characters in SAP 4.6c version.

    Hi
    Can anyone tell me how to display more than 255 characters in the spool log  of sap or the application server?
    Thanks in advance.
    Geeta

    Hi,
      You have to have some patch.Pls refer to SAP oss notes 626010.
    Pls reward if useful.
    Sushil.

  • Inserting data with more than 255 characters in to MSACCESS through JDBC

    Hi All,
    I have developed a product using servlets,JDBC,HTML.The backend is MS access database.
    I have to provide an option for the user to key in more than 255 characters of data in the textarea & then store it in the access database.But i read that access ODBC driver has a limit of 255 characters.Is this correct.
    I tried changing the Datatype of the field from text to Memo field in MS ACCESS.But when i insert the data using setString method of the PreparedStatement ,it's giving the following SQL exception:SQLException caught:[Microsoft][ODBC Microsoft Access Driver]String data, right truncated (null)
    How do i let an user key in more than 255 characters.Can somebody help me on this please ASAP as this is a very crucial issue which i need to solve by tomorrow.
    Thanks in Advance
    GCR

    hi rashmi,
    HOw bout using CLOB facility to store such large strings?? try it.
    Cheers,
    -Jer

Maybe you are looking for

  • MacBook Pro crashes after upgrade to 10.8 Mountain Lion

    Upgraded MBP to 10.8 when it first came out but it crashes all the time. I have since reinstalled OS X many times to cure various problems of CD drive not working, USB ports disconnecting drives, etc. but the crashing hasn't stopped. I finally took t

  • Process Order Settlement Rule by Order Type

    Hi Experts Our Client  a requirement to have Process Order Settlement by Order Type please let me know how it can be achieved In SAP  a Process Order Variance is settled via the following Combination in OBYC  :- 1 Chart of Accounts 2 Transaction PRD

  • Tax jurisdiction code

    Hi All, I have PO number against which Invoice has been genrated. I need to know how can we find the tax calculated based upon Tax Code and Tax Jurisdiction Code. Also need to know how can we determine Tax Code and Tax Jurisdiction Code from PO numbe

  • Exchange information store service is not starting on exchange 2010

    i've run the updates on the exchange 2010 and restart the servers, after one week i've restart the 2003 dc and exchange 2010. now exchange information store service is not starting on exchange 2010 and the database are dismounted help pls

  • Mobile Studio

    Hi, I am very new to Mobile Sales. can anyone tell me how I can view a particular BP from production environment using  MA Studio? please help. Regards, Ryan.