<?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: Font problems in Mail sent from a Custom program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/font-problems-in-mail-sent-from-a-custom-program/m-p/942471#M63490</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is how the code looks like:&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'                             EXPORTING                                                       rqident       = spool_number               IMPORTING                                                       real_type      = g_doc_type                      TABLES                                             &lt;/P&gt;&lt;P&gt;     buffer          = compressed_list         &lt;/P&gt;&lt;P&gt;        EXCEPTIONS                                                             no_such_job        = 1                       &lt;/P&gt;&lt;P&gt;           job_contains_no_data = 2                       &lt;/P&gt;&lt;P&gt;             selection_empty    = 3                       &lt;/P&gt;&lt;P&gt;             no_permission      = 4                       &lt;/P&gt;&lt;P&gt;             can_not_access     = 5                       &lt;/P&gt;&lt;P&gt;             read_error         = 6                       &lt;/P&gt;&lt;P&gt;             type_no_match      = 7                      &lt;/P&gt;&lt;P&gt;             OTHERS             = 8.                      &lt;/P&gt;&lt;P&gt; IF sy-subrc &amp;lt;&amp;gt; 0.                                        &lt;/P&gt;&lt;P&gt;     MESSAGE e132 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.    ENDIF.                                                   * move the list to the official table ojbin&lt;/P&gt;&lt;P&gt;   MOVE compressed_list[] TO objbin[].&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;create the document which is to be sent&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   doc_chng-obj_name = 'list'.&lt;/P&gt;&lt;P&gt;   doc_chng-obj_descr = 'Inbound PO Faxes to Jobber'.       &lt;/P&gt;&lt;P&gt;   CLEAR objpack-transf_bin.&lt;/P&gt;&lt;P&gt;   objpack-head_start = 1.&lt;/P&gt;&lt;P&gt;   objpack-head_num   = 0.&lt;/P&gt;&lt;P&gt;   objpack-body_start = 1.&lt;/P&gt;&lt;P&gt;   objpack-body_num = '0'.&lt;/P&gt;&lt;P&gt;   objpack-doc_type = 'RAW'.&lt;/P&gt;&lt;P&gt;   APPEND objpack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   DESCRIBE TABLE objbin LINES tab_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   objpack-transf_bin = 'X'.&lt;/P&gt;&lt;P&gt;   objpack-head_start = 1.&lt;/P&gt;&lt;P&gt;   objpack-head_num   = 0.&lt;/P&gt;&lt;P&gt;   objpack-body_start = 1.&lt;/P&gt;&lt;P&gt;   objpack-body_num = tab_lines.&lt;/P&gt;&lt;P&gt;   objpack-doc_type = g_doc_type.&lt;/P&gt;&lt;P&gt;   objpack-obj_name = 'Attachment'.&lt;/P&gt;&lt;P&gt;   objpack-obj_descr = 'PO Order'.   &lt;/P&gt;&lt;P&gt;                       &lt;/P&gt;&lt;P&gt;   READ TABLE objbin INDEX tab_lines.           &lt;/P&gt;&lt;P&gt;            &lt;/P&gt;&lt;P&gt;   doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  objpack-doc_size = doc_size.                             &lt;/P&gt;&lt;P&gt;   APPEND objpack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF sy-sysid NE 'PC2'.&lt;/P&gt;&lt;P&gt;                                                             recipient_int-address = ws_dummy_fax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   ELSE.&lt;/P&gt;&lt;P&gt;                                                             concatenate int_customer-fax_number&lt;/P&gt;&lt;P&gt;                  ws_fax_address&lt;/P&gt;&lt;P&gt;     INTO recipient_int-address.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   reclist-receiver = recipient_int.&lt;/P&gt;&lt;P&gt;   reclist-rec_type = 'U'.&lt;/P&gt;&lt;P&gt;   APPEND reclist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;             document_data              = doc_chng&lt;/P&gt;&lt;P&gt;             put_in_outbox              = 'X'&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;             packing_list               = objpack&lt;/P&gt;&lt;P&gt;             contents_bin               = objbin&lt;/P&gt;&lt;P&gt;             receivers                  = reclist&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;             too_many_receivers         = 1&lt;/P&gt;&lt;P&gt;             document_not_sent          = 2&lt;/P&gt;&lt;P&gt;             document_type_not_exist    = 3&lt;/P&gt;&lt;P&gt;             operation_no_authorization = 4&lt;/P&gt;&lt;P&gt;             parameter_error            = 5&lt;/P&gt;&lt;P&gt;             x_error                    = 6&lt;/P&gt;&lt;P&gt;             enqueue_error              = 7&lt;/P&gt;&lt;P&gt;             OTHERS                     = 8.&lt;/P&gt;&lt;P&gt;   IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;     MESSAGE e133 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. &lt;/P&gt;&lt;P&gt;                                                         ELSE.&lt;/P&gt;&lt;P&gt; COMMIT WORK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Sep 2005 19:15:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-29T19:15:47Z</dc:date>
    <item>
      <title>Font problems in Mail sent from a Custom program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/font-problems-in-mail-sent-from-a-custom-program/m-p/942469#M63488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There is a custom program which retrieves data from spool using function module 'RSPO_RETURN_SPOOLJOB' and the list returned by the above function module is moved to table Objbin and passed to function module 'SO_NEW_DOCUMENT_ATT_SEND_API1' for sending the email. eversince upgrade,we are facing problems with the Font of the mail generated via the above function module. The font is really small. the sample code is given below:&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;             document_data              = doc_chng&lt;/P&gt;&lt;P&gt;             put_in_outbox              = 'X'&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;             packing_list               = objpack&lt;/P&gt;&lt;P&gt;             contents_bin               = objbin&lt;/P&gt;&lt;P&gt;             receivers                  = reclist&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;             too_many_receivers         = 1&lt;/P&gt;&lt;P&gt;             document_not_sent          = 2&lt;/P&gt;&lt;P&gt;             document_type_not_exist    = 3&lt;/P&gt;&lt;P&gt;             operation_no_authorization = 4&lt;/P&gt;&lt;P&gt;             parameter_error            = 5&lt;/P&gt;&lt;P&gt;             x_error                    = 6&lt;/P&gt;&lt;P&gt;             enqueue_error              = 7&lt;/P&gt;&lt;P&gt;             OTHERS                     = 8.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 15:24:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/font-problems-in-mail-sent-from-a-custom-program/m-p/942469#M63488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T15:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Font problems in Mail sent from a Custom program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/font-problems-in-mail-sent-from-a-custom-program/m-p/942470#M63489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may check the function 'RSPO_RETURN_SPOOLJOB' and see what you get from there. How did you fill the table when you send the email? You may publish more codes other than just call send email function part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Weidong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 17:56:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/font-problems-in-mail-sent-from-a-custom-program/m-p/942470#M63489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T17:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Font problems in Mail sent from a Custom program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/font-problems-in-mail-sent-from-a-custom-program/m-p/942471#M63490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is how the code looks like:&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'                             EXPORTING                                                       rqident       = spool_number               IMPORTING                                                       real_type      = g_doc_type                      TABLES                                             &lt;/P&gt;&lt;P&gt;     buffer          = compressed_list         &lt;/P&gt;&lt;P&gt;        EXCEPTIONS                                                             no_such_job        = 1                       &lt;/P&gt;&lt;P&gt;           job_contains_no_data = 2                       &lt;/P&gt;&lt;P&gt;             selection_empty    = 3                       &lt;/P&gt;&lt;P&gt;             no_permission      = 4                       &lt;/P&gt;&lt;P&gt;             can_not_access     = 5                       &lt;/P&gt;&lt;P&gt;             read_error         = 6                       &lt;/P&gt;&lt;P&gt;             type_no_match      = 7                      &lt;/P&gt;&lt;P&gt;             OTHERS             = 8.                      &lt;/P&gt;&lt;P&gt; IF sy-subrc &amp;lt;&amp;gt; 0.                                        &lt;/P&gt;&lt;P&gt;     MESSAGE e132 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.    ENDIF.                                                   * move the list to the official table ojbin&lt;/P&gt;&lt;P&gt;   MOVE compressed_list[] TO objbin[].&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;create the document which is to be sent&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   doc_chng-obj_name = 'list'.&lt;/P&gt;&lt;P&gt;   doc_chng-obj_descr = 'Inbound PO Faxes to Jobber'.       &lt;/P&gt;&lt;P&gt;   CLEAR objpack-transf_bin.&lt;/P&gt;&lt;P&gt;   objpack-head_start = 1.&lt;/P&gt;&lt;P&gt;   objpack-head_num   = 0.&lt;/P&gt;&lt;P&gt;   objpack-body_start = 1.&lt;/P&gt;&lt;P&gt;   objpack-body_num = '0'.&lt;/P&gt;&lt;P&gt;   objpack-doc_type = 'RAW'.&lt;/P&gt;&lt;P&gt;   APPEND objpack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   DESCRIBE TABLE objbin LINES tab_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   objpack-transf_bin = 'X'.&lt;/P&gt;&lt;P&gt;   objpack-head_start = 1.&lt;/P&gt;&lt;P&gt;   objpack-head_num   = 0.&lt;/P&gt;&lt;P&gt;   objpack-body_start = 1.&lt;/P&gt;&lt;P&gt;   objpack-body_num = tab_lines.&lt;/P&gt;&lt;P&gt;   objpack-doc_type = g_doc_type.&lt;/P&gt;&lt;P&gt;   objpack-obj_name = 'Attachment'.&lt;/P&gt;&lt;P&gt;   objpack-obj_descr = 'PO Order'.   &lt;/P&gt;&lt;P&gt;                       &lt;/P&gt;&lt;P&gt;   READ TABLE objbin INDEX tab_lines.           &lt;/P&gt;&lt;P&gt;            &lt;/P&gt;&lt;P&gt;   doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  objpack-doc_size = doc_size.                             &lt;/P&gt;&lt;P&gt;   APPEND objpack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF sy-sysid NE 'PC2'.&lt;/P&gt;&lt;P&gt;                                                             recipient_int-address = ws_dummy_fax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   ELSE.&lt;/P&gt;&lt;P&gt;                                                             concatenate int_customer-fax_number&lt;/P&gt;&lt;P&gt;                  ws_fax_address&lt;/P&gt;&lt;P&gt;     INTO recipient_int-address.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   reclist-receiver = recipient_int.&lt;/P&gt;&lt;P&gt;   reclist-rec_type = 'U'.&lt;/P&gt;&lt;P&gt;   APPEND reclist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;             document_data              = doc_chng&lt;/P&gt;&lt;P&gt;             put_in_outbox              = 'X'&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;             packing_list               = objpack&lt;/P&gt;&lt;P&gt;             contents_bin               = objbin&lt;/P&gt;&lt;P&gt;             receivers                  = reclist&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;             too_many_receivers         = 1&lt;/P&gt;&lt;P&gt;             document_not_sent          = 2&lt;/P&gt;&lt;P&gt;             document_type_not_exist    = 3&lt;/P&gt;&lt;P&gt;             operation_no_authorization = 4&lt;/P&gt;&lt;P&gt;             parameter_error            = 5&lt;/P&gt;&lt;P&gt;             x_error                    = 6&lt;/P&gt;&lt;P&gt;             enqueue_error              = 7&lt;/P&gt;&lt;P&gt;             OTHERS                     = 8.&lt;/P&gt;&lt;P&gt;   IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;     MESSAGE e133 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. &lt;/P&gt;&lt;P&gt;                                                         ELSE.&lt;/P&gt;&lt;P&gt; COMMIT WORK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 19:15:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/font-problems-in-mail-sent-from-a-custom-program/m-p/942471#M63490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T19:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Font problems in Mail sent from a Custom program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/font-problems-in-mail-sent-from-a-custom-program/m-p/942472#M63491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give a try to use g_doc_type = 'TXT' It may fix a lot of issue. Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Weidong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2005 20:54:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/font-problems-in-mail-sent-from-a-custom-program/m-p/942472#M63491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-29T20:54:39Z</dc:date>
    </item>
  </channel>
</rss>

