REF in a trigger

I want to store in a table A a REF to each row that is inserted on a table B.
I created a trigger on table B, but I can't find a way to get a REF to the new row (:new).
Is there a direct way? I tried to use a SELECT command but I get an error - can't access a mutating table.
Thanks,
Aruanda

Aruanda,
hope it will help
CREATE OR REPLACE TRIGGER Test
Before insert on Tabele_B
For each row
Begin
UPDATE Table_A set column_table_A = :new.column_table_B
WHERE ---condition.....;
End;
thanks.

Similar Messages

  • Want to trigger the workflow from MIGO

    Hi Experts,
          I want to trigger the workflow from MIGO transaction and should handle the created material document number (i.e. I am doing the goods receipt for the process order, when he post it, the material document details (material doc number) should be mailed immediately when it is created). Please give me the suggestions for the same.
    Thanks & Regards,
    Ravi.

    Dear Ravi,
    Please refer this link [Trigger workflow from MIGO tcode|Trigger workflow in MIGO Tcode;.
    KR,
    Bharath

  • How to reset an failed asynchron abap-process in a process-chain?

    Hi specialists,
    I've got a process-chain which triggers (as one of its steps) an abap-program.
    The program should run asychroniously, so the process-chain waits until the programm reports its ending.
    When the abap-program fails/crashes/dumps, then the endings is never reported and the process-chain gets stuck.
    If I try to re-run that process-chain, it fails again with the message "Variant XYZ still executing from previous run".
    What I already found so far is the following note:
    The process chain management will not know if your program terminates!
    Thus if you re-start the chain, this will also terminate, because the old run would not have finished yet. To avoid this, you need to manually set the process in the chain log view in the process monitor to terminate before you start again.
    My problem: I cannot find any possibility to set the process to "terminate" in the chain's log view.
    Could you please gimme a hint where I can find that option?
    Best regards,
      Marco

    Hi,
    You can remove the process chain from scheduling before staring the process chain again.
    Also can edit the entries in RSPROCESSLOG table before running the process chain.
    Alternatively you can create a custom ABAP process type which handles the success as well as fail cases.
    Refer : [How To- Trigger subsequent processes in a Process Chain based on the Success or Failure of ABAP program|/people/balaji.venugopal/blog/2009/04/07/how-to-trigger-subsequent-processes-in-a-process-chain-based-on-the-success-or-failure-of-abap-program]
    Hope this helps,
    Regards,
    anil

  • Event on customer Z** table

    Hello!
    I have got a customer Z** table. How can I do workflow that will start when this table rows add or change?
    Thanks for you help!

    HI,
    I think your requirement can be done using CDO (Change document Objects)
    At data element level for the field values you want to log, in Further Characteristics Tab , check the Change Document check box.
    Create a custom change document object for your table and then trigger the workflow using CDO.
    For more please refer this article [Trigger WF using Custom CDO|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/80ddeba4-e780-2b10-7bb2-fc7a33efabbd;jsessionid=(J2EE3414700)ID2055518550DB20097956748016851379End]
    Hope this solves your issue...!
    Regards
    Narin

  • Re-Work Order

    Hi,
    For a product, I had maintained Ref. of Set, trigger point in last operation. I did operation confirmation and maintained yeild and re-work quantity. System creates a re-work order and when i release the same, i am getting an error  " Scheduling Parameters are not defined for production Order". But i had maintained the required parameters for detailed sheduling in OPU3.
    please guide me were i am going wrong?
    Regards,
    Suresh ' D.

    Dear,
    Check this order type whether linked with respective plant in OPU3.*And give production scheduler * mark ie, all.*
    And in Define production scheduling profile - OPKP, link your order type at bottom
    Please refer this also,
    Scheduling parameters not defined for Production orders
    Regards,
    R.Brahmankar

  • UCCX Outbound IVR Port License Requirements

    Hi, trying to figure out how many Outbound IVR port licenses are needed.
    UCCX dials out, call is answered with a live voice, UCCX transfers to Application Trigger. No agent available, call is queued.  At this point 1 Outbound IVR license is used.  
    Agent becomes available and call is transferred to Agent.  At this point is the licensed port returned or is the license consumed until the agent hangs up?
    Thanks.

    Hi Chris
    I dont think the outbound license will be held till agent answers the call.
    Here's when outbound licenses will be released:
    1. Outbound subsystem calls a contact, live voice is detected, dialer does a refer to agents extension via gateway-sip trunk - CUCM. At this point, outbound port is free and agent takes the call
    2. Outbound subsystem calls a contact, live voice is detected, dialer does a refer to IVR trigger. Outbound port is released. Here, the outbound contact is now connected to one of the inbound CTI ports which are associated to the IVR trigger
    In summary, as soon as outbound port does a successful SIP Refer transfer, the outbound port is free to be used for next contact.
    Regards
    Shikhar

  • How to refer the trigger written in one form from another form ?

    How to refer the trigger written in one form from another form ?
    Thanks,
    Ravi Shankar

    Try to convert the PL/SQL code from Forms trigger into a PL/SQL library(.PLL),
    and then attach that PLL in your forms.
    Note that all Forms objects should be referenced indirectly, for example,
    you have to rewrite
    :B1.DEPT_CODE := :B2.DEPT_CODE;
    :B3.TOTAL_AMOUNT := 100;
    ==>
    copy('B2.DEPT_NO','B1.DEPT_NO');
    copy('100','B3.TOTAL_AMOUNT');
    This is the best way to share PL/SQL code among Oracle Forms.

  • Ref. Operation Set for Trigger Point

    Friends,
    I m doing Trigger points in CO11N. Production Order quantity is 10. While confirmation yield qty. 7 & rework qty is 3. After saving trigger point function pop up but after pop up of ref. operation set, i m selecting Group and Task list type, system displayed *Ref. operation set ********** is not valid according to selection conditions.*
    In CA02 change  routing I hav done all settings of trigger points and created Ref. op. set by CA11.
    Pl. guide.......

    Dear,
    Kindly change order type dependent parameters(TCode OPL8), and check routing selection (3 Routing/ref. op. set optional (automatic selection))
    and task list type S     Reference Operation Set.
    check and revert back.
    Thanks
    Muhammad Ashfaq
    Edited by: Muhammad Ashfaq on Sep 10, 2011 1:46 PM

  • Unable to trigger my event

    dear experts,
                            I need to add some extra features to title bar of my alv report.i got some documents and iam trying on that.Here in my program its displaying the newly created icon but when i click on that icon its not displaying or teriigering my event -
    class lcl_event_receiver definition deferred.
    TYPE-POOLS: ICON.
    data: con type ref to cl_gui_custom_container,
          gr_alvgrid type ref to cl_gui_alv_grid.
    DATA: ITAB_EXCLUDE TYPE UI_FUNCTIONS.
    DATA: WA_EXCLUDE TYPE UI_FUNC.
    data: it_toolbar  TYPE stb_button.
    data: begin of itab occurs 0.
            include structure mara.
    data: end of itab.
    data: event_receiver TYPE REF TO LCL_EVENT_RECEIVER.
    select * from mara into table itab.
    call screen 1000.
          CLASS lcl_event_receiver DEFINITION
    CLASS lcl_event_receiver DEFINITION.
      PUBLIC SECTION.
        class-methods: handle_toolbar for event toolbar of cl_gui_alv_grid importing e_object e_interactive,
        handle_menu_buttons for event menu_button of cl_gui_alv_grid importing e_object e_ucomm,
        handle_USER_COMMAND for event user_command   of cl_gui_alv_grid importing e_ucomm.
    ENDCLASS.                    "lcl_event_receiver DEFINITION
          CLASS lcl_event_receiver IMPLEMENTATION
    CLASS lcl_event_receiver implementation.
      method handle_toolbar.
        move 'DETAIL-TAIL' TO IT_TOOLBAR-FUNCTION.
        MOVE ICON_DETAIL TO IT_TOOLBAR-ICON.
        MOVE 2 TO IT_TOOLBAR-BUTN_TYPE.
        APPEND IT_TOOLBAR TO E_OBJECT->MT_TOOLBAR.
      ENDMETHOD.                    "handle_toolbar
      METHOD HANDLE_MENU_BUTTONS.
        IF E_UCOMM = 'DETAIL'.
          CALL METHOD e_object->add_function
            EXPORTING
              fcode = 'DISPLAY'
              text  = 'DISPLAY'.
        ENDIF.
      ENDMETHOD.                    "HANDLE_MENU_BUTTONS
      METHOD handle_user_command.
        CASE e_ucomm.
          WHEN 'DISPLAY'.
            MESSAGE 'Menu Clicked' TYPE 'I'.
        ENDCASE.
      ENDMETHOD.                           "handle_user_command
    ENDCLASS.                    "lcl_event_receiver IMPLEMENTATION
    MODULE STATUS_1000 OUTPUT
    MODULE STATUS_1000 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
      CREATE OBJECT CON
        EXPORTING
       PARENT                      =
          CONTAINER_NAME              = 'CO_CON'
       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 ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CREATE OBJECT GR_ALVGRID
        EXPORTING
        I_SHELLSTYLE      = 0
        I_LIFETIME        =
          I_PARENT           =  CON
        I_APPL_EVENTS     = space
        I_PARENTDBG       =
        I_APPLOGPARENT    =
        I_GRAPHICSPARENT  =
        I_NAME            =
        I_FCAT_COMPLETE   = SPACE
      EXCEPTIONS
        ERROR_CNTL_CREATE = 1
        ERROR_CNTL_INIT   = 2
        ERROR_CNTL_LINK   = 3
        ERROR_DP_CREATE   = 4
        others            = 5
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      WA_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_MAXIMUM.
      APPEND WA_EXCLUDE TO ITAB_EXCLUDE.
      WA_EXCLUDE = CL_GUI_ALV_GRID=>MC_mb_SUM.
      APPEND WA_EXCLUDE TO ITAB_EXCLUDE.
      CALL METHOD GR_ALVGRID->SET_TABLE_FOR_FIRST_DISPLAY
        EXPORTING
       I_BUFFER_ACTIVE               =
       I_BYPASSING_BUFFER            =
       I_CONSISTENCY_CHECK           =
          I_STRUCTURE_NAME              = 'MARA'
       IS_VARIANT                    =
       I_SAVE                        =
       I_DEFAULT                     = 'X'
       IS_LAYOUT                     =
       IS_PRINT                      =
       IT_SPECIAL_GROUPS             =
          IT_TOOLBAR_EXCLUDING          = ITAB_EXCLUDE
       IT_HYPERLINK                  =
       IT_ALV_GRAPHICS               =
       IT_EXCEPT_QINFO               =
       IR_SALV_ADAPTER               =
        CHANGING
          IT_OUTTAB                     = ITAB[]
       IT_FIELDCATALOG               =
       IT_SORT                       =
       IT_FILTER                     =
    EXCEPTIONS
       INVALID_PARAMETER_COMBINATION = 1
       PROGRAM_ERROR                 = 2
       TOO_MANY_LINES                = 3
       others                        = 4
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CREATE OBJECT event_receiver.
      SET HANDLER event_receiver->handle_user_command
                  event_receiver->handle_menu_buttons
                  event_receiver->handle_toolbar FOR ALL INSTANCES.  "*Calling the interactive toolbar method of ALV
      CALL METHOD GR_ALVGRID->set_toolbar_interactive.
    ENDMODULE.                 " STATUS_1000  OUTPUT
    *&      Module  USER_COMMAND_1000  INPUT
          text
    MODULE USER_COMMAND_1000 INPUT.
    ENDMODULE.                 " USER_COMMAND_1000  INPUT

    hi marcin, thanks a lot for your help..i have coded but still unable to trigger user_commaned method.Could you check this in your machine-
    class lcl_event_receiver definition deferred.
    TYPE-POOLS: ICON.
    data: con type ref to cl_gui_custom_container,
          gr_alvgrid type ref to cl_gui_alv_grid.
    DATA: ITAB_EXCLUDE TYPE UI_FUNCTIONS.
    DATA: WA_EXCLUDE TYPE UI_FUNC.
    data: it_toolbar  TYPE stb_button.
    data: begin of itab occurs 0.
            include structure mara.
    data: end of itab.
    data: event_receiver TYPE REF TO LCL_EVENT_RECEIVER.
    select * from mara into table itab.
    call screen 1000.
          CLASS lcl_event_receiver DEFINITIONL
    CLASS lcl_event_receiver DEFINITION.
      PUBLIC SECTION.
        class-methods:
        handle_menu_buttons for event menu_button of cl_gui_alv_grid importing e_object e_ucomm,
        handle_USER_COMMAND for event user_command   of cl_gui_alv_grid importing e_ucomm,
    handle_toolbar for event toolbar of cl_gui_alv_grid importing e_object e_interactive.
    ENDCLASS.                    "lcl_event_receiver DEFINITION
          CLASS lcl_event_receiver IMPLEMENTATION
    CLASS lcl_event_receiver implementation.
      method handle_toolbar.
        move 'DETAIL-TAIL' TO IT_TOOLBAR-FUNCTION.
        MOVE ICON_DETAIL TO IT_TOOLBAR-ICON.
        MOVE 2 TO IT_TOOLBAR-BUTN_TYPE.
        APPEND IT_TOOLBAR TO E_OBJECT->MT_TOOLBAR.
      ENDMETHOD.                    "handle_toolbar
      METHOD HANDLE_MENU_BUTTONS.
        IF E_UCOMM = 'DETAIL-TAIL'.
          CALL METHOD e_object->add_function
            EXPORTING
              fcode = 'DISPLAY-TAIL'
              text  = 'DISPLAY'.
        ENDIF.
      ENDMETHOD.                    "HANDLE_MENU_BUTTONS
      METHOD handle_user_command.
        CASE E_UCOMM.
          WHEN 'DISPLAY-TAIL'.
            MESSAGE 'THESE IS TEST EVENT' TYPE 'I'.
            ENDCASE.
            ENDMETHOD.
            ENDCLASS.
    MODULE STATUS_1000 OUTPUT
    MODULE STATUS_1000 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    CREATE OBJECT CON
        EXPORTING
       PARENT                      =
          CONTAINER_NAME              = 'CO_CON'
       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 ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CREATE OBJECT GR_ALVGRID
        EXPORTING
        I_SHELLSTYLE      = 0
        I_LIFETIME        =
          I_PARENT           =  CON
        I_APPL_EVENTS     = space
        I_PARENTDBG       =
        I_APPLOGPARENT    =
        I_GRAPHICSPARENT  =
        I_NAME            =
        I_FCAT_COMPLETE   = SPACE
      EXCEPTIONS
        ERROR_CNTL_CREATE = 1
        ERROR_CNTL_INIT   = 2
        ERROR_CNTL_LINK   = 3
        ERROR_DP_CREATE   = 4
        others            = 5
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      WA_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_MAXIMUM.
      APPEND WA_EXCLUDE TO ITAB_EXCLUDE.
      WA_EXCLUDE = CL_GUI_ALV_GRID=>MC_mb_SUM.
      APPEND WA_EXCLUDE TO ITAB_EXCLUDE.
    CALL METHOD GR_ALVGRID->SET_TABLE_FOR_FIRST_DISPLAY
        EXPORTING
       I_BUFFER_ACTIVE               =
       I_BYPASSING_BUFFER            =
       I_CONSISTENCY_CHECK           =
          I_STRUCTURE_NAME              = 'MARA'
       IS_VARIANT                    =
       I_SAVE                        =
       I_DEFAULT                     = 'X'
       IS_LAYOUT                     =
       IS_PRINT                      =
       IT_SPECIAL_GROUPS             =
          IT_TOOLBAR_EXCLUDING          = ITAB_EXCLUDE
       IT_HYPERLINK                  =
       IT_ALV_GRAPHICS               =
       IT_EXCEPT_QINFO               =
       IR_SALV_ADAPTER               =
        CHANGING
          IT_OUTTAB                     = ITAB[]
       IT_FIELDCATALOG               =
       IT_SORT                       =
       IT_FILTER                     =
    EXCEPTIONS
       INVALID_PARAMETER_COMBINATION = 1
       PROGRAM_ERROR                 = 2
       TOO_MANY_LINES                = 3
       others                        = 4
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CREATE OBJECT event_receiver.
      SET HANDLER  event_receiver->handle_menu_buttons
                  event_receiver->handle_toolbar
                  event_receiver->handle_user_command
                  FOR ALL INSTANCES.
      CALL METHOD GR_ALVGRID->set_toolbar_interactive.
    ENDMODULE.                 " STATUS_1000  OUTPUT
    *&      Module  USER_COMMAND_1000  INPUT
          text
    MODULE USER_COMMAND_1000 INPUT.
    ENDMODULE.                 " USER_COMMAND_1000  INPUT

  • How to trigger a pop-up on click of dial button on IC web UI  - CRM 7.0

    I want to enahcne the standard button 'Dial' that is displayed on Interaction center web UI.
    I am trying to show a custom popup with list of phone numbers of the BP for the sales agent to select from.
    I created the custom component to display the data but I am not able to locate the event handler to trigger the pop-up from.
    Can anybody help me with this?
    Thanks in advance,
    Nalini.

    Hi Ram,
    I am still facing problems in the same. I am doing the steps as below.
    Please see if there is anything wrong or anything else that I need to do.   In my case, the method IF_CRM_IC_EVENT_LISTENER~HANDLE_EVENT for the custom controller is not getting triggered where i am handling the event.
    Do I need to call the same explicitly?
    Class: ZL_CRMCMP_I_CUCOHIDDENVIE_IMPL
    Attribute: G_INSTANCE   Static Attribute    Private  Type Ref To     ZL_CRMCMP_I_CUCOHIDDENVIE_IMPL
    Method :  GET_INSTANCE   Static Method   Public
    parameters: RV_INSTANCE   Returning  Type Ref To   ZL_CRMCMP_I_CUCOHIDDENVIE_IMPL
    code:
      if g_instance is not bound.
    create object g_instance.
    endif.
    rv_instance = g_instance.
    Method CONSTRUCTOR.
    Code:
    CALL METHOD SUPER->CONSTRUCTOR
    constants: lc_start_event type string value 'InteractionEnded'.
    data: lr_event_service type ref to cl_crm_ic_event_srv.
    subsrbing for the event.
    lr_event_service ?= cl_crm_ic_services=>get_event_srv_instance( ).
    check whether the service is bound.
    if lr_event_service is bound.
    call method lr_event_service->if_crm_ic_event_srv~subscribe
    exporting
    event_name = lc_start_event
    listener = me.
    endif.
    method IF_CRM_IC_EVENT_LISTENER~HANDLE_EVENT.
    data: name type string.
      name = event->get_name( ).
    CASE name.
      WHEN 'END'.
                 code to create pop up
      WHEN OTHERS.
    ENDCASE.
    Enhanced class : CL_CRMCMP_I_HIDDENVIEW_IMPL
    If i create the post exit for method DO_INIT, it is not triggered when the END button is clicked.
    Post Exit for method IF_CRM_IC_EVENT_LISTENER~HANDLE_EVENT
    code:
    data:lr_inst type ref to zl_crmcmp_i_cucohiddenvie_impl.
    CALL METHOD zl_crmcmp_i_cucohiddenvie_impl=>get_instance
    receiving
    rv_instance = lr_inst
    Please help me. I need to deliver this ASAP. My exact requiremnt is to dispaly a pop up wen END button is clicked. If user selects Yes, the data shall be saved  as per the standard functionality of the END button and I he selects No, then the data shall not be saved
    Thanks in advance,
    Alka Gangal

  • Trigger Between two DB located on different Server

    Hi Everyone,
    According to my project requirement I need your help to create a trigger on one table employee of my 10g DB located on server 172.128.1.62, which will trigger for any Delete, Update and Insert and update the same on its duplicate table located on different server(172.128.1.201).
    Eg:
    Table EMPLOYEE (on 172.128.1.62) refer as A
    SrNo        E_Name      Salary
    1             Fizzz           5000
    2             Albert        8000
    3             John          6500
    Table EMPLOYEE (on 172.128.1.201) refer as B
    SrNo        E_Name      Salary
    1             Fizzz           5000
    2             Albert        8000
    3             John          6500
    Now If I update table A and change salary of John from 6500 to 7000 and delete Employee Fizzz from table A
    Then I need a trigger to get fired and update the same in table B
    After table A updated table B should look like:
    Table EMPLOYEE (on 172.128.1.201) refer as B
    SrNo        E_Name      Salary
    1             Albert        8000
    2             John          7000
    I already scratch my head but did not find anything, Now this is became very critical requirement, Please somebody help me to achieve this task.
    Thank you very much,
    Fizzz. Edited by: Fizzz on Sep 22, 2011 4:36 PM

    I would not consider doing it myself with triggers. It will practically be guaranteed that at some point in time your data in B will by out of sync with A.
    There are several methods of doing replication. At least two technologies can be chosen from:
    [url http://download.oracle.com/docs/cd/E11882_01/server.112/e10706/toc.htm]Advanced replication
    [url http://download.oracle.com/docs/cd/E11882_01/server.112/e10705/toc.htm]Streams replication
    Both can be setup in various ways ranging from simple two-database one-way replication that refreshes periodically (for example a fast refreshable materialized view) to multi-database multi-way replication of complete schemas.
    We have had success with relatively simple materialized views for one-way replication of tables from one database to another. Read chapter 3 in the Advanced replication guide ;-)

  • How to open a Ref cursor in Oracle Reports

    I have a stored procedure that returns a ref cursor as an output parameter. I want to call this stored procedure in Oracle Reports After Form trigger. I am having trouble with the syntax of the output parameter. Event_record is the name of the cursor.
    After Form Trigger
    pkg_DEAL_WHITESHEET_CONCERTS.prc_Event_Information(:p_field_6,event_record);
    Error: Event_record must be declared

    Re-Write the procedure as Package Spec and Body. Declare the REFCursor in the Package Spec. Probably that helps.

  • How can I use the hardware compare feature of the 6551 card to trigger scripts

    I can dynamically and seamlessly generate different waveforms by triggering different scriptTriggers that drive one or more of the 4 PFI lines. However, I need to evaluate a channel at a specific location or locations set by a script marker in real-time and generate a different waveform stored in on-board memory based on the result of the evaluation. I have attempted to use the hardware compare feature without any success. I am trying to dynamically respond to an I2C device based on the ACKs or NACK response of the device under test. Can the 6551 card accomplish this? Has anyone successfully tested an I2C or SMBus communication stream with 6551 card?

    Hello,
    I can understand why hardware compare did not work out for you application.  Hardware compare uses a signal that was generated to make a digital pattern and then waits a few clock cycles before acquiring the signal that needs to be compared to the digital pattern. 
    I would look into using a script trigger to evaluate the channel value, where the script structure controls when it is evaluated.  Please note that script triggers will need to be cleared after they are detected for reasserting.  Some script syntax actually clear the script trigger and then use a wait until script trigger structure.  Please refer to the HS DIO Help for documentation on Common Scripting Use Cases. 
    Please provide us with further details about your application.  The more information, the better!  I was not too clear on what you where wanting to evaluate and where is it coming from. 
    I would also like to mention that National Instruments has a NI USB 8451 which is capable of I2C communication.
    NI USB 8451
    Samantha
    National Instruments
    Applications Engineer

  • How to trigger pop-up window in report and update data base from report

    Hi All,
    I have a requirement, in a report output list to trigger a pop up window with some rejection codes corresponding to each sales order when i select from the output list. Also i need to update data base by selecting one of the rejection code in the pop-up window list for that sales order. Can any one please let me know how to achive this.
    Also, i have check boxes for each record in the output list. Also, i have added one more check box as "Select All'. When select 'Sleect All' check box , all check boxes need to be checked, how to achieve this. PLease let me know.
    Thanks in advance.
    Regards,
    Rajesh

    Hi check this code of editable ALV report... I updated the data base with the changes made..in the editable ALV
    *& Report ZJAY_EDIT_ALV
    REPORT zjay_edit_alv.
    * TYPE-POOLS *
    TYPE-POOLS: slis.
    * INTERNAL TABLES/WORK AREAS/VARIABLES
    DATA: i_fieldcat TYPE slis_t_fieldcat_alv,
    i_index TYPE STANDARD TABLE OF i WITH HEADER LINE,
    w_field TYPE slis_fieldcat_alv,
    p_table LIKE dd02l-tabname,
    dy_table TYPE REF TO data,
    dy_tab TYPE REF TO data,
    dy_line TYPE REF TO data.
    * FIELD-SYMBOLS *
    FIELD-SYMBOLS: <dyn_table> TYPE STANDARD TABLE,
    <dyn_wa> TYPE ANY,
    <dyn_field> TYPE ANY,
    <dyn_tab_temp> TYPE STANDARD TABLE.
    * SELECTION SCREEN *
    PARAMETERS: tabname(30) TYPE c DEFAULT 'MARA',
    lines(5) TYPE n DEFAULT 7.
    * START-OF-SELECTION *
    START-OF-SELECTION.
    * Storing table name
    p_table = tabname.
    * Create internal table dynamically with the stucture of table name
    * entered in the selection screen
    CREATE DATA dy_table TYPE STANDARD TABLE OF (p_table).
    ASSIGN dy_table->* TO <dyn_table>.
    IF sy-subrc <> 0.
    MESSAGE i000(z_zzz_ca_messages) WITH ' No table found'.
    LEAVE TO LIST-PROCESSING.
    ENDIF.
    * Create workarea for the table
    CREATE DATA dy_line LIKE LINE OF <dyn_table>.
    ASSIGN dy_line->* TO <dyn_wa>.
    * Create another temp. table
    CREATE DATA dy_tab TYPE STANDARD TABLE OF (p_table).
    ASSIGN dy_tab->* TO <dyn_tab_temp>.
    SORT i_fieldcat BY col_pos.
    * Select data from table
    SELECT * FROM (p_table)
    INTO TABLE <dyn_table>
    UP TO lines ROWS.
    REFRESH <dyn_tab_temp>.
    * Display report
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    i_structure_name = p_table
    i_callback_user_command = 'USER_COMMAND'
    i_callback_pf_status_set = 'SET_PF_STATUS'
    TABLES
    t_outtab = <dyn_table>
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    ENDIF.
    *& Form SET_PF_STATUS
    * Setting custom PF-Status
    * -->RT_EXTAB Excluding table
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.
    SET PF-STATUS 'ZSTANDARD'. "copy it from SALV func group standard
    ENDFORM. "SET_PF_STATUS
    *& Form user_command
    * Handling custom function codes
    * -->R_UCOMM Function code value
    * -->RS_SELFIELD Info. of cursor position in ALV
    FORM user_command USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield.
    * Local data declaration
    DATA: li_tab TYPE REF TO data,
    l_line TYPE REF TO data.
    * Local field-symbols
    FIELD-SYMBOLS:<l_tab> TYPE table,
    <l_wa> TYPE ANY.
    * Create table
    CREATE DATA li_tab TYPE STANDARD TABLE OF (p_table).
    ASSIGN li_tab->* TO <l_tab>.
    * Create workarea
    CREATE DATA l_line LIKE LINE OF <l_tab>.
    ASSIGN l_line->* TO <l_wa>.
    CASE r_ucomm.
    * When a record is selected
    WHEN '&IC1'.
    * Read the selected record
    READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX
    rs_selfield-tabindex.
    IF sy-subrc = 0.
    * Store the record in an internal table
    APPEND <dyn_wa> TO <l_tab>.
    * Fetch the field catalog info
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    i_program_name = sy-repid
    i_structure_name = p_table
    CHANGING
    ct_fieldcat = i_fieldcat
    EXCEPTIONS
    inconsistent_interface = 1
    program_error = 2
    OTHERS = 3.
    IF sy-subrc = 0.
    * Make all the fields input enabled except key fields
    w_field-input = 'X'.
    MODIFY i_fieldcat FROM w_field TRANSPORTING input
    WHERE key IS INITIAL.
    ENDIF.
    * Display the record for editing purpose
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    i_structure_name = p_table
    it_fieldcat = i_fieldcat
    i_screen_start_column = 10
    i_screen_start_line = 15
    i_screen_end_column = 200
    i_screen_end_line = 20
    TABLES
    t_outtab = <l_tab>
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    IF sy-subrc = 0.
    * Read the modified data
    READ TABLE <l_tab> INDEX 1 INTO <l_wa>.
    * If the record is changed then track its index no.
    * and populate it in an internal table for future
    * action
    IF sy-subrc = 0 AND <dyn_wa> <> <l_wa>.
    <dyn_wa> = <l_wa>.
    i_index = rs_selfield-tabindex.
    APPEND i_index.
    ENDIF.
    ENDIF.
    ENDIF.
    * When save button is pressed
    WHEN 'SAVE'.
    * Sort the index table
    SORT i_index.
    * Delete all duplicate records
    DELETE ADJACENT DUPLICATES FROM i_index.
    LOOP AT i_index.
    * Find out the changes in the internal table
    * and populate these changes in another internal table
    READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX i_index.
    IF sy-subrc = 0.
    APPEND <dyn_wa> TO <dyn_tab_temp>.
    ENDIF.
    ENDLOOP.
    * Lock the table
    CALL FUNCTION 'ENQUEUE_E_TABLE'
    EXPORTING
    mode_rstable = 'E'
    tabname = p_table
    EXCEPTIONS
    foreign_lock = 1
    system_failure = 2
    OTHERS = 3.
    IF sy-subrc = 0.
    * Modify the database table with these changes
    MODIFY (p_table) FROM TABLE <dyn_tab_temp>.
    REFRESH <dyn_tab_temp>.
    * Unlock the table
    CALL FUNCTION 'DEQUEUE_E_TABLE'
    EXPORTING
    mode_rstable = 'E'
    tabname = p_table.
    ENDIF.
    ENDCASE.
    rs_selfield-refresh = 'X'.
    ENDFORM. "user_command

  • How to get added columns in the after DDL trigger?

    As title, I want to get information, like name/type/.., about the added columns by sql statement "alter table *** add (***)" in the after ddl trigger. But looks like dba_tab_columns view doesn't include the added columns.
    Thanks

    Hi
    Hi try other versions of the trigger like
    create or replace trigger addl_trigger
    after alter on schema
    declare
    TYPE attrs_cur IS REF CURSOR;
    m_cur attrs_cur;
    m_event varchar2(50);
    m_user varchar2(50);
    m_owner varchar2(50);
    m_user1 varchar2(50);
    m_type varchar2(50);
    m_name varchar2(50);
    m_column varchar2(50);
    m_cnt NUMBER;
    m_stmt varchar2(512);
    number_of_modified_objects BINARY_INTEGER;
    t ora_name_list_t;
    begin
    m_event:=ora_sysevent;
    m_user:=SYS_CONTEXT('USERENV','SESSION_USER');
    m_user1:=ora_login_user;
    m_owner:=ora_dict_obj_owner;
    m_type:=ora_dict_obj_type;
    m_name:=ora_dict_obj_name;
    if (m_type='TABLE' and m_event='ALTER')
    then
              execute immediate 'select count(*) from dba_tab_columns where owner=:1 and table_name=:2' into m_cnt
              using m_owner,m_name;
              insert into log values (m_cnt);
              dbms_output.put_line('->'||m_cnt);
              OPEN m_cur FOR 'select c.name from sys.col$ c, sys.obj$ o, sys.user$ u where o.obj# = c.obj# and o.owner# = u.user# and u.name=:1 and o.name=:2' using m_owner,m_name;
              LOOP
                        FETCH m_cur INTO m_stmt;
                        EXIT WHEN m_cur%NOTFOUND;
                        insert into log values (m_stmt);
                        --dbms_output.put_line(m_stmt||'**************');
                        END LOOP;
    end if;
    but all versions continue to insert only the already existing columns. I think that Oracle actualize the dictionary first after this system event.
    Bye, Aron

Maybe you are looking for