<?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: .PRN file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/prn-file/m-p/6034534#M1349887</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;Try as shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_DOWNLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;FILENAME = 'c:\XYZ.prn'&lt;/P&gt;&lt;P&gt;FILETYPE = 'ASC'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;DATA_TAB = DISP_TAB3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after executing your program you can check your file in DOS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GOTO START--&amp;gt; RUN --&amp;gt; Type CMD&lt;/P&gt;&lt;P&gt;cd\&lt;/P&gt;&lt;P&gt;type XYZ.PRN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD OF e_activesheet 'PrintOut'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;#1 = 1&lt;/P&gt;&lt;P&gt;#2 = 'True'&lt;/P&gt;&lt;P&gt;#3 = 'True'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Aug 2009 07:17:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-13T07:17:31Z</dc:date>
    <item>
      <title>.PRN file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/prn-file/m-p/6034533#M1349886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement in which i need to convert the contents of Internal Table to a .PRN file... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one please guide me with any inputs on this ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any FM which can help me ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2009 07:06:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/prn-file/m-p/6034533#M1349886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-13T07:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: .PRN file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/prn-file/m-p/6034534#M1349887</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;Try as shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_DOWNLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;FILENAME = 'c:\XYZ.prn'&lt;/P&gt;&lt;P&gt;FILETYPE = 'ASC'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;DATA_TAB = DISP_TAB3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after executing your program you can check your file in DOS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GOTO START--&amp;gt; RUN --&amp;gt; Type CMD&lt;/P&gt;&lt;P&gt;cd\&lt;/P&gt;&lt;P&gt;type XYZ.PRN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD OF e_activesheet 'PrintOut'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;#1 = 1&lt;/P&gt;&lt;P&gt;#2 = 'True'&lt;/P&gt;&lt;P&gt;#3 = 'True'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2009 07:17:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/prn-file/m-p/6034534#M1349887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-13T07:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: .PRN file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/prn-file/m-p/6034535#M1349888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi .. This is simply creating a file with extension .PRN&lt;/P&gt;&lt;P&gt;which is not useful to me .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.PRN file is a file which converts contents of any file into special Format which is in Printer readable format..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other way if i want to print the contents on a file .. the format is .PRN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the above code is really not useful .. is there any other way apart from this..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2009 07:39:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/prn-file/m-p/6034535#M1349888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-13T07:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: .PRN file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/prn-file/m-p/6034536#M1349889</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;Guys after a lot of work around i found out the best possible solution with one of my Colleague.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1. Go to zebra Designer and create the required format of Barcode.. and Say print to File. This will create a  PRN file for u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2. Use this PRN file.. with FM GUI_Upload. this will copy the contents of your PRN file into the ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 3. Using this PRN file manipulate the contents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 4. Download this PRN to Desktop using ws_download. Then simply execure this PRN file to the Zebra Printer. This will generate the Barcode for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For any help u can write to me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 10:18:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/prn-file/m-p/6034536#M1349889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-06T10:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: .PRN file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/prn-file/m-p/6034537#M1349890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jitesh, I am having samea requirement to convert the contents of Internal Table to a .PRN file. I am using FM - GUI_Download but not finding any PAGECODE to covert the file in .PRN format......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please assist..... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2009 06:17:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/prn-file/m-p/6034537#M1349890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-16T06:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: .PRN file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/prn-file/m-p/6034538#M1349891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;* TO convert the contents of PRN File into Internal table (I_FILE )
  CALL FUNCTION 'GUI_UPLOAD'
     EXPORTING
       FILENAME                      = 'C:\FINAL1234.PRN' "FILENAME
      FILETYPE                      = 'DAT'
*     HAS_FIELD_SEPARATOR           = ' '
*     HEADER_LENGTH                 = 0
*     READ_BY_LINE                  = 'X'
*     DAT_MODE                      = ' '
*     CODEPAGE                      = ' '
*     IGNORE_CERR                   = ABAP_TRUE
*     REPLACEMENT                   = '#'
*     CHECK_BOM                     = ' '
*     VIRUS_SCAN_PROFILE            =
*     NO_AUTH_CHECK                 = ' '
*   IMPORTING
*     FILELENGTH                    =
*     HEADER                        =
     TABLES
       DATA_TAB                      = I_FILE
*   EXCEPTIONS
*     FILE_OPEN_ERROR               = 1
*     FILE_READ_ERROR               = 2
*     NO_BATCH                      = 3
*     GUI_REFUSE_FILETRANSFER       = 4
*     INVALID_TYPE                  = 5
*     NO_AUTHORITY                  = 6
*     UNKNOWN_ERROR                 = 7
*     BAD_DATA_FORMAT               = 8
*     HEADER_NOT_ALLOWED            = 9
*     SEPARATOR_NOT_ALLOWED         = 10
*     HEADER_TOO_LONG               = 11
*     UNKNOWN_DP_ERROR              = 12
*     ACCESS_DENIED                 = 13
*     DP_OUT_OF_MEMORY              = 14
*     DISK_FULL                     = 15
*     DP_TIMEOUT                    = 16
*     OTHERS                        = 17
             .
  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.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;to process ur PRN file.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE&gt;loop at i_file.. 
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;to download the prn file in C:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'WS_DOWNLOAD'
   EXPORTING
*   BIN_FILESIZE                  = ' '
*   CODEPAGE                      = ' '
     FILENAME                      = 'C:\Print.prn'
     FILETYPE                      = 'ASC'
*   MODE                          = ' '
*   WK1_N_FORMAT                  = ' '
*   WK1_N_SIZE                    = ' '
*   WK1_T_FORMAT                  = ' '
*   WK1_T_SIZE                    = ' '
*   COL_SELECT                    = ' '
*   COL_SELECTMASK                = ' '
*   NO_AUTH_CHECK                 = ' '
* IMPORTING
*   FILELENGTH                    =
    TABLES
      DATA_TAB                      = I_FILE_FINAL
*   FIELDNAMES                    =
* EXCEPTIONS
*   FILE_OPEN_ERROR               = 1
*   FILE_WRITE_ERROR              = 2
*   INVALID_FILESIZE              = 3
*   INVALID_TYPE                  = 4
*   NO_BATCH                      = 5
*   UNKNOWN_ERROR                 = 6
*   INVALID_TABLE_WIDTH           = 7
*   GUI_REFUSE_FILETRANSFER       = 8
*   CUSTOMER_ERROR                = 9
*   NO_AUTHORITY                  = 10
*   OTHERS                        = 11
            .
  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.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2009 07:00:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/prn-file/m-p/6034538#M1349891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-16T07:00:44Z</dc:date>
    </item>
  </channel>
</rss>

