<?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: Display pushbutton on the report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-pushbutton-on-the-report/m-p/1803621#M344955</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;in that sense, in the end-of-selection, before you use the WRITE statement, you have to define a pf-status and add a push button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check for SY-UCOMM, if it is equal to the user-command of your push button, you can CALL TRANSACTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Dec 2006 06:20:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-29T06:20:10Z</dc:date>
    <item>
      <title>Display pushbutton on the report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-pushbutton-on-the-report/m-p/1803615#M344949</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;My requirement is to prepare a report and pushbutton on the it. After clicking on pushbutton a new transaction should open. I am not able to display the pushbutton on the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me the solution for this problem,if anyone knows.&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;Aparna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2006 05:47:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-pushbutton-on-the-report/m-p/1803615#M344949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-29T05:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Display pushbutton on the report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-pushbutton-on-the-report/m-p/1803616#M344950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aparna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you want the push button on the selection-screen? or the tool bar?&lt;/P&gt;&lt;P&gt;or on the tool bar of the output list?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls let us know the requirement. we will be able to track it correctly...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2006 05:49:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-pushbutton-on-the-report/m-p/1803616#M344950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-29T05:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Display pushbutton on the report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-pushbutton-on-the-report/m-p/1803617#M344951</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;you can create the pushbutton in application toolbar using SET PF-STATUS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and give the functionality for that as CALL TRANSACTION xxx.&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;you can create the push button in selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;pankaj singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2006 05:51:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-pushbutton-on-the-report/m-p/1803617#M344951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-29T05:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Display pushbutton on the report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-pushbutton-on-the-report/m-p/1803618#M344952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aparna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following code demonstrates how to add user defined push buttons to a standard report selection screen.&lt;/P&gt;&lt;P&gt;Push buttons are used to trigger user functions with in the program to make them interactive with the user. &lt;/P&gt;&lt;P&gt;The example below shows how buttons can allow you to dynamically alter a selection screen depending on&lt;/P&gt;&lt;P&gt;which button is pressed. But they can be used for many other applications from displaying a window to &lt;/P&gt;&lt;P&gt;calling other reports.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  ZSSCRBUTTON                                                 *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;  Adds buttons to selection screen.                                  *&lt;/P&gt;&lt;P&gt;*&amp;amp;  Demonstrates alteration of selection screen layout depending on    *&lt;/P&gt;&lt;P&gt;*&amp;amp;  which button is pressed.                                           *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; REPORT  zsscrbutton NO STANDARD PAGE HEADING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: t030, skat, sscrfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME&lt;/P&gt;&lt;P&gt;                                     TITLE text-001.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: p_ktopl FOR t030-ktopl,&lt;/P&gt;&lt;P&gt;                p_komok FOR t030-komok,&lt;/P&gt;&lt;P&gt;                p_ktosl FOR t030-ktosl.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN SKIP.&lt;/P&gt;&lt;P&gt;*SELECTION-SCREEN FUNCTION KEY 1.  "Adds button to application toolbar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Declaration of sel screen buttons&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN PUSHBUTTON (20) w_button USER-COMMAND BUT1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN PUSHBUTTON (25) w_but2 USER-COMMAND BUT2.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: p_konts FOR t030-konts,&lt;/P&gt;&lt;P&gt;                p_bklas FOR t030-bklas.&lt;/P&gt;&lt;P&gt;PARAMETER: gd_ucomm like sy-ucomm default 'BUT1' no-display.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK block1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF t_t030,&lt;/P&gt;&lt;P&gt;   ktopl TYPE t030-ktopl,&lt;/P&gt;&lt;P&gt;   konts TYPE t030-konts,&lt;/P&gt;&lt;P&gt;   txt20 TYPE skat-txt20,&lt;/P&gt;&lt;P&gt;   bklas TYPE t030-bklas,&lt;/P&gt;&lt;P&gt;   bkbez TYPE t025t-bkbez,&lt;/P&gt;&lt;P&gt;  END OF t_t030.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_t030 TYPE STANDARD TABLE OF t_t030 INITIAL SIZE 0,&lt;/P&gt;&lt;P&gt;      wa_t030 TYPE t_t030.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gd_repsize TYPE i VALUE '83'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;*INITIALIZATION.&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Add displayed text string to buttons&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;w_button = 'GL account selection'.&lt;/P&gt;&lt;P&gt;w_but2 = 'Valuation class selection'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;*AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check if buttons have been &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if sscrfields-ucomm eq 'BUT1'.&lt;/P&gt;&lt;P&gt;    gd_ucomm = 'BUT1'.&lt;/P&gt;&lt;P&gt;    clear: p_BKLAS.&lt;/P&gt;&lt;P&gt;    refresh: p_BKLAS.&lt;/P&gt;&lt;P&gt;  elseif sscrfields-ucomm eq 'BUT2'.&lt;/P&gt;&lt;P&gt;    clear: p_KONTS.&lt;/P&gt;&lt;P&gt;    refresh: p_KONTS.&lt;/P&gt;&lt;P&gt;    gd_ucomm = 'BUT2'.&lt;/P&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;*AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;  if gd_ucomm eq 'BUT1'.&lt;/P&gt;&lt;P&gt;    loop at screen.&lt;/P&gt;&lt;P&gt;      if screen-name CS 'P_KONTS'.&lt;/P&gt;&lt;P&gt;        screen-active = 1.&lt;/P&gt;&lt;P&gt;      elseif screen-name CS 'P_BKLAS'.&lt;/P&gt;&lt;P&gt;        screen-active = 0.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      modify screen.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  elseif gd_ucomm eq 'BUT2'.&lt;/P&gt;&lt;P&gt;    loop at screen.&lt;/P&gt;&lt;P&gt;     if screen-name CS 'P_KONTS'.&lt;/P&gt;&lt;P&gt;        screen-active = 0.&lt;/P&gt;&lt;P&gt;      elseif screen-name CS 'P_BKLAS'.&lt;/P&gt;&lt;P&gt;        screen-active = 1.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      modify screen.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Hope this helps.&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sipra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2006 05:57:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-pushbutton-on-the-report/m-p/1803618#M344952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-29T05:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Display pushbutton on the report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-pushbutton-on-the-report/m-p/1803619#M344953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to display report using selection screen. And after that I need 1 pushbutton on final report clicking on which we should navigate to another transaction.&lt;/P&gt;&lt;P&gt;I want pushbutton neither on selection screen nor on toolbar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Aparna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2006 06:01:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-pushbutton-on-the-report/m-p/1803619#M344953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-29T06:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Display pushbutton on the report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-pushbutton-on-the-report/m-p/1803620#M344954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GO TO SE41 AND CREATE YOUR PF-STATUS OR WRITE&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'ZSPD'. AND DBL CLICK ON ZSPD IT WILL GO TO SE41 DIRECTLY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THERE IN APPLICATION TOOL BAR AREA GIVE THE FUNCTION CODE AND PUSHBUTTON TEXT AND ACTIVATE THE STATUS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOW HANDLE YOUR CODE IN AT USER-COMMAND EVENT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HERE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt; WHEN 'NEXT'. " NEXT IS THE FN CODE FOR YOUR PUSH BUTTON&lt;/P&gt;&lt;P&gt; CALL TRANSACTION .....&lt;/P&gt;&lt;P&gt;ENDCASE.&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;SHIBA DUTTA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2006 06:05:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-pushbutton-on-the-report/m-p/1803620#M344954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-29T06:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Display pushbutton on the report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-pushbutton-on-the-report/m-p/1803621#M344955</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;in that sense, in the end-of-selection, before you use the WRITE statement, you have to define a pf-status and add a push button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check for SY-UCOMM, if it is equal to the user-command of your push button, you can CALL TRANSACTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2006 06:20:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-pushbutton-on-the-report/m-p/1803621#M344955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-29T06:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Display pushbutton on the report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-pushbutton-on-the-report/m-p/1803622#M344956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can create push button either in selection screen or in tool bar but not in list screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Madhuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2006 06:55:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-pushbutton-on-the-report/m-p/1803622#M344956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-29T06:55:12Z</dc:date>
    </item>
  </channel>
</rss>

