<?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: print priview in smartforms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-priview-in-smartforms/m-p/1265944#M149074</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wenceslaus,Amit,Satish,&lt;/P&gt;&lt;P&gt;Thanks for all replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points alloted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;kaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Mar 2006 09:28:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-28T09:28:10Z</dc:date>
    <item>
      <title>print priview in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-priview-in-smartforms/m-p/1265939#M149069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;If i select printer name in the selection screen..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECTION-SCREEN BEGIN OF BLOCK P1 WITH FRAME  TITLE TEXT-005.
PARAMETERS : P_PRINT LIKE NAST-LDEST.
SELECTION-SCREEN END OF BLOCK P1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get that printer name in print privew in smartforms....&lt;/P&gt;&lt;P&gt;How can i achive this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward guaranteed&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;kaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2006 08:54:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-priview-in-smartforms/m-p/1265939#M149069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-28T08:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: print priview in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-priview-in-smartforms/m-p/1265940#M149070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Kaki,&lt;/P&gt;&lt;P&gt; TDDEST of SSFCOMPOP contains the device name..&lt;/P&gt;&lt;P&gt; just pass this to the FM in Output options  in exporting parameters..&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK P1 WITH FRAME  TITLE TEXT-005.&lt;/P&gt;&lt;P&gt;PARAMETERS : P_PRINT LIKE NAST-LDEST.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK P1.&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : dev type SSFCOMPOP.&lt;/P&gt;&lt;P&gt;dev-TDDEST = p_PRINT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION...&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt; ....&lt;/P&gt;&lt;P&gt;  OUTPUT_OPTIONS             = dev&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;satesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2006 08:59:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-priview-in-smartforms/m-p/1265940#M149070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-28T08:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: print priview in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-priview-in-smartforms/m-p/1265941#M149071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;DATA param TYPE SSFCTRLOP
param-device = ."Device name"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and pass it as a parameter to the smartform&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'your_smartform'&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;    CONTROL_PARAMETERS = param&lt;/P&gt;&lt;P&gt;  .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2006 08:59:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-priview-in-smartforms/m-p/1265941#M149071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-28T08:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: print priview in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-priview-in-smartforms/m-p/1265942#M149072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kaki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BOLD is important.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also&lt;/P&gt;&lt;P&gt;        USER_SETTINGS              = space&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;(This parameter is Imporant, do not comment this parameter,&lt;/P&gt;&lt;P&gt;instead pass like this only,&lt;/P&gt;&lt;P&gt;other wise OUR PRinter will not get selected !&lt;/P&gt;&lt;P&gt;)&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: output_options      TYPE ssfcompop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;output_options-tddest = 'LOC1'.  &amp;lt;----&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; your printer&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  funcname = '/1BCDWB/SF00000100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION funcname&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       ARCHIVE_INDEX              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       ARCHIVE_INDEX_TAB          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       ARCHIVE_PARAMETERS         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       CONTROL_PARAMETERS         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       MAIL_APPL_OBJ              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       MAIL_RECIPIENT             = 'mamit'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       MAIL_SENDER                =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;lt;b&amp;gt;     output_options             = output_options&lt;/P&gt;&lt;P&gt;        USER_SETTINGS              = space&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       DOCUMENT_OUTPUT_INFO       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     job_output_info            = output_data&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       JOB_OUTPUT_OPTIONS         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      p9002                      = p9002&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     formatting_error           = 1&lt;/P&gt;&lt;P&gt;     internal_error             = 2&lt;/P&gt;&lt;P&gt;     send_error                 = 3&lt;/P&gt;&lt;P&gt;     user_canceled              = 4&lt;/P&gt;&lt;P&gt;     OTHERS                     = 5&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  BREAK-POINT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2006 09:00:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-priview-in-smartforms/m-p/1265942#M149072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-28T09:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: print priview in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-priview-in-smartforms/m-p/1265943#M149073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi kaki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To the funcion module that is generated by the smartforms there is a parameter called Control parameters.&lt;/P&gt;&lt;P&gt;Declare internal table it_print like SSFCTRLOP.&lt;/P&gt;&lt;P&gt;it_print-device = P_PRINT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2006 09:11:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-priview-in-smartforms/m-p/1265943#M149073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-28T09:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: print priview in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-priview-in-smartforms/m-p/1265944#M149074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wenceslaus,Amit,Satish,&lt;/P&gt;&lt;P&gt;Thanks for all replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points alloted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;kaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2006 09:28:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-priview-in-smartforms/m-p/1265944#M149074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-28T09:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: print priview in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/print-priview-in-smartforms/m-p/1265945#M149075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you follow the following two steps : &lt;/P&gt;&lt;P&gt;1. In your layout, write in any text where you want to print he name of printer : &amp;amp;OUTPUT_OPTIONS-TDDEST&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(NOTE THIS IS MENTIONED IN THE IMPORT PARAMETER OF THE FORM INTERFACE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In your program, &lt;/P&gt;&lt;P&gt;copy paste the following code and run it : ( you will get the result once you activate both the layout and the program)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Report zkunal.&lt;/P&gt;&lt;P&gt;DATA : OUTPUT_OPTIONS TYPE ssfcompop.&lt;/P&gt;&lt;P&gt;OUTPUT_OPTIONS-TDDEST = 'LP01'. &lt;/P&gt;&lt;P&gt;  " LP01 is printer name &lt;/P&gt;&lt;P&gt;CALL FUNCTION '/1BCDWB/SF00000071' &lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_INDEX              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_INDEX_TAB          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_PARAMETERS         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CONTROL_PARAMETERS         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAIL_APPL_OBJ              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAIL_RECIPIENT             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAIL_SENDER                =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   OUTPUT_OPTIONS             = OUTPUT_OPTIONS&lt;/P&gt;&lt;P&gt;   USER_SETTINGS              = SPACE&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DOCUMENT_OUTPUT_INFO       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  JOB_OUTPUT_INFO            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  JOB_OUTPUT_OPTIONS         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FORMATTING_ERROR           = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INTERNAL_ERROR             = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SEND_ERROR                 = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  USER_CANCELED              = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                     = 5&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you get execute this , you can see the printer name in your smart form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Kunal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2006 10:14:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/print-priview-in-smartforms/m-p/1265945#M149075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-28T10:14:26Z</dc:date>
    </item>
  </channel>
</rss>

