SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

Как отслеживать измененные записи в таблице



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP
View previous topic :: View next topic  
Author Message
elsen
Участник
Участник



Joined: 06 Aug 2009
Posts: 17

PostPosted: Wed Aug 12, 2009 4:29 pm    Post subject: Как отслеживать измененные записи в таблице Reply with quote

После изменений в таблице надо выбрать" все измененные/новые строки.
Направте пож-та в каком направлении "копать".
Back to top
View user's profile Send private message
Удав
Гуру
Гуру


Age: 48
Joined: 25 Jan 2008
Posts: 580
Location: Москва

PostPosted: Wed Aug 12, 2009 4:39 pm    Post subject: Reply with quote

О какой таблице идет речь: о внутренней или базы данных?
_________________
С уважением,
Удав.
Back to top
View user's profile Send private message
vga
Мастер
Мастер


Age: 75
Joined: 04 Oct 2007
Posts: 1218
Location: Санкт-Петербург

PostPosted: Wed Aug 12, 2009 4:39 pm    Post subject: Reply with quote

Для таблицы в словаре выставить в настройках (se11 - > Technical Settings) флаг Log data changes

Quote:
Log data changes
The logging flag defines whether changes to the data records of a table should be logged. If logging is activated, every change (with UPDATE, DELETE) to an existing data record by a user or an application program is recorded in a log table in the database.

Note: Activating logging slows down accesses that change the table. First of all, a record must be written in the log table for each change. Secondly, many users access this log table in parallel. This could cause lock situations even though the users are working with different application tables.

Dependencies
Logging only takes place if parameter rec/client in the system profile is set correctly. Setting the flag on its own does not cause the table changes to be logged.

The existing logs can be displayed with Transaction Table history (SCU3).
Back to top
View user's profile Send private message Blog Visit poster's website
elsen
Участник
Участник



Joined: 06 Aug 2009
Posts: 17

PostPosted: Wed Aug 12, 2009 5:14 pm    Post subject: Reply with quote

это я так понял речь идет о "ручной" проверке. мне необходимо програмно проверять на наличие изменений в таблице базы. Потом я должен собирать все измененные строки таблицы и сохранять их в экселе.
Back to top
View user's profile Send private message
vga
Мастер
Мастер


Age: 75
Joined: 04 Oct 2007
Posts: 1218
Location: Санкт-Петербург

PostPosted: Wed Aug 12, 2009 8:06 pm    Post subject: Reply with quote

elsen wrote:
это я так понял речь идет о "ручной" проверке. мне необходимо програмно проверять на наличие изменений в таблице базы. Потом я должен собирать все измененные строки таблицы и сохранять их в экселе.


Не только ручной. Смотрите нижние темы в разделе
http://www.sapnet.ru/viewforum.php?f=47
Back to top
View user's profile Send private message Blog Visit poster's website
elsen
Участник
Участник



Joined: 06 Aug 2009
Posts: 17

PostPosted: Thu Aug 13, 2009 3:52 pm    Post subject: Reply with quote

спасибо спаситель Very Happy
буду ковырять дальше
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.