Mail Subject with more than 50 char

Hi everybody,
I'm using the function SO_OBJECT_SEND to send mails. To give a subject to my mail, I'm passing it in the structure OBJECT_HD_CHANGE, field OBJDES.
By doing this, my subject is limited to 50 chars...
Is there another way to give the subject ? another function ?
Thx !!

Hi,
Nopes this is a limitation in SAP. Even in the Send mail step of workflow the subject line is limited to 50 charachters and all the function modules to send mails have the subject line constrained to 50 charachters.
Also the class CL_DOCUMENT_BCS which is the latest form of sending mails has the subject line constrained to 50 chars.
Best regards,
Sudhi

Similar Messages

  • Freetext with more than 300 char show with function or class

    Hi all
    I search a function or a Class how could show freetext with more than 300 char like a popup.
    Now somebody one ?
    Thanks in advance

    Hi
    Try to use HELP_DOCULINES_SHOW
    Max

  • PL/SQL process returning message with more than 4000 chars

    In our apex application we are using a pl/sql process returning a message.
    This message should be shown to the user.
    Our problem is now, that the application items in APEX seem to be limited to 4000 chars and the message can be longer.
    We are also not able to use a collection, because we can't print the content of a collection in the "Process Success Message".
    Here is the content of a page process which is running on page load after header:
    Name - Type:     PL/SQL anonymous block
    Source - Process: :AI_TEST := p0001_pkg.get_text;
    Messages - Process Success Message: &AI_TEST.
    Image from process [https://twitter.com/OliverLemm/status/324058809138032640/photo/1/large]
    If the page is called the result is this error message:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Technical Info (only visible for developers)
    is_internal_error: false
    ora_sqlcode: -6502
    ora_sqlerrm: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    component.type: APEX_APPLICATION_PAGE_PROCESS
    component.id: 16433072916569237418
    component.name: get_text
    error_backtrace:
    ORA-06512: at "APEX_040200.WWV_FLOW_PROCESS", line 100
    ORA-06512: at "APEX_040200.WWV_FLOW_PROCESS", line 141
    Edited by: Oliver L on 16.04.2013 09:17

    no an item like P0_TEST on page 0 / global page also does not help.
    But the error is not the application item / page item it's the problem that the "Process Success Message" can't handle more than 4000 chars.
    I tried to paste a string into the process success message, but the error "Error processing row. ORA-01461: can bind a LONG value only for insert into a LONG column" occured even when i filled the textarea and saved the process.
    So there's no problem with the application item or page item.
    Edited by: Oliver L on 16.04.2013 10:00

  • Attach xls file with more than  255 chars

    Hi all,
    I'm trying to send an .xls file as attachement whose row contains more than 255 chars with FM 'SO_NEW_DOCUMENT_ATT_SEND_API1'.
    When preparing the attached table, I tried to separate the tables like this:
    loop at itab.
      concatenate itab-col_1 itab-col_2 itab-col_3 into it_attach
        separted by cl_abap_char_utilities=>horizontal_tab.
      append it_attach.
      concatenate itab-col_4 itab-col_5 itab-col_6 into it_attach
        separted by cl_abap_char_utilities=>horizontal_tab.
      append it_attach.
      concatenate IT_ATTACH cl_abap_char_utilities=>newline into it_attach.
      append it_attach.
    endloop.
    I am able to send this xls as attachment, but when open it in excel/notepad,
    it is so strange that there are so many spaces before the contents itab-col_4 which is unexpected.
    It is expected that the file is tab-delimited with continuous column 1-6.
    Any things went wrong?
    Many Thanks!

    Thanks.
    I tried the first method to convert the byte to string, but a short dumps is resulted,
    DATA: con_tab TYPE x,
               sep TYPE string.
    con_tab = '09'.
    CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
                EXPORTING
                  in_xstring = con_tab
                IMPORTING
                  out_string = sep.
    so I use back my original method to concatenate the columns as suggested, i.e.
    concatenate itab-col_1 tab itab-col_2 tab itab-col_3 tab into it_attach
    append it_attach.
    concatenate itab-col_4 tab itab-col_5 tab itab-col_6 into it_attach.
    append it_attach.
    concatenate it_attach cl_abap_char_utilities=>newline into it_attach.
    append it_attach.
    but the outcome is still the same, i.e. ...many leading space before itab-col_4
    any more ideas? Many Thanks

  • Upload Excel file to itab with more than 255 chars

    I want to upload an excel file to internal table with more than 255 characters in one of the field. However it restricts the upload to only 255 characters. Currently I am using the code
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
      EXPORTING
    i_field_seperator = 'X'
    i_line_header = 'X'
         i_tab_raw_data = wa_tab_raw_data
         i_filename = p_file
      TABLES
         i_tab_converted_data = <fs_table>
      EXCEPTIONS
         conversion_failed = 1
         OTHERS = 2.
    where <Fs_table> is a dynamic structure in which one column is defined as string. We cannot use FM ALSM_EXCEL_TO_INTERNAL_TABLE as it has a restriction of only 50 characters and I dont want to create a Zstruture in the system.

    It wont work for excel file type.However, with FM Gui_Upload and use a text tab-delimited file we can upload long text.
    Here is the code.
    CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = p_files
          filetype                = 'ASC'
          has_field_separator     = 'X'
        TABLES
          data_tab                = <fs_table>
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          OTHERS                  = 17.

  • Need to insert into a table 1 of the fields (CLOB)with more than 4000 chars

    Dear Gurus,
    As far I understood, I need to write a function which get as parameter the large text and using bind variables I can return a CLOB containing more than 4000 chars. I tried all I can do and feel I want to died. Please, can I get specified help in this issue?
    I APPRICIATE YOUR HELP, MARCELO.

    *** Duplicate Post ***
    Please, Marcelo, use the forum properly. Pick a single group and post there.
    Thank you.

  • Using SMTP I can not use a mail server with more than 13 characters. I get an error from TCP open

    I have no trouble sending an email if the mail server name is less than 13 characters long. I get an error 54 from TCP open when it exceeds that length. How do I get around this?

    Don't know what to say, I just tried the SMTP email VI I have with an 18-character mail server address and everything worked fine. The error 54 means that the address is ill-formed.
    The only thing I would suggest is trace the mail-server address down through the hierarchy and make sure nothing is done to modify it. Also try putting a probe on the wire going into the TCP open function and make sure the string you see there is the same one you are using. Finally, change the formatting of the control taking the address into the subvi that contains the TCP open function (SMTP Open Session.vi)to show the slash codes and make sure some invisible characters aren't getting added along the way.
    As a last resort save the vi in 6.0 format and send it to me and I'll
    try it on my system--maybe there's something screwy going on with your computer...
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Email Functionality:How to create Email Subject w/ more than 50 CHAR Length

    Hi All,
    I have a requirement that will send email, currently using FM SO_DOCUMENT_SEND_API1
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
          document_data              = w_doc_data  "Email Subj
          put_in_outbox              = 'X'
          sender_address             = w_username  "FROM EMAIL
          sender_address_type        = 'SMTP'
          commit_work                = 'X'
        TABLES
          packing_list               = t_objpack
          contents_txt               = t_text     "Email Body
          receivers                  = t_users    "TO EMAIL
        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.
    The email subject is being populated at parameter t_packing_list under structure SODOCCHGI1-OBJ_DESCR that can hold only up to 50 characters.
    In my requirement, the email subject is up to 50+ characters.
    Thanks All.

    Hi,
    Try below code:
    DATA: X_OBJECT_TYPE LIKE SOOD-OBJTP.
    DATA: BEGIN OF X_OBJECT_HD_CHANGE.
    INCLUDE STRUCTURE SOOD1.
    DATA: END OF X_OBJECT_HD_CHANGE.
    DATA: BEGIN OF X_OBJCONT OCCURS 10.
    INCLUDE STRUCTURE SOLI.
    DATA: END OF X_OBJCONT.
    DATA: BEGIN OF X_OBJHEAD OCCURS 0.
    INCLUDE STRUCTURE SOLI.
    DATA: END OF X_OBJHEAD.
    DATA: BEGIN OF RAW_HEAD.
    INCLUDE STRUCTURE SORH.
    DATA: END OF RAW_HEAD.
    DATA: BEGIN OF X_RECEIVERS OCCURS 0.
    INCLUDE STRUCTURE SOOS1.
    DATA: END OF X_RECEIVERS.
    PARAMETERS: RECEIVER LIKE X_RECEIVERS-RECNAM. " Name
    *BUILD MESSAGE HEADER
    MOVE 'Sort field goes here' TO X_OBJECT_HD_CHANGE-OBJSRT. " Sort field
    MOVE 'Name of the object goes here' TO X_OBJECT_HD_CHANGE-OBJNAM. " Name
    MOVE 'Document title goes here' TO X_OBJECT_HD_CHANGE-OBJDES. " Title
    MOVE 'F' TO X_OBJECT_HD_CHANGE-OBJSNS. " Functional OBJECT
    MOVE 'E' TO X_OBJECT_HD_CHANGE-OBJLA. " Language
    Object type of the new document
    MOVE 'RAW' TO X_OBJECT_TYPE.
    CLEAR X_OBJCONT.
    MOVE 'Contents of mail' TO X_OBJCONT-LINE.
    APPEND X_OBJCONT.
    CLEAR X_OBJCONT-LINE. APPEND X_OBJCONT.
    MOVE 'More contents' TO X_OBJCONT-LINE.
    APPEND X_OBJCONT.
    MOVE 'Still more contents'
    to x_objcont-line.
    APPEND X_OBJCONT.
    MOVE ' ' TO X_OBJCONT-LINE.
    APPEND X_OBJCONT.
    Specific header (Dependent on the object type, here RAW)
    REFRESH X_OBJHEAD.
    DESCRIBE TABLE X_OBJCONT LINES RAW_HEAD-RAWSIZ.
    MOVE RAW_HEAD TO X_OBJHEAD.
    APPEND X_OBJHEAD.
    *RECEIVERS table
    CLEAR X_RECEIVERS.
    REFRESH X_RECEIVERS.
    MOVE RECEIVER TO X_RECEIVERS-RECNAM. " Name
    MOVE 'B' TO X_RECEIVERS-RECESC. " Receiver type
    MOVE 'X' TO X_RECEIVERS-SNDCP. " Send as a copy
    MOVE 'X' TO X_RECEIVERS-SNDEX. " EXPRESS DOCUMENT
    APPEND X_RECEIVERS.
    CALL FUNCTION 'SO_OBJECT_SEND'
    EXPORTING
    folder_id = 'OUTBOX'
    forwarder = x_forwarder
    object_fl_change = x_object_fl_change
    OBJECT_HD_CHANGE = X_OBJECT_HD_CHANGE
    object_id = x_object_id
    OBJECT_TYPE = X_OBJECT_TYPE
    OUTBOX_FLAG = 'X'
    OWNER = SY-UNAME
    store_flag = x_store_flag
    importing
    object_id_new = x_object_id_new
    sent_to_all = x_sent_to_all "May need to use
    TABLES
    OBJCONT = X_OBJCONT
    OBJHEAD = X_OBJHEAD
    objpara = x_objpara
    objparb = x_objparb
    RECEIVERS = X_RECEIVERS.
    Regards,
    venkat.

  • Can we create a table field with more than 1200 char length

    Hi,
       As per business requirement, need to create new table - and one of the field should contain 1200 char length. i found the sap data element but when i was activating it was throwing an error.. is there any alternative for this.
    Thanks in advance.

    hi jayasri,
    Can you use datatype as LCHR for the character string.
    before creating the string you need to decalre one INTEGER field.
    you can refer to the table EDID4 where SDATA field declared.
    check for the data  type EDI_SDATA.
    Hope this will solve your problem.
    Regards,
    Madhavi

  • PROBLEM - I need to import Attr with more than 20 char.

    Hi,
    I need to import some text information.
    My first idea was to import them via Attribute (Attr) field. Unfortunately they are cut after 20 chars.
    Next workaround was to import into a non-used dimension (UD8 - UD 15): here the problem is, that there is no matching dimension in the target system. FAILED
    Also, trying to import in a dimension (USE AS LOOKUP) (via integration script) - that don't need to have a matching dimension in the target system - FAILED
    Are there any workarounds how script a integration script that imports the text information from a CSV file into e. g. unused dimension columns??
    Other workarounds?
    HELP - I'm lost :-)
    regards
    Hau

    Tony,
    added additional dimensions (enabled , not "use as lookup") -> done
    unchecking the use list box -> done
    how should the load rule look like. to pass them successful int essbase?
    up to now:
    import -> works
    validate (like *) -> works
    export -> :-( doesnt work
    I'm lost again...

  • Can't read E-mail address with more than 25 characters

    It is not possible to read the full e-mail address if it's longer tha 25 characters

    Hello,
    same problem for everyone I guess... only way to read the whole address is to Edit the entry... on an iPhone a click would open MobileMail.app, but that is not much help on the average iPod
    Volker

  • More than 50 char email subject to SAP inbox

    Hi Guys,
    I have the ff email reqt in my workflow:
    1. Subject with more than 50 char
    2. Message URL with more than 80 char
    3. Message text in bold
    I cannot address all 3 when using send mail step so I created an activity step instead and call my method that made use of CL_BCS class.
    But it seems like I cannot make use of it because I'm sending my email to SAP Inbox.
    Subject with more than 50 chars works only when sending outside SAP, as per note 698087.
    Is there a solution for this?
    Can I send an email to SBWP with more than 50 char?
    Please help me out, as I already exhausted all possible solutions I found on the net.
    I also implemented snote 0001523530 but it doesn't work.
    Thanks.

    Hi,
    If you need the users to approve something, this is a task not a mail (mail been only informative)
    Tasks subjects are not limited to 50 chars, you can add links to decision tasks by attaching objects and as you said yourself in HTML tags not recognized bold chars will work in the SAP business workplace.
    The second option I mentioned was to use a task which method calls a screen (to be more exact - calls a function module or a program which calls a dialog screen), and then you have all the options since this is a regular ABAP screen.
    P.S
    The extended notifications which inform users of waiting tasks is using a BSP application, in it html tags work very well.
    Ronen

  • ORA-01704:String literal too long with update of more than 4000 chars

    Hi,
    I want to update a table column in Oracle Database(version 10) with more than 4000 chars.
    The datatype of the table column is NCLOB.
    I want to achieve this with one single line of update query as below,
    update mytable set MY_DESCRIPTION = 'longdesc' where ID = '111' ;
    But there's a problem, if the 'longdesc' is more than 4000 chars, it gives the error , "ORA-01704:String literal too long"
    How can I achieve this in sql developer ?
    I dont want to do this using stored procedures, I want to do this update using only sql statement.
    Please help.
    thanks,
    sudhakar

    Hello Sudhakar,
    I am afraid, this will never work by SQL.
    Just because an SQL-Statement must not contain a string literal over 4,000 characters (or did that change lately?).
    Maybe you can bypass the limit with PL/SQL ... but you will certainly run into the 32K limit sooner or later
    regards
    Peter

  • Column Heading more than 30 char

    Hi,
    In query template I am getting the column names dynamically, I want to show Alias instead of column names but in Oracle, column Alias has a limit of 30 char.
    How can I show the Alias with more than 30 char in Query Template? I need to export the output of Query to Excel and HTML.
    Thanks,
    Anil

    Hi Anil,
    You could use an inline transform by applying an XSL stylesheet.  You could specify the long alias in the stylesheet itself.
    Alternatively, you could use a Business Logic Transaction.  It has a Column Alias Action Block.  The output of the Column Alias Action Block would be linked to a Transaction Output Property.
    The data flow will be as follows:
    Datasource - Query Template 1 - Transaction with Column Alias Action Block - Query Template 2 - Excel/HTML
    Query Template 1 will be of Type SQL.
    Query Template 2 will be of Type Xacute.
    Cheers,
    Jai.

  • How can i send an email with subject more than 50 char.

    Hi
    Can you please explain How can i send an email with subject more than 50 char?? I am using Cl_BCS=>SET_MESSAGE_SUBJECT but it is throwing an error " An exception of the type CX_SY_REF_IS_INITIAL has occured which is not caught" .
    Regards
    Alok

    Try using the following FM
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
          EXPORTING
            document_data              = i_mail_data
            put_in_outbox              = c_x
          TABLES
            packing_list               = i_objpack[]
            object_header              = i_objhead[]
            contents_bin               = i_objbin[]
            contents_txt               = i_objtxt[]
            receivers                  = i_receivers[]
          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.
    Regards
    Avinash
    Edited by: Avinash Jagtap on Dec 2, 2009 7:00 AM
    Edited by: Avinash Jagtap on Dec 2, 2009 7:02 AM

Maybe you are looking for

  • Error in receiving tableview data for selected row

    Hi Collegues , We plan to realize an application for the maintanance of  planning data . In the first step we created a value help page by using a tableview with iterator class ( 1 of the 3 methods of the Interface was filled with logic ) . We don't

  • Business Catalyst Crashing

    Hi I have a Problem with Business Catalyst within Dreamweaver. The programme itself works fine but when i click anything to do with Business Catalyst it freezes and shuts the programme down. I have re-installed several times and tried on both my PC a

  • Mavericks multiple iCloud emails stopped working

    The iCloud settings for my Apple Mail iCloud accounts have changed, not with any interaction from me. Now only one of the four iCloud accounts I have attached to my Mail client is working.   I've had these accounts since the .Mac "Family Account" day

  • Ipad loads 33 photos from my photo stream and stops

    I have spent hours trying to get iCloud photos in either Aperture or iPhoto to sync with my iPad mini. best I can do is 33 (sometimes) then it stops.  Can't wait for the new environment as this is not working.  Any suggestions?  I have tried a variet

  • Best quality for compressing data vide file

    Hi,I have a 5minute clip which I have been asked to burn on a normal cd as a data file.Whats the best exporting option I can use.should I use compressor? or should I go directly to the quicktime conversion option in final cut? thanks