<?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 Printing ! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing/m-p/4358693#M1037634</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;I would like to print text on a printer from my ABAP program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the NEW-PAGE PRINT ON/OFF syntax which, I think , send to the printer all the text used with a WRITE statement  between the NEW-PAGE PRINT ON  instruction and the NEW-PAGE PRINT OFF instruction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that I want to use a fonction module (that I will create)&lt;/P&gt;&lt;P&gt;to print a text contained in a parameter, so, a varaiable text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question : is it possible to print a text contained in a structure/variable ? Or is it possible to print  some text using a fonction module ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Yohann.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Aug 2008 12:46:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-29T12:46:00Z</dc:date>
    <item>
      <title>Printing !</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing/m-p/4358693#M1037634</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;I would like to print text on a printer from my ABAP program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the NEW-PAGE PRINT ON/OFF syntax which, I think , send to the printer all the text used with a WRITE statement  between the NEW-PAGE PRINT ON  instruction and the NEW-PAGE PRINT OFF instruction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that I want to use a fonction module (that I will create)&lt;/P&gt;&lt;P&gt;to print a text contained in a parameter, so, a varaiable text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question : is it possible to print a text contained in a structure/variable ? Or is it possible to print  some text using a fonction module ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Yohann.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 12:46:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing/m-p/4358693#M1037634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T12:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Printing !</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing/m-p/4358694#M1037635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. You can use the NEW-PAGE ... syntax in the Function Module also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give a try..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 13:00:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing/m-p/4358694#M1037635</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-08-29T13:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Printing !</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing/m-p/4358695#M1037636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes but the text I want to print will come from the program that call the fonction module , &lt;U&gt;&lt;STRONG&gt;this&lt;/STRONG&gt;&lt;/U&gt; is my problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program defines the text to print, the fonction module print it...and so i can reuse this fonction module.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 13:11:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing/m-p/4358695#M1037636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T13:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Printing !</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing/m-p/4358696#M1037637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think this is a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created this test FM:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FUNCTION ZTEST_NP_WRITE.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     REFERENCE(I_NAME1) TYPE  CHAR30
*"     REFERENCE(I_NAME2) TYPE  CHAR30
*"----------------------------------------------------------------------

  DATA:  PRI_PARAMS TYPE PRI_PARAMS.

  NEW-PAGE PRINT ON  PARAMETERS PRI_PARAMS
                               NO DIALOG.
  WRITE: / I_NAME1, I_NAME2.

  NEW-PAGE PRINT OFF.

ENDFUNCTION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Used it in the program.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA: L_NAME1 TYPE CHAR30,
        L_NAME2 TYPE CHAR30.

  L_NAME1 = 'Naimesh'.
  L_NAME2 = 'Patel'.

  CALL FUNCTION 'ZTEST_NP_WRITE'
    EXPORTING
      I_NAME1 = L_NAME1
      I_NAME2 = L_NAME2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has generated the Spool, which I had expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 13:26:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing/m-p/4358696#M1037637</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-08-29T13:26:28Z</dc:date>
    </item>
  </channel>
</rss>

