<?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: Attach Image to Invoice in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/attach-image-to-invoice/m-p/4916908#M1147686</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;         I need to attach image to invoice ...fb03.. when I user create-&amp;gt;attachment.. its asking popup to enter the file location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    I need to enter the filepath in my program from the selection screen .. ie from application server ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  It wld be helpful to give the picture  of this.   &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Arunachal.G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Dec 2008 03:01:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-18T03:01:58Z</dc:date>
    <item>
      <title>Attach Image to Invoice</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attach-image-to-invoice/m-p/4916906#M1147684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        I need to read image from application server and attach it to Invoice . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        It wld be helpful if anyone suggest fn module to read  image from application server and more attach to invoice. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Arunachala.G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2008 07:09:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attach-image-to-invoice/m-p/4916906#M1147684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-17T07:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Attach Image to Invoice</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attach-image-to-invoice/m-p/4916907#M1147685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below is the code base which is used to upload a picture from the SAP Application Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    TYPES pict_line TYPE x LENGTH 1022.&lt;/P&gt;&lt;P&gt;    DATA l_mime_api   TYPE REF TO if_mr_api.&lt;/P&gt;&lt;P&gt;    DATA l_pict_wa    TYPE xstring.&lt;/P&gt;&lt;P&gt;    DATA l_pict_tab   TYPE TABLE OF pict_line.&lt;/P&gt;&lt;P&gt;    DATA l_length     TYPE i.&lt;/P&gt;&lt;P&gt;    DATA l_url        TYPE c LENGTH 255.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    l_mime_api = cl_mime_repository_api=&amp;gt;get_api( ).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    l_mime_api-&amp;gt;get(&lt;/P&gt;&lt;P&gt;      EXPORTING i_url = '/SAP/PUBLIC/BC/ABAP/Sources/PLANE.GIF'&lt;/P&gt;&lt;P&gt;      IMPORTING e_content = l_pict_wa&lt;/P&gt;&lt;P&gt;      EXCEPTIONS OTHERS = 4 ).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    IF sy-subrc  0.&lt;/P&gt;&lt;P&gt;      RETURN.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    l_length = XSTRLEN( l_pict_wa ).&lt;/P&gt;&lt;P&gt;    WHILE l_length &amp;gt;= 1022.&lt;/P&gt;&lt;P&gt;      APPEND l_pict_wa(1022) TO l_pict_tab.&lt;/P&gt;&lt;P&gt;      SHIFT l_pict_wa BY 1022 PLACES LEFT IN BYTE MODE.&lt;/P&gt;&lt;P&gt;      l_length = XSTRLEN( l_pict_wa ).&lt;/P&gt;&lt;P&gt;    ENDWHILE.&lt;/P&gt;&lt;P&gt;    IF l_length &amp;gt; 0.&lt;/P&gt;&lt;P&gt;      APPEND l_pict_wa TO l_pict_tab.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'DP_CREATE_URL'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        type    = 'IMAGE'&lt;/P&gt;&lt;P&gt;        subtype = 'GIF'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        data    = l_pict_tab&lt;/P&gt;&lt;P&gt;      CHANGING&lt;/P&gt;&lt;P&gt;        url     = l_url.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    picture-&amp;gt;load_picture_from_url(&lt;/P&gt;&lt;P&gt;         EXPORTING url = l_url ).&lt;/P&gt;&lt;P&gt;    picture-&amp;gt;set_display_mode(&lt;/P&gt;&lt;P&gt;         EXPORTING display_mode = picture-&amp;gt;display_mode_stretch ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Entire code is available in the program &lt;STRONG&gt;DEMO_CFW&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2008 09:10:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attach-image-to-invoice/m-p/4916907#M1147685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-17T09:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Attach Image to Invoice</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/attach-image-to-invoice/m-p/4916908#M1147686</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;         I need to attach image to invoice ...fb03.. when I user create-&amp;gt;attachment.. its asking popup to enter the file location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    I need to enter the filepath in my program from the selection screen .. ie from application server ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  It wld be helpful to give the picture  of this.   &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Arunachal.G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2008 03:01:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/attach-image-to-invoice/m-p/4916908#M1147686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-18T03:01:58Z</dc:date>
    </item>
  </channel>
</rss>

