How to send URL (of length 500 Characters) in SAP Mail??

Hi Everybody,
I need to send the URL in SAP mail  using FM SO_NEW_DOCUMENT_ATT_SEND_API1.
The URL is of length 500 characters. Is there anyway I can send this URL in mail, even as attachment will do.
The Mail is accepting 255 characters in one line. In my case I need to split it in to two lines.
But in mail only firstline is coming as URL and next line is truncating.
Thanks in advance.
Praveen.

hi prashant,
using this function module.... when sending the url into attachement it will not take any text beyound 255 caharacters.
so u need to split your url and add the remain to the next line of the internal table that ur passing to this FM.
in the form where u build the table for the attachment
FORM f_build_datatable.
DATA: lwa_excel TYPE gty_excel,
        lwa_attach_list TYPE solisti1,
        lv_attach TYPE string,
        lv_xcnt        TYPE i.
     loop at gt_url into lwa_url
CONCATENATE lwa_url INTO lv_attach SEPARATED BY gc_con_tab .
    CONCATENATE lv_attach gc_con_cret INTO lv_attach.
    DO.
      lwa_attach_list-line = lv_attach.
      APPEND lwa_attach_list TO gt_attach_list.
      lv_xcnt = STRLEN( lv_attach ).
      IF lv_xcnt > 255.
        lv_attach = lv_attach+255.
      ELSE.
        EXIT.
      ENDIF.
    ENDDO.
    CLEAR: lwa_url, lwa_attach_list.
  ENDLOOP.
ENDFORM.                    " f_build_display_file
Code Formatted by: Alvaro Tejada Galindo on Jan 8, 2009 2:48 PM

Similar Messages

  • HT1355 How to send 2 or more pdf files in e mail

    How to send 2 or more pdf files in e mail...????????

    Also i have a workspace created in html.oracle.com in that when i want to upload excel file or copy data from excel i am getting error as......
    ORA-20001: create_table error: ORA-20001: Excel load run ddl error: ORA-01658: unable to create INITIAL extent for segment in tablespace FLOW_6868Looks like the data you're trying to load will exceed your workspace quota (2MB small, 5MB medium). Try loading fewer rows.

  • How  to send text file as an attachment to exteral mail

    hi ,
    Can any one tell me how to send an internal table as a textfile attachment  to the external mail.
    regards
    kishore

    hi,
    i am assuming txt fie attachment means you want notepad attachment
    recently i struggled on this and i achieved success by doing as below
    remember to keep packlist as RAW type like below:
    t_packing_list-doc_type = 'RAW'.
    do like this
    CALL FUNCTION 'SO_SOLITAB_TO_SOLIXTAB'
        EXPORTING
          ip_solitab        = t_attachment[]
       IMPORTING
         EP_SOLIXTAB       = xtext[].
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data                    = w_doc_data
         PUT_IN_OUTBOX                    = 'X'
        COMMIT_WORK                      = 'X'
        tables
          packing_list                     = t_packing_list
        OBJECT_HEADER                    =
        CONTENTS_BIN                     = objbin
         CONTENTS_TXT                     = it_message
         CONTENTS_HEX                     = xtext
        OBJECT_PARA                      =
        OBJECT_PARB                      =
          receivers                        = t_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

  • How to send sales orders through XI  to non sap system

    Hello Experts,
    i need to send Sales order details from ECC to non sap system.
    anybody can help me to proceed with this in detailed way.
    i know how to send idoc through xi between sap systems.
    But i need between sap to non sap system.
    Thanks & Regards,
    Lakshmi..

    Hi !!
    Check this weblog on how to enable SSL:
    /people/gregor.wolf3/blog/2005/10/11/setup-https-ssl-for-the-sneak-preview-sap-netweaver-04-abap-edition-on-windows
    refer this realtive thread which shows the .NETnet integration with XI
    Re: .NET Client Integration with SAP XI
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2131 [original link is broken] [original link is broken] [original link is broken]
    for idoc related settings in r/3 refer the below link...
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/73527b2c-0501-0010-5398-c4ac372c9692
    IDoc to File scenario
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    check this out ..
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFAALEQS/CABFAALEQS.pdf
    http://www.thespot4sap.com/Articles/SAP_ALE_Introduction.asp
    Also go thru this Blogs
    ALE Configuration for Pushing IDOC's from SAP to XI by Swaroopa Vishwanath
    Configuration Steps for Posting IDOC's by Ravikumar Allampalam.
    IDOC - File scenario
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    configuring IDOCS
    /people/sravya.talanki2/blog/2006/12/27/aspirant-to-learn-sap-xiyou-won-the-jackpot-if-you-read-this-part-iii
    IDOC scenarios
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cdded790-0201-0010-6db8-beb9bb2b2660
    Idoc related setting
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/73527b2c-0501-0010-5398-c4ac372c9692
    refer this thread also
    Integration between sap and non-sap
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/5651.. [original link is broken] [original link is broken] [original link is broken]
    also referthe concept of SSO
    To undersand SSO scenarios gothro the links in my reply in the following thread:
    SSO scenarios and configuring steps
    Check the following link to know the procedure for user mapping:
    Procedure to follow for user mapping.
    The following link gives you more idea on User Mapping:
    More Info on User Mapping
    Pls reward if useful

  • How to send messages to the specified user through sap

    how to send messages to the specified user through sap

    Hi Santosh,
    try:
        CALL FUNCTION 'TH_POPUP'
             EXPORTING
                  CLIENT         = SY-MANDT
                  USER           = BNAME "User you want
                  MESSAGE        = MSG "text you want
             EXCEPTIONS
                  USER_NOT_FOUND = 1.
    Regards, Dieter

  • How to send URL link along with text in an email using FM.

    Hi Experts,
    I am sending an e-mail for status notifications.
    In the mail, the user will clik on the URL to do actions through the link.
    Ex:
    Dear,
    Please go through the link htttp://appear.upload/records/update.
    When user clicks on htttp.... url it should open the portal.
    I am sending text mails but unable to open the site url action .
    Regards,
    prasad

    Hi ,
    Pls check below link.
    http://wiki.sdn.sap.com/wiki/display/ABAP/SendingMails-HomePage

  • How to display only specified length of characters in text control

    Hi,
    I am using text control in swf file. In this file, i want the display text upto 15 charaters and if more, then present with [.....]
    Please provide solution for this.

    Here ya go   For 15 character limit...
    <mx:Label text="{(textInputA.text.length > 15)?textInputA.text.substr(0,15)+'[...]':textInputA.text}"/>
    This uses textInputA as a textInput box that someone can type into.  The result is that in the Text/Label component, it checks the length of the value of textInputA and if it's longer than 15 characters, it trims any characters beyond 15 and adds [...] to the end.
    You can substitute other things instead of a textInput control, but I used it here as it's the easiest way to explain.
    Let me know if this helps you

  • How to send a project containing multiple pictures by e-mail?

    I have previously used Photoshop Album 2.0 on PC, and have just purchased an iMac and the PSE 6.0 for it.
    I have a leisure-time project at hand, where I would like to send some 30 pictures for review for some people.
    With Photoshop Album, I could in similar cases include all the photos in a collection and then make a small slide show out of it. the size was circa 2 Mb, with music included. Now when I try to do the same in PSE 6.0, the file size is 38 Mb. That is WAY too big to be sent my e-mail.
    What do you suggest - how could I send multiple small resolution pictures by e-mail? I do not want to use web gallery. The pictures do not need to be of high resolution, but something more than thumbnails still.

    Responding to "is it safe"...
    With Flickr or JAlbum you upload your images to a web host and provide a link so another person can view those pictures. Both programs have built-in ftp functions so they upload for you.
    I can't think of anything about either that would be unsafe, but your images could be viewed by complete strangers if you don't mark them "private". Normally, you wouldn't care who views your images.
    Google Flickr and JAlbum and follow the steps to set up the program. Both very simple. These are just two suggested ways to put your images up for review by other people. There are dozens of other ways to do it. These two are free and simple to use.
    If you do want to work in Elements, and send the results as an attachment to email, then a slideshow saved in the .pdf format is the best solution.
    If your images are 2mb, then you are trying to send images that are about 2000 px x 3000 px right out of the camera. That's a 10" x 6.5" image at 300 dpi. Your viewer doesn't need that large a file to see the image.
    Resize those images to, say, 500 px on the longest side and your viewer will still see the same image in the same detail on his screen. The file will be just over 100 kb.
    Save your original in the 2mb size, and use Save As with a different file name for the reduced size images you'll send.

  • Central Management server - executed a query but how to send the query output in the form of mail?

    Hi All,
    i have used CMS in SQL 2008 R2. i have added couple of servers in its group. i have executed a query & i need to send the query output in the form of email.
    basically query is checking the rows count from couple of user tables in servers.
    issue here is how to copy the data that is used by CMS? i need to work on automate the rows count in difft user table in db servers
    could you please suggest how can i achieve this?

    Copy to what?
    SELECT COUNT(*) FROM sys.objects
    Running the above statement returns two columns (server name and count)
    All the servers SS2005  and onwards , then use
    EXEC msdb.dbo.sp_send_dbmail 
         @profile_name = 'name', 
         @recipients = '[email protected]', 
         @query = 'SELECT COUNT(*) FROM sys.objects', 
         @subject = 'Count rows'
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How to create variable record length target file in SAP BODS

    Hi All
    I have a requirement to create target file which will have various record layout; meaning different record length (similar to cobol file format), but this is for the target. Please let me know what is the best practice and how to solution this requirment.
    Thanks
    Ash

    Hi Shiva,
    Thanks for your feedback. My issue is that I have 10 different detail records (each record type is fixed length).
    For each customer account, I have to write to file the header record, the detail records in the exact order, then continue with next account and so on and then write the trailer record. I have given sample layout below. Highlighted text is the record identifier in this exmaple while the underlineds are account numbers. Fields are fixed length right padded with space or 0.
    220700000000SA00    Wednesday     2014-12-12  ASA00034 334 000   ---> (this is header)
    220700000010SA10 AAb   00000+000000+ Akab xxxx bb   0000000000943 3433 --> (detail rec)
    220700000010SA14 AAA  00034354 DDD 000000000+    --> (detail rec)
    220700000010SA15 888e a88 00000000+            --> (detail rec)
    . . . . . remaining detail records
    220700000012SA10 AAb   00000+000000+ Akab xxxx bb   0000000000943 3433 --> (detail rec)
    220700000012SA14 AAA  00034354 DDD 000000000+   --> (detail rec)
    220700000012SA15 888e a88 00000000+           -->  (detail rec)
    . . . . . remaining detail records
    220700000000SA99    Wednesday     2014-12-12  d334 000   --> (trailer is header)

  • How to send a text attachment by using jdbc to mail scenario Using single stack 7.31

    Hi Experts...
        We are currently  Single Stack  SAP  7.31
    I have a Scenario that is "JDBC to MAIL"  ...here i need to pick a data from data base and i have to sent that data as a .txt attachment to mail by using mail  adapter...
    here i have created DT, MT SI, MM,OP  > ESR PART
    when coming to  ID > BC,CC,ICO
    Were all the channels are  running... MESSAGE ID is generated ... But I was  not getting any MAIL to my Email ID...
    While i was configuring the RECIEVER mail communication channel i have seen the tab that is "MODULE CONFIGURATION"
    DO we have to do any MODULE CONFIGURATION.. If it is needed please let me know how to do....?
    It would be appreciated can some one explain me step by step Of this MODULE CONFIGURATION ... Are send me some SCREEN CHARTS  OR  LINKS to under stand......
    Thanks in Advance ...!!!!!!!!!!!!
    Thanks,
    vinay

    Hi Experts...
        We are currently  Single Stack  SAP  7.31
    I have a Scenario that is "JDBC to MAIL"  ...here i need to pick a data from data base and i have to sent that data as a .txt attachment to mail by using mail  adapter...
    here i have created DT, MT SI, MM,OP  > ESR PART
    when coming to  ID > BC,CC,ICO
    Were all the channels are  running... MESSAGE ID is generated ... But I was  not getting any MAIL to my Email ID...
    While i was configuring the RECIEVER mail communication channel i have seen the tab that is "MODULE CONFIGURATION"
    DO we have to do any MODULE CONFIGURATION.. If it is needed please let me know how to do....?
    It would be appreciated can some one explain me step by step Of this MODULE CONFIGURATION ... Are send me some SCREEN CHARTS  OR  LINKS to under stand......
    Thanks in Advance ...!!!!!!!!!!!!
    Thanks,
    vinay

  • How to send the entire binary file as Content in mail adapter

    Hi,
    I have the below scenario:
    A binary file is there on the XI server and this is more than 1 lines.
    This file needs to be sent across to certain email addresses via the XI interface.
    I have made the design and config and now get the the mail but so far not been able to get the file contents.
    The requiremnet is to send the entire file contents in the mail so that they appear in the body of the received mail.
    How do i do it?
    Can you please advice.
    Regards,
    Archana

    Hi,
    I am giving below the incoming mesasge details and the outgoing Mail message details.
    Sender File Adapter:
    Mesasge Content/Payload:
      <?xml version="1.0" encoding="utf-8" ?>
    - <ns:MT_Ack_Mail_In xmlns:ns="Urn:Serco-com:interface:Banking:HSBC:FileTransfer">
    - <Content>
    - <Mail>
      <Details>UNBUNOA:3HEXAGON-ABCABC10268002081201:2152+692125127893</Details>
      </Mail>
    - <Mail>
      <Details>UNH1CONTRL:2:2:UN:APACS</Details>
      </Mail>
    - <Mail>
      <Details>UCI1000246720ABC10268002HEXAGON-ABC4+C09</Details>
      </Mail>
    - <Mail>
      <Details>UNT31</Details>
      </Mail>
    - <Mail>
      <Details>UNZ1692125127893</Details>
      </Mail>
      </Content>
      </ns:MT_Ack_Mail_In>
    Receiver Mail Adapter:
    Message Content/Payload:
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
      <Subject>ME-Acknowledgement</Subject>
      <From>email of from</From>
      <To>my email</To>
      </ns1:Mail>
    I need to map the contents of the incoming payload Contents/Mail/Details (all the 5 instance) to outgoing Missing Content (after To field).
    If it can be in Mail body, then it would be best else please suggest what other option can I use?
    Also, If i want the file name to be in the subject of the mail, is that possible to be picked up in the configuration?
    Please help.
    Regards,
    Archana

  • How to send a large batch of photos by e mail ?

    How can I send a group of photos, export them, zip them ( or condense them) and then send a folder to another person?
    Instead of sending 15 emails?

    1 - select the photos in iPhoto and click "e-mail"
    Or 2 - select the photos and export them to a folder (file menu Export) and right click (control click) on the folder and select compress [folder name] and then attach that folder to an e-mail
    LN

  • How to send ALV Report in excel format from SAP

    Hi Gurus,
    We are using SAP 4.7 and using different SAP reports.Now I want to send SAP ALV report in excel format directly from SAP in background.Now we send these reports in background weekly by using autimetic scheduling but this is PDF format.Now I want to change this pdf format to excel format.In SCOT T.Code I am able to find any excel format.Please help me out.
    I am waiting for your reply.
    Advance Thanks
    Nirmal

    Hi Nirmal,
    I have done the same in my previous organisation.For this particular solution you need to ask your basis guys to upgrade the support package so that BCS classes could be available in the system.
    API interafces five some problem with attachemnts and SAP has recommended to use BCS classes.
    Currently BCS classes won't be availbale in 4.7.
    Once the BCS classes are available
    use below code
       CONSTANTS:
        lc_tab          TYPE c VALUE cl_bcs_convert=>gc_tab,
        lc_crlf         TYPE c VALUE cl_bcs_convert=>gc_crlf,
       lc_codepage     TYPE abap_encod VALUE '4103',
    data :
       lv_string      TYPE string,
       binary_content TYPE solix_tab,
       size           TYPE so_obj_len,
       *" Set Heading of Excel File
      CONCATENATE 'Employee DATA'
                   lc_crlf lc_crlf
                   INTO lv_string.
       *" Set Header for Excel Fields
      CONCATENATE lv_string
                  lc_header1 lc_tab
                  lc_header2 lc_tab
                  lc_header3 lc_tab
                  lc_header4 lc_tab
                  lc_header5 lc_tab
                  lc_header6 lc_tab
                  lc_header7 lc_tab
                  lc_header8 lc_tab
                  lc_header9 lc_tab
                  lc_header10 lc_crlf
                  INTO lv_string.
    "lc_header1 to 10 could be your field headers
       "Move Internal table data
      LOOP AT gt_final1 INTO gwa_final1.
        CONCATENATE lv_string
                    gwa_final1-field1     lc_tab
                    gwa_final1-field2      lc_tab
                    gwa_final1-field3    lc_crlf
                    INTO lv_string.
      ENDLOOP.
       *" convert the text string into UTF-16LE binary data including
    *" byte-order-mark. Mircosoft Excel prefers these settings
    *" all this is done by new class cl_bcs_convert (see note 1151257)
      TRY.
          cl_bcs_convert=>string_to_solix(
            EXPORTING
              iv_string   = lv_string
              iv_codepage = lc_codepage  "suitable for MS Excel, leave empty
              iv_add_bom  = abap_true     "for other doc types
            IMPORTING
              et_solix  = binary_content
              ev_size   = size ).
        CATCH cx_bcs.
          MESSAGE e445(so).
      ENDTRY.
      TRY.
    *" create persistent send request
          send_request = cl_bcs=>create_persistent( ).
          document = cl_document_bcs=>create_document(
            i_type    = lc_doc
            i_text    = main_text
            i_subject = lc_sub  ).     
          document->add_attachment(
            i_attachment_type    = lc_attach                    "#EC NOTEXT
            i_attachment_subject = lc_sub                       "#EC NOTEXT
            i_attachment_size    = size
            i_att_content_hex    = binary_content ).
       send_request->set_document( document ).
       recipient = cl_cam_address_bcs=>create_internet_address( email ).
       CALL METHOD send_request->add_recipient
              EXPORTING
                i_recipient = recipient.
       IF recipient IS NOT INITIAL.
            sent_to_all = send_request->send( i_with_error_screen = abap_true ).
            COMMIT WORK.
    *        MESSAGE text-014 TYPE gc_succ  .
          ENDIF.
        CATCH cx_bcs INTO bcs_exception.
          MESSAGE i865(so) WITH bcs_exception->error_type.
      ENDTRY.
    For BCS decalartion u can go to se 38 and see program BCS_EXAMPLE_1 to BCS_EXAMPLE_7.
    Rewrads if helpful.
    Cheers
    Ramesh Bhatt

  • How to send original filename as the attachment name through mail adapter?

    Hi,
    I have a File to Mail scenario where the file is picked up from a folder in R/3 system and is sent as an attachment through mail. The requirement is to send the file unconverted and with the same file name.
    When tried without creating any ESR objects, it was sending the file with the name Untitled.xml.
    Since the filename has to be picked dynamically, I am not able to configure it through module parameters also (where we can set it through Content_Disposition)
    I tried configuring it as mentioned in the following link: [http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=138084630]
    But still it is going as Untitled.xml with the whole mail package as the content of the attachment.
    Any pointers to solve this issue will be of great help.
    Thanks
    Justin

    there is no standard way so you will  have to write module beans.
    in other way:
    XI Mail Adapter: An approach for sending emails with attachment with help of Java mapping - XI Mail Adapter: An approach for sending emails with attachment with help of Java mapping
    Dynamic name in the mail attachment - pseudo "variable substitution" :
    XI: Dynamic name in the mail attachment - pseudo "variable substitution"
    Dynamic attachment name in receiver mail adapter

Maybe you are looking for

  • Short dump error when using count(*)

    Hi Experts I am getting a short dump error when selecting the records >= current date - 30 see the coding and comment please correct the coding I want to know the ztable records it is important for command interface. I have 1402345 records available

  • Is there an easy way to print a PDF in B/W in Lion?

    I would very much like to print in black and white to save ink (I hate printing). Is there an easy (or not-so-easy) way to do this in OS X 10.7 Lion? Thanks.

  • Price limit for material -- very urgent requirement

    hi gurus, i m facing a prob., actually we want to assign a certain amount for a material and we ask our users to procure that material from any vendor, But they can not exceed that limit which we had defined  while creating the info-record and Purcha

  • Urgent: How to put webdynpro in the folder of favorit list?

    Hi! We have a need to put webdynpro applications in a folder in the users' favorit list so that users can access the webdynpro applications quickly. Could you tell what is the best way to do it? Points guaranteed. Thanks! null

  • Displaying the PDF ByteStream on to the browser?

    Hi, I want to display a pdf on the browser. I have with me the byte stream, using which I need to display the pdf directly on the browser. Currently, I am storing it in my local file system by creating a file output stream. But its taking a lot of ti