Application Development and Automation 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: 
Read only

CHANGEDOCUMENT_READ_HEADERS for all users

0 Likes
1,362

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
Read only

Former Member
0 Likes
1,146

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
Read only

Former Member
0 Likes
1,147

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

Read only

0 Likes
1,146

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.

Read only

0 Likes
1,146

It's ok..

sorry.

Read only

0 Likes
1,146

Hi Gilbert,

How about a '*' ?

Try passing * instead of space.

Regards,

Ravi

Read only

Former Member
0 Likes
1,146

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