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: 

CHANGEDOCUMENT_READ_HEADERS for all users

0 Kudos

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!

1 ACCEPTED SOLUTION

former_member181962
Active Contributor
0 Kudos

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

5 REPLIES 5

former_member181962
Active Contributor
0 Kudos

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

0 Kudos

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.

0 Kudos

It's ok..

sorry.

0 Kudos

Hi Gilbert,

How about a '*' ?

Try passing * instead of space.

Regards,

Ravi

0 Kudos

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