Spool file sent via email

I'm trying to send a spool file out via an email.  I'm having no trouble generating the email, but the file is coming out with extra spaces in the output. 
f o r  e x a m p l e  i t  l o o k s   l i k e   t h i s
Does anyone know of a parameter I am mis-using on the function module  'SO_DOCUMENT_SEND_API1' or a similar function module which will fix this issue?
Points will be rewarded.

That was my original thought, but the data passed into the function module looks correct and without need of condense statements.
This is how the data looks after the email.
I D ; P                                                                                C ; Y 1 ; X 1 ; K   " R o w   1 "                                                                                C ; Y 2 ; X 1 ; K   " R o w   2 "                                                                                C ; Y 3 ; X 1 ; K   " T o t a l "                                                                                C ; Y 1 ; X 2 ; K 1 1                                                                                C ; Y 2 ; X 2 ; K 2 2                                                                                C ; Y 3 ; X 2 ; K 0 ; E R 1 C 2 + R 2 C 2                                                                                E                                                                                P                                            
This is how it should look, and how the internal table I pass into the function module looks:
ID;P
C;Y1;X1;K"Row1"
C;Y2;X1;K"Row2"
C;Y3;X1;K"Total"
C;Y1;X2;K11
C;Y2;X2;K22
C;Y3;X2;K0;ER1C2+R2C2
EP

Similar Messages

  • Pdf file sent via email attachment gets a webloc extension

    Someone sent an email with a pdf attachment to our entire school via our google mail account. People with PCs were able to open the pdf files. Mac users received the pdf files with a webloc extension (i.e. - filename.pdf.webloc) and were unable to open it. How did this happen and how can we prevent it from happening again? I had 2 of the pdf files on my mac (one of which I created) and they did not have a webloc extension. Any help would be great. Thank you!!

    Hi Kappy.
    I tried that and received a message from Adobe Acrobat that read "Adobe Reader could not open 'Absentee Ballot.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded).
    Since we have 300+ families who receive these emails and I don't know who has a mac and who doesn't I would rather be able to send the pdf attachments and prevent the webloc from being applied at all versus letting everyone know how to remove it once they receive it.
    Thanks for replying.
    Christina

  • How do I open a .pub file sent via email

    I received an email attachment with a .pub file extension, but my MAC can't open it. I saw that some users had success with  ZamZar or Adobe sites, but I can't access them since the file won't download. Any ideas?

    This might help:
    http://maketecheasier.com/open-mark-up-pub-file-on-mac/2011/04/11

  • Sapscript converted to PDF throug spool and sent via email

    Hello gurus, i have the following code for the requeriment and when trying to open file through transaction SOST, the system says that the file is corrupted.
    What am I doing wrong please?
    Help is very appreciated!!!!
        CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
          EXPORTING
            src_spoolid              = w_spool
            no_dialog                = c_marca
            dst_device               = zcts_itcpo-tddest
          IMPORTING
            pdf_bytecount            = w_numbytes
          TABLES
            pdf                      = i_pdf
          EXCEPTIONS
            err_no_otf_spooljob      = 1
            err_no_spooljob          = 2
            err_no_permission        = 3
            err_conv_not_possible    = 4
            err_bad_dstdevice        = 5
            user_cancelled           = 6
            err_spoolerror           = 7
            err_temseerror           = 8
            err_btcjob_open_failed   = 9
            err_btcjob_submit_failed = 10
            err_btcjob_close_failed  = 11
            OTHERS                   = 12.
            If sy-subrc eq 0.
                   PERFORM f_convert_pdf TABLES i_pdf
                                                                     i_objbin.
                   PERFORM f_send_mail.
            endif.
    FORM f_convert_pdf  TABLES   i_source_tab STRUCTURE tline
                                 i_target_tab STRUCTURE zcts_objbin.
      DATA: l_hfeld(1600) TYPE c,
            l_offset TYPE p,
            l_tabix TYPE sy-tabix,
            l_linecount_source TYPE i,
            l_length_source TYPE i,
            l_length_target TYPE i.
      CLEAR: l_hfeld,
             l_offset,
             l_tabix,
             l_linecount_source,
             l_length_source,
             l_length_target,
             zcts_pdf,
             zcts_objbin.
      DESCRIBE FIELD i_source_tab LENGTH l_length_source IN BYTE MODE.
      DESCRIBE FIELD i_target_tab LENGTH l_length_target IN BYTE MODE.
      DESCRIBE TABLE i_source_tab LINES l_linecount_source.
      CLEAR:
        i_target_tab,
        zcts_pdf.
      LOOP AT i_source_tab INTO zcts_pdf.
        l_tabix = sy-tabix.
        MOVE zcts_pdf TO l_hfeld+l_offset.
        IF l_tabix EQ l_linecount_source.
          l_length_source = STRLEN( zcts_pdf ).
        ENDIF.
        l_offset = l_offset + l_length_source.
        WHILE l_offset GE l_length_target.
          zcts_objbin = l_hfeld(l_length_target).
          APPEND zcts_objbin TO i_target_tab.
          CLEAR zcts_objbin.
          SHIFT l_hfeld BY l_length_target PLACES.
          l_offset = l_offset - l_length_target.
        ENDWHILE.
        IF l_tabix EQ l_linecount_source.
          IF l_offset GT 0.
            zcts_objbin = l_hfeld(l_offset).
            APPEND zcts_objbin TO i_target_tab.
            CLEAR zcts_objbin.
          ENDIF.
        ENDIF.
        CLEAR:
          i_source_tab,
          zcts_pdf.
      ENDLOOP.
    ENDFORM.                    " f_convert_pdf
    FORM f_send_mail .
      DATA: l_lines_txt TYPE i,
            l_lines_bod TYPE i.
      CLEAR: i_reclist,
             i_objpack,
             l_lines_txt,
             l_lines_bod.
      CLEAR i_objhead.
    Create here the mail body
      DATA: li_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE.
      CLEAR li_mess_bod.
      li_mess_bod = text-012.
      APPEND li_mess_bod.
      IF sy-subrc EQ 0.
        CLEAR zcts_objtxt.
      ENDIF.
      CLEAR i_materials.
      READ TABLE i_materials INDEX 1.
      IF sy-subrc EQ 0.
        CONCATENATE text-013 i_materials-maktx INTO li_mess_bod SEPARATED BY space.
      ENDIF.
      APPEND li_mess_bod.
      IF sy-subrc EQ 0.
        CLEAR li_mess_bod.
      ENDIF.
      IF p_deliv IS INITIAL.
        CONCATENATE text-014 p_sales INTO li_mess_bod SEPARATED BY space.
      ELSE.
        CONCATENATE text-014 p_deliv INTO li_mess_bod SEPARATED BY space.
      ENDIF.
      APPEND li_mess_bod.
      IF sy-subrc EQ 0.
        CLEAR li_mess_bod.
      ENDIF.
      DESCRIBE TABLE li_mess_bod LINES l_lines_bod.
      CLEAR li_mess_bod.
      READ TABLE li_mess_bod INDEX l_lines_bod.
      IF sy-subrc NE 0.
        CLEAR li_mess_bod.
      ENDIF.
      zcts_doc_chng-obj_name = 'CERTIFICATE'.
    Subject
      IF p_deliv IS INITIAL.
        CLEAR i_delivery.
        READ TABLE i_delivery INDEX 1.
        IF sy-subrc EQ 0.
          CONCATENATE text-011 i_delivery-vbeln sy-datum INTO zcts_doc_chng-obj_descr SEPARATED BY space.
        ENDIF.
      ELSE.
        CONCATENATE text-011 p_deliv sy-datum INTO zcts_doc_chng-obj_descr SEPARATED BY space.
      ENDIF.
    Fill the document data and get size of attachment
      zcts_doc_chng-sensitivty = c_sens.
      zcts_doc_chng-doc_size = ( l_lines_bod - 1 ) * 255 + STRLEN( li_mess_bod ).
    Body mail
      CLEAR zcts_objpack-transf_bin.
      zcts_objpack-head_start = 1.
      zcts_objpack-head_num = 0.
      zcts_objpack-body_start = 1.
      zcts_objpack-body_num = l_lines_bod.
      zcts_objpack-doc_type = c_doc_type.
      APPEND zcts_objpack TO i_objpack.
    PDF attachment
      zcts_objpack-transf_bin = c_marca.
      zcts_objpack-head_start = 1.
      zcts_objpack-head_num = 0.
      zcts_objpack-body_start = 1.
      DESCRIBE TABLE i_objbin LINES l_lines_txt.
      zcts_objpack-doc_size = l_lines_txt * 255.
    zcts_objpack-doc_size = w_numbytes.
      zcts_objpack-doc_type = c_doc_type2.
      zcts_objpack-obj_name = c_obj_name.
      CONCATENATE text-010 sy-datum INTO zcts_objpack-obj_descr SEPARATED BY space.
      APPEND zcts_objpack TO i_objpack.
    Mail destinary
      zcts_reclist-receiver = text-018.
      zcts_reclist-rec_type = c_rec.
      zcts_reclist-com_type = c_com_type.
      APPEND zcts_reclist TO i_reclist.
    Call function below to sending PDF object to internet email address
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = zcts_doc_chng
          put_in_outbox              = c_marca
          commit_work                = c_marca
        TABLES
          packing_list               = i_objpack
          object_header              = i_objhead
          contents_bin               = i_objbin
          contents_txt               = li_mess_bod
          receivers                  = i_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 NE 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " f_send_mail

    hi
    good
    go through this code hope this will help you to solve your problem
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8cd6adbb-0301-0010-39ba-938c601d5db9
    reward point if hlepful.
    thanks
    mrutyun^

  • Can't open indesign files sent via email

    hello, a customer sent me indesign-files (CS6, CS4 and IDML). i think they are using the mac version. i have indesign CS6 on pc and everytime i try to open one of the files, indesign reports an failure: missing file oder missing authorisation. does anyone know any solution?

    As previously mentioned, the files must be extracted from any archive and saved to a hard drive location before you open it. I have seen this error message once or twice in the past with a file that should have opened (stored on a network drive, which may have played a role), I think. They didn't happen to also include the .idlk file with what they sent? If so, delete it.
    Have you tried clicking the "As a Copy" radio button inthe open dialog to make a new, untitled copy? If that works you can save with a new name and move on.

  • I cannot open PDF filkes sent via email. I used too. nHow do I fix.

    Cannot open PDF files sent via email. The open via Word in encripted jinerish. This has not happend until now.
    Ciro

    I had the same problem.  My version of RoboHelp is pretty old (x5) and the problem was with pdfs made up in version 9.  Some pdfs would open and some would not.  It depended on the version used to make the pdf.  Got error messages and corrupted file messages.
    I solved the problem by using the full version of Acrobat and using the pdf Optimizer to make compatible with version 5( just to make sure).
    Another option is to "print" to the pdf printer when the file is open.
    Both then can be imported into RoboHelp without a problem
    Hope this helps.  It ruined many days at work for me while I tried to figure out what on earth I was going to do.
    Holly

  • No Payment document attachement (PDF) sent via email

    Hi,
    We have been running the auto-email with PDF payment attachement via F110 for quite some times. Recently my user feedback that some of the vendors receive the email sent by SAP system, however, no attachement being sent to them.
    I have checked the F110 log, which the requested email is generated successfully. However, i couldn't check whether there is email attachement being to them via SOST.
    We are in ECC6. The reported cases are perhaps 5% of the batch payment document running affected with no pdf file attachement sent via email.
    I have been searching around any similar case and how we trace the problem. Can someone share on it?
    Thank you very much in advance.

    Hi
    Ask to these vendor what kind of software they have to avoid SPAM, or if they manage black lists, 'grey' list. There are other software tools managing these messages. Sometimes these tools remove the attachments.
    I hope this helps you
    Regards
    Eduardo
    Edited by: E_Hinojosa on Dec 16, 2011 10:22 AM

  • I have been able to open pdfs created in older versions of adobe, but not the newest version. Is anyone having issues opening PDFs sent via email created in version 9?

    I have been able to open pdfs created in older versions of adobe, but not the newest version. Is anyone having issues opening PDFs sent via email created in version 9? If so, what was your solution? I have PDF reader app as well.

    Can you open the files in Preview?

  • Images sent via email are not attachments

    I upgraded to Lion and now, jpeg images sent via email are not attachments but are rather images embedded in the message. I want my attachments back!! Those I send images to are saying they can not save the files as there are no attachments. How do I fix this? Everything was fine with Snow Leopard and running a photography business has me sending images a lot. Clients used to "save" the images or "select all" because they were attachment files. Now they can only see the imbedded image that is not a file.
    Also, I used to send jpeg images to my Windows 7 Phone to build my portfolio when I had Snow Leopard and now with Lion I do not have files sent to my phone but the image itself which I can't save to my phone.
    HELP!

    Does the Control+Click work with PC's? My clients use PC's and they cant download the embedded images. One client specifically is a webmaster for a sports club I photograph at every sporting event. At the end of each event I may have 40 + photos downsized and sent to him to post on his site so each email will have 7 - 10 images.
    With Snow Leopard, the images would be attached files but also imbedded images on my end. On his end, they're attached files he could just select all and save then put on the site. Now he and other PC clients are saying he can only save one image at a time. This is a lot of work and seems a bit backwards to me.
    When sending to my Windows 7 Phone, the image is not embedded but shows up as an attached file which my phone then gives me the option to "save to phone". Now it's an embedded image with no options to save to phone.
    I will have a look at the Attachments Tamer but it seems crazy to have to buy an app for something that seems simple to fix on Apple's end.

  • Is there a way to open a zip file received via email on the iPad? I tried and a message popped up saying mail cannot open the attachment.

    Is there a way to open a zip file received via email on the iPad? I tried and a message popped up saying mail cannot open the attachment.

    You need a third party app. Take a look at some of these on this Google page.
    Open zip files on iPad

  • How do i get photos sent via email into the new photos app in yosemite 10.10.3

    Using mail on my mac, having upgraded to Yosemite 10.10.3 i now cant import photos sent via email into the new photos app. if i highlight the photo in mail and right click the mouse the option is still to export to iPhoto !!

    I was clicking on the photo, so thanks for telling me about the save icon - unfortunately this still tries to open up and save to iPhoto the same as clicking on the image but my photos have been moved from iPhoto to the new photos app as part of the update to 10.10.3 Yosemite. Although it also gives me the option to save other places i cant work out how to save into the photo app

  • Field length shows more in excel sheet which is sent via email

    I am sending excel sheet through email. I have data in internal table which i move to the email internal table and data is been sent via email using a excel sheet.
    Now, when I open the excel sheet, i see that all fields get displayed but the last field is shown as too much length meaning field length is 15 chars but in excel sheet it shows as almost 40 - 50 chars.

    Decalre one more field in your internal table ,which should be last field.
    and do not pass header for this field and just pass the empty value to this field.
    if not use this FM : EXCEL_OLE_STANDARD_DAT
    Reward Points if it is helpful
    Thanks
    Seshu

  • How to open PSD file recieved via email on iPad using Photoshop Touch without Creative Cloud?

    Hi, how to open PSD file recieved via email on iPad using Photoshop Touch without the need of using Creative Cloud? Thanks.

    Hi Super Nemo
    Currently the only way to open psd files on Photoshop touch is via the creative cloud. Also, the layers you created from Photoshop on your desktop machine will be flattened when opened with Photoshop touch on your iPad. But you can retain the layers from the touch app when opening the psdx file on your desktop photoshop.
    This link might help you: http://forums.adobe.com/docs/DOC-1336
    -Sharon

  • HT3529 how do i find or save a media file sent via a sms message

    how do i find or save a media file sent via a sms message

    If you're talking about a photo, tap on the thumbnail in the Messages App, then at the bottom of the screen, you should see an icon that looks like a box with an arrow pointing out of it. Tap that, and you will have the option to save it.

  • Please help!!!!!! i filled out a job application using adobe reader but i cannot send the file back via email because the file is protected with a lock. how do i unlock this file to send it?!!!!!!!!!

    please help!!!!!! i filled out a job application using adobe reader but i cannot send the file back via email because the file is protected with a lock. how do i unlock this file to send it?!!!!!!!!!

    Hi kevinv1987,
    It doesn't sound like the PDF was password protected (or Adobe Reader would prompt you for a password). Instead, it sounds like that file may be marked locked by your operating system. Are you on Mac OS or Windows? In either case, here are instructions for removing the lock icon from the file:
    Remove the Lock Icon from a Folder in Windows 7 (check Microsoft's website if you have a different version of Windows)
    On Mac OS, select the file in the Finder, and choose File > Get Info. Then, just deselect the Lock checkbox.
    Please let us know how it goes.
    Best,
    Sara

Maybe you are looking for

  • Asked if the 2 month installation time could be sp...

    I have just moved house and as our Exchange has finally just been upgraded to adsl2 (some two years after it was originally planned) I decided to go with BT. I placed the order online and was given an appointment date of the 17th of November. I place

  • How can i remove the 6os update from my iphone?

    HOw can I take the 6 os upgrade from my iPhone

  • Few answers i am looking for ...

    Hello all, Happy New Year to All I recently got interview and not able to find answers for few questions ... as : Can we Track the Promoted property in Biztalk administrator console ( message-body) ? Two part of Property promotion ? not like...two wa

  • How to get the inbound idoc for the newly created inbound Idoc FM

    Hi, I have created a new function module to process the Inbound idoc.  I need to have a idoc to check my function module, whether it is working fine or not.  How I can get the data.  Do I need to have the idoc from the partner ?  Please help me ASAP.

  • Entry point parameters

    Could some help me out with Entry Points please? Specifically I would like to pass a parameter through to the process model [I don't want to use a callback in the client sequence] It seems that Entry Points can have Parameters, but how do you supply