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

using BAPI_USER_CHANGE

former_member216100
Participant
0 Likes
1,583

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 !

7 REPLIES 7
Read only

Former Member
0 Likes
1,351

>

> 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

Read only

0 Likes
1,351

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 ?

Read only

Former Member
0 Likes
1,351

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

Read only

0 Likes
1,351

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

Read only

0 Likes
1,351

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

Read only

0 Likes
1,351

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 ?

Read only

0 Likes
1,351

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