‎2008 Aug 21 5:20 PM
Dear all, I use BAPI_USER_CHANGE to change some user data and it works
fine !!!
But I need to see that the last change was done by this bapi-user (even if it was in batch)
How do I fill BAPI_USER_CHANGE or do you know something else to update the LOG (USR04) correct
so I can see the date,time and user which changed the data ?
Thanks for a tip !
‎2008 Aug 21 10:09 PM
>
> Dear all, I use BAPI_USER_CHANGE to change some user data and it works
> fine !!!
>
> But I need to see that the last change was done by this bapi-user (even if it was in batch)
>
> How do I fill BAPI_USER_CHANGE or do you know something else to update the LOG (USR04) correct
> so I can see the date,time and user which changed the data ?
>
> Thanks for a tip !
What are you changing?
If I remember correctly, BAPI_USER_CHANGE does not change USR04 anyway, so to looking for change documents (whick would be in USH04) does not make sense...
Whatever it is you have successfully changed, you can use report RSUSR100N to view the change documents (in lower SP levels, report RSUSR100, which is in the SUIM transaction report tree).
Please clarify what you are changing?
Cheers,
Julius
‎2008 Aug 22 7:23 AM
I change only phone numbers , email, department and fax number.
here the call
CALL FUNCTION 'BAPI_USER_CHANGE'
EXPORTING
USERNAME = WA_ZUSR01-BNAME
DEFAULTS = DEFAULTSU
DEFAULTSX = DEFAULTSX
ADDRESS = ADDRESSU
ADDRESSX = ADDRESSX
TABLES
RETURN = RETURN_TABU.I just want to see in SU01 that I changed data, I dont care which table.
Some idea how I can solve it ?
‎2008 Aug 22 7:29 AM
Miro,
But I need to see that the last change was done by this bapi-user (even if it was in batch)
How do I fill BAPI_USER_CHANGE or do you know something else to update the LOG (USR04) correct
so I can see the date,time and user which changed the data ?
I just want to see in SU01 that I changed data, I dont care which table.
Some idea how I can solve it ?
If i understood right , i think USR04 details can be seen itself in Su01 is this not sufficiant to you?
Cheers
‎2008 Aug 22 7:35 AM
I call the bapi and then I check the data in SU01, than I see the changed phonenumber but I dont see when
and from who it was changed because the table usr04 and ush04 are not updated with the bapi.
when I add to change logon data I can see the change in the log and in SU01.
CALL FUNCTION 'BAPI_USER_CHANGE'
EXPORTING
LOGONDATA = LOGONDATAU
LOGONDATAX = LOGONDATAX
USERNAME = WA_ZUSR01-BNAME
DEFAULTS = DEFAULTSU
DEFAULTSX = DEFAULTSX
ADDRESS = ADDRESSU
ADDRESSX = ADDRESSX
TABLES
RETURN = RETURN_TABU.Edited by: Miro on Aug 22, 2008 9:51 AM
‎2008 Aug 22 8:56 AM
You are changing (business) address data of the user - that is not USR* data so you are looking in the wrong place.
Those changes are recorded as "business change documents" - tables CDHDR => CDPOS.
Cheers,
Julius
‎2008 Aug 22 9:05 AM
Yes you are right, but again why I can not see
in SU01 that the bapi changed the data.
Is there a report where I can see the changes ?
‎2008 Aug 22 9:18 AM
I have not tried to do that before myself and don't know any specific transaction for these address change documents.
Try report RSUSR100N? Worste case take report CHANGEDOCU_READ.
Cheers,
Julius