2011 Feb 03 12:46 PM
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)?
2011 Feb 04 1:44 AM
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