03-16-2007 3:06 PM
Hi all,
I use CHANGEDOCUMENT_READ_HEADERS to a report, but I view only change made by the user logon.
Example i'm user PIPPO. CHANGEDOCUMENT_READ_HEADERS return data only if there are changes (modify) made by user PIPPO.
How can I view all the changes (modify) by all the users?
Help!
03-16-2007 3:13 PM
The fm CHANGEDOCUMENT_READ_HEADERS has a parameter USERNAME.
Do not pass anything to that parameter or pass space explicitly to that parameter.
Regards,
Ravi
03-16-2007 3:13 PM
The fm CHANGEDOCUMENT_READ_HEADERS has a parameter USERNAME.
Do not pass anything to that parameter or pass space explicitly to that parameter.
Regards,
Ravi
03-16-2007 3:15 PM
I hust do it! but don't work.
CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
EXPORTING
date_of_change = cdhdr-udate
objectclass = 'BELEG'
objectid = wa_record-objectid
time_of_change = cdhdr-utime
username = space
TABLES
i_cdhdr = it_cdhdr
EXCEPTIONS
no_position_found = 1
OTHERS = 2.
and
CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
EXPORTING
date_of_change = ''
objectclass = 'BELEG'
objectid = wa_record-objectid
time_of_change = cdhdr-utime
username = ''
TABLES
i_cdhdr = it_cdhdr
EXCEPTIONS
no_position_found = 1
OTHERS = 2.
03-16-2007 3:19 PM
03-16-2007 3:19 PM
Hi Gilbert,
How about a '*' ?
Try passing * instead of space.
Regards,
Ravi
03-16-2007 3:19 PM
The function module CHANGEDOCUMENT_READ_HEADERS read the data base CDHDR. CDHDR store changes in documents: If you modify an purchase order an entry is generated in data base CDHDR with:
- OBJECTCLAS : EINKBELEG
- OBJECTID: 'Núm purchase order'
The information of this table is at header level. In the data base CDPOS with the modification number ( CHANGENR ) from CDHDR you may read the actually modification: Table from data base, field and modification.
The user enter is optional.
Regards