Can we use control events in smartforms

Hi all,
I am srinivas. can we use control events in smartforms, I mean at new, at end of ..... if these are not used can you suggest me any alternative....
Actually my requirement is like a classical report, for which I need to display subtotal and grand totals based on two fields....
Please help me out in this issue as it is very urgent.
<b><REMOVED BY MODERATOR></b>
Thanks in advance....
Regards,
Sri...
Message was edited by:
        Alvaro Tejada Galindo

Hi Nick,
        Thanks for the reply... it is really very useful for me.
As I discussed in my earlier mail regarding the output sequence, which should be in the below format.
                                       number       quantity uom      unitprice        amount curr
plant
       material
               date
                                         x                 y                    z                      A           
                                         e                 f                     g                      h
                                         p                 q                     r                      s
               subtotal date..... 1                   2                    3                       4
               subtotal  material.5                  6                    7                       8
As you said when I using <b>event of Begin</b> its working fine. but while using the <b>event of end</b>,  I am specifying date and then matnr (sort) its taking(nodes are created mean first matnr and then date) in the reverse order and when I am taking matnr and date it is placing the events(nodes) in the right order but the order date is not triggering.
can please tell me how to proceed here..
waiting for your reply..
Regards,
Srinivas

Similar Messages

  • In alv report can i use control break events? if no .whay?

    Hi all,
    in alv report can i use control break events? if no .whay?

    hi,
    you can use control break statements in ALV report.
    for example: if one PO is having more than one line item, that time you need to display PO only once.

  • Can we use Initilization event in module pool program?

    Hi All,
    Can we use Initialization event in module pool program? If not why?
    Thanks In Advance!!!!!!!!!

    The runtime environment creates the INITIALIZATION event and calls the corresponding event block (if it has been defined in the ABAP program).
    http://help.sap.com/saphelp_nw70/helpdata/EN/fc/eb2d67358411d1829f0000e829fbfe/content.htm
    SEE THE ABOVE LINK...THINK IT WILL SOLVE ALL YOUR DOUBTS
    REGARDS
    RACHEL

  • Can we use select options in smartform

    can we use select options in smartform if so can any one send me a sample code...
    Thanks
    bhaskhar

    Hi ,
    Can u explain why u want to use select options in smartforms . U can try it in program lines .
    Its better to use select options in the driver program and fetch data accordingly in the driver program or passing the selected values from select options to the smatfrom and fdetching the data there in smartform .
    Regards

  • Can I use control query and Variant?

    Can I use control query and Variant?
    I tried both but it’s not working, what’s my requirement is in a web template having material, distribution as drop box and I have to create for all countries(Like USA, Canada,China…)so what I did , I created a control query as material& distribution and I created variants for countries. After precalculating it’s not working.
    Any help ll be appreciated
    Thanks

    Yes you can use Control Query AND Variant in your Setting. Maybe you did not setup you Web template correctly?

  • How can i use LINK_CLICK event

    Hi,
    how can i use event LINK_CLICK in list tree.
    Plz help me.
    Regards ,
    Venkat.

    use this....
    CLASS cl_event_receiver DEFINITION.
      PUBLIC SECTION.
        METHODS on_expand_no_children
                FOR EVENT expand_no_children OF cl_gui_simple_tree
                IMPORTING node_key sender.
        METHODS on_node_double_click
                FOR EVENT node_double_click OF cl_gui_simple_tree
                IMPORTING node_key sender.
    ENDCLASS.
    CLASS    cl_event_receiver
    IMPLEMENTATION
    CLASS cl_event_receiver IMPLEMENTATION.
    Triggering event:      expand_no_children
    Handling method:       on_expand_no_children
    Description:
    The handling method is called whenever a node is supposed to be
    expanded (by clicking on the expander icon) while subordinate entries
    are not yet known in the GUI.
    In this case the node table must be complemented with the respective
    entries.
      METHOD on_expand_no_children.
        IF SENDER <> obj_simple_tree.
          EXIT.
        ENDIF.
    Determine subnodes
        REFRESH t_gui_node.
        LOOP AT t_node INTO wa_node WHERE relatkey = node_key.
          APPEND wa_node TO t_gui_node.
        ENDLOOP.
    Send node table to GUI
        CALL METHOD obj_simple_tree->ADD_NODES
          EXPORTING
            TABLE_STRUCTURE_NAME           = 'MTREESNODE'
            NODE_TABLE                     = t_gui_node
          EXCEPTIONS
            ERROR_IN_NODE_TABLE            = 1
            FAILED                         = 2
            DP_ERROR                       = 3
            TABLE_STRUCTURE_NAME_NOT_FOUND = 4
            others                         = 5.
        IF SY-SUBRC <> 0.
          MESSAGE i398(00) WITH 'Error' sy-subrc
                                'at methode ADD_NODES'.
        ENDIF.
      ENDMETHOD.
    Triggering event:      node_double_click
    Handling method:       on_node_double_click
    The handling method is called every time a double-click is executed
    on a node or a leaf.
      METHOD on_node_double_click.
        IF SENDER <> obj_simple_tree.
          EXIT.
        ENDIF.
    Output message for selected node or leaf
        CLEAR wa_node.
        READ TABLE t_node
          WITH KEY node_key = node_key
          INTO wa_node.
        IF SY-SUBRC = 0.
          IF wa_node-isfolder = 'X'.
            MESSAGE i398(00)
              WITH 'Double-click on node' wa_node-node_key.
          ELSE.
            MESSAGE i398(00)
              WITH 'Double-click on leaf' wa_node-node_key.
          ENDIF.
        ELSE.
          MESSAGE i398(00)
             WITH 'Double-click on unknown node'.
        ENDIF.
      Trigger PAI and transfer function code (system event)
        CALL METHOD cl_gui_cfw=>set_new_ok_code
             EXPORTING new_code = 'FCODE_DOUBLECLICK'.
      ENDMETHOD.
    ENDCLASS.
    *&      Module  STATUS_0100  OUTPUT
          GUI status for dynpro
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'DYN_0100'.
      SET TITLEBAR 'DYN_0100'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  create_objects  OUTPUT
          Create instances
    MODULE create_objects OUTPUT.
      IF NOT obj_custom_container IS INITIAL.
        EXIT.
      ENDIF.
          Create instance for custom container
      CREATE OBJECT obj_custom_container
        EXPORTING
        PARENT                      =
          CONTAINER_NAME              = 'DYNPRO_CONTAINER'
        STYLE                       =
        LIFETIME                    = lifetime_default
        REPID                       =
        DYNNR                       =
        NO_AUTODEF_PROGID_DYNNR     =
        EXCEPTIONS
          CNTL_ERROR                  = 1
          CNTL_SYSTEM_ERROR           = 2
          CREATE_ERROR                = 3
          LIFETIME_ERROR              = 4
          LIFETIME_DYNPRO_DYNPRO_LINK = 5
          others                      = 6.
      IF SY-SUBRC <> 0.
        MESSAGE i398(00) WITH 'Error' sy-subrc
                              'when creating the custom container controls'.
      ENDIF.
          Create instance (back-end) for Simple Tree Model
      CREATE OBJECT obj_simple_tree
        EXPORTING
          NODE_SELECTION_MODE = CL_SIMPLE_TREE_MODEL=>NODE_SEL_MODE_SINGLE
        HIDE_SELECTION              =
        EXCEPTIONS
          ILLEGAL_NODE_SELECTION_MODE = 1
          others                      = 2.
      IF SY-SUBRC <> 0.
        MESSAGE i398(00) WITH 'Error' sy-subrc
                              'when creating the Simple Tree Model'.
      ENDIF.
          Create instance (representative object for control at front end)
      CALL METHOD obj_simple_tree->CREATE_TREE_CONTROL
        EXPORTING
        LIFETIME                     =
          PARENT                       = obj_custom_container
        SHELLSTYLE                   =
      IMPORTING
        CONTROL                      =
        EXCEPTIONS
          LIFETIME_ERROR               = 1
          CNTL_SYSTEM_ERROR            = 2
          CREATE_ERROR                 = 3
          FAILED                       = 4
          TREE_CONTROL_ALREADY_CREATED = 5
          others                       = 6.
      IF SY-SUBRC <> 0.
        MESSAGE i398(00) WITH 'Error' sy-subrc
                              'when creating the Simple Tree Control'.
      ENDIF.
    ENDMODULE.                 " create_objects  OUTPUT
    *&      Module  register_events  OUTPUT
          Event handling
    MODULE register_events OUTPUT.
          Register events as system event at CFW                         *
      CLEAR t_events.
    Register event for double-click
      CLEAR wa_event.
      wa_event-eventid = CL_SIMPLE_TREE_MODEL=>EVENTID_NODE_DOUBLE_CLICK.
      wa_event-appl_event = ' '.
      APPEND wa_event TO t_events.
    Register events at CFW and control at front end
      CALL METHOD obj_simple_tree->SET_REGISTERED_EVENTS
         EXPORTING
            EVENTS                   = t_events
         EXCEPTIONS
           ILLEGAL_EVENT_COMBINATION = 1
           UNKNOWN_EVENT             = 2
           others                    = 3.
      IF SY-SUBRC <> 0.
        MESSAGE i398(00) WITH 'Error' sy-subrc
                              'when registering the events'.
      ENDIF.
          Create event handler and register events
      IF obj_event_receiver IS INITIAL.
        CREATE OBJECT obj_event_receiver.
        SET HANDLER obj_event_receiver->on_node_double_click
                FOR obj_simple_tree.
        SET HANDLER obj_event_receiver->on_expand_no_children
                FOR obj_simple_tree.
      ENDIF.
    ENDMODULE.                 " register_events  OUTPUT
    *&      Module  create_tree  OUTPUT
          Create node table with root and 1st level
    MODULE create_tree OUTPUT.
      IF NOT t_node IS INITIAL.
        EXIT.
      ENDIF.
          Create node table
      PERFORM fill_node_table.
          Fill node table t_gui_node for control
      REFRESH t_gui_node.
      t_gui_node = t_node.
          Transfer entire node table to Simple Tree Model
      CALL METHOD obj_simple_tree->ADD_NODES
        EXPORTING
          NODE_TABLE          = t_gui_node
        EXCEPTIONS
          ERROR_IN_NODE_TABLE = 1
          others              = 2.
      IF SY-SUBRC <> 0.
        MESSAGE i398(00) WITH 'Error' sy-subrc
                              'at methode ADD_NODES'.
      ENDIF.
    ENDMODULE.                 " create_tree  OUTPUT

  • How can I use control break statement in my requirement

    Hi ABAPers,
    In my requirement, I have 4 fields in sorted internal table, (audat, prdha, ipnum, netwr). In that i need to do summation of netwr field falling under same prdha(BU) for the same month
    internal table fields :
    audat  prdha  ipnum  netwr
    02      abc     1      100
    02      abc     2      200
    02      xyz     3      300
    03      abc     4      100
    03      xyz     5      300
    03      xyz     6      200
    i need output like this:
    audat  prdha  ipnum  netwr
    02      abc     1,2      300
    02      xyz     3         300
    03      abc     4         100
    03      xyz     5,6      500
    Can anyone suggest me logic for this by using control break statements
    Thanks in advance,
    Ankita
    Moderator Message: Duplciate Post.
    Edited by: kishan P on Apr 14, 2011 3:03 PM

    Hi ABAPers,
    In my requirement, I have 4 fields in sorted internal table, (audat, prdha, ipnum, netwr). In that i need to do summation of netwr field falling under same prdha(BU) for the same month
    internal table fields :
    audat  prdha  ipnum  netwr
    02      abc     1      100
    02      abc     2      200
    02      xyz     3      300
    03      abc     4      100
    03      xyz     5      300
    03      xyz     6      200
    i need output like this:
    audat  prdha  ipnum  netwr
    02      abc     1,2      300
    02      xyz     3         300
    03      abc     4         100
    03      xyz     5,6      500
    Can anyone suggest me logic for this by using control break statements
    Thanks in advance,
    Ankita
    Moderator Message: Duplciate Post.
    Edited by: kishan P on Apr 14, 2011 3:03 PM

  • How can I use my Events album for the Screen saver?

    I would like to use the "Events" album from my iPhoto 09 for my Screen Saver pictures source, but can't seem to find a way to do this.  I tried to create a new folder in the Screen Saver preferences, but couldn't find a way to get to the Events album.
    If anyone has a tip I would appreciate the help.  I'm using Snow Leopard on a 27" iMac. Thanks much!

    Try System Preferences - Desktop & Screensaver - Click the + sign at the bottom of the box on the left (see the picture) then choose where the photos are stored and you should be good to go.

  • How can i use control panel in win vista

    Can i get an old version of icloud ( may be V.2 ) to install an use control panel in win Vista. The newest version (v. 3.1) only works in win 7 or win 8

    You can get ver. 2.1.2 here: http://support.apple.com/kb/DL1687.

  • Can I use an event structure within another event structure

    Hi
    Can use an event structure within another event structure?
    Thanks
    Yasamin
    Solved!
    Go to Solution.

    I attached my Vi from my old project (MY OLD VI). It is worked correctly.
    But I decided that use event structure instead of case structure.
    I attached my new VI as a picture and as a LabVIEW VI too (network_analyzer_8510_920527 Frequency Sweep.vi )
    My graphs show by pressing "case 5: button (Bottom of page right hand).
    Then I want to show each of graph in a large window( in a new VI) by clicking a key (for example "show 1").
    Thanks
    Yasamin
    Attachments:
    my VI.JPG ‏256 KB
    network_analyzer_8510_920527 Frequency Sweep.vi ‏72 KB
    MY OLD VI.vi ‏69 KB

  • Whether PXI can be used for Event data logging in an electrical Substation ?

    Whether the NI PXI system can be used for recording digital event data with 1 ms accuracy ?Whether its DI boards support onboard timestamping ? Whether PXI can be synchronized with time pulses from a GPS receiver ?

    Yes indeed, there is a digital event recorder example in developer zone, search for "digital time interval" on NI developer zone, or follow this link: http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3DCA356A4E034080020E74861&p_node=DZ52336&p_submitted=N&p_rank=&p_answer=&p_source=External
    In addition, we have done additional work to create a template for the LabVIEW FPGA, http://sine.ni.com/apps/we/nioc.vp?cid=11829〈=US
    which has 96 digital I/O lines as well as 8 analog in. With the NI-7831R you are able to combine analog and digital events in the electrical substation.
    Further, using PXI, we can synchronize with a GPS time stamp such as IRIG-B, and perform these functions all in a headless - real-time OS LabVIEW.
    I woul
    d be happy to discuss your application in more detail and offer a complete solution, or a recipe to create the solution yourself.
    Thanks for the question,
    Preston Johnson
    Business Development Manager - Industrial Applications
    National Instruments
    512-683-5444
    [email protected]
    Preston Johnson
    Principal Sales Engineer
    Condition Monitoring Systems
    Vibration Analyst III - www.vibinst.org, www.mobiusinstitute.com
    National Instruments
    [email protected]
    www.ni.com/mcm
    www.ni.com/soundandvibration
    www.ni.com/biganalogdata
    512-683-5444

  • Can i use onload event in XSLT

    Hi all,
    I am working on xml and xslt.
    After the xslt tranfermation i wants to call a function defined in javascript.
    I just wants to use onload event but its i dont have idea how to call an onload event.
    thnx,
    raj

    Not sure what you mean by a CDATA section. But here is the XSLT file showing the template for the root element. The script is included using a <script> element, inserted in the <head> element. Should it be some place else?
    <?xml version="1.0" encoding="utf-8"?><!-- DWXMLSource="Trial procedure.xml" -->
    <!DOCTYPE xsl:stylesheet  [
        <!ENTITY nbsp   "&#160;">
        <!ENTITY copy   "&#169;">
        <!ENTITY reg    "&#174;">
        <!ENTITY trade  "&#8482;">
        <!ENTITY mdash  "&#8212;">
        <!ENTITY ldquo  "&#8220;">
        <!ENTITY rdquo  "&#8221;">
        <!ENTITY pound  "&#163;">
        <!ENTITY yen    "&#165;">
        <!ENTITY euro   "&#8364;">
    ]>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
    <xsl:template match="/">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title><xsl:value-of select="MovexUser/Title"/></title>
    <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script>
    <link href="resources/navigatorSpryAccordion.css" rel="stylesheet" type="text/css" />
    </head>
    <body id="body">
    --- The JavaScript funtions are called inside DIV elements here. ---
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>

  • Can I Use DAQ Event Message 9 with My PCI-6033?

    I would like to handle my counter board's interrupts by using DAQ event message 9. If Yes, I would to like to see an example in VB?

    Counter events are not supported under NI-DAQ for E series devices. It is possible that what you are trying to accomplish could be done just as easily with a timed loop in DAQmx, what is your application?

  • How can we use CMC / events to trigger a process?

    Is there a way we can make CMC / events to trigger a stored procedure or at least a .exe file?
    how?

    There's a starter on events here:
    http://scn.sap.com/community/bi-platform/blog/2013/01/07/cmcevents-in-business-objects-and-its-usage
    Not sure exactly of your workflow, but you can also schedule a custom program object and schedule that to run based on your own timelines.
    http://scn.sap.com/docs/DOC-40837

  • How can I use onClick event on singleSelection tag???

    Hi, all.
    I've used Jdev 9.0.4 and UIX xml.
    I've tried to fire onClick event on sigleSelection tag. But onClick event could not be used.
    Strangely onClick event on Button tag works well.
    My code looks like this.
    <script>
    <contents>
    function AlertMessage(){                   
    alert("You got it!");
    </contents>
    </script>
    <button text="Auto Generate" name="generate"
    onClick="return AlertMessage();"/>
    <singleSelection selectedIndex="0" text="Single" name="GGFF" id="GGG"
    shortDesc="AA"
    onClick="return AlertMessage();">
    Is there any problems in my code? Or this problem is oriented from jdev9.0.4?
    Please help!!!

    Sorry, this was a bug in the UIX version shipped in JDeveloper 9.0.4. It has been fixed in JDeveloper 9.0.5.
    -brian
    Team JDeveloper/UIX

Maybe you are looking for

  • Can I configure JDBC Sender to process the RFC response message?

    Dear All, We're working on an integration scenario of synchronous messaging from database to RFC. Is there any way to update or insert the record(s) onto the source database according to the BAPI response? Any inputs are welcome. Many thanks for your

  • ESS _ Total compensation statement not viewed

    Hi All, Total compensation statement is viewed fine in development portal, but when I have all the transports mmoved to Q and started testing I am getting a message that ' Error displaying form'. Has any body encountered this kind of problem ? Can an

  • Imran (value request)

    check out the below threads https://forums.sdn.sap.com/click.jspa?searchID=3942333&messageID=3558124 https://forums.sdn.sap.com/click.jspa?searchID=3942333&messageID=3322097 if it's a selection screen. AT SELECTION-SCREEN ON VALUE-REQUEST FOR <screen

  • Ruby-rmagick

    /usr/bin/ruby /tmp/yaourt-tmp-root/aur-ruby-rmagick/ruby-rmagick/src/RMagick-2.9.1/ext/RMagick/extconf.rb checking for Ruby version >= 1.8.2... yes checking for gcc... yes checking for Magick-config... yes checking for ImageMagick version >= 6.3.0...

  • Refactor rename issues  -- bug?

    Using refactor rename to change the name of a protected class variable from foo to bar. After making the change, my pending changes tab shows I have 18 updates classes. Every reference to a variable named foo has been changed to bar. I expected the c