<?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: Report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247544#M143997</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;&lt;/P&gt;&lt;P&gt;you can do it using set pf-status 'STATUS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;double click on status , and add the buttons which you want, and enable back, cnacel , exit buttons also.(green,yellow, red).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write that code in start of selection.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
start-of-selection.
set pf-status 'STATUS'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Apr 2006 09:55:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-12T09:55:17Z</dc:date>
    <item>
      <title>Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247542#M143995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai friends,&lt;/P&gt;&lt;P&gt;  in report program,hoe to create button in tool bar.&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Jinna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 09:51:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247542#M143995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T09:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247543#M143996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;U can use PF-STATUS..&lt;/P&gt;&lt;P&gt;set pf-status 'stat1'.&lt;/P&gt;&lt;P&gt;u can create buttons in the appliation toolbar only.&lt;/P&gt;&lt;P&gt;u can control the buttons in the main toolbar..&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if useful..&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Ashok Kumar Prithiviraj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 09:53:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247543#M143996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T09:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247544#M143997</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;&lt;/P&gt;&lt;P&gt;you can do it using set pf-status 'STATUS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;double click on status , and add the buttons which you want, and enable back, cnacel , exit buttons also.(green,yellow, red).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write that code in start of selection.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
start-of-selection.
set pf-status 'STATUS'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 09:55:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247544#M143997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T09:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247545#M143998</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 need to create a MENU using SE41 and attach that to the program, using SET PF-STATUS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Menu, you can add buttons to the toolbar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note : Please close the thread, if the problem is solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 09:58:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247545#M143998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T09:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247546#M143999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also check for the instruction :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN FUNCTION KEY n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It let you add 5 buttons in the toolbar without having to manage a status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 10:00:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247546#M143999</guid>
      <dc:creator>former_member416164</dc:creator>
      <dc:date>2006-04-12T10:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247547#M144000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jinna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)In PBO of seln.screen, write SET PF-STATUS 'MENU'. &lt;/P&gt;&lt;P&gt;Double click on MENU and you will be taken to SE41 or Menu Painter.&lt;/P&gt;&lt;P&gt;In Application Toolbar ,provide your button, give it function code and other info.&lt;/P&gt;&lt;P&gt;Save it and activate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)Provide the code to be executed when the button is clicked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is it.This will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 10:03:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247547#M144000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T10:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247548#M144001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to set the Pf-status for selection-screen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you have to use,&lt;/P&gt;&lt;P&gt;TABLES: SSCRFIELDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Button on screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECTION-SCREEN FUNCTION KEY 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;SSCRFIELDS-FUNCTXT_01 = 'Test'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;CASE SSCRFIELDS-UCOMM.&lt;/P&gt;&lt;P&gt;WHEN 'FC01'.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;do what you want.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;--&lt;/STRONG&gt;&lt;DEL&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;OR--&lt;HR originaltext="---------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               " Statement 1 After the Report Statement.&lt;/P&gt;&lt;P&gt;1) Set PF-STATUS 'Menu1'. " Double click to create Menu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)Start-of-selection&lt;/P&gt;&lt;P&gt;  AT user-command&lt;/P&gt;&lt;P&gt;     If sy-ucomm = 'Command_Name'. &lt;/P&gt;&lt;P&gt;                    " name give to function Keys&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;Enter ur logic&lt;/P&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-----U can use case statment also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Manoj Gupta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 10:09:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247548#M144001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T10:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247549#M144002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; This is not Module pool.this is report.&lt;/P&gt;&lt;P&gt;In report also not in sellecton screen. i wanto create second screen(display).&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 10:15:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247549#M144002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T10:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247550#M144003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jinna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without using the SET PF-STATUS statement, you can set a button in toolbar in selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just check this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: SSCRFIELDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Button on screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;selection-screen: begin of screen 200.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN FUNCTION KEY 1.&lt;/P&gt;&lt;P&gt;selection-screen: end of screen 200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;SSCRFIELDS-FUNCTXT_01 = 'Test'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;CASE SSCRFIELDS-UCOMM.&lt;/P&gt;&lt;P&gt;WHEN 'FC01'.&lt;/P&gt;&lt;P&gt;message i001(zmess).&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;call selection-screen 200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 10:15:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247550#M144003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T10:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247551#M144004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jinna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to display a toolbar button in a particular screen (say 300).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PBO of 300, &lt;/P&gt;&lt;P&gt;1) set pf-status 'MENU'.&lt;/P&gt;&lt;P&gt;2) Add the buttons in the application toolbar.&lt;/P&gt;&lt;P&gt;3) Save it and activate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PAI, corresponding to the Function Code, corresponding&lt;/P&gt;&lt;P&gt;code is written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 10:21:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247551#M144004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T10:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247552#M144005</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;&lt;/P&gt;&lt;P&gt;I think you want buttons in your secondary list. if that is the case you can do it like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at line-selection.&lt;/P&gt;&lt;P&gt;set pf-status 'STATUS'.  "double click add buttons&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now for handling do it under &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;at user-command.

case sy-ucomm.

when 'TEST'.
"do action
endcase.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 10:24:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247552#M144005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T10:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247553#M144006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Good&lt;/P&gt;&lt;P&gt;go through this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  zsiva_test &lt;/P&gt;&lt;P&gt;MESSAGE-ID zprecot. &lt;/P&gt;&lt;P&gt;TABLES : afru. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF ty_test, &lt;/P&gt;&lt;P&gt;        ism01 LIKE afru-ism01, &lt;/P&gt;&lt;P&gt;        END OF ty_test. &lt;/P&gt;&lt;P&gt;TABLES sscrfields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.  &lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : so_werks FOR afru-werks.  &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN PUSHBUTTON /79(10) charly USER-COMMAND abcd.  &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION. &lt;/P&gt;&lt;P&gt;  MOVE 'Press' TO charly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-SELECTION. &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;  IF sscrfields-ucomm = 'ABCD'. &lt;/P&gt;&lt;P&gt;    MESSAGE i000 WITH so_werks-low 'Success' . &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;Thanks&lt;/P&gt;&lt;P&gt;Mrutyunjaya Tripathy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 10:35:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247553#M144006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T10:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247554#M144007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SP i want button in report program in alv display screen.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 10:38:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247554#M144007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T10:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247555#M144008</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;Check this code..&lt;/P&gt;&lt;P&gt;and for setting up the status &lt;/P&gt;&lt;P&gt;go to SE41 and give program name &amp;lt;b&amp;gt;SAPLKKBL&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;STATUS as &amp;lt;b&amp;gt;STANDARD&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;click on Copy status , and now give your program name and status which you want to use it, after copy then save it and activate it, add your own buttons if you want any.(activate it) , and check the bold code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZTEST_ALV_CHECK     message-id zz           .


TYPE-POOLS: SLIS.
DATA: X_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
      IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
      L_LAYOUT type slis_layout_alv,
      x_events type slis_alv_event,
      it_events type SLIS_T_EVENT.

DATA: BEGIN OF ITAB OCCURS 0,
      VBELN LIKE VBAK-VBELN,
      POSNR LIKE VBAP-POSNR,
      CHK(1),
     END OF ITAB.

SELECT VBELN
       POSNR
       FROM VBAP
       UP TO 20 ROWS
       INTO TABLE ITAB.

X_FIELDCAT-FIELDNAME = 'CHK'.
X_FIELDCAT-TABNAME = 'ITAB'.
X_FIELDCAT-COL_POS = 1.
X_FIELDCAT-INPUT = 'X'.
X_FIELDCAT-EDIT = 'X'.
X_FIELDCAT-CHECKBOX = 'X'.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.

X_FIELDCAT-FIELDNAME = 'VBELN'.
X_FIELDCAT-SELTEXT_L = 'VBELN'.
X_FIELDCAT-TABNAME = 'ITAB'.
X_FIELDCAT-COL_POS = 2.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.

X_FIELDCAT-FIELDNAME = 'POSNR'.
X_FIELDCAT-SELTEXT_L = 'POSNR'.
X_FIELDCAT-TABNAME = 'ITAB'.
X_FIELDCAT-COL_POS = 3.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
L_LAYOUT-window_titlebar = 'Popup window'.

  x_events-NAME = SLIS_EV_END_OF_PAGE.
  x_events-FORM = 'END_OF_PAGE'.
  APPEND x_events  TO iT_EVENTS.
  CLEAR x_events .
  x_events-NAME = SLIS_EV_TOP_OF_PAGE.
  x_events-FORM = 'TOP_OF_PAGE'.
  APPEND x_events  TO iT_EVENTS.
  CLEAR x_events .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
  EXPORTING
    I_CALLBACK_PROGRAM       = SY-REPID
    IS_LAYOUT                = L_LAYOUT
    I_CALLBACK_PF_STATUS_SET = 'STATUS'
    I_CALLBACK_USER_COMMAND  = 'USER_COMMAND'
    IT_FIELDCAT              = IT_FIELDCAT
    it_events                = it_events
*    I_SCREEN_START_COLUMN    = 10
*    I_SCREEN_START_LINE      = 1
*    I_SCREEN_END_COLUMN      = 50
*    I_SCREEN_END_LINE        = 20
  TABLES
    T_OUTTAB                 = ITAB
  EXCEPTIONS
    PROGRAM_ERROR            = 1
    OTHERS                   = 2.
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.

FORM TOP_OF_PAGE.
* BREAK-POINT.
  WRITE: / 'TOP_OF_PAGE'.
ENDFORM.

FORM END_OF_PAGE.
* BREAK-POINT.
  WRITE: / 'END_OF_PAGE'.
ENDFORM.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  STATUS
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;P_EXTAB    text
*----------------------------------------------------------------------*
FORM STATUS USING P_EXTAB TYPE SLIS_T_EXTAB.
*- Pf status
"this 'STATUS' i copied using SE41
"here you can add your buttons.
  &amp;lt;b&amp;gt;SET PF-STATUS 'STATUS' EXCLUDING P_EXTAB.&amp;lt;/b&amp;gt;
ENDFORM.                 " STATUS
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  USER_COMMAND
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;R_UCOMM      text
*      --&amp;gt;RS_SELFIELD  text
*----------------------------------------------------------------------*
FORM USER_COMMAND USING R_UCOMM     LIKE SY-UCOMM
                               RS_SELFIELD TYPE SLIS_SELFIELD.
"Handling is here 
  case r_ucomm.
    when 'BACK' or 'CANC' or 'EXIT'.
      leave to screen 0.
    when 'BUTTONCODE'.
*      message i000 with 'clicked on SO#' rs_selfield-value.

  endcase.
ENDFORM.                    "USER_COMMAND&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 10:50:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247555#M144008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T10:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247556#M144009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jinna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell us where you are displaying the ALV output?&lt;/P&gt;&lt;P&gt;Is it in lists or screen?&lt;/P&gt;&lt;P&gt;What I meant was "Are u using any statements like CALL SCREEN 200 to display the output?" or "Are u using a detailed list for displaying it"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 10:50:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247556#M144009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T10:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247557#M144010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In report program you can create the buttons on application toolbar using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set pf-status 'STATUS_NAME'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now double click on the STATUS_NAME and create the status. All you have to do is, just add the function codes under Application Toolbar section. Then choose the function codes using sy-ucomm under at user-command event.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 10:58:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247557#M144010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T10:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247558#M144011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jinna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to display a button in the application toolbar , then just look at my solution given in this link..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="133020"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume that you are using REUSE_ALV_GRID_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 11:04:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247558#M144011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T11:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247559#M144012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jinna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without using the SET PF-STATUS statement, you can set a button in toolbar in selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just check this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: SSCRFIELDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Button on screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;selection-screen: begin of screen 200.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN FUNCTION KEY 1.&lt;/P&gt;&lt;P&gt;selection-screen: end of screen 200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;SSCRFIELDS-FUNCTXT_01 = 'Test'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;CASE SSCRFIELDS-UCOMM.&lt;/P&gt;&lt;P&gt;WHEN 'FC01'.&lt;/P&gt;&lt;P&gt;message i001(zmess).&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;call selection-screen 200.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 14:04:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/1247559#M144012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T14:04:27Z</dc:date>
    </item>
  </channel>
</rss>

