<?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: Call Printing process in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-printing-process/m-p/1242176#M142453</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kishan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply, the code works very smooth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I found one problem, how do we know if user click cancel in the printing window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont want to execute the code when user click cancel button in the printing window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please I need help on this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 16 Apr 2006 07:15:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-16T07:15:53Z</dc:date>
    <item>
      <title>Call Printing process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-printing-process/m-p/1242171#M142448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created a new button (using PF-STATUS), then  I want to make it has the same functionality like print button. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It means :&lt;/P&gt;&lt;P&gt;When a user click the button = When a user click print button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 04:16:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-printing-process/m-p/1242171#M142448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T04:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Call Printing process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-printing-process/m-p/1242172#M142449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to set your data before pushing icon print:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function code for print is &amp;amp;RNT, so: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- active an exit event for it (perameter IT_EVENT_EXIT):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: GT_EVENT_EXIT TYPE SLIS_T_EVENT_EXIT,&lt;/P&gt;&lt;P&gt;LT_EVENT_EXIT TYPE slis_event_exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LT_EVENT_EXIT-ucomm = '&amp;amp;RNT'.&lt;/P&gt;&lt;P&gt;LT_EVENT_EXIT-before = 'X'.&lt;/P&gt;&lt;P&gt;append LT_EVENT_EXIT to GT_EVENT_EXIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now transfer it to fm ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Create a your routine for user-command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM user_command USING r_ucomm LIKE sy-ucomm &lt;/P&gt;&lt;P&gt;rs_selfield TYPE slis_selfield.&lt;/P&gt;&lt;P&gt;CASE R_UCOMM.&lt;/P&gt;&lt;P&gt;WHEN '&amp;amp;RNT'. &lt;/P&gt;&lt;P&gt;if rs_selfield-before_action = 'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Here insert the code to set your data for print &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;WHEN OTHERS.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 04:24:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-printing-process/m-p/1242172#M142449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T04:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Call Printing process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-printing-process/m-p/1242173#M142450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Welcome to SDN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can call this FM &amp;lt;b&amp;gt;RS_COVERPAGE_SELECTIONS&amp;lt;/b&amp;gt; for your custom print button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: BEGIN OF MTAB_SEL_OPTIONS OCCURS 0,
        FLAG(1) TYPE C,
        OLENGTH TYPE X,
        LINE  LIKE RSVAR-INFOLINE,
      END OF MTAB_SEL_OPTIONS.

CALL FUNCTION 'RS_COVERPAGE_SELECTIONS'
  EXPORTING
    REPORT            = 'ZREPORT1' ' Name of current report
    VARIANT           = ''
    NO_IMPORT         = 'X'
  TABLES
    INFOTAB           = MTAB_SEL_OPTIONS
  EXCEPTIONS
    ERROR_MESSAGE     = 1
    VARIANT_NOT_FOUND = 2
    OTHERS            = 3.
 
 LOOP AT MTAB_SEL_OPTIONS.
   WRITE: / MTAB_SEL_OPTIONS-LINE.
 ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 04:31:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-printing-process/m-p/1242173#M142450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T04:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Call Printing process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-printing-process/m-p/1242174#M142451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make use of the Print option given in the 'Standard Toolbar' (Function keys of STATUS) by passing the value as 'APRI'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 04:34:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-printing-process/m-p/1242174#M142451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T04:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Call Printing process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-printing-process/m-p/1242175#M142452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for all your help especially Kishan Negi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Sandi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 05:30:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-printing-process/m-p/1242175#M142452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T05:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Call Printing process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-printing-process/m-p/1242176#M142453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kishan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply, the code works very smooth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I found one problem, how do we know if user click cancel in the printing window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont want to execute the code when user click cancel button in the printing window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please I need help on this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Apr 2006 07:15:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-printing-process/m-p/1242176#M142453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-16T07:15:53Z</dc:date>
    </item>
  </channel>
</rss>

