User Tools

Site Tools


abap:reports

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

abap:reports [2015/03/17 18:02] (current)
ginko created
Line 1: Line 1:
 +====== ABAP Reports ======
 +===== Function keys =====
 +[[http://abap-gallery.blogspot.fr/2007/07/add-toolbar-on-selection-screen.html|Source]]
 +<code abap>REPORT ZAALGAL0005 .
  
 +TABLES: sscrfields.
 +
 +DATA: d_butt1(4).
 +
 +PARAMETERS: p_grpa1(10) MODIF ID A,
 +p_grpa2(10) MODIF ID A,
 +p_grpb1(10) MODIF ID B.
 +
 +SELECTION-SCREEN FUNCTION KEY 1.
 +SELECTION-SCREEN FUNCTION KEY 2.
 +
 +INITIALIZATION.
 +MOVE 'This is button 1' TO sscrfields-functxt_01.
 +MOVE 'Toggle 1' TO sscrfields-functxt_02.
 +d_butt1 = 'NO'.
 +
 +AT SELECTION-SCREEN.
 +IF sy-ucomm = 'FC01'.
 +d_butt1 = 'YES'.
 +sscrfields-ucomm = 'ONLI'.
 +ELSEIF sy-ucomm = 'FC02'.
 +IF sscrfields-functxt_02 = 'Toggle 1'.
 +sscrfields-functxt_02 = 'Toggle 2'.
 +ELSE.
 +sscrfields-functxt_02 = 'Toggle 1'.
 +ENDIF.
 +ENDIF.
 +
 +START-OF-SELECTION.
 +WRITE d_butt1.</code>
abap/reports.txt ยท Last modified: 2015/03/17 18:02 by ginko