<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem with Smartforms conversion to PDF and send by e-mail in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379578#M1642722</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a spool that you want to convert into PDF?? If yes, please try CONVERT_OTFSPOOLJOB_2_PDF this FM as in this you can give the Spool number and directly it gives it as pdf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Nov 2011 13:38:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-11-07T13:38:18Z</dc:date>
    <item>
      <title>Problem with Smartforms conversion to PDF and send by e-mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379573#M1642717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello people!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem in a SmartForms purchase order, the conversion to PDF and in sequence, sending it by e-mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the parameter "job_output_info" returns the form, the OTF table "otfdata" is coming with some strange characters, Chinese characters appear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I'm not getting to the correct treatment to attach the PDF to send the email.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;comments:&lt;/P&gt;&lt;P&gt;There is no error displayed and e-mail is sent normally. However, when trying to open PDF attached is the message "There was an error opening this document. The file is damaged and can not be restored.".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Downloading the file, it opens normally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the "CONVERT_OTF," but I believe the problem is before this function, since, as I said earlier, the function returns the SmartForms with Chinese characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe it should have some notes or configuration to solve this problem ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone experienced this?&lt;/P&gt;&lt;P&gt;Can you help me please??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Reguards,&lt;/P&gt;&lt;P&gt;Thank you! &lt;/P&gt;&lt;P&gt;Raquel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2011 16:32:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379573#M1642717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-04T16:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Smartforms conversion to PDF and send by e-mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379574#M1642718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Raquel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you, by any chance, searched the forum first? This sounds like a familiar problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did a quick search and found several threads related to this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Micky.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2011 16:39:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379574#M1642718</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2011-11-04T16:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Smartforms conversion to PDF and send by e-mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379575#M1642719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Micky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I have researched enough about the problem and used the suggestions of the forums to try to solve my problem, but it still fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raquel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 12:25:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379575#M1642719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-07T12:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Smartforms conversion to PDF and send by e-mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379576#M1642720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use CONVERT_OTF_2_PDF and use the output PDF internal table and attach it in the email. You can use the attachment type as PDF while sending the email. This should resolve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 12:35:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379576#M1642720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-07T12:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Smartforms conversion to PDF and send by e-mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379577#M1642721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Senthil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also tried to use this FM, exactly this way. The file is sent with an attachment but when trying to open the file the same error occurs ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know if there is a note regarding the Smartfotms, PDF, ...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raquel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 13:25:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379577#M1642721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-07T13:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Smartforms conversion to PDF and send by e-mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379578#M1642722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a spool that you want to convert into PDF?? If yes, please try CONVERT_OTFSPOOLJOB_2_PDF this FM as in this you can give the Spool number and directly it gives it as pdf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 13:38:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379578#M1642722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-07T13:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Smartforms conversion to PDF and send by e-mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379579#M1642723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM SENT_MAIL1 .
  DATA:IT_NFAL      TYPE NFAL OCCURS 0 WITH HEADER LINE.
  DATA:FM_NAME      TYPE RS38L_FNAM.
  DATA:IT_OTF_FINAL TYPE ITCOO OCCURS 0 WITH HEADER LINE.
  DATA:BIN_FILESIZE TYPE I.
  DATA:IT_PDFDATA   TYPE TABLE OF TLINE.
  DATA:IT_PDF       TYPE TABLE OF SOLISTI1.
*--------------------------------------------------------*
  "  Mail related declarations
*--------------------------------------------------------*
  "Variables
  DATA :
      G_SENT_TO_ALL   TYPE SONV-FLAG,
      G_TAB_LINES     TYPE I.
  "Types
  TYPES:
      T_DOCUMENT_DATA  TYPE  SODOCCHGI1,
      T_PACKING_LIST   TYPE  SOPCKLSTI1,
      T_ATTACHMENT     TYPE  SOLISTI1,
      T_BODY_MSG       TYPE  SOLISTI1,
      T_RECEIVERS      TYPE  SOMLRECI1,
      T_PDF            TYPE  TLINE.
  "Workareas
  DATA :
      W_DOCUMENT_DATA  TYPE  T_DOCUMENT_DATA,
      W_PACKING_LIST   TYPE  T_PACKING_LIST,
      W_ATTACHMENT     TYPE  T_ATTACHMENT,
      W_BODY_MSG       TYPE  T_BODY_MSG,
      W_RECEIVERS      TYPE  T_RECEIVERS,
      W_PDF            TYPE  T_PDF.
  "Internal Tables
  DATA :
      I_DOCUMENT_DATA  TYPE STANDARD TABLE OF T_DOCUMENT_DATA,
      I_PACKING_LIST   TYPE STANDARD TABLE OF T_PACKING_LIST,
      I_ATTACHMENT     TYPE STANDARD TABLE OF T_ATTACHMENT,
      I_BODY_MSG       TYPE STANDARD TABLE OF T_BODY_MSG,
      I_RECEIVERS      TYPE STANDARD TABLE OF T_RECEIVERS,
      I_PDF            TYPE STANDARD TABLE OF T_PDF.

  SSFCTRLOP-NO_DIALOG = 'X'.
  SSFCTRLOP-PREVIEW   = 'X'.
  SSFCTRLOP-GETOTF    = 'X'.
  SSFCOMPOP-TDDEST = 'LP01'.

************appending the otf data into the final table**********************
  IT_OTF_FINAL[] = IT_OTF_DATA-OTFDATA[].

************ converting OTF data into pdf data**************************
  CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
      FORMAT                = 'PDF'
    IMPORTING
      BIN_FILESIZE          = BIN_FILESIZE
*     bin_file              =
    TABLES
      OTF                   = IT_OTF_FINAL
      LINES                 = IT_PDFDATA[]
    EXCEPTIONS
      ERR_MAX_LINEWIDTH     = 1
      ERR_FORMAT            = 2
      ERR_CONV_NOT_POSSIBLE = 3
      ERR_BAD_OTF           = 4
      OTHERS                = 5.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: praveenreddys on Nov 7, 2011 7:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 13:59:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379579#M1642723</guid>
      <dc:creator>praveen_reddy2</dc:creator>
      <dc:date>2011-11-07T13:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Smartforms conversion to PDF and send by e-mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379580#M1642724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;contiue&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* To send data as email attachment, we need to have a table of SOLISTI1.
* This table contains line size of 255 characters. Below function module
* does the trick of changing the table from X character sized lines into
* any given Y character sized lines.
  REFRESH IT_PDF[].

  CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
    EXPORTING
      LINE_WIDTH_DST              = '255'
    TABLES
      CONTENT_IN                  = IT_PDFDATA[]
      CONTENT_OUT                 = IT_PDF[]
    EXCEPTIONS
      ERR_LINE_WIDTH_SRC_TOO_LONG = 1
      ERR_LINE_WIDTH_DST_TOO_LONG = 2
      ERR_CONV_FAILED             = 3
      OTHERS                      = 4.
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ELSE.

    "Subject of the mail.
    W_DOCUMENT_DATA-OBJ_NAME  = 'MAIL_TO_HEAD'.

    CONCATENATE 'Payslip for the month' '-' P_MONTH INTO W_DOCUMENT_DATA-OBJ_DESCR.
*   w_document_data-obj_descr = 'Regarding Mail Program by SAP ABAP'.

    "Body of the mail
*    W_BODY_MSG = 'This is body of mail msg.'.
*    APPEND W_BODY_MSG TO I_BODY_MSG.
*    CLEAR  W_BODY_MSG.

    CONCATENATE 'Dear ' WA-EMP_NAME ',' INTO W_BODY_MSG.
    APPEND W_BODY_MSG TO I_BODY_MSG.
    CLEAR: W_BODY_MSG.

    APPEND W_BODY_MSG TO I_BODY_MSG.
    CLEAR: W_BODY_MSG.
*
*
    W_BODY_MSG = 'Please find the Payslip in the attachment'(018).
    APPEND  W_BODY_MSG TO I_BODY_MSG.
    CLEAR: W_BODY_MSG.
*
    APPEND W_BODY_MSG TO I_BODY_MSG.
    CLEAR: W_BODY_MSG.
*
    W_BODY_MSG = 'Regards'.
    APPEND W_BODY_MSG TO I_BODY_MSG.
    CLEAR: W_BODY_MSG.
*
    W_BODY_MSG = 'HR &amp;amp; Adminstration Department'.
    APPEND W_BODY_MSG TO I_BODY_MSG.
    CLEAR: W_BODY_MSG.
**
    APPEND W_BODY_MSG TO I_BODY_MSG.
    CLEAR: W_BODY_MSG.
*
    W_BODY_MSG = 'This is an auto-generated message, please do not reply to this message.'.
    APPEND W_BODY_MSG TO I_BODY_MSG.
    CLEAR: W_BODY_MSG.
*
    CONCATENATE 'In case any clarification is needed,'
                ' please contact the HR &amp;amp; Administration Department'
                  INTO W_BODY_MSG.
    APPEND W_BODY_MSG TO I_BODY_MSG.
    CLEAR: W_BODY_MSG.


    "Write Packing List for Body
    DESCRIBE TABLE I_BODY_MSG LINES G_TAB_LINES.
    W_PACKING_LIST-HEAD_START = 1.
    W_PACKING_LIST-HEAD_NUM   = 0.
    W_PACKING_LIST-BODY_START = 1.
    W_PACKING_LIST-BODY_NUM   = G_TAB_LINES.
    W_PACKING_LIST-DOC_TYPE   = 'RAW'.
    APPEND W_PACKING_LIST TO I_PACKING_LIST.
    CLEAR  W_PACKING_LIST.

    "Write Packing List for Attachment
    W_PACKING_LIST-TRANSF_BIN = 'X'.
    W_PACKING_LIST-HEAD_START = 1.
    W_PACKING_LIST-HEAD_NUM   = 1.
    W_PACKING_LIST-BODY_START = 1.
    DESCRIBE TABLE IT_PDF LINES W_PACKING_LIST-BODY_NUM.
    W_PACKING_LIST-DOC_TYPE   = 'PDF'.
    W_PACKING_LIST-OBJ_DESCR  = 'PDF Attachment'.
    W_PACKING_LIST-OBJ_NAME   = 'PDF_ATTACHMENT'.
    W_PACKING_LIST-DOC_SIZE   = W_PACKING_LIST-BODY_NUM * 510.
    APPEND W_PACKING_LIST TO I_PACKING_LIST.
    CLEAR  W_PACKING_LIST.

    "Fill the document data and get size of attachment
    W_DOCUMENT_DATA-OBJ_LANGU  = SY-LANGU.
    READ TABLE IT_PDF INTO W_PDF INDEX G_TAB_LINES.
    W_DOCUMENT_DATA-DOC_SIZE = ( G_TAB_LINES - 1 ) * 255 + STRLEN( W_ATTACHMENT ).

    "Receivers List.
    W_RECEIVERS-REC_TYPE   = 'U'."Internet address
    W_RECEIVERS-RECEIVER   = WA-EMP_MAIL.
    W_RECEIVERS-COM_TYPE   = 'INT'.
*    W_RECEIVERS-NOTIF_DEL  = 'X'.
*    W_RECEIVERS-NOTIF_NDEL = 'X'.
    APPEND W_RECEIVERS TO I_RECEIVERS .
    CLEAR:W_RECEIVERS.

    "Function module to send mail to Recipients
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
      EXPORTING
        DOCUMENT_DATA              = W_DOCUMENT_DATA
*        PUT_IN_OUTBOX              = 'X'
        COMMIT_WORK                = 'X'
      IMPORTING
        SENT_TO_ALL                = G_SENT_TO_ALL
      TABLES
        PACKING_LIST               = I_PACKING_LIST
        CONTENTS_BIN               = IT_PDF
        CONTENTS_TXT               = I_BODY_MSG
        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.

    IF SY-SUBRC = 0 .
      MESSAGE S303(ME) WITH 'Mail has been Successfully Sent.'.
    ENDIF.
  ENDIF.

ENDFORM.                    " SENT_MAIL1  
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: praveenreddys on Nov 7, 2011 7:29 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 14:02:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379580#M1642724</guid>
      <dc:creator>praveen_reddy2</dc:creator>
      <dc:date>2011-11-07T14:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Smartforms conversion to PDF and send by e-mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379581#M1642725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Senthil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had tried this way too, using the number of spool, but the error is the same, ie, the table PDF FM 'CONVERT_OTFSPOOLJOB_2_PDF' comes with characters in Japanese / Chinese.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raquel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 14:39:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379581#M1642725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-07T14:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Smartforms conversion to PDF and send by e-mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379582#M1642726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This coding was my first attempt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following return table OUTPUT-OTFDATA:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    1	//        |XPDF1        0700 00000&lt;EM&gt;00000&lt;/EM&gt;1                                &amp;lt;&lt;/P&gt;&lt;P&gt;    2	IN        |04PZMMPO_PED_COMPRA                                            &amp;lt;&lt;/P&gt;&lt;P&gt;    3	IN        |05FIRST                                                        &amp;lt;&lt;/P&gt;&lt;P&gt;    4	OP        |DINA4   P  72  240 1683811906000010000100001                   &amp;lt;&lt;/P&gt;&lt;P&gt;    5	IN        |06COMLOGO                                                      &amp;lt;&lt;/P&gt;&lt;P&gt;    6	MT        |0056700567                                                     &amp;lt;&lt;/P&gt;&lt;P&gt;    7	BM        |0281300960 D    BDS_LOC3  4E77F55F22870BA9E10080020A0100190    &amp;lt;&lt;/P&gt;&lt;P&gt;    8	RD        |I 66佔䙢楴浡&amp;#65535;&amp;#65535;ȁက#૽#u03C0#Ɋ#u00C8Ĭ#Ā#㿿&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;##########################&amp;lt;&lt;/P&gt;&lt;P&gt;    9	RD        |I 66&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;&amp;#65535;##########################&amp;lt;&lt;/P&gt;&lt;P&gt;   10	RD        |I 66퀀쀀퀀ꀀ쀀耀뀀퀀怀退쀀倀退쀀䀀耀뀀u2002瀀뀀က怀뀀##########################&amp;lt;&lt;/P&gt;&lt;P&gt;   11	RD        |I 66က怀ꀀ#怀ꀀ　瀀뀀瀀ꀀ퀀뀀퀀#倀ꀀ䀀耀쀀退뀀퀀뀀쀀瀀ꀀ쀀##########################&amp;lt;&lt;/P&gt;&lt;P&gt;   12	RD        |I 66倀耀쀀耀ꀀ퀀u2002怀뀀怀ꀀ쀀退쀀퀀퀀　耀뀀쀀ꀀ쀀퀀ꀀ뀀耀耀##########################&amp;lt;&lt;/P&gt;&lt;P&gt;   13	RD        |I 66ꀀꀀ怀怀ကu2002倀倀퀀퀀쀀쀀뀀뀀쀀퀀　䀀　　##########################&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you seen something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raquel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 14:57:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379582#M1642726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-07T14:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Smartforms conversion to PDF and send by e-mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379583#M1642727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Raquel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also had some problems with smartforms sent by mail in pdf a couple of times. Please try this two things. First,if your smartform has a logo picture remove it and try to sent it with out it. I do not why but sometimes the problem are the images. If that does not help, when filling the doc size instead of doing this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    W_DOCUMENT_DATA-DOC_SIZE = ( G_TAB_LINES - 1 ) * 255 + STRLEN( W_ATTACHMENT ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change the number 255 by 254. I  found a couple of references in internet suggesting this and in my case that was de solution to my problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Jorge&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 15:13:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379583#M1642727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-07T15:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Smartforms conversion to PDF and send by e-mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379584#M1642728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello George, how are you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I deleted the logo SmartForms and executed. The Chinese characters no longer appear in the return table OTF, but when using the FM 'CONVERT_OTF' LINES table comes with these Chinese characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The e-mail is sent normally, however, the attachment does not open.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried changing the numbers from 255 to 254 and also did not solve ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= (&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reguards,&lt;/P&gt;&lt;P&gt;Raquel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 18:33:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379584#M1642728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-07T18:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Smartforms conversion to PDF and send by e-mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379585#M1642729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raquel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please check if the output of the smartform is A4 size. Sometimes that will also cause some problem while converting it into the PDF. Please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 08:41:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379585#M1642729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-08T08:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Smartforms conversion to PDF and send by e-mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379586#M1642730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Senthil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, the output of the smartform is A4 size..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I performed a test with the same form and program in another environment and it worked correctly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe the error is corrected with some sap notes..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll keep searching for...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raquel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 12:04:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379586#M1642730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-08T12:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Smartforms conversion to PDF and send by e-mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379587#M1642731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello people,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem was finally resolved by applying the note 1430123.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raquel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 19:50:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379587#M1642731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-08T19:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Smartforms conversion to PDF and send by e-mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379588#M1642732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  can you please share your Solution. even i am facing the same issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 05:59:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-smartforms-conversion-to-pdf-and-send-by-e-mail/m-p/8379588#M1642732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-09T05:59:00Z</dc:date>
    </item>
  </channel>
</rss>

