*what are the step by step events trigger in interactive report*

Hi gurus,
pls explain event by event triggers in interactive report.
points will be rewarded.
Thanks,
Balakrishna.

Hi,
Interactive reporting allows the user to participate in retrieving and presenting data at each level during the session.  Instead of presenting one extensive and detailed list with cluttered information, with interactive reporting you can create a condensed basic list from which the user can call detailed information by positioning the cursor and entering commands.
Detailed information is presented in secondary lists. A secondary list may either overlay the basic list completely or appear in an additional dialog window on the same screen.  The secondary list can itself be interactive again. The basic list is not deleted when secondary list is created.
User can interact with the system by:
u2022     Double clicking or pressing F2
u2022     Selecting menu option
Like classical report, the interactive report is also event driven. Both the action mentioned above trigger events and code is written to handle these events.  The events triggered by this action are as follows:
u2022     At line-selection
u2022     At user-command
u2022     Top-of-Page During Line-Selection for Secondary Page Header info
Interactive report consists of one BASIC list and 20 secondary list. Basic list is produced by START-OF-SELECTION event. When the user double clicks on the basic list or chooses the menu option, the secondary list is produced. All the events associated with classical report except end-of-page are applicable only to basic list.
AT LINE-SELECTION event
Double clicking is the way most users navigate through programs. Double clicking on basic list or any secondary list triggers the event AT LINE-SELECTION. SY-LSIND denotes the index of the list currently created. For BASIC list it is always 0.  Following piece of code shows how to handle the event.
Start-of-selection.
Write: / u2018this is basic listu2019.
At line-selection.
Write : u2018this is first secondary listu2019.
In this case the output will be displayed on basic list i.e.
This is basic list.
When user double clicks on this line, the event at line-selection gets triggered and secondary list is produced, i.e. This is first secondary list.
You can go back to basic list by clicking on F3 or back icon on the standard tool bar.  For this list, the value of sy-lsind will be 1.
HIDE technique
In this case thins are much simpler. Consider the case, wherein you display fields from table sflight in basic list. When user double clicks on any sflight-carrid, you are displaying the detailed information related to that particular carrid on secondary list.  Hence there is a need to store the clicked carrid in some variable.  So that you can access this carrid for next list. ABAP/4 has facility; a statement called HIDE, which provides the above functionality.
HIDE command temporarily stores the content of clicked field in system area.
Syntax:
HIDE <FIELDS>.
This statement stores the contents of variable <f> in relation to the current output line (system field SY-LINNO) internally in the so-called HIDE area. The variable <f> must not necessarily appear on the current line.
You have to place the HIDE statement always directly after the output statement i.e., WRITE for the variable <f>.  As when you hide the variable, control is passed to next record.  While writing, WRITE statement takes that record from header and writes it on to the list, but when writing onto your interactive list you will miss out 1st record.
To hide several variables, use chain HIDE statement.
As soon as the user selects a line for which you stored HIDE fields, the system fills the variables in the program with the values stored.  A line can be selected.
u2022     By an interactive event.
For each interactive event, the HIDE fields of the line on which the cursor is positioned during the event are filled with the stored values.
The HIDE area is a table, in which the system stores the names and values of all HIDE fields for each list and line number.  As soon as they are needed, the system reads the values from the table.  (Please try to find the name of this table.)
Sy-lsind indicates the index of the list and can be used to handle all the secondary lists.  When the user double clicks on the line or presses F2, sy-lsind is increased by one and this new sy-lsind can be handled.  For example:
Write: / u2018this is basic listu2019.
u2022     Will create a basic list.
If sy-lsind = 1.
Write: / u2018this is first secondary listu2019.
Elseif sy-lsind = 2.
Write: / u2018This is second secondary listu2019.
Endif.
When this code is executed,
u2022     Basic list is produced.
u2022     When the user clicks on the basic list, sy-lsind becomes one.
u2022     AT LINE-SELECTION event is triggered.
u2022     Whatever is written under IF Sy-lsind = 1, gets executed.
u2022     Secondary list is produced.
u2022     Again if user clicks on this list, sy-lsind becomes two.
u2022     AT LINE-SELECTION gets triggered.
u2022     Code written under IF Sy-lsind = 2, gets executed.
A sample program for AT LINE-SELECTION.
AT USER-COMMAND
When the user selects the menu item or presses any function key, the event that is triggered is AT USER-COMMAND, and can be handled in the program by writing code for the same. The system variable SY-UCOMM stores the function code for the clicked menu item or for the function key and the same can be checked in the program.  Sample code would look like
AT USER-COMMAND.
Case sy-ucomm.
When u2018DISPu2019.
        Select * from sflight.
        Write sflight-carrid, sflight-connid.
        Endselect.
When u2018EXITu2019.
     LEAVE.
If GUI status, suppose you have set menu bar for two items and the function code is u2018DISPu2019 and u2018EXITu2019 respectively. If the user clicks the menu item u2018DISPLAYu2019, then function code u2018DISPu2019 is stored in the sy-ucomm and whatever is written under the when u2018DISPu2019, gets executed. This is applicable for EXIT as well.
Sy-lsind for the screen increases when the user clicks the menu item.
Usually you have combination of all the three navigations in your user interface, i.e., you have to create menu bar, assign function code for the function keys and write code to handle all this in addition to handling double clicking.
Things to remember while using all the combinations:
u2022     Sy-lsind increases even if you select menu-item.
u2022     When the user double clicks on particular line, value of sy-ucomm is u2018PICK.
u2022     If you set sy-lsind = 2 for your 4th secondary list, when control is transferred to the 2nd secondary list, all the other lists after 2nd are lost or memory allocated to them is lost.
u2022     Sy-lisel also gives you the value of clicked line but in this case you cannot differentiate between field. To retrieve the exact field, you have to know the field length of each field.
u2022     If you use statement SY-LSIND = 1.
The system reacts to a manipulation of SY-LSIND only at the end of an event, directly before displaying the secondary list. So, if within the processing block, you use statements whose INDEX options access the list with the index SY-LSIND, make sure that you manipulate the SY-LSIND field only after processing these statements. The best way is to have it always at the `as the last statementu2019 of the processing block.
Regards,
Bhaskar

Similar Messages

  • What are the steps in creating a customised report?

    Dear Experts,
    can you help me with your expereince what are the steps involved in creating a customised report?
    Who generates the requirement?
    Who prepares the functional spec and what information it contains?
    Who approves the functional spec once it is prepared?
    You can take the followig case as an example:
    The customer requirement is that a report can be run for everything that is received in a given area and compare the price at which the material was received to the standard or moving average price in SAP.
    Here, what information you will give to ABAP ers to devlop the report?
    I would appreciate if anyone can help me with the entire process.
    Full points to be awarded for a satisfactory reply.
    Regards,
    Ranjan

    hi
    >Who generates the requirement?
    client or end user
    >Who prepares the functional spec and what information it contains
    there should be a specific format and it is to be filled by the functional consultant
    http://www.sap-img.com/general/what-are-functional-specification-in-sap.htm
    http://erp.ittoolbox.com/groups/project-management/erp-projectmanagement/samples-for-sap-functional-specification-1194336
    >Who approves the functional spec once it is prepared?
    abaper or the TL
    http://sap.niraj.tripod.com/id67.html
    get the proper info from ur customer as what means all information
    get the proper fields he required
    regards
    KI

  • What are the steps  involved in writing a program?

    hi experts ,
       I am writing reports? i want to know that what are the steps required to write a program?
    and also Explain different techniques to analysize a program?
    please send example programs with analysis?
    I definately award a good number of points to help full answers.

    hi sateesh,
        welcome to SDN.
    first of all check ur requirement.
    Analysis what r the events that are required in ur report.
    write a pseudo code for ur requirement
    and then write ur program.
    To analyse a program v have to use the these t/c :
    SE30 - Runtime Analysis.
    ST05 - SQL Trace.
    Regards...
    Arun.
    Reward points if useful.

  • Currently running OSX 10.6.8 and Safari 5.1.10. What are the steps to update my IMAC?

    I'm currently running OSX 10.6.8 and Safari 5.1.10. What are the steps to get my IMAC totally up-to-date?

    Back up your data, check your applications for compatibility, and download Yosemite from the Mac App Store.
    (116042)

  • How do I unlock an iphone 5 with Sprint. The SIM is in and Sprint gave me the unlock code, but what are the steps to unlock it?

    How do I unlock an iphone 5 with Sprint 15.1 at IOS 7.0.6 IMEI 99 000320 012095 0 .
    The SIM is in and Sprint gave me the unlock code, but what are the steps to unlock it?

    There is no such thing as an unlock code.   Sprint may have processed the unlock, and then requested you restore the iPhone using iTunes to complete it. But that's it. There is no code to enter, and nowhere to enter it any way.
    iPhone: About unlocking

  • How do i get my apple ID from my old iphone 5 to my new iphone 6 ? what are the steps? because last time i tried getting my apple ID from my old to new phone it all went wrong and i could not sign in or use imessage? thanks

    How do i get my apple ID to work from my old iphone 5 to my new iphone 6? what are the steps? as last time i tried this everything went wrong my imessage would not work and it would not let me sign in?

    Try TransPhone, it's working fine, but a bit expensive...
    After installing this, you'll Be able to send/recieve music, contacts, text messages, photos and Videos over bluetooth. Works fine with all mobile phones and computers...
    I may receive some form of compensation, financial or otherwise, from my recommendation or link
    <Edited by Host>

  • What are the steps would liket take using AR,AP,GL Datasource in R/3

    Hi,
    When i would like to use SAP content data source Like ,AR,AP,GL
    data source what are all the master data need to activate for this.
    Ex: for AR we need to activate the Customer master data
    what abt AP,GL what are the master data need to be activated while using SAP content data source in R/3.

    <i>What are the steps i need to do in source system?.First of all identify the data source and what are the master data need to be used for the data source like AP,AR,GL in R/3.</i>
    Find out what Cubes, ODS's will be used  - > HELP.SAP using the datasource.
    Activate transaction datasources.
    See Infosource Overview and activate relevant master datasources in RSA5 - ECC.
    Install content on BI side.
    It doesnot matter what datasources you activate first, it is just a preferred way to load transaction data only after master data.
    <i>What are all the masterdata need to activate before going to activate AR,AP,GL data source in R/3.</i>
    Infosource Overview

  • What are the steps need to be taken care  for MM data sources  while extrac

    what are the steps need to be taken care  for MM data sources  while extracting  from R/3 tables
    and please provide the Steps involved in R/3 side
    thnaks
    Racha

    Hi,
    For Inventory Management, you can have a look at the following link.
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328]

  • What are the steps for loading master data

    Hello
    what are the steps for loading master data? i want to learn about loading all master data and the steps to choose the best way to load the data.
    if anyone has documents please send me the documents i will be really greatful
    [email protected] thanks everyone
    Evion

    Hi Heng,
    Download the data into a CSV file.
    Write a program using GUI_UPLOAD to upload the CSV file and insert records.Chk the below link for example
    http://www.sap-img.com/abap/vendor-master-upload-program.htm
    Reward Points for the useful solutions.
    Regards,
    Harini.S

  • What are the steps to make it seamless for a customer to use the install program and then use the installed program?

    I wrote an install program (.exe) that is downloaded from a website.  When run, it 1) leads a customer to browse to a directory, and 2) copies files (.exe, .dll, etc.) from a website to that directory.  When I run, the installed program works.
    What are the steps to make it seamless for a customer to use the install program and then use the installed program? 
    bhs67

    This site https://msdn.microsoft.com/en-us/library/vstudio/2kt85ked%28v=vs.110%29.aspx provides a basic description of the Visual Studio Windows Installer. 
    Near the bottom of the page is "You can unlock all the features of InstallShield by paying to upgrade to the full version of InstallShield."  Where do I find info that describes the differences between the "free" and the "full"
    versions?
    bhs67
    Hello,
    The default feature does support the task for your requirement, so there is no need to pay for the other features unless you want to use some feature which is not free.
    In addition, as this thread
    InstallShield LE not available with VS 2012 RTM? shared, even through there is a link to InstallShield LE in the New Project dialog under Deployment solutions, but it belongs to third-party that I would recommend you consider posting this issue
    at the following forum to get supports about InstallShield.
    http://community.flexerasoftware.com/forumdisplay.php?133-InstallShield
    Regards.
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • What are the steps  needs to be perform to define a data model

    What are the steps  needs to be perform to define a data model
    a.     Information Gathering 
    b.     Hardware & Software
    c.     Structure the Information – MDM
    d.     Transfer into a Physical Model – BW data model
    e.     Explore use of existing model – Business Content

    Hi Siva,
         Very first activity is Proof of concept (POC), here we have to show How BW works for clients Reporting requirement during POC we as BW consultants need to creat some sample BW back end objects and also some reports based on business requirement. This is very crucial stage as Client Judge wethere BW would meet his demands. If every thing is fine then next step is Bidding.
    After Bidding the contract then actual Project intiates. from here we follow ASAP methodology.
    <u><b>
    Project Preparation</b></u>
    Here Senior Consultant would go to Client place for Business Process Transistion and to know in what way the Architectue should be set up so here Basis People will come into picture.
    <u><b>Blue Print</b></u>
    Transistion could be understood by BRD (Business Requirement Documents) BRD states what is exact requirement and it is given by End users.
               By seeeing thr BRD's we as BW consultants must prepare APPlication Design Documents . The Application Design Documents states all the Technical aspects that needs to be performed as BW backend and also as well as Frontend.
    <u><b>Realization Phase</b></u>
      Here as BW consultants we must start confuguring as mentioned in ADD's by taking care of all performance aspects, once all the configuration are done we do Unit testing. unit testing is an activity where we check all the design process wether it running correct or not. After unit testing we move the design objects to Qulaity for Integration Testing.
    <u><b>Testing</b></u>
        Here end user will check all the objects, reports on end to end basis. after integration testing is done then UAT ( User acceptance Testing) would come into picture where user check each process and sign off.
    <u><b>Go live</b></u>
    Here all the object will be moved to Production where end users and power users can start working on the system. intially for some days Development team would be taking care of all support activites there after  it will be transitoned to support team.
    Hope It helps you.
    Assign Points if it usefull
    Regards
    Sujan

  • What are the steps needed to make the field in the DFF Additional Information for Agent only take numbers, commas & hyphens?

    Hello All,
    What are the steps needed to make the field in the DFF Additional Information for Agent only take numbers, commas & hyphens?
    Navigation
    Bob Sales manager<Ebiz form<service request tab<SR type<DFF<additional information for agents <cheque number
    The field Cheque number Character allowed (, -) in the DFF Additional Information for Agent should only take numbers
    Thanks & Regards
    Ayesha

    Thanks Sridar
    If we use Number we cannot separate the cheque numbers with , or -
    We need to enter numbers along with comma and '_' in cheque number field.
    Thanks & Regards
    Ayesha

  • What are the steps to change the name on the "House" in the side bar on OSX Mavericks?

    What are the steps required to change the name on the "House" in the side bar for OSX Mavericks?

    You want to change your username. First, make a backup of your files with Time Machine, as any error may damage your user.
    Then, follow these steps to change your username > http://support.apple.com/kb/ht1428 Be very careful, as it requires to log in as root

  • Hi i have  an iphone 4 which is from canada nd i have seen one sim inside it which is a canadian sim ,iam staying in india so can i use that phone in india and please tell me what are the steps ihave to take for using that canadian phone in india

    hi i have  an iphone 4 which is from canada nd i have seen one sim inside it which is a canadian sim ,iam staying in india so can i use that phone in india and please tell me what are the steps ihave to take for using that canadian phone in india

    Only the carrier to whom the device is locked can authorize it's unlocking.  Contact the carrier to see if they offer unlocking and if you qualify.

  • HT201209 I have a credit in itunes account, but when I click on "redeem" it asks me for a gift cared or download code.  what are the steps to access the credit I have so I can purchase more music?

    I have a credit in my itunes account, but when I click on "redeem" it asks me to enter a gift card or download code.  what are the steps to go in and be able to redeem the credit I have?  If I go to an album that I want to use my credit on, the only choice I am seeing is to use the credit card on file.  Help!

    It says   at the top      under Redeem after I touched that:
              $14.73
    Account: [email protected]   (my account name)
    Enter your Gift Card or Download Coad

Maybe you are looking for