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: 

Enable change logs for item level of Sales Document

Former Member
0 Kudos
529

Hi,

On transaction VA02, additional screen field (Booking Date) is added (& consequently 2 appends with date field in the tables VBAK & VBAP).

When this date is changed in the header, the corresponding dates are changed in the item level as well.

However, the change documents are created only for table VBAK (though item data is updated in VBAP also).

When the date is changed at the item level, the change logs are created for the corresponding field in table VBAP.

The data element has 'Change Document' checked.

How can I activate the change to be logged for the item level (VBAP), when the date is changed at header level (VBAK)?

1 REPLY 1

Former Member
0 Kudos
137

Hi Nidhi,

Maybe set a breakpoint in include MV45AF0C_CHANGE_DOCUMENT_CREAT

Then check in UPDATE debug mode the value of upd_vbap and the contents of xvbap which are passed on to function VERKBELEG_WRITE_DOCUMENT .

This function creates the change documents based on the data changes.

I would have thought that since the date values are changed at item level as well when you only change it at the header, they should get a change document created automatically, since the dates must be in the XVBAP table (as their value is changed at the DB).

So I would compare the various internal tables for both scenarios (header change, item change) to determine their differences.

After this use one of the user-exits to populate the internal tables for the header scenario based on the values of the item scenario. I would feel this to be a last resort though, since something appears not to be working correctly (I think).

Hope this makes sense,

Robert