Email enters only 1 line

Hi Gurus,
I am using the SO_NEW_DOCUMENT_ATT_SEND_API1 function module.
When I used an attachment, if I have 10 records, it is making a txt file that uses only the first line and separated with many spaces.
Is there a FM that will make the txt file 10 rows ( one row for each record ).
Thanks in advance.
Benedict

Hi Vijay/Anyone,
Here is the code I am using.
Is this correct?
LV_RECORD is a STRING
IT_OBJBIN is solisti1
IT_OBJBIN is also solisti1
    CALL FUNCTION 'SCMS_STRING_TO_FTEXT'
  EXPORTING
    text            = lv_record
    TABLES
      ftext_tab       = it_objbin
*break calauadc.
  CALL FUNCTION 'SCMS_FTEXT_TO_BINARY'
    EXPORTING
      input_length          = lv_size
    tables
      ftext_tab             = it_objbin
      binary_tab            = it_objbin2
EXCEPTIONS
   FAILED                = 1
   OTHERS                = 2
Thanks in advance.
Benedict

Similar Messages

  • Mail doesn't display full email text, only displays the subject line

    Mail doesn't display full email text, only displays the subject line.
    My preview shows first three lines of email, but when I chose the email specifically mail doesn't display any lines of text.  Been this way for about ten days.  Please help.  Ben

    Awesome.  Rebooting the phone worked.  I had never turned the phone off before (for the next guy - you hold down the "sleep" button for longer than you'd think and that'll do a full shutdown).  thank you for your help.

  • My email will only show the sender and subject lines, but no content.  What can I do?m

    My email will only show the sender and subject lines and does not show the content of received emails on my ipad.  How can I fix this?

    I am having the same problem. As recently as this morning, I could read entire hotmail emails on my iPhone 4  now, I can see only the sender & subject. What us up? Any solutions? Thank you.

  • Why can't I send email with subject line only?

    Why?

    I just sent an email with only a subject line, but it was from my .me account to another one; it seemed to work.

  • Creating a target group based on the BP email address only in CRM

    Hi there,
    I am currently trying to create a target group based on the business partner email address only.
    I have a list of over 1000 email addresses - these email addresses equate to a BP in our CRM system, however I do not have a list of the equivalent business partner numbers, all I have to work on are the email addresses.  With these 1000 BP email addresses I need to update the marketing attributes of each of these 1000 BP records in CRM.
    What I need is a method to find the 1000 BP numbers based on the email addresses and then use the marketing expert tool (tx. CRMD_MKT_TOOLS) to change the marketing attributes on all of the 1000 BPs.
    The issue I am having is how can I find the list of BP numbers just based on the BP email address, I tried creating an infoset based on table BUT000, BUT020 and ADR6 but I after creating attribute list & data source for this I am stuck on what to do next. In the attribute list the selection criteria does not allow me to import a file for the selection range.  I can only enter a value but I have 1000 email addresses and cannot possibly email them manually in the filter for the attribute list.   I also looked at imported a file into the target group but I do not have any BP numbers so this will not work.
    Does anyone know a method where I can create a target group based on the email addresses only without having to do any code?
    Any help would be most appreciated.
    Kind regard
    JoJo

    Hi JoJo ,
    The below report will return you BP GUID from emails that is stored in a single column .xls file and assign the BP to a target group.
    REPORT  zexcel.
    * G L O B A L D A T A D E C L A R A T I O N
    TYPE-POOLS : ole2.
    TYPES : BEGIN OF typ_xl_line,
    email TYPE ad_smtpadr,
    END OF typ_xl_line.
    TYPES : typ_xl_tab TYPE TABLE OF typ_xl_line.
    DATA : t_data TYPE typ_xl_tab,
           lt_bu_guid TYPE TABLE OF bu_partner_guid,
           ls_bu_guid TYPE  bu_partner_guid,
           lt_guids TYPE TABLE OF bapi1185_bp,
           ls_guids TYPE  bapi1185_bp,
           lt_return TYPE bapiret2_t.
    * S E L E C T I O N S C R E E N L A Y O U T
    PARAMETERS : p_xfile TYPE localfile,
                  p_tgguid TYPE bapi1185_key .
    * E V E N T - A T S E L E C T I O N S C R E E N
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_xfile.
       CALL FUNCTION 'WS_FILENAME_GET'
         IMPORTING
           filename         = p_xfile
         EXCEPTIONS
           inv_winsys       = 1
           no_batch         = 2
           selection_cancel = 3
           selection_error  = 4
           OTHERS           = 5.
       IF sy-subrc <> 0.
         CLEAR p_xfile.
       ENDIF.
    * E V E N T - S T A R T O F S E L E C T I O N
    START-OF-SELECTION.
    * Get data from Excel File
       PERFORM sub_import_from_excel USING p_xfile
       CHANGING t_data.
       SELECT but000~partner_guid FROM but000 INNER JOIN but020 ON
    but000~partner =
       but020~partner
         INNER JOIN adr6 ON but020~addrnumber = adr6~addrnumber INTO TABLE
    lt_bu_guid FOR ALL ENTRIES IN t_data WHERE adr6~smtp_addr =
    t_data-email.
       CLEAR: lt_guids,ls_guids.
       LOOP AT lt_bu_guid INTO ls_bu_guid.
         ls_guids-bupartnerguid = ls_bu_guid.
         APPEND ls_guids TO lt_guids.
       ENDLOOP.
       CALL FUNCTION 'BAPI_TARGETGROUP_ADD_BP'
         EXPORTING
           targetgroupguid = p_tgguid
         TABLES
           return          = lt_return
           businesspartner = lt_guids.
    *&      Form  SUB_IMPORT_FROM_EXCEL
    *       text
    *      -->U_FILE     text
    *      -->C_DATA     text
    FORM sub_import_from_excel USING u_file TYPE localfile
    CHANGING c_data TYPE typ_xl_tab.
       CONSTANTS : const_max_row TYPE sy-index VALUE '65536'.
       DATA : l_dummy TYPE typ_xl_line,
              cnt_cols TYPE i.
       DATA : h_excel TYPE ole2_object,
              h_wrkbk TYPE ole2_object,
              h_cell TYPE ole2_object.
       DATA : l_row TYPE sy-index,
              l_col TYPE sy-index,
              l_value TYPE string.
       FIELD-SYMBOLS : <fs_dummy> TYPE ANY.
    * Count the number of columns in the internal table.
       DO.
         ASSIGN COMPONENT sy-index OF STRUCTURE l_dummy TO <fs_dummy>.
         IF sy-subrc EQ 0.
           cnt_cols = sy-index.
         ELSE.
           EXIT.
         ENDIF.
       ENDDO.
    * Create Excel Application.
       CREATE OBJECT h_excel 'Excel.Application'.
       CHECK sy-subrc EQ 0.
    * Get the Workbook object.
       CALL METHOD OF h_excel 'Workbooks' = h_wrkbk.
       CHECK sy-subrc EQ 0.
    * Open the Workbook specified in the filepath.
       CALL METHOD OF h_wrkbk 'Open' EXPORTING #1 = u_file.
       CHECK sy-subrc EQ 0.
    * For all the rows - Max upto 65536.
       DO const_max_row TIMES.
         CLEAR l_dummy.
         l_row = l_row + 1.
    * For all columns in the Internal table.
         CLEAR l_col.
         DO cnt_cols TIMES.
           l_col = l_col + 1.
    * Get the corresponding Cell Object.
           CALL METHOD OF h_excel 'Cells' = h_cell
             EXPORTING #1 = l_row
             #2 = l_col.
           CHECK sy-subrc EQ 0.
    * Get the value of the Cell.
           CLEAR l_value.
           GET PROPERTY OF h_cell 'Value' = l_value.
           CHECK sy-subrc EQ 0.
    * Value Assigned ? pass to internal table.
           CHECK NOT l_value IS INITIAL.
           ASSIGN COMPONENT l_col OF STRUCTURE l_dummy TO <fs_dummy>.
           <fs_dummy> = l_value.
         ENDDO.
    * Check if we have the Work Area populated.
         IF NOT l_dummy IS INITIAL.
           APPEND l_dummy TO c_data.
         ELSE.
           EXIT.
         ENDIF.
       ENDDO.
    * Now Free all handles.
       FREE OBJECT h_cell.
       FREE OBJECT h_wrkbk.
       FREE OBJECT h_excel.
    ENDFORM. " SUB_IMPORT_FROM_EXCEL
    Just copy paste the code and run the report select any local xls file with emails and pass the target group guid.
    snap shot of excel file:
    Let me know if it was useful.

  • How can I set two different emails in only one contact form?

    How can I set two different emails in only one contact form?

    To enter multiple email address with the Contact Form Widgets:
    Click the Options icon for the selected widget, then
    In the Email to box, enter multiple emails by delimiting them with a semi-colon. For example: [email protected];[email protected]
    Cari

  • Exchange email will only sync over WiFi on iPhone 6

    Hello.
    We use iPhones with our Exchange 2010 SP3 servers for email through activesync.
    We've recently bought three iPhone 6 handsets and have set them up in exactly the same way as before - we have a mobileconfig file that runs users through the setup.
    On one of them email will only sync correctly when the user is in our office and connected to our internal WiFi.
    When he's using a 3g connection no new emails are delivered, though he doesn't get any error messages - it appears to sync ok, as though there are no new emails for him. Reconnect to our WiFi and email flows as normal.
    I don't believe we have any DNS issues as email is working just fine for everyone else in and out of our network.
    Has anyone else seen this behaviour, and ideally fixed it?
    Thanks

    I had this exact same problem with Email that would only sync while on company's internal wifi for my iphone 6, despite it working perfectly with my other device.  Checked the settings on both devices and they were all the same.  While looking online for a fix I noticed there are a lot of people with this issue, unfortunately none of the "fixes" worked for me.
    Originally I had my iPhone 6 setup to match the settings on my iPad with the server name "exchange.company.com".  This gave me all the check marks as expected, but it wouldn't update unless on internal wifi.  I was able to get my iphone 6 working by adjusting the server name in the account settings.  After I adjusted the server name to be "outlook.company.com", I got the same checkmarks and my email is now working perfectly.
    Not sure why it is different between the two devices but since it has solved my issue I will ignore that portion.  Hope this helps.

  • I have only loaded phone contacts in my new iPhone 5 and my email contacts only on my Macbook Pro with retina display contacts how can I keep them from changing my iPhone to email contacts only when I connect to iTunes please

    Since purchasing a new iPhone 5 and macbook pro with retina display I have decided to keep the iPhone 5 for phone contacts only, and the macbook for email contacts only .. Is there a way for me to keep these as they are recorded on each apple product when I sync with iTunes as it has changed my iPhone and put in email contacts and thus deleted iPhone phone contacts once when I syncd thanks appreciate any help

    To prevent your iPhone from automatically syncing when you plug it in, click on iTunes in the menu bar, then preferences, then "devices", then tick "prevent iPhones, iPad's and iPod's from syncing automatically".
    Plug it in, then on the iPhone sync summary screen, click "info" along the top.
    Make sure the "sync contacts" option is not ticked. as long as it's not ticked, then it won't sync with your mac's contacts but will still include them in backups.
    Also, if you use iCloud, make sure that the iPhone/mac are either not signed into the same account, or that "contacts" is not turned on for both of them

  • HT201342 How do I create a new iCloud account to be used as an email address only

    How do I create a new iCloud account to be used as an email address only?

    Howdy shark byte,
    This first article details how to set up an additional iCloud account as just an e-mail account on your iOS device.
    iOS: Setting up an email account
    http://support.apple.com/kb/HT4810
    Cheers,
    Allen

  • The error message: SE 337 Please enter a line number.

    Dear Experts,
    We have a PO that can not be transferred to P1 because of the error message:
    SE 337 Please enter a line number.
    We tried to checked the transfer of the PO.
    The error message came from the Backend Function BBP_PO_INBOUND.
    But it is not possible to define the exact cause of the issue (the exact transfer parameter) due to missing RFC authorization.
    The following changes were made in the PO (PO already mapped in Backend) after that PO cannot be transferred:
    - a deleted item was set back
    - WBS Element was changed
    Thank you in advance.
    Best regards
    Evgeny

    Hello Evgeny,
    Whenever you create a  PO in SRM irrespective of number of the
    line items chosen, in the backend system this PO will contain
    a single line item in the Item section.
    If you delete all the line items in the PO and
    attempt to undelete them the undeletion will not work since the PO is already
    considered to be deleted in the backend.
    Please try delete and undelete a individual line item
    in a PO provided there is at least one item which is not deleted.
    hope this helps
    Daniel

  • Since moving to iCloud, my mobileme email works ONLY on my iPhone, but not on my PC with Outlook.  I get an error message indicating the authentication is not accepted.  any suggestions?

    since moving to iCloud, my mobileme email works ONLY on my iPhone, but not on my PC with Outlook.  I get an error message indicating the authentication is not accepted.

    To anyone who has viewed this post and is having similar difficulties, the answer came on a different forum: I dragged & dropped the files from Mail to iCloud Drive. Opened them on my MB Air, they were saved in Templates and are now accessible across all my devices.
    Answer came from SGIll: Numbers templateshttps://discussions.apple.com/message/27505880#27505880Numbers templates

  • Hello all, How do I enter two lines of texts from a excel cell to a illustrator text frame?

    Problem is , if I have a text in excel column as " line1 'alt ENTER' line 2 " and if I read this text using VBAscript and write it back to illustrator, it appears continuously like "Line1Line2" the line break does not happen.
    Mark Mcclure, please help me on this.
    First PNG shows the Excel column entry and the second shows the output u got in Illustrator and the third shows the script I am using to do this read from excel and write to illustrator.

    I don't understand your question, here's a sample on a way to enter 2 lines in illustrator, it has nothing to do with excel, you have to adapt it
    Sub multilineToIllustrator()
        Dim iapp As New Illustrator.Application
        Dim idoc As Illustrator.Document
        Dim iframe As Illustrator.TextFrame
        Set idoc = iapp.ActiveDocument
        Set iframe = idoc.TextFrames.Add
        For a = 1 To 2
            iframe.Paragraphs.Add "line " & a
        Next
        Set iframe = Nothing
        Set idoc = Nothing
        Set iapp = Nothing
    End Sub

  • How to restrict the user to enter only numeric values in a input field

    How to restrict the user to enter only numeric values in a input field.
    For example,
    i have an input field in that i would like to enter
    only numeric values. no special characters,alphabets .
    reply ASAP

    Hi Venuthurupalli,
    As valery has said once you select the value to be of type integer,once you perform an action it will be validated and error message that non numeric characters are there will be shown. If you want to set additional constraints like max value, min value etc you can use simple types for it.
    On the project structure on left hand side under local dictionary ->datatypes->simple types create a simple type of type integer
    The attribute which you are binding to value property ;make its type as simple type which you made
    Hope this helps you
    Regards
    Rohit

  • On 'Enter Orders  form, while entering order lines throwing error

    Hi,
    Am 11.5.10.2
    On 'Enter Orders form, while entering order lines, it shows following error :
    ORA-04031: unable to allocate 84832 bytes of shared memory ("shared pool", "QP_PREQ_GRP", "PL/SQL
    MPCODE","BAMIMA: Bam Buffer")
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512: at "APPS.QP_ATTR_MAPPING_PUB",line 3493
    -- Steps To Reproduce:
    1. OM Superuser > Enter Orders
    2. Enter header details , Click on 'Line Items'
    I reffered OEXOEORD-Enter Orders-Line Items-Ora-04031: ....Bamima:Bam Buffer...' [ID 732649.1]..
    All parameters are correct...
    Plz help me,,,
    Thanks

    Hi;
    What is your Db version?what are those values Shared Pool memory and SGA?
    Pelase check :
    Database Initialization Parameters for Oracle Applications Release 11i [ID 216205.1]
    Please check below notes which could be helpful for your issue:
    Error Navigating To Lines: ORA-04031: Unable To Allocate 76488 Bytes Of Shared Memory [ID 330305.1]
    Regard
    Helios

  • My email says I have four new emails, but only have three marked as unread?

    My email says I have four new emails, but only have three marked as unread? I've tried turning "badge app icon" off and on, as well as deactivating and reactivating account and still having same problems.

    Hang on...
    You can only authorise the songs you purchase from the iTunes Store to play on five computers.
    You can download and install iTunes (the iTunes programme) onto as many computers as you wish.
    Two different things.
    Assuming therefore, that your problem is that you have authorised five computers, but now no longer have some of them, you need to de-authorise all your computers and then re-authorise the computers you still have.
    To de-authorise your computers, go to your account in the iTunes Store and look for the Deauthorise All button.

Maybe you are looking for

  • How do i get 2 screens to work on an hp pavillion 400-314 with the built in vga and dvi-d

    How do I get 2nd monitor working using DVI-D port on an HP Pavillion 400-314 desktop.  VGA works, 2nd monitor does not work using an adaptor for the DVI-D to VGA.  Win 8.1 64 bit  no place for add on cards.  built in jacks only

  • Trouble syncing iPod Classic

    I got this message:  "The iPod cannot be synced because it cannot be read from or written to."  What can I do next?

  • PLD in Quotation to display Normal goods and Optinal Acces goods seperately

    Company is supplying machine and with that it also supply no of Tools at extra cost.while displaying in the report, they want to display seperately under seperate heads. For ex First header Sr.no, Rating,Voltage ratio,winding,Ex-works price per unit

  • Restoring ios 6.0.1 backup to ios 6.1

    So i have a backup saved of my iphone 4 which was running 6.0.1 before selling the phone. I am now going to get a 4S very soon and if it is running ios 6.1 will I be able to restore the backup? If not, is there a workaround? Thanks!

  • The content in my email is gone

    I was working on an email.  The mail program stopped responding.  I closed it.  When I opened it again there was no content at all.  I deleted it out of history bar.  Then reopened, still nothing.  I turned it off.  The little spiny thing is going ar