Processing changes in Syabse database table

Can someone help me understand best way to process changes on a database table using XI?
I'm crrently doing this using webmethods where webmethods generates a xml document whenever a row is inserted in a database using adapter notification mechanism. Then I can process this document by calling webservice.

Thx Naveen,
e.g. I insert a customer record in Sybase system, I would like that XI interface would insert same customer in SAP or another Database system and this should happen as a result in insert in Sybase table.
Other way I can already achive this is by having XI look in a sybase table periodicaly and see if there are new rows of data added to the table since it last looked and then process those rows accordingly. I don't want to use this approach since it keeps looking at certain intervals and most of the time there won't be anything for it to process. Also when there is something to process, it will not be processed instanteneously but only when XI looks at the table next time around.
This is whole debate about pushing data v/s polling for changes. I would like to push the info at the time data is inserted in sybase table instead of having to poll for it.
appreciate your response.

Similar Messages

  • How to send  changes in the Database Table Periodically using Change Pointe

    Hi,
           How to send  changes in the Database Table to the external system Periodically using Change Pointers.
    Thanks & Regards,
    Gopi.

    That depends on what table you are referring to.

  • Noftification or warning after change of one database table field

    HI
    i want to send a warning or notification , when one field in a table changed with a database after update trigger and show the message to user in application layer
    in more detaile
    when user insert or update table1 then a trigger changes table2. and i want after this change,if the value of one attribute of table2 was equal  to a query result then it send a message to user in application layer
    what can i send this message
    jdeveloper 11.1.2.2.0
    database 11

    HI
    i want to send a warning or notification , when one field in a table changed with a database after update trigger and show the message to user in application layer
    in more detaile
    when user insert or update table1 then a trigger changes table2. and i want after this change,if the value of one attribute of table2 was equal  to a query result then it send a message to user in application layer
    what can i send this message
    jdeveloper 11.1.2.2.0
    database 11

  • To find out user who has created or deleted entries in a database table

    Hi,
    I have a scenario where i have many entries for t001w table and somehow a new plant is created and existing plant is deleted , Now I need to know
    how to find out which user on what date has done these changes to the database table.
    Thanks
    Srikanth

    Hi,
    Go to the transcation  SCU3   and click on evaluate the changes log click yes  and then
    evalute log then enter ur table name ,don't forget to check the radio button evaluate for "TABLES" and then execute
    you will find details like this
    arameters for Analysis:
            System ID:            D60
            SAP Release:          700
            Client:               730
            Date :                28.04.2010
            Time:                 16:09:09
            User:                 DEVELOPER01
    elected Period:
            From (date/time)      22.04.2010 00:00:00
            To (date/time)        28.04.2010 16:07:51
    o logs found for the selected period
    o authorization group containing the following tables:
    zFEED_QUES_MASTR

  • Help with creating a sql file that will capture any database table changes.

    We are in the process of creating DROP/Create tables, and using exp/imp data into the tables (the data is in flat files).
    Our client is bit curious to work with. They do the alterations to their database (change the layout, change the datatype, drops tables) without our knowing. This has created a hell lot of issues with us.
    Is there a way that we can create a sql script which can capture any table changes on the database, so that when the client trys to execute imp batch file, the sql file should first check to see if any changes are made. If made, then it should stop execution and give an error message.
    Any help/suggestions would be highly appreciable.
    Thanks,

    Just to clarify...
    1. DDL commands are like CREATE, DROP, ALTER. (These are different than DML commands - INSERT, UPDATE, DELETE).
    2. The DDL trigger is created at the database level, not on each table. You only need one DDL trigger.
    3. You can choose the DDL commands for which you want the trigger to fire (probably, you'll want CREATE, DROP, ALTER, at a minimum).
    4. The DDL trigger only fires when one of these DDL commands is run.
    Whether you have 50 tables or 50,000 tables is not significant to performance in this context.
    What's signficant is how often you'll be executing the DDL commands on which the trigger is set to fire and whether the DDL commands execute in acceptable time with the trigger in place.

  • Change of structure of database table

    A custom database table has been created and is already in use by 10 programs. Now a new requirement has come to add a field i.e. a check box to the database table to be used by one of the 10 programs. Can we change the structure of the database table after activating it and when the table is in use? Please provide me inputs on this.
    Thanks and regards
    Radhika

    Yes. U can change it. But I suggest u to do it through the process of 'Append Structure'.
    If u have any probelm after changing follow this process.
    Goto Utilities > Database Utilities> Activate and Adjust Database
    Awrd Points if useful
    Bhupal

  • How to change a field of type CHAR of a database table to DATS

    Dear ABAP experts,
    I have a database table: ZLT_aztnew with fields M1, M2, K1, K2, A1, A2, P1, P2, S2, D1, D2,  STD, BES. All these fields are of type 'Character'.  except D2 which is of type DATS. The field D1 is date and is in format DD.MM.YYYY.
    I want to convert this field D1 to type DATS so that I can use a date range through 'selection option' to select other  data of other fields (M1, M2, K1, K2, A1, A2, P1, P2, S2, D1, STD, BES.) related to field D1 from the database table Zlt_aztnew.
    How should I introduce this change (CONVERSION OF D1 CHAR to DATS in the .AZT file upload code itself.
    Problem: If I define D1 as Type  DATS in database table ZLT_AZTNEW then the UPLOAD fails.
    The AZT file upload code is:
    Data  it_string   type stringtab.
    Data  lv_string    type string.
    DATA:  itab  TYPE STANDARD TABLE OF zlt_aztnew.
    DATA:  wa_tab    TYPE zlt_aztnew.
    DATA: file_str1 type string.
    Data: it_tab TYPE STANDARD TABLE OF file_table,
            lw_file LIKE LINE OF it_tab,
            gd_subrc TYPE i.
    SELECTION-SCREEN begin of block blk with frame title text-100.
      SELECTION-SCREEN SKIP 2.
        parameters : p_file like rlgrap-filename .
    SELECTION-SCREEN end of block blk.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
        window_title = 'Select only Text File'
        default_filename = '.azt'
        multiselection = 'X'
        CHANGING
        file_table = it_tab
        rc = gd_subrc.
    READ TABLE it_tab INTO lw_file INDEX 1.
       p_file = lw_file-FILENAME.
    Start-of-Selection.
      file_str1 = P_file.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                      = file_str1
    *    filename                      = '\\10.10.1.92\Volume_1\_projekte\Zeiterfassung-SAP\test.azt'
      tables
        data_tab                      = it_string
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT it_string  INTO lv_string.
    clear wa_tab.
    SPLIT lv_string AT ';' INTO  wa_tab-M2   wa_tab-k2   wa_tab-A2   wa_tab-P2  wa_tab-S2   wa_tab-D1  wa_tab-STD  wa_tab-BES.
    Append wa_tab to itab.
    Write: sy-uline(120),
              / sy-vline,
                2 wa_tab-M2,
               11 sy-vline,
               13 wa_tab-k2,
               25 sy-vline,
               27 wa_tab-A2,
               32 sy-vline,
               34 wa_tab-P2,
               39 sy-vline,
               41 wa_tab-S2,
               46 sy-vline,
               48 wa_tab-D1,
               60 sy-vline,
               62 wa_tab-STD,
               72 sy-vline,
               74 wa_tab-BES,
              120 sy-vline.
    ENDLOOP.
    DATA: Answer.
    UPDATE zlt_aztnew From Table itab.
    * INSERT ZLT_aztnew From Table itab accepting duplicate keys.
    If sy-subrc NE 0.
    CALL FUNCTION 'POPUP_TO_CONFIRM'
      EXPORTING
       TITLEBAR                    = 'TITLE '
    *   DIAGNOSE_OBJECT             = ' '
        text_question               = 'Wollen Sie die vorhandenen Inhalte ändern'
       TEXT_BUTTON_1               = 'Ja'(001)
    *   ICON_BUTTON_1               = ' '
       TEXT_BUTTON_2               = 'Nein'(002)
    *   ICON_BUTTON_2               = ' '
       DEFAULT_BUTTON              = '1'
       DISPLAY_CANCEL_BUTTON       = 'X'
    *   USERDEFINED_F1_HELP         = ' '
    *   START_COLUMN                = 25
    *   START_ROW                   = 6
    *   POPUP_TYPE                  =
    *   IV_QUICKINFO_BUTTON_1       = ' '
    *   IV_QUICKINFO_BUTTON_2       = ' '
    IMPORTING
       answer                      = answer
    * TABLES
    *   PARAMETER                   =
    EXCEPTIONS
       TEXT_NOT_FOUND              = 1
       OTHERS                      = 2
    *IF sy-subrc <> 0.
    ** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    **         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    IF Answer = '1'.
    WRITE: / 'Die vorhandenen Inhalte war geändernt'.
    MODIFY zlt_aztnew From Table itab.
    ENDIF.
    ENDIF.
    TO introduce a date range and pull data from the database table Zlt_AZTNEW--> I wrote the BELOW code SEPARATELY,
    but after execution, the error I am getting is: Enter a valid Date (for example, 31.03.2014).
    TABLES:   ZLT_aztnew.
    TYPES:  Begin OF ty_AZTN,
             M2   TYPE Zlt_AZTNEW-M2,
             K2   TYPE Zlt_AZTNEW-K2,
             A2   TYPE Zlt_AZTNEW-A2,
             P2   TYPE Zlt_AZTNEW-P2,
             S2   TYPE Zlt_AZTNEW-S2,
             D1   TYPE Zlt_AZTNEW-D1,
             STD  TYPE Zlt_AZTNEW-STD,
             BES  TYPE Zlt_AZTNEW-BES,
           END OF ty_AZTN.
    DATA:   gv_datum  TYPE d.
    DATA:   it_aztn TYPE STANDARD TABLE OF ty_aztn with  header line.
    CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
      EXPORTING
        date_external                  = zlt_aztnew-D1
    *   ACCEPT_INITIAL_DATE            =
    IMPORTING
       DATE_INTERNAL                  = gv_datum
    * EXCEPTIONS
    *   DATE_EXTERNAL_IS_INVALID       = 1
    *   OTHERS                         = 2
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
           SELECT-OPTIONS: s_datum FOR gv_datum.
          INITIALIZATION.
            s_datum-low  = sy-datum.
            s_datum-high  = sy-datum.
            APPEND s_datum.
    ********** After this further code follows with "SELECT"  wherein I want to use the gv_datum as Where condition.
    SELECT   M2
                      K2
                      A2
                      P2
                      S2
                      D1
                      STD
                      BES
             FROM     ZLt_AZTNEW
             INTO     TABLE it_AZTN
             Where    D1 = gv_datum.
    Please provide me your valuable suggestion to correct any flaw in my code above.
    Looking forward for your reply.
    Best regards
    Chandan Kumar

    Dear Rama,
    Plz refer the following difference in naming conventions as compared to your suggestion:
    it_flat_file --> itab, (internal table for AZT fiel upload and split)
    ls_flat_file ---> wa_itab,
    Ztable --> Zlt_aztnew2,    (Dbase file)
    it_ztable ---> it_zlt_aztnew2, (internal table)
    ls_ztable --> wa_aztnew2,
    I wrote the following code but it is not working. Please also refer the attached screen shot of the database table : ZLT_AZTNEW2.
    Data  it_string   type stringtab.
    Data  lv_string   type string.
    DATA: file_str1 type string.
    Data: it_tab TYPE STANDARD TABLE OF file_table,
          lw_file LIKE LINE OF it_tab,
          gd_subrc TYPE i.
    TYPES: Begin of Ty_itab,
            M2  TYPE Char7,
            K2  TYPE Char3,
            A2  TYPE Char3,
            P2  TYPE Char3,
            S2  TYPE Char3,
            D1  TYPE Char8,
            STD TYPE Char8,
            BES TYPE Char80,
           END OF ty_itab.
    DATA: itab Type Standard Table of ty_itab,
          wa_itab Type ty_itab.
    DATA: it_zlt_aztnew2 type standard table of Zlt_aztnew2,
          wa_aztnew2     TYPE Zlt_aztnew2.
    SELECTION-SCREEN begin of block blk with frame title text-100.
      SELECTION-SCREEN SKIP 2.
        parameters : p_file like rlgrap-filename .
    SELECTION-SCREEN end of block blk.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
        window_title = 'Select only Text File'
        default_filename = '.azt'
        multiselection = 'X'
        CHANGING
        file_table = it_tab
        rc = gd_subrc.
      READ TABLE it_tab INTO lw_file INDEX 1.
      p_file = lw_file-FILENAME.
    Start-of-Selection.
      file_str1 = P_file.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                      = file_str1
    *    filename                      = '\\10.10.1.92\Volume_1\_projekte\Zeiterfassung-SAP\test.azt'
      tables
        data_tab                      = it_string
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT it_string  INTO lv_string.
      Clear wa_itab.
      SPLIT lv_string AT ';' INTO  wa_itab-M2   wa_itab-k2   wa_itab-A2   wa_itab-P2  wa_itab-S2         wa_itab-D1  wa_itab-STD  wa_itab-BES.
      append wa_itab to itab.
      Write: sy-uline(120),
              / sy-vline,
                2 wa_itab-M2,
               11 sy-vline,
               13 wa_itab-k2,
               25 sy-vline,
               27 wa_itab-A2,
               32 sy-vline,
               34 wa_itab-P2,
               39 sy-vline,
               41 wa_itab-S2,
               46 sy-vline,
               48 wa_itab-D1,
               60 sy-vline,
               62 wa_itab-STD,
               72 sy-vline,
               74 wa_itab-BES,
              120 sy-vline.
    ENDLOOP.
    LOOP at itab into wa_itab.
      CLEAR wa_aztnew2.
      wa_aztnew2-D1+0(4) = wa_itab+6(4).
      wa_aztnew2-D1+4(2) = wa_itab+3(2).
      wa_aztnew2-D1+6(2) = wa_itab+0(2).
    Append wa_aztnew2 to it_zlt_aztnew2.
    ENDLOOP.
    MODIFY Zlt_aztnew2 from table it_zlt_aztnew2.
    Looking forward for your suggestiojn.
    Regards
    Chandan

  • Open Hub - Change from File to Database table

    Hello Experts;
    I want to change the Open Hub Service that we create from File to Database table.
    We are using the Delta Update. However, after I change the Open Hub, Activate the transformation and DTP, when I run it, I don't have any value in the table.
    If I run a new delta into my cube, in the table I only get the data from delta.
    Can anyone knows how to upload all the requests that I have in my cube for the first time I run the delta DTP?
    Thanks and regards;
    Ricardo

    Create a new Full DTP and execute, so that you can dump all of the current contents of the InfoCube into the table and push/pull that table to the target prior to the next delta retraction.
    Edited by: Dennis Scoville on Nov 17, 2009 9:37 AM

  • Changing row content in displayed table & saving it in database table back

    hi!
      I am just Learning BSP applications.....i got struck with a problem....
       i am using cl_htmlb_tableview class for selecting a row...and that line is made editable....
    i want to change the data of that line and then modify the entry in the database table....
    i am using a button to be clicked and in that i am reading the line according to the 'tv_data->rowselection'
    and modifying the database table with that work area...but my data is not changing....
       Can u help me out how to get this....and what is that is being missed ......and how to proceed with it so that it is done....

    Hi,
    Foolow the below code.
    In the Do_Handle_event,
    case event.
    when 'id of the button'.
          submit( ).
    endcase.
    In the Submit method,
    data:  loc_table_event type ref to cl_htmlb_event_tableview.
    call method cl_hrrcf_iterator=>get_tv_attr
        exporting
          p_tv_id               = 'Tble view id'
          p_component_id        = me->component_id
          po_request            = me->request
        importing
          po_tv_event           = loc_table_event.
    local varibale = loc_table_event->get_cell_value(
                                             row_index     = indv
                                             column_index  = feild number ).
    <now update ur database with local variable value>
    Hope this will be helpful.
    Regards,
    Gokul.N

  • Tracking changes in database tables

    Hi,
    I have a couple of database tables on which more than 20 people work each day, throughout the day. I have the requirement of tracking each and every change made on any row of the table.
    For example, If a user accesses a specific row, and updates, or deletes it, i need to keep a track of the userid of the user who did it.
    Is that possible?

    Hi Bharat,
    If they are Z tables i.e custom tables then you can incorporate two more fields userid and time. Now goto Table maintanence generator through SE11.Then select Environment->Modification->events. Now in the next screen select F4 for first field to select the event i.e when your code has to be executed.Then give a new form name and click on editor icon. write your code here. When ever a user changes any record his name will be included in user id and sy-uzeit in time field. This way you can track who has changed the record. Other option is activating table changes recording by selecting "LogChanges " check box in technical settings of table.and profile parameter rec/client should also be switched on. Then you can see your table changes in SCU3 transaction. Hope this helps.
    Regards,
    Kalyan.

  • How to adjust adhoc query when the database table changed.

    DearFreinds,
            I have created an adhoc Query , however after few days there was a requirement to remove some fields and change the length of some fields . Now the Adhoc query showing as to adjust , however when iam trying to adjust nothing is happening. Could any one let me know how to adjust with the table strucutre in the adhoc query.
    Regards
    madhu.

    Hi Sumit,
           Yes i have adjusted the database from se11 itself by going into utlity > adjust database . However i can still see the
    adhoc query -> infoset asking me when iam trying to go in change mode saying the database table has been changed do you want to adjust . 
    I have adjusted by going to more functions still there is no change. Please let me know what exactly i have to do.
    regards
    madhu

  • Track of table changes in a database

    how to keep track of table changes in a database.
    Some records have been deleleted, is there away of seeing that change.

    basically, if you havn't already set up a mechanism to track these sorts of changes, they are already lost.
    there are a number of things you can do. one method that we use is a trigger on the table to insert a record into an audit table for every row that gets changed or deleted.
    oracle has some other built in auditing tools that I'm not familiar with though.

  • Change the data in fieldcat and update the database table in alv oops

    Hi,
    my requirement is i have displayed a fieldcat in change mode and when i change the data and click on save it has to be updated the database table..
    this has to be done using alv oops...

    Hi,
    This code will reflect all the changes into the internal table that is being displayed.
    * to reflect the data changed into internal table
          DATA : ref_grid TYPE REF TO cl_gui_alv_grid. "new
          IF ref_grid IS INITIAL.
            CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
              IMPORTING
                e_grid = ref_grid.
          ENDIF.
          IF NOT ref_grid IS INITIAL.
            CALL METHOD ref_grid->check_changed_data.
          ENDIF.
    Now after this code is executed the internal table is modified as per the changes done in alv output.
    Now you can use this internal table to update the database table.
    Hope this helps you.
    Regards,
    Tarun

  • Change a field value in the  database table

    Hi,
    GB01 is the database table.
    GB01-BOOLCLASS = 009
    GB01-CLASSTYPE = S
    GB01-BCLTAB = BSEG.
    GB01-BCLFIELD = GSBER.
    Upon input of above details,  will get table Record as
    BOOLCLASS    9    
    CLASSTYPE    S    
    BCLTAB       BSEG 
    BCLFIELD     GSBER
    BEXCLUDE     X   
    In the record, the field GB01-BEXCLUDE has the value “X” in it. It should be replaced by value “=.”
    Changes should be made ONLY for this record. Other Records should not be touched.
    How can we do this. Help me in doing this.
    Thanks,
    Ramya.

    Hi Ramya,
    Follow these steps :
    1. Goto the table GB01 -> Display its contents.
    2. Double click the record which you want to edit.
    3. Type /h (where you type transaction code) to go to debugging mode for that record.(Press enter twice to goto debugging mode)
    4. Click on Field CODE and give it value EDIT and then click on the PENCIL icon besides it.
    5. Now click on SAVE.
    6. Switch off the Debugging mode now.
    7. Now you can see your selected record in EDITABLE mode.
    8. Do the EDIT part and SAVE.
    Reward with points if helpful.
    Regards
    Hemant Khemani

  • Will any change in tempdb database affect the user defined tables?

    Will any change in tempdb database affect the user defined tables?
    Suppose I have deleted a table from system database tempdb, will it effect the user defined tables?
    Anujit Karmakar Sr. Software Engineer

    The short answer is no; deleting a table from tempdb will not affect user databases.
    Of course I could make up some connection between the two that you haven't described. For example, if a stored procedure created a temporary table, and was busy using it when you deleted it, the deletion could cause unexpected behavior in the user database,
    which could affect some table data.
    Also, some system actions in user databases can store data in tempdb temporarily. But you aren't likely to be talking about system usages of tempdb.
    So, unless you describe some connection, the tables in tempdb are independent from the user database tables.
    Rick Byham, Microsoft, SQL Server Books Online, Implies no warranty

Maybe you are looking for

  • Tecra M7 : new bios shutdowns the digitizer when closing the lid.

    it took me a moment to find the problem : power saving ? attacking wacom ? no. some very stupid "feature" in the new bios from Toshiba. quote from the toshiba download site: *Version 1.70 - 2006-10-24* *Incorporated Intel requirements for improved st

  • Failed to install enterprise manager under linux

    When I installed Oracle 10g(10.2.0.1) under linux, I got an error when running /ora01/db/oracle/product/10.2.0.1/bin/emca within oracle universal installer. The emConfig.log file shows such error: oracle.sysman.emcp.exception.EMConfigException: Inval

  • IPhone 3G won't charge from car adapter when battery is low

    I regularly use my Griffin car charger to charge my iPhone 3G. It seems to work well most of the time. When my iPhone 3G is very low on battery charge, I discovered that the the iPhone will no longer charge via the car charger. Only way I can recharg

  • Dreamweaver copy and paste not working

    Hi The copy and paste functions on my Dreamweaver have stopped working. The copy and paste functions are greyed out in the edit drop down in both code and design views. Ctr C and V are also not working. Tried various fixes including moving the config

  • Error while seeing preview

    I validated the template says no error but when i am trying to see pdf preview or any preview it shows errors mail the error below Caused by: oracle.xdo11g.xqxp.XQException: FORG0001 at oracle.xdo11g.xslt.XSLStylesheet.flushErrors(XSLStylesheet.java: