Tracking changes in a customized database table
Hi All,
I have made a customized Z table having the following technical attributes:
Data class APPL1 Transaction data, transparent tables
Size category 0 Data records expected: 0 to 40,000
\/ Log data changes(ticked).
I have made one table maintenance generator for the table and inserted some values in it. I am not able to view the changes made in the table in table DBTABLOG or using transaction SCU3.
What are the other settings needed to view changes in table(table history). <<removed by moderator>>
Regards,
Debopriyo Mallick
Hey,
Check this link. U can find step by step.
http://help.sap.com/saphelp_nw04/helpdata/en/25/f4dd58807b11d395fc00a0c930dcc1/frameset.htm
Regards,
Lakshman.Annamaneni
Similar Messages
-
How to tracke the new entries in database table ?
Hi,
How to tracke the new entries in database table ? is there any FM or report is there to check it ?
regards
vishnuHi Vishnu,
u can write a report program for this and in that use the event :
AT NEW <field-name> ( use primary key)
your statements
ENDAT
for eg.
loop at itab ( herfe itab must be of type of table for which u want to track new entries)
at new matnr
write:/ new record
endat
endloop.
schedule this report in background to run in every 5 or 10 mins as per your requirement and hence changes can be tracked.
regards
Vinod -
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
RadhikaYes. 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 edit one particular entry in custom database table
Hi all,
I want edit one particular entry in custom database table with or without a program.
1. I tried using SE16N and &SAP_EDIT but im unable to get entries to edit.
2. I tried using '/h' and 'code = edit' but it is prompting me to delete an entry but not edit.
3. I tried using modify statement. But in vain.
I tried this statements through programatically,
MODIFY itab FROM wa_itab TRANSPORTING zabc.
MODIFY zsample_02 FROM itab.
please suggest with out writing a program, if possible.Hi ,
Try with FM SE16N_INTERFACE.
1 .Go to SE37
2. Enter FM SE16N_INTERFACE and execute
3. Give table name in Itab,
I_EDIT =
X
I_SAPEDIT =
X
4. Press F8
5. Edit table entries and save.
Thanks -
How to track changes in a custom table
HI all,
Requirement is
1. In custom table instead of using table maintence generator ALV gird has to be display to see table entries. But where i have to write the code when user press CONTENTS button?
2. In alv gird there shuld be one button which shows the change history of selected record and modify the content of selected record. For track changes i have registered custom table name in SCDO. so that changes made will reflect in CDPOS/CDHDR.
but how can i track changes thru dis table? i didnt find field contents of custom table in CDPOS/CDHDR tables?
Please help me with these Ques.Hello,
SAP has provided many changes tracking related programs for Sales order, Vendor changes etc.
They all use the standard function Module
call function 'CHANGEDOCUMENT_READ_HEADERS'
call function 'CHANGEDOCUMENT_READ_POSITIONS'
so with these you can get the changed records
Let me know if this helps you
Thanks and Regards
Pushkar Joshi -
Hi,
We have an OIM 11g R2 version running that has a GTC installed and configured. The GTC is used to provision to a 11g R2 database table via the DBAT 9.1.0.5.0 connector. Now the requirement is that the timestamp be recorded in the backend DB when a new record is provisioned to it using the GTC.
During the setup of the GTC, the target system date format is asked for should be one from among the values allowed by the following predefined formats:
Customizing Formats (The Java&trade; Tutorials &gt; Internationalization &gt; Formatting)
Now our problem is that the target DB to which the provisioning is supposed to happen, isn't under our control and hence we cannot change its schema, and the date format in that table is of the type "01-JAN-10 12.00.00.000000000 AM", which translates to "dd-MMM-yy hh.mm.ss.fffffffff (AM/PM)".
On the other hand, as you can see from the above link, none of the values that OIM allows to be passed through the GTC allow for that format to be used.
Does anyone know of any way in which we can intercept the GTC provisioning request and convert the date on the fly, after OIM has passed on the control, but before the values are written into the DB table, or does anyone know of any workarounds to this issue?
I'd really appreciate it if someone could provide a solution to this.
Thanks.[http://docs.oracle.com/cd/E27559_01/dev.1112/e27150/refsched.htm#CIHBFCJG]
See 26.6 for the plugin.zip directory structure, and as I said, I used the same method on a previous task in the same OIM instance.
Edited by: 939908 on Jan 31, 2013 8:04 AM -
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;
RicardoCreate 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 -
Change documents for customer Z table - serious help wanted
Hi all,
I am no beginner and I don't expect any comments from beginners.
Situation: My customer wants to replace the material valuation transactions MRN1 MRN2 MRN3 due to bad performance and locking problems with own developed programs.
The valuation results will be stored in a customer Z-Table on a monthly base. For auditing and transparency purposes, this Z-table has to get a change object and the update routines will have to write change documents.
Due to the expected size of the new Z-table, it is not advisable to simply switsch on table logging.
In this huge project (and in none I participated!) nobody ever implemented the change document process for a Z-table. <b>BUT EVERYBODY CAN TELL YOU THI IS NO PROBLEM AT ALL.</b>
I read some documentation at SAP and serached for threads or blogs here. I could not find anything desribing that in depth.
So before I start, I'd be happy to get some hints from people who created own change documents and implemented the process. Links to documentation and other helpful pages are also welcome.
If I can keep the process simple, I'd like to create a BLOG on this - because I think, in the future it will get more and more difficult to pass the auditing process with undocumented features and uncontrolled table changes.
TIA.
Regards,
ClemensHi,
Please check this thread.
http://www.sapdevelopment.co.uk/tips/changedoc/cd_createch.htm
Once you create your change document object using generate update pgm option then please check the WRITE document fm.
I have done this long back i am updating CDHDR and CDPOS for 2 table YATT and YATTPLANTS. Here YATT have single record (header table) and YATTPLANTS have multiple records (item table)
function yatt_write_document .
call function 'CHANGEDOCUMENT_OPEN'
exporting
objectclass = 'YATT '
objectid = objectid
planned_change_number = planned_change_number
planned_or_real_changes = planned_or_real_changes
exceptions
sequence_invalid = 1
others = 2.
case sy-subrc.
when 0. "ok.
when 1. message a600 with 'SEQUENCE INVALID'.
when 2. message a600 with 'OPEN ERROR'.
endcase.
if upd_yctc ne space.
call function 'CHANGEDOCUMENT_SINGLE_CASE'
exporting
tablename = 'YATT '
workarea_old = o_yatt
workarea_new = n_yatt
change_indicator = upd_yattc
docu_delete = 'X'
exceptions
nametab_error = 1
open_missing = 2
position_insert_failed = 3
others = 4.
case sy-subrc.
when 0. "ok.
when 1. message a600 with 'NAMETAB-ERROR'.
when 2. message a600 with 'OPEN MISSING'.
when 3. message a600 with 'INSERT ERROR'.
when 4. message a600 with 'SINGLE ERROR'.
endcase.
endif.
if upd_yctcauthplnts ne space.
call function 'CHANGEDOCUMENT_MULTIPLE_CASE'
exporting
tablename = 'YATTPLANTS '
change_indicator = upd_yattplants
docu_delete = 'X'
tables
table_old = yyattplants
table_new = xyattplants
exceptions
nametab_error = 1
open_missing = 2
position_insert_failed = 3
others = 4.
case sy-subrc.
when 0. "ok.
when 1. message a600 with 'NAMETAB-ERROR'.
when 2. message a600 with 'OPEN MISSING'.
when 3. message a600 with 'INSERT ERROR'.
when 4. message a600 with 'MULTIPLE ERROR'.
endcase.
endif.
call function 'CHANGEDOCUMENT_CLOSE'
exporting
objectclass = 'YATT '
objectid = objectid
date_of_change = udate
time_of_change = utime
tcode = tcode
username = username
object_change_indicator = object_change_indicator
no_change_pointers = no_change_pointers
exceptions
header_insert_failed = 1
object_invalid = 2
open_missing = 3
no_position_inserted = 4
others = 5.
case sy-subrc.
when 0. "ok.
when 1. message a600 with 'INSERT HEADER FAILED'.
when 2. message a600 with 'OBJECT INVALID'.
when 3. message a600 with 'OPEN MISSING'.
* WHEN 4. MESSAGE A600 WITH 'NO_POSITION_INSERTED'.
* do not abort, if positions are not inserted!!!
when 5. message a600 with 'CLOSE ERROR'.
endcase.
endfunction.
a® -
INSERT in the custom database table to create a new entry.
Hello Experts,
I'm trying to INSERT the entry in my custom databse table that i have created. But I'm not sure what i'm missing as i'm getting the sy-subrc = 4 after the INSERT statement and my records are not added to the database table.
I'm using the INSERT as below:-
APPEND gw_relax TO gt_relax.
INSERT INTO zmm_bg_relax VALUES gw_relax.
Please let me know your helpful responses on this,
Thanks,
NaveenCheck [INSERT dbtab|http://help.sap.com/abapdocu_70/en/ABAPINSERT_SOURCE.htm] [FROM TABLE itab [ACCEPTING DUPLICATE KEYS]|http://help.sap.com/abapdocu_70/en/ABAPINSERT_SOURCE.htm#&ABAP_ALTERNATIVE_2@2@],
If the addition ACCEPTING DUPLICATE KEYS is specified, all rows are inserted for which this is possible. The remaining rows are rejected and sy-subrc is set to 4. The system field sy-dbcnt is set to the number of lines that are inserted.
So if you get sy-subrc = 4, some of the records of the internal table are already contained in the database table.
You cannot put 2 or more records in a database table with the same primary key, primary keys are unique keys with the addition of a not-null constraint. If you need multiple records with a same key, you must add another key to the primary key. (use a timestamp or a counter)
Regards,
Raymond -
How to sort a custom database table ?
Hi,
how do I sort/order a custom (Z) database table (not internal table) ? Couldn't find a suiting option with F1 for the SORT statement.
Thanks,
Avraham>
Avraham Kahana wrote:
> I have to do this within my program.
Use ORDER BY in your select. Or just select your data into an itab and use SORT. I don't see the problem.
If you mean that you want to sort your table in the database itself, then you can't. Database table rows are not held in any specific order; the order is applied when you select the data out of the table. -
After creating a customizing database table 'create entries disable'
After creating the database table i want to add fields through goto-table contents-create entries but "create entries" is in disable mode how can i resolve this?
Dear Dileep,
You need to go to "Delivey and Maintainence" tab there you will "Data Browser/Table Maintainence",
Here you need to select "Display/Maintainence Allowed" in the drop down list.
Thie will help to find the "create entrie enable".
Thanks,
Ananth. -
Primary key deletion in custom database table
hi,
I've created a ztable.In which i've have created primary key and foreign key.
I've activated the table.Now my requirement is that i want to delete the primary key as i've shoosen wrong field as primary key.
For that first of all i deleted the foreign key relationship than i have unchecked the primary key but it is giving me an error.
even though if i deleted that field having primary key it is also giving me error as "Primary key change not permitted for value table.
Please help me out if possible.
waiting for ur response.
Thanks,
DheerajMake sure u dont have any data in the table..u have to delete all the data..Also make sure you are not using that table any where else.do a where used list in the table.
-
Change Date Column in database table format from mm/dd/yyyy to dd/mm/yyyy
Hi I use Jdeveloper 11G with an Oracle Database.
My table is empty currently but I am importing some excel columns into it and the dates in them are throwing errors because you have some dates like 14/09/2012 which would mean the month is out of range even though its not.
This seems like a simple thing to do but I was unable to find how online.
Please HelpI'm not sure I understand COlumn Type is DATE
There is no Simple Date type. This is DATABASE, has nothing to do with Entities and Views etc. This is straigh in the Database Table.
Edited by: Dino2dy on Nov 6, 2012 5:47 AM -
How to synchronize between OID and the Custom Database Tables ?
Hi All,
Our ADF Application is using Oracle SIngle-Sign On (OAS 10.1.4). Meanwhile we also maintain
users login within Database table to store application menu accessibility data.
i.e:
Firstly user Login using Oracle SSO, after logged in, application will query the above mentioned
database tables to determine which menu he/she has access.
We have develope a security module to input users login into the database, so I need to synchronize
the data into OID, so that that particular user can use Oracle SSO.
How is the mechanism to do that ?
Thank you very much,
xtantoHi,
OID providesa Java and PLSQL API. I agree with Chris that from what you describe, the PLSQL API seems to be the best approach to take as it allows you to use database triggers for the synchronization
Frank -
How to insert data into custom database table from an hcsf
i want to insert data into database table that i have created from an hcsf.
example :
say i have created a table in oracle database and i hav created a hcsf file.now i want that when somebody fills in that hcsf and click submit ,i want that entries should be updated in my database table.
plzzz reply ASAP(it's urgent)you'll need a bit of Java code... extract the data during a check-in filter, and insert it into the database.
check out the "DataAccess" component in the HowToComponents for query-running examples, and the "DynamicPrefix" component for a check-in filter example.
I have older copies here:
http://bezzotech.com/library
Maybe you are looking for
-
ICloud available for Windows Vista, but not Snow Leopard???
I have Multipal Macs with the Core Duo chipset that can not run LION and no $$$$ to upgrade hardware right now. WHY does Windows VISTA get iCloud suport but I who can't upgrade to LION do not? I understand leaving out Leaopard, but SNOW too?
-
Can we export the records which are failed on an validation
Hi My Question is after a validation is run on an record in the data manager,I like to extract the records from Data Manager,with the validation success(Tick) and failed(X) column which is generated by the system for each validation. As the validatio
-
This seems to be recent. I open Safari and the address appears, but the home page doesn't load (MSN). If I click the RELOAD button in the header it loads fine. If I clear the CACHE, I get maybe 3 successful openings and then it's back to blank. Any i
-
Serial Number Invalid when upgrading to PSE 12 (MacOS)
Many users have reported that after purchasing Photoshop Elements 12 for MacOS, the serial number provided shows as invalid when installing Photoshop Elements 12. We are aware of this issue and are actively working on a fix both on our store page as
-
All note have disappeared after transfer from 3GS to 4 and update...
Any way to retrieve? Lost 30+ notes. They do not show on either phone.