<?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: pushbutton how to do added ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pushbutton-how-to-do-added/m-p/8619150#M1663744</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First screen will be selection screen where you have to enter some value say 'AA' (press F4 key to get a list of input values for the textbox). Execute (press F8 key)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will navigate you to new screen displaying output (if any entry for AA exist in table SPFLI).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, in the first menu List, you have an option to print the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To add new buttons on the ALV toolbar will be complex. Since you are a beginner I think you should start with the basics and once you master (or have good understanding) on basics then go for the complex options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your reference, check the below link for adding custom buttons on ALV toolbar (the sample program uses object oriented ABAP i.e. classes, methods):&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;link to blocked site removed by moderator&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Mar 8, 2012&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Mar 2012 21:00:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-03-07T21:00:16Z</dc:date>
    <item>
      <title>pushbutton how to do added ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pushbutton-how-to-do-added/m-p/8619143#M1663737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello first. I do not have a good of English. would be a question. add button. When I add the following to trigger the calculation result of the exam, I would like to come to print page. How can such a thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: VIZE TYPE i,
            FINAL TYPE i.


"ortalama hesaplama
TABLES SSCRFIELDS.

Data: ORTALAMA TYPE i,
      DURUM(20) TYPE c.
ORTALAMA = ( VIZE * 40 ) / 100 + ( FINAL * 60 ) / 100.

if  ORTALAMA &amp;gt;= 50.
  write : SY-VLINE , 'VIZE:', SY-VLINE , VIZE, SY-VLINE ,'FINAL:', SY-VLINE , FINAL, SY-VLINE,  'ORTALAMA:', SY-VLINE , ORTALAMA, SY-VLINE , 'DURUM:', SY-VLINE, 'BAu015EARILI' color 5, SY-ULINE.

ELSEIF DURUM &amp;lt; 50.
  write : SY-VLINE , 'VIZE:', SY-VLINE , VIZE, SY-VLINE ,'FINAL:', SY-VLINE , FINAL, SY-VLINE,  'ORTALAMA:', SY-VLINE , ORTALAMA, SY-VLINE , 'DURUM:', SY-VLINE, 'BAu015EARISIZ' color 6, SY-ULINE.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 17:27:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pushbutton-how-to-do-added/m-p/8619143#M1663737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-07T17:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: pushbutton how to do added ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pushbutton-how-to-do-added/m-p/8619144#M1663738</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;could you please explain the meaning of print page?&lt;/P&gt;&lt;P&gt;you need to just display the result on screen when button is pressed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gaurav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 20:03:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pushbutton-how-to-do-added/m-p/8619144#M1663738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-07T20:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: pushbutton how to do added ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pushbutton-how-to-do-added/m-p/8619145#M1663739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to go to print page.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 20:24:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pushbutton-how-to-do-added/m-p/8619145#M1663739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-07T20:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: pushbutton how to do added ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pushbutton-how-to-do-added/m-p/8619146#M1663740</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 an ALV report and output your calculation in Grid/List format. Use FM "REUSE_ALV_GRID_DISPLAY" or "REUSE_ALV_LIST_DISPLAY".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output in ALV comes in a new screen that has built-in features (including print). When your output is displayed, select print from the menu 'List' (List--&amp;gt;Print). This was you can print your output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know if you need help in creating an ALV report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Saba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 20:31:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pushbutton-how-to-do-added/m-p/8619146#M1663740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-07T20:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: pushbutton how to do added ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pushbutton-how-to-do-added/m-p/8619147#M1663741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also if you want to add new buttons in ALV report then you can add it in the toolbar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 20:35:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pushbutton-how-to-do-added/m-p/8619147#M1663741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-07T20:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: pushbutton how to do added ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pushbutton-how-to-do-added/m-p/8619148#M1663742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've just begun to learn the program. I do not know about alv. Could you tell me simply trigger buttons to create and do. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 20:41:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pushbutton-how-to-do-added/m-p/8619148#M1663742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-07T20:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: pushbutton how to do added ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pushbutton-how-to-do-added/m-p/8619149#M1663743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simple ALV report:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZSIMPLE_ALV
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*

REPORT  zsimple_alv.

TABLES: spfli.

*   Type pools declarations
TYPE-POOLS: slis.

*   ALV data declarations

DATA: i_fieldcatalog TYPE slis_t_fieldcat_alv,
      wa_fieldcatalog TYPE slis_fieldcat_alv.


* SELECTION SCREEN
SELECT-OPTIONS: s_carrid FOR spfli-carrid.

* declare i_spfli
DATA: i_spfli TYPE STANDARD TABLE OF spfli.

DATA: wa_spfli TYPE spfli.


* selection
SELECT *
FROM spfli
INTO TABLE i_spfli
WHERE carrid IN s_carrid.

* return value sy-subrc = 0 if at least 1 record was found; otherwise it will have value 4
IF sy-subrc = 0.

** build a field catalog
  wa_fieldcatalog-fieldname = 'CARRID'.
  wa_fieldcatalog-seltext_m = 'Airline Code'.
  APPEND wa_fieldcatalog TO i_fieldcatalog.
  CLEAR wa_fieldcatalog.

  wa_fieldcatalog-fieldname = 'CONNID'.
  wa_fieldcatalog-seltext_m = 'Flight Connection Number'.
  APPEND wa_fieldcatalog TO i_fieldcatalog.
  CLEAR wa_fieldcatalog.

  wa_fieldcatalog-fieldname = 'FLDATE'.
  wa_fieldcatalog-seltext_m = 'Flight date'.
  APPEND wa_fieldcatalog TO i_fieldcatalog.
  CLEAR wa_fieldcatalog.

  wa_fieldcatalog-fieldname = 'PRICE'.
  wa_fieldcatalog-seltext_m = 'Airfare'.
  APPEND wa_fieldcatalog TO i_fieldcatalog.
  CLEAR wa_fieldcatalog.

* display values on screen

* Display ALV report
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
*      i_callback_program = sy-repid
      it_fieldcat        = i_fieldcatalog[]
*      i_save             = 'X'
    TABLES
      t_outtab           = i_spfli
    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.


ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 20:53:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pushbutton-how-to-do-added/m-p/8619149#M1663743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-07T20:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: pushbutton how to do added ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pushbutton-how-to-do-added/m-p/8619150#M1663744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First screen will be selection screen where you have to enter some value say 'AA' (press F4 key to get a list of input values for the textbox). Execute (press F8 key)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will navigate you to new screen displaying output (if any entry for AA exist in table SPFLI).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, in the first menu List, you have an option to print the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To add new buttons on the ALV toolbar will be complex. Since you are a beginner I think you should start with the basics and once you master (or have good understanding) on basics then go for the complex options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your reference, check the below link for adding custom buttons on ALV toolbar (the sample program uses object oriented ABAP i.e. classes, methods):&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;link to blocked site removed by moderator&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Mar 8, 2012&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 21:00:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pushbutton-how-to-do-added/m-p/8619150#M1663744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-07T21:00:16Z</dc:date>
    </item>
  </channel>
</rss>

