Creating a Function logic for dynamically created XML buttons

Hi!
It's me...... again! Now I've dynamically created some buttons using XML. They're spread around the stage and I've modified a tooltip script to give each button a tooltip on Mouse_Over. But to se the logic and make it work using AS3 is hard (for me). I want a function that accept to parameters: Tooltip text and  Object to tooltip.
In my code I get this error msg when initiating the function on dynamically created buttons:
1118: Implicit coercion of a value with static type flash.display:Sprite to a possibly unrelated type flash.display:MovieClip.
I beleive there are more than one thing here needing a fix.
Can someone have a look and give me a pointer?
Thanks
function contentTooltip(ttt:String, ttclip:MovieClip):void {
    ttclip.addEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler);
    function mouseOverHandler(e:MouseEvent):void {
        ttip.descr.text=ttt;
        ttip.x=stage.mouseX;
        ttip.y=stage.mouseY-15;
        ttclip.addEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler);
        ttclip.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
        ttip.visible = true;
    function mouseOutHandler(e:MouseEvent):void {
        ttip.visible = false;
        ttclip.removeEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler);
        ttclip.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
    function mouseMoveHandler(e:MouseEvent):void {
        ttip.x=stage.mouseX;
        ttip.y=stage.mouseY-15;
contentTooltip("Scale button",scale_btn);
contentTooltip("Hide button",hide_btn);

I totally agree with what Ned says and suggests. Nevertheless, I would like to support your thinking process.
From the way you wrote the tooltip functionality it is apparent to me that you conceptualize as a programmer. Again, as Ned said, nested functions are evil. BUT, in a way, what classes accomplish is encapsulation/nesting of properties and functions under the same umbrella. It actually feels that what timeline does in general is nesting named functions within a single function we have no access to.
How you wrote the code is actually a blueprint for a class that could handle the functionality. You, perhaps, are very ready to start coding with classes - not on the timeline.
With that said, for the sake of theory, here is how your functionality can be rewritten on timeline:
scale_btn.toolTip = "Scale button";
test_btn.toolTip = "Test button";
hide_btn.toolTip = "Hide button";
scale_btn.addEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler);
test_btn.addEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler);
hide_btn.addEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler);
var overTarget:MovieClip;
function mouseOverHandler(e:MouseEvent):void {
     overTarget = e.currentTarget;
     ttip.descr.text = overTarget.toolTip;
     ttip.x = stage.mouseX;
     ttip.y = stage.mouseY - 15;
     overTarget.addEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler);
     overTarget.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
     setChildIndex(ttip, numChildren - 1);
     ttip.visible = true;
function mouseOutHandler(e:MouseEvent):void {
     ttip.visible = false;
     overTarget.removeEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler);
     overTarget.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler); 
function mouseMoveHandler(e:MouseEvent):void {
     TweenMax.to(ttip, .5, { x:stage.mouseX, ease:Quart.easeOut } );
     TweenMax.to(ttip, .5, { y:stage.mouseY - ttclip.height / 2, ease:Quart.easeOut } );
     //ttip.x=stage.mouseX;
     //ttip.y=stage.mouseY-ttclip.height/2;

Similar Messages

  • To create a deep structure for dynamic internal table.

    Hello
    My ALV has fields which are defined dynamically during execution.
    so, i did it in the following way,
    Declared Field symbolds, DREF and fieldcatalog as,
    FIELD-SYMBOLS: <t_dyntable> TYPE STANDARD TABLE,
                  <fs_dyntable>.
    DATA:   dref_dyntab    TYPE REF TO data,
            dref_dynwa     TYPE REF TO data.
    DATA: ts_fieldcatalog TYPE lvc_t_fcat.
    DATA: wa_fieldcatalog TYPE lvc_s_fcat.
    Updated Fieldcatalog dynamically as,
    *function module to read segment structure
        CALL FUNCTION 'SEGMENT_READ'
          EXPORTING
            segmenttyp           = v_segment_name
          TABLES
            segmentstructure     = ts_seg_structure
          EXCEPTIONS
            no_authority         = 1
            segment_not_existing = 2
            OTHERS               = 3.
        IF sy-subrc <> 0.
          CASE sy-subrc.
            WHEN '1'.
              MESSAGE e024.
              STOP.
            WHEN '2'.
              MESSAGE e025 WITH v_segment_name.
              STOP.
            WHEN OTHERS.
              MESSAGE e023.
          ENDCASE.
        ENDIF.
    *FETCH FIELDS FROM STRUCTURE OF SEGMENT AND CREATE FIELDCATALOG FOR
    EACH FIELD OF SEGMENT (DYNAMIC FIELD CATALOG)
        LOOP AT ts_seg_structure INTO wa_seg_structure.
          ADD 1 TO v_counter.
          wa_fieldcatalog-fieldname = wa_seg_structure-fieldname.
          wa_fieldcatalog-col_pos   = v_counter.
          wa_fieldcatalog-ref_table = wa_seg_structure-segtyp.
          APPEND wa_fieldcatalog TO ts_fieldcatalog.
          CLEAR wa_fieldcatalog.
        ENDLOOP.
    and generated dynamic internal table using fieldcatalog as,
    *--Method to get the structure of table using fieldcatalog.
      CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = ts_fieldcatalog
        IMPORTING
    *--Variable of type REF TO DATA.
          ep_table        = dref_dyntab.
      IF sy-subrc <> 0.
        MESSAGE e023.
      ENDIF.
    *--Dynamic internal tables required when show segments selected
      IF p_selseg IS NOT INITIAL.
        ASSIGN dref_dyntab->* TO <t_dyntable>.
    *--Create dynamic work area and assign to FS
      CREATE DATA dref_dynwa LIKE LINE OF <t_dyntable>.
        ASSIGN dref_dynwa->* TO <fs_dyntable>.
    And then i populated this <t_dyntable> which is being passed as data-table to method
    CL_GUI_ALV_GRID => SET_TABLE_FOR_FIRST_DISPLAY
    for ALV grid Display along with above used filedcatalog ts_fieldcatalog.
    Things are fine till here, but now i have the requirement to edit selected rows of the ALV display..
    As you might be aware, we need a field
            TS_STYLEROW  TYPE lvc_t_styl, (i.e, a field of type 'h' and we can say as an internal table inside an internal table or else as a deep structure)
    in the output internal table <t_dyntable> to meet our requirement.
    My issue is about declaring one such field of type 'h' in this dynamically created internal table ''<t_dyntable>".
    I tried in the following way by adding one such field to fieldcatalog :
    *Field for Styling
      ADD 1 TO v_counter.
      wa_fieldcatalog-fieldname   = 'TS_STYLEROW'.
      wa_fieldcatalog-tabname     = 'TS_STYLE'.
      wa_fieldcatalog-col_pos     = v_counter.
      wa_fieldcatalog-no_out      = 'X'.
      wa_fieldcatalog-inttype     = 'h'.      " I even mentioned this
      APPEND wa_fieldcatalog TO ts_fieldcatalog.
      CLEAR  wa_fieldcatalog.
    But this is creating a field of type 'C' in the table <t_dyntable> instead of what i was expecting
    Guyz and respected,
    Please advice me with the solution or ur ideas....
    Note : The overall requirement is create a deep structure for dynamically generated internal table.
    Your help is highly appreciated and unforgettable..!!!!!!!

    hi,
    Dynamic append
    Dynamic internal table
    Dynamic internal table
    dynamic columns in ALV
    Variant for dynamic selection
    thanks

  • Function module for to Create fund/Grant management Derivation rules

    Hi All,
    Is there any function module for to create a derivation rules for fund/Grant management.
    Thanks in Advance.
    Nara.

    Hi,
    Please try with FM KED0_CREATE_DERIVATION_TABLE
    Please let me know if you have some issues,
    Regards,
    Lijo Joseph
    *Assign Points ifuseful.

  • Adobe premiere elements 12 - how to create menu bar action for my inserted image button

    adobe premiere elements 12 - how to create menu bar action for my inserted image button without using their movie menu theme

    forbemag
    I do not think that I am completely focused into this completely, so let us see if the following is going to help.
    You are going to need a base for your button. When you mention "image" button, I am assuming that you are using that term to differentiate between a text button and a thumbnail type button.
    The menus (main and scene) take their origin in .psd files on the hard drive and strict nomenclature and structure for Layers Palatte. And, the buttons on the menus trace back to the menu markers on the Timeline, main menu marker and order of placement of scene markers. The scene thumbnail will only appear when there is a scene marker on the Timeline to which it.
    In view of all that
    Where have you already inserted this "image (button)"...into the Layers Palette of a Photoshop document or other? Is this "image (button)" in a structured Layer Group in the Layers Palette with sublayer groups, text layers, graphic/background layer"?
    Let me give you an example
    If you have a button (with thumbnail) on the main menu and you want that to open to a specific scene in your movie, then you use a main menu marker on the Timeline at the spot that you want that button to target.
    If I am getting closer to what you seek, then please further clarify the DVD navigational envisioned scheme.
    Thanks.
    ATR
    Add On...I did not see the exchanges between us and SG until after I had posted mine. I thought that your discussions were concluded. Please excuse the interruption.

  • How do I create a desktop Icon for Adobe create pdf?

    How do I create a desktop icon for Adobe create pdf?

    Hi, ken.
    You can access ExportPDF from your computer more quickly in three ways:
    You can download and install the CreatePDF Desktop Application. More info is here. With this application, you can drag PDF files onto a desktop icon and have those converted to Office files. (If you subscribe to the CreatePDF service, this application will also allow you to create PDF files.)
    You can download and install the newest Adobe Reader and access the service using Reader's Tools Pane on right. Then, any time you have PDF open in Reader, you can (with a couple of clicks) convert that PDF to an Office file.
    You can drag the webpage icon from your browser to your desktop. This will create a shortcut to the ExportPDF website on your desktop. Here are some instructions for doing that using Internet Explorer or Firefox.
    Let us know if you have additional questions or issues.
    Dave

  • How to create custom BOL object for dynamic query in CRM 7.0

    Hi,
    Could anyone please explain me with steps that how to create the custom BOL object for dynamic query in CRM 7.0, I did it in previous version but its throwing exception when i try to create the object of my dynamic query class. I just defined the entry of my in crmv_obj_btil to create the dynamic query BOL object. do i need to do any other thing also to make it work?
    Regards,
    Kamesh Bathla
    Edited by: Kamesh Bathla on Jul 6, 2009 5:12 PM

    Hi Justin,
    First of thanks for your reply, and coming to my requirement, I need to report the list of items which are there in the dynamic select statement what am getting from the DB. The select statement number of columns may vary in my example for different countries the select item columns count is different. For US its '15', for UK it may be 10 ...like so, and some of the column value might be a combination or calculation part of other table columns (The select query contains more than one table in the from clause).
    In order to execute the dynamic select statement and return the result i choose to write a function which will parse the cursor for dynamic query and then iterate the values and construct a Type Object and append it to the pipe row.
    Am relatively very new for these sort of things, welcome in case of any suggestions to make it simple (Instead of the function what i thought to work with) also a sample narrating the new procedure will be appreciated.
    Thanks in Advance,
    mallikj2.

  • Create a deep structure for dynamic internal table

    Hi All,
    I am creating a dynamic table using method cl_alv_table_create=>create_dynamic_table.
    The normal structure gets created. but now I want to creat a Deep structure for having information of colors also for each column. So I want to add a COLTAB type LVC_T_SCOL for colors information .
    How should I create this using above method?
    Rgds,
    Madhuri

    I created a zcelltab structure as below. But while creating dynamic internal table, I received the error  with
    'Type "ZCELLTAB" is unknown 68 ZCELLTAB-CELLTAB
    Here is the code.
    DATA: BEGIN OF ZCELLTAB,
             CELLTAB LIKE LVC_S_STYL,
         END OF ZCELLTAB.
    FIELD-SYMBOLS <T_CELLTAB> TYPE LVC_T_STYL.
    DATA : LT_CELLTAB TYPE LVC_T_STYL.
    DATA:  WA_CELLTAB TYPE LINE OF LVC_T_STYL.
    DATA: GT_FCAT1 TYPE LVC_T_FCAT,
               GW_FCAT1 TYPE LVC_S_FCAT,
                GT_FCAT2 TYPE LVC_T_FCAT,
                GW_FCAT2  TYPE LVC_S_FCAT.
    After filling the FCAT1, I added the field in FCAT2  like below
      GT_FCAT2[ ] = GT_FCAT1[ ].
      G_TABIX = G_TABIX + 1.
      GW_FCAT2-INTTYPE = 'C'.
      MOVE G_TABIX TO GW_FCAT2-COL_POS.
      GW_FCAT2-OUTPUTLEN = '10'.
      GW_FCAT2-FIELDNAME = 'T_CELLTAB'.
      GW_FCAT2-TABNAME = 'ZCELLTAB'.
      GW_FCAT2-REF_FIELD = 'CELLTAB'.
      GW_FCAT2-REF_TABLE = 'ZCELLTAB'.
      APPEND GW_FCAT2 TO GT_FCAT2
      CLEAR GW_FCAT2.
    While calling the below method, the error with
    CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
         EXPORTING
          IT_FIELDCATALOG = GT_FCAT2
        IMPORTING
          EP_TABLE        = GT_REQ.
      ASSIGN GT_REQ->* TO <F_TAB>.
      CREATE DATA GWA_REQ LIKE LINE OF <F_TAB>.
      ASSIGN GWA_REQ->* TO <F_WA>.
    LOOP AT ITAB.
    ASSIGN COMPONENT 'MATNR'  OF STRUCTURE <F_WA> TO <F_VAL>
    <F_VAL> = ITAB-MATNR.
    IF ITAB-MATNR IS INITIAL.
    ASSIGN COMPONENT 'T_CELLTAB' OF STRUCTURE <F_WA> TO <T_CELLTAB>
            CLEAR WA_CELLTAB.
            WA_CELLTAB-FIELDNAME = 'MATNR'.
            WA_CELLTAB-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_DISABLED.
            INSERT WA_CELLTAB INTO TABLE <T_CELLTAB>.
    ENDIF.
    APPEND <F_WA> TO <F_TAB>
    ENDLOOP.
    CALL METHOD GR_GRID->SET_TABLE_FOR_FIRST_DISPLAY
            EXPORTING
              I_CONSISTENCY_CHECK  = G_CONSISTENCY_CHECK
              IT_TOOLBAR_EXCLUDING = G_EXCLUDE
              I_SAVE               = G_SAVE
           I_DEFAULT            = 'X'
              IS_LAYOUT            = G_LAYOUT
            CHANGING
              IT_OUTTAB            = <F_TAB>
              IT_FIELDCATALOG      = F_CAT1.
    Please let me know where I was wrong.
    Should I remove the T_CELLTAB as the field name is not mentioned in the structure 'ZCELLTAB'.
    Thanks,
    Kumar.
    Edited by: venn e on May 7, 2010 4:10 PM

  • Adding AJAX support for dynamically created panelGrid components

    Hi everyone!
    I would like to ask help from anyone who may have encountered similar problem before...
    I have a panelGrid whose component is dynamically created by the backing bean. Here is my JSF code:
    <h:panelGrid styleClass="panelGrid"
              rowClasses="tsPanelGridRowClass" columns="8" cellpadding="0"
              cellspacing="2" bgcolor="transparent" style="margin-left: 10px"
              id="revCenterItemPanelGrid"
              binding="#{pc_Touchscreen_pull_select_item.revCenterItemPanelGrid}">
    </h:panelGrid>And here is the code for backing bean that adds content inside the panelGrid:
    HtmlOutputText index = (HtmlOutputText) app.createComponent(HtmlOutputText.COMPONENT_TYPE);
    index.setId("1");
    index.setValue(String.valueOf(1));
    index.setStyle("datagridtext");
    revCenterItemPanelGrid.getChildren().add(index);On click of a button...
    <a4j:commandButton value="Update"
              styleClass="commandExButtonPou2" id="button1" reRender="revCenterItemPanelGrid"
              actionListener="#{pc_Touchscreen_pull_select_item.doSortActionListener2}">
              <f:attribute name="order" value="2"></f:attribute>
              <f:attribute name="toggleState" value="off"></f:attribute>
    </a4j:commandButton>the backing bean is supposed to update the value of the outputText
    doSortActionListener2() {
    HtmlOutputText index = (HtmlOutputText) app.createComponent(HtmlOutputText.COMPONENT_TYPE);
    index.setId("2");
    index.setValue(String.valueOf(2));
    index.setStyle("datagridtext");
    revCenterItemPanelGrid.getChildren().add(index);
    }However, update doesn't seem to work. I have been successful in adding ajax support to a panelGrid that is not dynamically created but not for this one.
    Has anyone encountered this error before? Any ideas?
    Thanks in advance!

    Hi everyone!
    I would like to ask help from anyone who may have encountered similar problem before...
    I have a panelGrid whose component is dynamically created by the backing bean. Here is my JSF code:
    <h:panelGrid styleClass="panelGrid"
              rowClasses="tsPanelGridRowClass" columns="8" cellpadding="0"
              cellspacing="2" bgcolor="transparent" style="margin-left: 10px"
              id="revCenterItemPanelGrid"
              binding="#{pc_Touchscreen_pull_select_item.revCenterItemPanelGrid}">
    </h:panelGrid>And here is the code for backing bean that adds content inside the panelGrid:
    HtmlOutputText index = (HtmlOutputText) app.createComponent(HtmlOutputText.COMPONENT_TYPE);
    index.setId("1");
    index.setValue(String.valueOf(1));
    index.setStyle("datagridtext");
    revCenterItemPanelGrid.getChildren().add(index);On click of a button...
    <a4j:commandButton value="Update"
              styleClass="commandExButtonPou2" id="button1" reRender="revCenterItemPanelGrid"
              actionListener="#{pc_Touchscreen_pull_select_item.doSortActionListener2}">
              <f:attribute name="order" value="2"></f:attribute>
              <f:attribute name="toggleState" value="off"></f:attribute>
    </a4j:commandButton>the backing bean is supposed to update the value of the outputText
    doSortActionListener2() {
    HtmlOutputText index = (HtmlOutputText) app.createComponent(HtmlOutputText.COMPONENT_TYPE);
    index.setId("2");
    index.setValue(String.valueOf(2));
    index.setStyle("datagridtext");
    revCenterItemPanelGrid.getChildren().add(index);
    }However, update doesn't seem to work. I have been successful in adding ajax support to a panelGrid that is not dynamically created but not for this one.
    Has anyone encountered this error before? Any ideas?
    Thanks in advance!

  • Can not create planning function types (for process empty records)

    Hi! SAP Experts,
         I want to copy 0RSPL_FORMULA to another function types for processing empty records, ZRSPL_FORMULA. I checked this function type via RSPLAN, there is no error!.   But when i try to use it in planning modeler. We found the error message "Infoobject 1FORMULA is does not available in version A". Do we need to create this infoobject?... Anyone know, please let me know.
    Thanks,
    Sake

    Hi!,
    Thanks for your help but I've already put that parameter,HIDDENFORMULAVARTAB->1FORMULA, in my planning function, ZRSPL_FORMULA. I validated it and no error found. But when I go to planning modeler, in web browser, and try to create a new planning function based on ZRSPL_FORMULA. I found the problem as I mention in previous message, "infoobject 1FORMULA is not available in version A". I try to search this infoobject in my system. The result is there is no this infoobject in my system. So, my question is do i need to create it with myself? What kind of infoobject i have to create? Key Figures or Characteristics?
    Anyway, If I have to do this, why 0RSPL_FORMULA still used as normal.
    Brgds,
    Sake

  • How to create ENQUEUE function module for s567 table

    Hi Experts,
    Anyone Plz tell the steps how to create a ENQUEUE function module for the table s567.
    Its somewht urgent, plz help me.
    <REMOVED BY MODERATOR>
    Mohana
    Edited by: Alvaro Tejada Galindo on Mar 10, 2008 4:21 PM

    Hi,
    You can create a lock on a object of SAP thorugh transaction SE11 and enter any meaningful name start with EZ Example EZTEST_LOCK.
    Use: you can see in almost all transaction when you are open an object in Change mode SAP could not allow to any other user to open the same object in change mode.
    Example: in HR when we are enter a personal number in master data maintainance screen SAP can't allow to any other user to use same personal number for changes.
    Technicaly:
    When you create a lock object System automatically creat two function module.
    1. ENQUEUE_<Lockobject name>. to insert the object in a queue.
    2. DEQUEUE_<Lockobject name>. To remove the object is being queued through above FM.
    You have to use these function module in your program.
    Hope this will give a basic idea.
    Regards
    Sudheer

  • How can create a function module for currency and quantity fields

    hi,
    i want to create a function module with some fields.when i activated it give some errors for 
    netpr,menge,wemng  fields(currency, quantity fields).error is it asks for reference fields. 
    please send me solution for it.
    sreenu.

    Hi Sreenu,
    While creating CURRENCY/QUANTITY fields in the DataBase Table, you have to enter a REFERENCE TABLE and a REFERENCE FIELD to the field.
    For that, after entering the field name and the data type in the correcponding columns, you have to place the cursor on the data type of the required field and click the CURRENCY/QUANTITY FIELDS tab. You will find two columns called REFERENCE TABLE and a REFERENCE FIELD.
    you have to enter a reference table in which a currency/quantity field is used and a reference field which is a currency/quantity field in that table.
    For Example, below is the table details.
    FIELD DATATYPE LENGTH DEC.PLACES REF.TABLE REF.FIELD
    1.SNO     CHAR 5
    2.AMOUNT  CURR 10     2          T001      WAERS
    3.NOS     QUAN 5                 KNA1      /VSO/R_PAL_UL
    Here Field 2(AMOUNT) is a CURR field whose Ref. Table is T001 and Ref. Field is WAERS and Field 3(NOS) is a QUAN field whose Ref. Table is KNA1 and Ref. Field is /VSO/R_PAL_UL.
    Hope this will help you.
    Regards,
    Vaitheeswaran

  • MethodnotFound Exception for dynamically created component(menuItem)

    Hi
    I have created menuItem component and tried to create Action Listener object and setting it to the component in the backing bean.
    but it is throwing methodnot found exception.
    javax.el.MethodNotFoundException: Method not found: [email protected]()
    javax.faces.el.MethodNotFoundException: javax.el.MethodNotFoundException: Method not found: [email protected]()
         at com.sun.faces.application.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:92)
    Below is my code..
    MenuItem item1 = new MenuItem();
    item1.setValue(key);
    Application app = FacesContext.getCurrentInstance().getApplication();
    javax.faces.el.MethodBinding actionListener = app.createMethodBinding("#{breadCrumbBean.test}", null);
    item1.setActionListener(actionListener);
    Let me know whether i created actionListener object or not.
    Any suggestions...
    Thanks
    Edited by: _user on Jan 20, 2011 9:27 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi,
    I tried this it works for me...
    Try to set as below...
    MethodExpression ee = context.getApplication().getExpressionFactory().createMethodExpression(context.getELContext(), "#{breadCrumbBean.test}", String.class, new Class[] { });
    item1.setActionExpression(ee);
    Regards,
    Suganth.G

  • Logic for Dynamic Actions

    Can any one tell me the logic for implementing Dynamic Actions.
    Regards
    vamsi.

    What are dynamic actions and how to configure it?
    Ans) Dynamic actions are performed automatically by the system, depending on certain conditions. If maintaining one infotype has an effect on another infotype, the system automatically displays the second infotype for processing.
    Dynamic actions can run in the background i.e. the user does not see the run on the screen.
    A change in one field of an infotype might require, that certain other infotype be updated at the same time. The details can be specified as a dynamic event. It is automatically triggered by the system.
    *Examples: *
    The Personal Data infotype is newly created, and the Number of children field is filled. Once the record is saved, the system automatically displays the Family/Related Person (0021) infotype and the Child subtype (2) for processing. An employee is hired, and the probationary period is entered in infotype Contract Elements. Once this information is saved, the system automatically displays a record from the Monitoring of Dates (0019) infotype and the subtype Expiry of probation (1) for processing.

  • Creating a Function Module for Standard Include

    Hi ALL,
    There is a standard Include in that i have created 1implicit Enhancement Point and there is 200 lines code is there ,so my client is saying to keep this code in function module. This is the below code  can any one do how to write this code in function module with passing parameters and all the stuff.Means Import parameters ,Export parameters and Source code ?
      Perform change_order_va02.
      data: l_vbfa like vbfa,
            l_FKART like vbrk-FKART,
            l_fksto like vbrk-fksto,
            l_sfakn like vbrk-sfakn.
      data: begin of lt_vbfa occurs 0,
              vbeln like vbfa-vbeln,
            end of lt_vbfa.
      if komfk-vbtyp ca 'PO'.              " debit/credit memo
        select vbeln into table lt_vbfa from vbfa
               where vbelv = KOMFK-VBELN and
                     ( vbtyp_n = '5' or vbtyp_n = '6' ).
          loop at lt_vbfa.
            clear: l_fksto, l_sfakn.
            select single FKART fksto SFAKN into (l_FKART, l_fksto, l_sfakn)
                   from vbrk
                   where vbeln = lt_vbfa-vbeln.
            check: sy-subrc = 0,
                   l_fksto is initial,
                   l_sfakn is initial.
                 message e310(zz) with l_FKART l_vbfa-vbeln.
          endloop.
      endif.
    *}   INSERT
    ENDFORM.
    *{   INSERT         D01K9A0PBY                                        1
    *&      Form  change_order_va02
      228810/45115 FUWAGNK implement VA02 into VF01 for Turkey
    -->  p1        text
    <--  p2        text
    FORM change_order_va02.
    Tables : *knvi, *lips, *likp.
    DATA: Z_MODE value 'N'.
    data: hf-date(10).
    DATA: BEGIN OF BDC_TAB OCCURS 0.
           INCLUDE STRUCTURE BDCDATA.
    DATA: END OF BDC_TAB.
    DATA: BEGIN OF BDC_MSG OCCURS 0.
           INCLUDE STRUCTURE BDCMSGCOLL.
    DATA: END OF BDC_MSG.
    select single vbeln vgbel from *lips into corresponding
           fields of *lips
                  where vbeln = KOMFK-VBELN.
    select single vbeln LFART from *likp into corresponding
           fields of *likp
                  where vbeln = KOMFK-VBELN.
    if *likp-lfart = 'LF'.
    select single vbeln vkorg kunnr from vbak into corresponding
           fields of vbak
                  where vbeln = *lips-vgbel.
    if vbak-vkorg = '1252'.
       clear bdc_tab. refresh bdc_tab.
       move 'SAPMV45A' to BDC_TAB-PROGRAM.
       move '102 '     to BDC_TAB-DYNPRO.
       move 'X'        to BDC_TAB-DYNBEGIN.
       APPEND BDC_TAB. CLEAR BDC_TAB.
       move: 'VBAK-VBELN'  to BDC_TAB-FNAM,                   "Doc.Number
              VBAK-VBELN   to BDC_TAB-FVAL.
       APPEND BDC_TAB. CLEAR BDC_TAB.
       MOVE: 'BDC_OKCODE'  TO  BDC_TAB-FNAM,                 "OK-CODE
              '/00 '        TO  BDC_TAB-FVAL.
       APPEND BDC_TAB. CLEAR BDC_TAB.
       move 'SAPMV45A' to BDC_TAB-PROGRAM.
       move '4001'     to BDC_TAB-DYNPRO.
       move 'X'        to BDC_TAB-DYNBEGIN.
       APPEND BDC_TAB. CLEAR BDC_TAB.
       MOVE: 'BDC_OKCODE'  TO  BDC_TAB-FNAM,                 "OK-CODE
              'KKAU '      TO  BDC_TAB-FVAL.
       APPEND BDC_TAB. CLEAR BDC_TAB.
       move 'SAPMV45A' to BDC_TAB-PROGRAM.
       move '4002'     to BDC_TAB-DYNPRO.
       move 'X'        to BDC_TAB-DYNBEGIN.
       APPEND BDC_TAB. CLEAR BDC_TAB.
       select single * from *KNVI into *KNVI where KUNNR = vbak-kunnr
                                               and ALAND = 'TR'
                                               and TATYP = 'MWST'
                                               and TAXKD = '2'.
       if sy-subrc =  0.
          exit.
       endif.
       move: 'VBAK-WAERK'  to BDC_TAB-FNAM,               "Currency
             'YTL '        to BDC_TAB-FVAL.
             APPEND BDC_TAB. CLEAR BDC_TAB.
       write sy-datum to hf-date.
       move: 'VBAK-AUDAT'  to BDC_TAB-FNAM,                   "Doc.Number
              hf-date      to BDC_TAB-FVAL.
       APPEND BDC_TAB. CLEAR BDC_TAB.
       move: 'VBKD-PRSDT'  to BDC_TAB-FNAM,                   "Doc.Number
              hf-date      to BDC_TAB-FVAL.
       APPEND BDC_TAB. CLEAR BDC_TAB.
       MOVE: 'BDC_OKCODE'  TO  BDC_TAB-FNAM,                  "OK-CODE
              '/11 '        TO  BDC_TAB-FVAL.
       APPEND BDC_TAB. CLEAR BDC_TAB.
       CALL TRANSACTION 'VA02'
            USING BDC_TAB MODE Z_MODE UPDATE 'S'
                  MESSAGES INTO BDC_MSG.
         IF SY-SUBRC NE 0.
            clear bdc_tab. refresh bdc_tab.
         endif.
      endif.
    endif.
    ENDFORM.                    " change_order_va02
    Regards,
    Venkat

    ans

  • How to create bindings at runtime for Dynamic Tables ?

    We have lot of Dynamic tables, In ADF, we need to try out the Dynamic EO, Dynamic VO, Dynamic DataControl and Dynamic binding for UI
    Ex:
    We need to load the data to the ADF table where database table name is dynamic, the columns in the tables are also dynamic. At runtime , we need to create VO, Dynamic binding and display to UI? We also should be able to add, delete,update records in the dynamic tables.
    Does anyone done this before? Please shared your thoughts on this

    Hi,
    for a table you can declaratively build a tree binding. Then you remove all the attribute items in the tree definition so that the number of attributes is dynamic. See: https://blogs.oracle.com/groundside/entry/towards_ultra_reusability_for_adf
    Frank

Maybe you are looking for

  • BlueTooth driver installation bluescreen "VIDEO_DXGKRNL_FATAL_ERROR" on Windows 8.1 ENT

    Dears, My new Lenovo ThinkPad E440  turns into a blue screen with the error code: VIDEO_DXGKRNL_FATAL_ERROR when im trying to install the bluetooth driver using Lenovo System Update Program or using the downloaded package "Realtek RTL8723BE Bluetooth

  • MyRIO VISA Error -1073807192

    Hi Everyone, My problem is as follows: my myRIO can successfully see a Hokuyo URG-04LX module that I've connected to the USB host port. However, when using VISA Open Resource, I receive the following error: -1073807192: VISA:  (Hex 0xBFFF00A8) Access

  • Mac Mini "Fatal" Crash

    Hi all, I've been having trouble with my Mac Mini over the last 2 days, yesterday, receiving the grey box with "you must restart your computer" message 4 times! After restarting, I am informed that OS X quit unexpectedly. This has only started happen

  • Macbook Pro Retina upgrade questions.

    Hey guys, A warm hello. This is my very first post on the community, and i feel privildged to be here. Been an iPhone user since gen 1, now want to extend my love to MacBook Pro Retina. I am planning on getting the rMBP 15.5" 2.6Ghz, 16GB RAM, 256 Fl

  • Oracle: strange ORDER BY result

    We're loading some data with a select clause from an oracle 8.1.7 and sorting the data by adding an "ORDER BY F_NAME" to the query. On our development app server this runs fine and returns the expected result, but on out test app server the order dep