Tuesday, 24 June 2014

Interactivereports and it`s events

Interactivereports and it`s events

+ -
  • Displaying the basic information on the basic list and the detailed information in the secondary list is called as interactive reports.
  • In SAP, there are 21 lists, out of which first list is called basic list with list number 0 and remaining lists are called as secondary lists with list numbers 1,2,3,4...to...20.
  • The Syatem Variable SY-LSIND will give the list index no.
Example: Display material basic details in first screen(basic list), when ever user clicks on any material number it displays materials plant details in second screen.
Interactive Reports Events

At Line-Selection

This event will trigger when ever user double click on any list line.
Syntax: AT LINE-SELECTION . "Triggers line selection 

At User Command

This event will trigger when ever user clicks on any custom buttons of GUI.
Syntax: AT USER-COMMAND . "Triggers user command 

At PF Status

This event will trigger when ever user clicks on any function buttons.
Syntax: AT PF <function key> . "Triggers user command 

Top Of Page During line selection

This is used to print heading for secondary lists in interactive reports .
Syntax: TOP-OF-PAGE DURING LINE-SELECTION . "Prints secondary list header 
Techniques used in interactive reporting

Hide area

It is a key word which is used to store the data into a temporary memory call as HIDE area.
Functionality of HIDE is
  • When ever the user uses the HIDE statement, the data will be stored in HIDE area along with line numbers.
  • When ever user double clicks on any list line the system takes the line number and checks the HIDE area for the corresponding data in that particular line, then the data will be return to the HIDE variables.
Syntax: HIDE <WA>. "store total work area in hide area
         OR
        HIDE <WA-FIELD>. "store work area field in hide area
GET CURSOR
This key word is used to read the field name and field value where the mouse cursor is placed or double click action is raised. It dosen`t use hide area.
Syntax : GET CURSOR FIELD <V_FIELDNAME>,
                    FIELDVALUE <V_FIELDVALUE>.

No comments:

Post a Comment