Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Change Log Not showing Field changes

kp_25
Participant
0 Kudos
3,296

Hi,

I have made some changes for the Field ' ZTERM' ( payment terms ) through a BADI. But when we go to XD02 and see the Change Log it does not show any updates for this field. The 'Change Document' check box is already checked for the ZTERM fields and I was able to see the CDHDR and CDPOS entries . But how do we make this to come in the 'Environment - Account Changes- All fields ' ( log )  in XD02. Please help.

It is only recording the changes done in transactional level.

Thanks,

KP

1 ACCEPTED SOLUTION

former_member576008
Active Participant
0 Kudos
730

Hi,

As per BC - ABAP Dictionary.

Using the logging flag you can define whether changes to the data records of a table should be

logged. If logging is switched on, each change to an existing data record (with UPDATE,

DELETE) by the user or application program is recorded in the database in a log table

(DBTABPRT).

To switch on logging, the R/3 System must be started with a profile containing parameter

rec/client. This parameter defines whether all clients or only selected clients should be logged.

The parameter can have the following values:

rec/client = ALL Log all clients.

rec/client = 000[,...] Log the specified clients.

rec/client = OFF Do not log.

Logging slows down accesses that change the table. First of all, a record must be

written in the log table for each change. Secondly, a number of users access this log

table in parallel. This can cause lock situations although the users are working with

different application tables.

Logging is independent of the update.

The existing logs can be displayed with Transaction Table History (SCU3).

Can you check where is your problem now?

Regards,

Nandha

6 REPLIES 6

former_member576008
Active Participant
0 Kudos
731

Hi,

As per BC - ABAP Dictionary.

Using the logging flag you can define whether changes to the data records of a table should be

logged. If logging is switched on, each change to an existing data record (with UPDATE,

DELETE) by the user or application program is recorded in the database in a log table

(DBTABPRT).

To switch on logging, the R/3 System must be started with a profile containing parameter

rec/client. This parameter defines whether all clients or only selected clients should be logged.

The parameter can have the following values:

rec/client = ALL Log all clients.

rec/client = 000[,...] Log the specified clients.

rec/client = OFF Do not log.

Logging slows down accesses that change the table. First of all, a record must be

written in the log table for each change. Secondly, a number of users access this log

table in parallel. This can cause lock situations although the users are working with

different application tables.

Logging is independent of the update.

The existing logs can be displayed with Transaction Table History (SCU3).

Can you check where is your problem now?

Regards,

Nandha

0 Kudos
730

I checked for SCU3 but it looks like it records customizing table log. Well For my problem I just went and did a simple BDC because I had to update only one field in XD02. Then only I could get the change log in place..There are some FM which will update the customer master and fill the change log.I tried Customer_Update but it did not fill the log. My requirement was just for Payment Terms so I just went for BDC and the log is showing now.Thanks for the Reply..SCN is not dead .

0 Kudos
730

Good idea not to use Customer_Update, it is not more valid than direct open-sql update (this is an update task FM, called after check and with other FMs like DEBI_WRITE_DOCUMENT which create the change documents)

Better use BDC as you did or class/method CMD_EI_API=>MAINTAIN_BAPI  (AFAIK there is no BAPI yet)

Regards,

Raymond

0 Kudos
730

Hi Raymond,

I have a similar Problem with UKM_BP transaction. In this case we cannot do BDC recording and I am trying to update ukmbp_cms_sgm table- Credit Limit field by doing a Direct Modification ( modify statement ) . The client is asking for Log to be displayed once the Table is modified. I saw couple of FM but they are for mass updation. Any ideas on how to handle it .

Thanks,

Kamala

0 Kudos
730

I don't have access to this transaction, try to look for class CL_UKM_FACADE (from thread UKM_BP)

Regards,

Raymond

0 Kudos
730

Thanks Raymond. That was my thread again.