Difference beetwen set handler and set_registered_events in SAP Enjoy...

I'm reading now BC412 cours and I try to understand main difference beetween registering events for SAP enjoy controls using
a) set handler
b) set_registered_events
Do ABAP service this events in other ways (I mean is ABAP service events registered via set hander in different way than registered via set_registered_events)?
When I use ALV grid I use set handler to register events for which (after this event happened) should be performed any action. It is possible to define this events using internal events table?
I reward points for every helpful clues.
Cheers, Tomek
Bonus question: Why for registering events using events table, are using ID's instead events names (like double_click) ?
Message was edited by: Tomasz Suchanek
Message was edited by: Tomasz Suchanek

Hello Tomasz
The ALV grid control has already most events registered meaning that the corresponding event will be fired if the user executes the appropriate action (e.g. user click on a grid cell with a hotspot -> event HOTSPOT_CLICK is fired).
In order to react on this event your application must have set an event handler for the event (e.g. you have defined a method HANDLE_HOTSPOT_CLICK and registered this event handler at your ALV grid instance:
SET HANDLER lcl_event_handler=>handle_hotspot_click FOR mo_grid.  " mo_grid is you ALV grid instance
Other controls (like tree controls) have very few (if at all) events registered. The control will not fire unregistered events, and thus, you are not able to handle these events (even if you have defined an event handler method (and used SET HANDLER... for it)).
In conclusion, registering event is a two-step-process:
(1) register events (that should be fired) at the control
(2) register event handler at the control in order to react on fired events
As said before, step (1) is already done for ALV grid controls.
How to register events at the control depends on the available method. For example, CL_COLUMN_TREE_MODEL provides method SET_REGISTERED_EVENTS having an itab (type CNTL_SIMPLE_EVENTS) for importing the events. The event IDs are defined as constants in the class (or a superclass) like EVENTID_NODE_DOUBLE_CLICK.
Regards
   Uwe

Similar Messages

  • BC SETS creation and usage for sap mm  point of view

    Hi All,
    Need Information About  BC SETS  creation and usage from sap mm point of view.
    Thanks in advance for sap mm forum guys.
    Regards.
    Parameshwar.

    Hi,
    Customizing settings can be collected by processes into Business Configuration Sets (BC Sets). BC Sets make Customizing more transparent by documenting and analyzing the Customizing settings. They can also be used for a group rollout, where the customizing settings are bundled by the group headquarters and passed on in a structured way to its subsidiaries.
    BC Sets are provided by SAP for selected industry sectors, and customers can also create their own.
    When a BC Set is created, values and combinations of values are copied from the original Customizing tables into the BC Set and can be copied into in the tables, views and view clusters in the customer system. The BC Sets are always transported into the customer system in which Customizing is performed.
    Advantages of using BC Sets:
    1.     Efficient group rollout.
    2.     Industry sector systems are easier to create and maintain.
    3.     Customizing can be performed at a business level.
    4.     Change Management is quicker and safer.
    5.     Upgrade is simpler.
    To create BC sets follow the below step:
    Choose Tools ® Customizing ® Business Configuration Sets® Maintenance in the SAP
    menu, or enter the transaction code SCPR3 in the command field.
    Choose Bus.Conf.Set ® Create.

  • What is the difference between sy-uline and uline in sapscripts ?

    hi guys,
    what is the difference bt sy-uline and uline in sap scripts ?
    this is an interview question ?
    also how can we draw a line without using above ?

    Hi ,
    sy-uline is a system field.
    No-difference.  Except that uline is used outside
    the Write Statement
    TO draw a line.
    /: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]
    OR
    Draw a horizontal line by setting the HEIGHT in a BOX command to 0. Draw a vertical line by setting WIDTH to 0.
    /: BOX FRAME 10 TW WIDTH 0 TW HEIGHT '10' CM
    Vertical line 10 CM long
    /: BOX FRAME 10 TW WIDTH '10' CM HEIGHT 0 TW
    Horizontal line 10 CM long
    ALSO
    You can draw a line by setting the Height or Weidth to 0
    and add a frame. E.g. a horizontal line:
    /: SIZE HEIGHT '0' MM WIDTH '200' MM
    /: BOX FRAME 10 TW XPOS '11.21' MM YPOS '14.81' MM INTENSITY 100
    <i><b>Reward if helpful.</b></i>
    Regards,
    Pritha.
    Message was edited by:
            Pritha Agrawal

  • What is difference between User Exits and BAPI

    hello sap gurus
    what is difference between User Exits and BAPIs

    http://www.sap-img.com/abap/what-is-user-exits.htm
    www.****************
    Where as this customer exits are again divided into:
    1. Menu Exits.
    2. Field Exits.
    3. Screen Exits.
    4. Function module exits.
    These all the things comes under Enhancements.
    User exits
    1.A user exit is a three character code that instructs the system to access a program during system processing.SXX: S is for standard exits that are delivered by SAP.
    XX represents the 2-digit exit number.UXX: U is for user exits that are defined by the user. XX represents the 2-digit exit number
    2.USER EXITS are FORMS and are called by SAP standard programs
    using PERFORM.
    3.Inside the form (user exit) you can read and change almost
    any global data from host program.
    4. User exits are more flexible because you have more information to use in your code but on the other hand , it is very easy to manipulate erroneously global data and lead the standard program to a dump or even to make database inconsistent.
    5.While changing User-exit,Access Key is required,
    BAPI is nothing function module but which is remote enabled, means you can access this fm through other SAP or non-SAP system by assingning to business object,which we can crea in SWO1 transaction.
    more details see WWW.****************
    reward if helpful

  • SET PARAMETER AND GET PARAMETER

    What is the difference between Set parameter and Get parameter?

    Hi,
    Set parameter is used to put some value into ABAP memory area, get paramter is used to retrive values form ABAP memory.
    refer the below sample code.
    here i am taking one material number and i am passing that mateial number by using 'set parameter id', the material number will be stored in ABAP-memory area 'MAT', and then i am calling the Tcode 'MM03', after executing the Tcode  (from program) automatically 'MM03' will reads that material number from that ABAP-memory area and it will displays the 'MM03' tcode along with material number.
    you can find the parameter-id's from data element of that field.
    parameters: p_matnr like mara-matnr.
    set parameter id 'MAT' field p_matnr.
    call transaction 'MM03'.
    Reward if useful.
    Thanks,
    Sreeram.

  • How to set datapackage and  Idoc

    Hi
    could any body  tell me , How to set datapackage and Idoc in sap bw

    Hi Hari,
    There are 2 additional places to make these settings global:
    1) Transaction SBIW on BW for SAP Source systems:
    Data Transfer to the SAP Business Information Warehouse ->
    General Settings -->
    Maintain Control Parameters for Data Transfer
    2) Transaction SPRO on BW for non-SAP Source Systems:
    SAP Customizing Implementation Guide -->
    SAP NetWeaver -->
    SAP Business Information Warehouse -->
    Links to other systems -->
    Maintain Control Parameters for the data transfer
    Please note the paths are from a BW 3.5 system.
    Kind regards,
    Dorothy

  • What is the difference between a scam and spam?

    I come across these complaints from skype community members on spamming and scamming. Any distinction?

    A spam is an electronic message that is randomly sent to a large number of people who never solicited that message and a scam is a trick which is cleverly made successful by gaining the confidence of the victim.There is big difference between a scam and a spam but people often take it as one thing. In some cases, as such in Facebook, a same thing is acting both as a scam and a spam.Recently a spam started crawling the profile walls of the Facebook users. This acted as a spam because it was sent to a large number of people who never wanted that message and at the same time it also acted as a spam because it successfully convinced people to click on it and do what it says. This confuses people to judge either it is a spam or a scam. It can be both, a single message can fall into both categories. Gmail, WordPress, Hotmail, etc have a good automatic system of identifying spam emails thus making our lives safe and secure. If they didn’t have made progress in spam detection then our blog comments and our emails would have been full of useless messages.That was a brief description explaining the main difference between a spam and a scam. Enjoy yourself and beware of the scams and spams. Internet is full of them. Sourced from: ChasingEyesComputer Tips, Internet, Blogging and Lots More

  • DIFFERENCE BETWEEN SAP ERP 47 EXTENSION SET 110 AND 200.

    HELOO TO ALL SAP MASTERS
    IS THERE ANY SIGNIFICANCE DIFFERENCE BETWEEN SAP ERP 47 EXTENSION SET 110 AND 200.
    IF YES WHAT ARE THE DIFFERENCES.
    THANKS IN ADVACE
    RAFIQ

    Hi
    Basic difference between the two:
    47x110 first enterprise release.
    From a technical point of view, the first SAP R/3 Enterprise release 47x110,
    consists of following parts, each containing different software components:
        o  The SAP R/3 Enterprise Extension Set 1.10 consists of the
           following software components: EA-HR 110, EA-APPL 110, EA-IPPE
           110, EA-RETAIL 110, EA-GLTRADE 110, EA-PS 110 und EA-FINSERV 110.
    From a technical point of view, SAP R/3 Enterprise 47x200 consists of
    following sections, which in turn contain various software components:
        o  SAP R/3 Enterprise Extension Set 2.00 consists of the following
           software components EA-HR 200, EA-APPL 200, EA-IPPE 200,
           EA-RETAIL 200, EA-GLTRADE 200, EA-PS 200, EA-FINSERV 200, EA-DFPS
           200 and ABA_PLUS 100.
    Hope this helps.

  • Is there a difference between Statement Cache and the statement handle!

    Hello!
    The OCI statement cache is !session! wide. When I have a sql statement that was used before, I can use this feature.
    But what is the difference between this feature and my statement handle for a certain sql statement that I can store and reuse a second time?
    My stored statement handle is already prepared and the placeholders are bound. The second time I only have to copy new values in the memory positions and do an execute and that's all.
    Thank you in advance
    Wolfgang

    The underlying optimization is the same. When you re-execute a statement, you are reusing the metadata already available in the statement and the cursor already open on the server. If you know exactly the set of statements that you are going to execute repeatedly, you can maintain the cache on your own. (Yes, you save on doing the Bind/Define calls multiple times).
    OCI Statement cache makes it transparent and the application does not need to keep the references/indexes to the relevant statements. Also once a cache size is set, least recently used statements get out of the cache when the cache is full and needs to accommodate more.
    To optimize the bind/defines on the statements from the statement cache, you can use this feature:
    http://www.filibeto.org/sun/lib/nonsun/oracle/11.2.0.1.0/E11882_01/appdev.112/e10646/oci09adv.htm#sthref1358

  • What's the difference between old SAP appraisal system and the new SAP appraisal system?

    Hi Experts,
    What's the difference between old SAP appraisal system and the new SAP appraisal system?
    Can anyone shed some light please.
    Thanks.

    emgr_update no longer sets or gets the thesaurus from workbench. In 11 all workbench configurations are saved in IFCR configuration directly.
    Hence the thesaurus entry should be added directly in version 11 Workbench as opposed to xml file in older versions.
    And if you want to migrate the changes across environments then import_site script in control directory can be used.

  • Setting up SSO between EP and back-end SAP systems

    Can anybody give me some insight about setting up SSO between EP and back-end SAP systems. If possible some links to write up would be great.
    Thanu

    Hi,
    This link gives you a detailed information on setting up SSO : http://help.sap.com/saphelp_nw04/helpdata/en/89/6eb8deaf2f11d5993700508b6b8b11/frameset.htm
    Some How-guides:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e676ec90-0201-0010-cfa3-90b7c1291903
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/77378b3d-0b01-0010-ffa5-c6941e286c43
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/80fbc690-0201-0010-1aba-93d5c8232b4a
    Regards,
    Sunil

  • Feature set difference between FI-AR and FI-CA

    Hi,
    While I am trying to do a comparison analysis between FI-AR/AP and FI-CA for Insurance Industry, I can deduce various facts like FI-CA been developed for transaction extensive industries like telecom/insurance which might often need automated processing (FI-AR appears to have more of manual processes for handling aspects of incoming payments) along with required performance. FI-AR/AP are more of standard Accounts receivable/payable module not necessarily catering to exact needs of industries mentioned above. Another major difference is the more flexible master data model FI-CA has to offer compared to FI-AR/AP.
    However, I am not able to deduce clearly if there are corresponding features available in FI-AR/AP for specific features available in FI-CA for handling incoming & outgoing payments. e.g.:
    1) Is bank reconciliation supported in FI-AR/AP? Do we have mechanisms to upload electronic bank statement for the same?
    2) Does FI-AR provides varying features like different lot processing in FI-CA for bulk processing, Cash desk (i know this is not supported in FI-AR). The process of clearing appears to be very manual intensive.
    3) Similarly what is the support for payments (especially automated for bulk processing) in FI-AP? 
    4) Assume other insurance industry specific features like brokers collection, collection agency collections, co-insurance specific features etc. are not supported in FI-AR/AP and no corresponding features would exist for obvious reasons.  
    Please suggest any other major differences between FI-CA and FI-AR/AP from an Insurance/Reinsurance industry perspective you may know of.
    Thanks in advance for your time.
    Regards,
    Ankit

    Ravindra,
    1) Check the configuration.
    Data from SD is posted to accounts (FI/PCA) via condition type -> accout key -> access sequence -> account.
    Data from SD is posted to SIS via the mapping of condition type to key figures.
    2) Check if values are posted to sales accounts directly from FI. These will not reflect in SIS.
    Mohit

  • What is the difference between local printing and remote printing in SAP

    Hello Nation,
    I would like to know what is the difference between local printing and remote printing in SAP and in what scenarios they are used ?
    1.What is local printing in SAP ?
    2.What is Remote Printing in SAP?
    3.what is the difference between local printing and remote printing in SAP ?
    Thank you in Advance.
    Regards,
    -Mohamed Naveen.

    Hi,
    This is SAP Business one system administration forum. Please find correct forum and repost your discussion to get quick response.
    Please close this thread here with helpful answer.
    Thanks & Regards,
    Nagarajan

  • SAP PI 7.3 Single stack- Set tracing and logging

    Hi experts
    We  have configured a SOAP to SOAP sync scenario in SAP PI 7.3  single stack(Java Only).
    I have sent some test messages from WSNavigator to PI .
    But when i checked  messages in adapter engine, it is showing*"Unable to retrieve payload or you don't have sufficient authorization to view the content" I am able to monitor payloads of Async messages.
    How can we set Logging and trace levels in Single stack PI? I couldn't find any options in RWB os NWA.
    Thanks,
    Dhanish

    Hello Dhanish,
    As it was stated by Kenneth in his post, if you would like to see payload of a synchronous message in Message Display Tool (e.g. from Runtime WorkBench), you should set value of property messaging.SyncMessageRemover.removeBody of J2EE service XPI Service: Messaging System to 'false'. Please note that this affects only synchronous messages in final states (DLVD and FAIL).
    Regarding the second part of your question - logging. In PI 7.3, you can persist the message in Adapter Framework in two ways - stage it or log it. Staging allows you to edit/restart the message later from the stage where the message was persisted and is relevant for asynchronous messages; logging allows you to only display the logged message and is relevant for both synchronous and asynchronous messages. Please also note that staging affects performance of message processing more greatly than logging, extensive staging (e.g. staging on several processing stages) can even be a reason of performance degradation for processed messages, so if you only need to display details of the message on different processing steps in Adapter Framework, logging should be sufficient. Both staging and logging can be configured using properties xiadapter.stage.conf (for staging) and xiadapter.logger.conf (for logging) of J2EE service XPI Adapter: XI.
    Regards,
    Vadim

  • Differences between SEM BCS and SAP BPC

    Hello All,
    Can you please let me know the differences between SEM BCS and SAP BPC. What I know is SEM BCS is an SAP product for Financial Consolidation (Legal and Management). SAP BPC is the new product taken over from Outlooksoft. It also features the consolidationa and planning functionalities. Can you please suggest which is a better product.
    Regards
    Vikram

    There is nothing like better or worse product.
    BCS has some strong features like consolidation monitor, investment consolidation and for most consolidation functions, configuration is very easy. In BPC, you may have to write scripts.
    BCS has BW as the backbone  where for BPC 5.1 there is none. Howveer, in  BPC 7.0, the BPC will rest on BI and things will be much better.
    Ravi Thothadri

Maybe you are looking for

  • Unable Logging in to Oracle Application Express Administration Services

    I am new for DB. Installed Oracle XE, followed the instruction "Logging in to Oracle Application Express Administration Services", I can not find the login page: http://127.0.0.1:7777/pls/apex/apex_admin I work on the PC in which XE installed. Where

  • Unable to load one script (Iphone revision issue)

    Hi, I'm unable to load one of my scripts through any browser or the desktop app, although I still can through the Iphone app. I believe it stopped working correctly after I made a comment on my Iphone. I was logged in on my comp and tried to make a c

  • How do i edit the service book on my pearl 8120

    I bought a sim free pearl 8120 from the carphone warehouse in the summer and put a virgin mobile sim card in it everything works fine but the picture messaging i have contacted virgin and they have sent me what i need to put into the service book but

  • R12.1.3 uPGRADE  problem - Help me!!

    i have applied all the 5 patches to my current 12.1.1 environment. 9239089 9239090 9817770 9966055 9239095 I am currently stuck trying to update both database and application layer with the ebs code level 12.1.3 I ran admkappsutil and move appsutil.z

  • ZFS Root Pool Restore of a EFI labelled Disk

    Hi Team Please let me know the procedure for backup and restore of a EFI labelled root pool using zfs send/receive. Note - original operating system is installed on a t5 server with latest firmware,here the default disk label will be EFl instead of S