Database table not updating

Hi all,
I am updating the database table with following syntex, but table not updating.
MODIFY ZTEST_BAR FROM TABLE I_ZTESTBAR.
Please help.
PKB

Hi,
firstly you can define internal table and work area as below:-
internal tables
DATA : I_ZTESTBAR TYPE TABLE OF ZTEST_BAR.
work areas
DATA : I_ZTESTBAR_LINE LIKE LINE OF I_ZTESTBAR .
here internal table having the same structure as that of ztable which include MANDT.
Then to update field, you can use add following code:-
*Update Ztable
INSERT INTO ZTEST_BAR VALUES I_ZTESTBAR_LINE.
COMMIT WORK.
Hope this works for you.
Thanks..........

Similar Messages

  • File to rfc...database tables not updated ??

    Hi XI Friends..
    in my File to BAPI..
    it is successfully executed..and it is showing chequered glag in sxmb_moni..and also in runtime workbench it is showing success..but the database tables are not updating..
    i gone thru the link.. reciver rfc adapter..
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/e80440a832e369e10000000a155106/frameset.htm
    now i am working on SP 17.
    so how can i set the values in ...
    <i>Commit Control for Individual BAPI Calls</i>and
    <i>BAPI Advanced Mode.
    In the Successful RETURN-TYPE Values table, what values i have to enter that should lead to a successful execution</i>
    its Asyncronous call..
    in standard BAPI ther is no commit.
    please tell me ..what values in need to give to update database tables..instead of RFC wrapper..
    regards
    ram

    Hi Friends..
    i created ZRFC and in that rfc i given standard bapi and commit work..
    i tested in sap ..the table is updating..
    thru XI..the table is not updating...
    it showing likw this..in receiver rfc adpater monitering...
    <i>Receiver channel 'CC_IN_SAP_WorkOrderCompletion' for party '', service 'SAP_ERP_DEV' (internal name 'RfcClient[CC_IN_SAP_WorkOrderCompletion]')
    Client data: {jco.client.lang=EN, jco.client.snc_mode=0, jco.client.client=400, jco.client.passwd=******, jco.webas.ignore_jdsr_error=1, jco.client.user=aar, jco.client.sysnr=10, jco.client.ashost=53.249.196.86}
    Repository data: {jco.client.lang=EN, jco.client.snc_mode=0, jco.client.client=400, jco.client.passwd=******, jco.webas.ignore_jdsr_error=1, jco.client.user=aar, jco.client.sysnr=10, jco.client.ashost=53.249.196.86}
    Current pool size: 1, maximum pool size : 1
    Channel History
    - OK: 2006-12-19 11:12:58 CET: Message processed for interface ZBAPI_ALM_CONF_CREATE</i>
    and in messagemonitering audit log..
    <i>2006-12-19 11:12:58 Success Message successfully received by messaging system. Profile: XI URL: http://dcexi0602.alcan.com:50000/MessagingSystem/receive/AFW/XI Credential (User): XIISUSERDGX
    2006-12-19 11:12:58 Success Using connection AFW. Trying to put the message into the receive queue.
    2006-12-19 11:12:58 Success Message successfully put into the queue.
    2006-12-19 11:12:58 Success The message was successfully retrieved from the receive queue.
    2006-12-19 11:12:58 Success The message status set to DLNG.
    2006-12-19 11:12:58 Success Delivering to channel: CC_IN_SAP_WorkOrderCompletion
    2006-12-19 11:12:58 Success RFC adapter received an asynchronous message. Attempting to send tRFC for ZBAPI_ALM_CONF_CREATE with TID XIVqvZy8z94TkgWVR9u01m0m
    2006-12-19 11:12:58 Success The message was successfully delivered to the application using connection AFW.
    2006-12-19 11:12:58 Success The message status set to DLVD.
    </i>
    but the table is not updating...
    please guide me..
    regards
    ram

  • Database table not updating with the changes

    Hi friends,
                    Iam having a tablecontrol where iam gettting the data from the ztable for a particular key field.  When i change certain fields in the table control and when i click save, it should update the changes in the ztable.
       module save output.
       modify zslip_po1 from table x_po1_slip.
    here slpno is the key field.  if I change a field for a particular slpno it should update the changes for that slpno value only.
    but it is not updating the changes. although iam setting the slpno field dynamically.
    Please give me ideas.
    thanks and regards
    Murali Krishna T

    Hi,
    1. Have 2 Internal Tables, the first one must contain the original data(before change ) and the second one  contains the update data(after changed ie. table control data).
    2. loop the first table and read the data from the second table using index.
    3. inside the loop, compare the work area of both the internal table.
       if both are same, then no change was made to that particular record, so no need for updation
       if both are not same, then some changes were made on that record, so need to update.
    4. use modify command to update that particular record from the work area.
    i think in performance wise also this logic will be helpful, since we are updating only the changed record.
    since this is addon table, so i hope the no of records will also less, so no need to worry about loop.
    check with this, it may work out......
    thank you,
    SenthilPandi C
    Edited by: SenthilPandi ChandraSekaran on Feb 4, 2010 5:36 PM

  • File to rfc...database tables not updating

    Hi friends..
    in file to bapi ..
    created ZRFC and in that rfc i given standard bapi and commit work..
    i tested in sap ..the table is updating..
    thru XI..the table is not updating...
    it showing likw this..in receiver rfc adpater monitering...
    <i>Receiver channel 'CC_IN_SAP_WorkOrderCompletion' for party '', service 'SAP_ERP_DEV' (internal name 'RfcClient[CC_IN_SAP_WorkOrderCompletion]')
    Client data: {jco.client.lang=EN, jco.client.snc_mode=0, jco.client.client=400, jco.client.passwd=******, jco.webas.ignore_jdsr_error=1, jco.client.user=aar, jco.client.sysnr=10, jco.client.ashost=53.249.196.86}
    Repository data: {jco.client.lang=EN, jco.client.snc_mode=0, jco.client.client=400, jco.client.passwd=******, jco.webas.ignore_jdsr_error=1, jco.client.user=aar, jco.client.sysnr=10, jco.client.ashost=53.249.196.86}
    Current pool size: 1, maximum pool size : 1
    Channel History
    - OK: 2006-12-19 11:12:58 CET: Message processed for interface ZBAPI_ALM_CONF_CREATE</i>
    and in messagemonitering audit log..
    2006-12-19 11:12:58 Success Message successfully received by messaging system. Profile: XI URL: http://dcexi0602.aaaa.com:50000/MessagingSystem/receive/AFW/XI Credential (User): XIISUSERDGX
    2006-12-19 11:12:58 Success Using connection AFW. Trying to put the message into the receive queue.
    2006-12-19 11:12:58 Success Message successfully put into the queue.
    2006-12-19 11:12:58 Success The message was successfully retrieved from the receive queue.
    2006-12-19 11:12:58 Success The message status set to DLNG.
    2006-12-19 11:12:58 Success Delivering to channel: CC_IN_SAP_WorkOrderCompletion
    2006-12-19 11:12:58 Success RFC adapter received an asynchronous message. Attempting to send tRFC for ZBAPI_ALM_CONF_CREATE with TID XIVqvZy8z94TkgWVR9u01m0m
    2006-12-19 11:12:58 Success The message was successfully delivered to the application using connection AFW.
    2006-12-19 11:12:58 Success The message status set to DLVD.
    please help me..
    regards
    ram

    Hi Sravya..
    yes i given commit work after bapi in ZRFC..
    in SAP..i tested ..its updating...but thru XI..
    it is showing success..
    but its not updating tables...
    thanks for your response
    regards
    ram

  • Check which column in database table is updated without hard code

    Hi ,
    I have a requirement to detect if there is a particular column in the database table is updated , and this column name is found in mapping table ( business logic ) , it will do an insertion to another special table.
    My idea is to introduce a trigger before update or delete on this table
    However , i would like to make it as dynamic as possible
    i dont want to use things as below in trigger if possible
    1. if ( old.name <> new.name ) then {
    if( 'name' is inside the mapping table ) {
    // do some insertion
    I want things like
    2. if ( there is a column updated on this table ){
    1. select column name and updated value that is updated
    2. if the column name that is updated is inside the mapping table {
    // do some insertion
    I am not really sure if the pseudo code listed in no 2 is achieveable in oracle using simple pl/sql or sql ?
    if possible , how to do it ?
    Thanks

    Hi,
    Check the link given below
    http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96590/adg13trg.htm
    and search for
    IF UPDATING THEN*009*

  • Validity Table not updating for 0IC_C03 while updating data

    Hi,
    1.Validity table not updating for 0IC_C03 while updating data in my BW 7.4 With HANA data base?
    Key fields : 0Plant
                       0Calday
    if you run this programe after loading data - RSDG_CUBE_VALT_MODIFY it is updating.
    2. I am not getting no marker update option in non-cumulative Info cube 0ic_c03 manage tab or in DTP tabs check as per 7.4 modifications?
    and  2LIS_03_BX in DTP I am getting below this option only
    Can you please give me solution for this issues.
    Regards
    Umashankar

    Hi Uma,
    Please go through the below link which might be helpful.
    Not able to Edit Validity Table : RSDV
    Marker Update Option is available under Collapse tab of Info cube.
    Thanks,
    Karan

  • Buffer table not update

    Hello all,
    I tried to create  a Scart for a category id meant for Classic scenario but I get an error that "Buffer Table not update " and it is resulting in a ABAP Dump.However, for the Categoryid for Ext. Classic Scenario it is working fine.
    I tried SWU_OBUF also.
    Any body ,Pl enlighten on how to proceed further?
    Thanks & Regards,
    Nagarajan
    Addl Info:
    1) Activated the Global settings for Extended Classic Scenario
    2) Activated the BADI for control of Extended Classic Scenario

    Hi,
    Go to the SMQ1 and SMQ2 in both the frontend and backend systems and check for any queues of material replication still running or held.
    Delete all the obsolete entries in this.
    This may help you as in our system it worked once for this buffer table not uptodate issue.
    Best regards,
    Sridhar.

  • Parts master table not updating

    SP3 parts inventory table not updating even though set to synchronise through webtools

    thank you had to rebuild links on table

  • Updating database table - not working

    Hi ,
              My database table 1 is having multiple data for a primary key
    example :
    table 1:
    GLOBMATNR  -> Primary key
    WERKS  --> non primary key -- multiple for globmatnr
    MBLNR --> non primary key -- multiple for globmatnr
    MBLPO--> non primary key --
    BUKRS --> non primary key -- multiple for globmatnr
    i m using below statement to make entry into the table.. but this insert is not working.. I stead of putting 30 entries its just inserting 1 entry..
    Can any one help me in this..?
    INSERT table1 FROM TABLE internal_table ACCEPTING DUPLICATE KEYS.
    Edited by: neha gupta on Oct 29, 2010 1:25 PM

    Hi,
    Hit F1 on ACCEPTING DUPLICATE KEYS. You will identify why it is inserting 1 line only. I hope the table is a custom table. For fields which can have multiple values, make it primary key.
    In your example table, GLOBMATNR, WERKS, MBLNR could be primary keys if WERKS is in one company code only. If not add BUKRS also
    Hope it helps
    Sujay

  • Change Max.no.quants in IMG but in database does not update.

    hi,
    I have an issue about reducing Max.no.quants in warehouse management. I defined putaway strategy P for Storage type definition. Then I changed Max.no.quants from 5 to 2 in Division of Storage Bins into Sections (IMG) and assigned Bin section A = 2 (Max.no.quants) in Bin Sectioning per Storage Bin Type and SUT (IMG). After that I removed items from stack 5 to 2 in each Storage bin. Then I checked storage bin in Bin sectioning tab I found that Max.no.quants still didn't change from 5 to 2 I thought it should be changed and no. of quants had changed to 2. So, that i checked table LAGP-KZVOL = " ". It seems the database was not up-to-date. When I create Transfer Order it had shown an error message below
    Error due to inconsistent database (storage bin ZZ-01-01)
    Are there any solutions to update Max.no.quants(LAGP-MAXQU) from 5 to 2 in Storage bin? or Can I create a program to update table LAGP-MAXQU and LAGP-KZVOL directly? (i am not sure which tables and fields should i have to concern?)

    hi,
    I have an issue about reducing Max.no.quants in warehouse management. I defined putaway strategy P for Storage type definition. Then I changed Max.no.quants from 5 to 2 in Division of Storage Bins into Sections (IMG) and assigned Bin section A = 2 (Max.no.quants) in Bin Sectioning per Storage Bin Type and SUT (IMG). After that I removed items from stack 5 to 2 in each Storage bin. Then I checked storage bin in Bin sectioning tab I found that Max.no.quants still didn't change from 5 to 2 I thought it should be changed and no. of quants had changed to 2. So, that i checked table LAGP-KZVOL = " ". It seems the database was not up-to-date. When I create Transfer Order it had shown an error message below
    Error due to inconsistent database (storage bin ZZ-01-01)
    Are there any solutions to update Max.no.quants(LAGP-MAXQU) from 5 to 2 in Storage bin? or Can I create a program to update table LAGP-MAXQU and LAGP-KZVOL directly? (i am not sure which tables and fields should i have to concern?)

  • Audit Database is not updating

    Hi
    our Audit data base is not updating the data in the tables. I found the Audit files created every hour greater than 0kb in the following folder.
    Program Files (x86)\Business Objects\BusinessObjects Enterprise 12.0\Auditing
    But this data is not updating to our tables. We are on BOXI 3.1 SP1 and SQL 2008
    Please suggest

    Hi,
    Try checking your CMS log under <Your installationPath>\BusinessObjects Enterprise 12.0\Logging
    While working with a SQL 2008 Audit database, I found the following :
    "(.\AuditDatabaseSubsystem_impl.cpp:92). (false : DBConnectionHolder - (AuditDB) - Retryable error treated as lost connection error. Code 0, Msg: [Microsoft][SQL Server Native Client 10.0]String data, length mismatch)."
    I created a new ODBC datasource using sqlncli (version 9.0, i.e. 2005) instead of version 10.0 and  modified the datasource on the configuration tab of the SIA in the CCM
    Worked for me, hope this helps.
    N.

  • With_item table not updating

    Hi,
    with_item table is not updating.
    Following error message is thrown:
    "Internal number range not updating in remittance challan."
    Thanks in advance.
    Regards,
    Sriram

    hi
    Use t-code SM30 and check J_1IEWTNUM , J_1IEWTNUMGR_1 tables.
    Or just use J1INHC t-code and check where is the problem.
    Regards
    Tanmoy

  • Table not update

    Hi
    Expert
    I am PP Consultant i having problem in Material Master while creating Material Batch activation tick is missing.
    When production order is created this material accept  stock without batch.
    Now i remove all stock from system as dispatch takes place & again i activated the batch for same material.
    But still this material shows without Batch even though batch is activated and that stock related table is not updated why?
    How to activate the batch through table?
    Thanks
    Pert

    this is almost related to the functional configuration. As per my knowledge if all the configurations are correct, the batch will generate automatically during the production order creation.
    This is not related to abap issue. Post the issue respective SCN forum, so that you can get the proper solution.

  • COSS Table not updating

    Hi Friends,
    We are using Project System in our client. We have to fetch the Project details using BAPI - presently we are using BAPI_PROJECT_GETINFO bapi for this purpose.
    However, in the E_ACTIVITY table, we are not able to fetch any Planned costs and Actual costs data. When we debugged, we found that the source of this fields to be COSS and COSP tables.
    But the problem is I'm not able to populate the COSS and COSP tables.
    When I tried Primary cost planning via CJR4 also, this table is not updated for the WBS element.
    Please help.
    Regards
    Srini.

    USE [ClubManagement]
    GO
    /****** Object:  Trigger [dbo].[DailyAtten]    Script Date: 03/04/2015 18:14:54 ******/
    SET
    ANSI_NULLS ON
    GO
    SET
    QUOTED_IDENTIFIER ON
    GO
    ALTER
    TRIGGER [dbo].[DailyAtten]
    ON [dbo].[Temp_AValue]
    AFTER UPDATE
    AS
    BEGIN
    Delete from MCheckInOut
    Delete
    from HOCheckInOut
    DECLARE @sqry
    NVARCHAR(2000)
    DECLARE @mqry
    NVARCHAR(2000)
    DECLARE @cols
    NVARCHAR(2000)
    DECLARE @vals
    NVARCHAR(2000)
    DECLARE @hmqry
    NVARCHAR(2000)
    SET @cols
    = STUFF((SELECT
    DISTINCT '],['
    + CONVERT(NVARCHAR, [CHECKTYPE])
    FROM [dbo].[CHECKINOUT]
    ORDER BY
    '],[' + CONVERT(NVARCHAR, [CHECKTYPE])
    FOR XML
    PATH('')), 1, 2,
    + ']'
    SET @sqry
    = 'SELECT [UserID],[SENSORID], CONVERT(DATETIME,CONVERT(NVARCHAR, YEAR([CHECKTIME])) + ''-'' + CONVERT(NVARCHAR, MONTH([CHECKTIME])) + ''-'' + CONVERT(NVARCHAR, DAY([CHECKTIME]))) AS [chDate], 
    RIGHT([CHECKTIME],8) AS chTime, CHECKTYPE ' +
    'FROM [dbo].[CHECKINOUT]'
    SET @mqry
    = 'SELECT [UserId],[SENSORID], [chDate], '
    + @cols +
    ' ' +
    'FROM (' + @sqry
    + ') AS DT '
    +
    'PIVOT (MAX(DT.[chTime]) FOR DT.[CHECKTYPE] IN ( '
    + @cols  +
    ' )) AS PT ' +
    --'wHERE    [SENSORID] = 1' +
    'ORDER BY PT.[chDate]'
    SET @hmqry
    = 'SELECT [UserId],[SENSORID], [chDate], '
    + @cols +
    ' ' +
    'FROM (' + @sqry
    + ') AS DT '
    +
    'PIVOT (MAX(DT.[chTime]) FOR DT.[CHECKTYPE] IN ( '
    + @cols  +
    ' )) AS PT ' +
    'WHERE [SENSORID] = 1' +     
    'ORDER BY PT.[chDate]'
    insert
    into MCheckInOut
    EXECUTE(@mqry)
    insert
    into HOCheckInOut
    EXECUTE(@hmqry)
    END
    GO

  • ZL Table not updating

    Hi Guy's,
    I have two groups of employees A & B fo group A employee group when i run time evaluation using PT60 Zl table gets updated where as when i run time evaluation for group B employee Zl Table does not gets updated. Zl table also conatains a rule but i dont know why that PCR is not working for Group B.
    Plz suggest me how i can updte ZL table
    Thanks a lot.

    Hello,
        The operation that adds wage types into DZL is ADDZL, you could search for this operation in your PT60 log, search for it with the group of employees that have entries in ZL and then with the groups that dont, you must be able to catch the difference hopefully
    Best regards,

Maybe you are looking for

  • Problem with refreshing JFrames and JDialogs

    My program is based on few JDialogs and one JFrame. I'm still changing them, one time one of the JDialogs is visible, other time JFrame. During this change I call dispose() for one window or frame and I create (if it wasn't created before) other comp

  • Store Multiple rows in a dictionary to show as a grid

    Hi, I need to store multiple rows in a data dictionary. Please give me the solution if the CCP has these feature to store multiple row data. Please provide the guide if this is limitation in CCP

  • .exe or installation package

    maybe "Creating an application" is not the right title for what I need cuz I had used this and someone referred to something else.What i actually need is to create an executable or an application package which one can use to install the java applicat

  • Cluster shared volume disappear... STATUS_MEDIA_WRITE_PROTECTED(c00000a2)

    Hi all, I am having an issue hopefully someone can help me with. I have recently inherited a 2 node cluster, both nodes are one half of an ASUS RS702D-E6/PS8 so both nodes should be near identical. They are both running Hyper-V Server 2008 R2 hosting

  • Configure VPN Server Cisco 877W

    Hello! I need to implement VPN Server on a Cisco 877W. The idea is as follows: Access the network from anywhere using the Cisco VPN Client; The router need receive a minimum 5 simultaneous connections; Each User would have a login and password; Cisco