ā2014 Aug 18 3:10 PM
Hi All,
BAPI_USER_CHANGE doesnot seem to work while trying to change the User Type.
User Type is stored under LOGONDATA -> U
I am trying to change from A (Dialog) to B (System User); its not working. Any ideas?
Thanks!
ā2014 Aug 18 3:15 PM
Are you getting an error message, or dump (st22), if so please post here.
ā2014 Aug 18 3:18 PM
I am using SE37 and it doesnot change it at all.
It says ,
S SUID01 029 No changes were made to user XXXXX
ā2014 Aug 18 3:26 PM
Have you read note 1168508? This might solve your issue, but i am not 100% sure.
ā2014 Aug 18 3:27 PM
hi,
If you are testing via SE37 then you have to use the sequence FM:BAPI_TRANSACTION_COMMIT
After BAPI_USER_CHANGE.
COMMIT WORK is not happening, so use FM: in sequence
Then only it will reflect.
One more way is display the BAPI_USER_CHANGE and search for COMMIT WORK, put a break point on this and above of this. Search whether it falls under any IF condition then put on that IF condition also in debug mode jump to COMMIT WORK statement, then it will change your user.
Regards
Kamaal
ā2014 Aug 18 3:28 PM
Hi,
you can try to analyze also LOGONDATAX and not only LOGONDATA
LOGONDATAX LIKE BAPILOGONX Select Change-Relevant Fields
LOGONDATA LIKE BAPILOGOND Logon Data
Ivan
ā2014 Aug 20 12:16 PM
ā2014 Aug 20 1:53 PM
No. Not yet. BAPI_TRANSACTION_COMMIT After BAPI_USER_CHANGE also doesnot change the User Type. Any ideas?
ā2014 Aug 20 3:18 PM
Hi,
Try to use the Test sequence in that first give BAPI_USER_CHANGE then in second row give BAPI_TRANSACTION_COMMIT.
How to do this:
Go to SSE37
Choose Function Module from the Menu bar->Choose Test-> Test Sequence.
Here provide BAPI_USER_CHANGE & BAPI_TRANSACTION_COMMIT
Thanks
Kamaal
ā2014 Aug 20 6:08 PM
ā2014 Aug 20 4:25 PM
ā2014 Aug 21 7:31 AM
Hi Bidwan,
Did you set the update flag for User type change?
ls_logond-ustyp = 'B'.
ls_logondx-ustyp = 'X'.
CALL FUNCTION 'BAPI_USER_CHANGE'
EXPORTING
username = iv_username
logondata = ls_logond
logondatax = ls_logondx
TABLES
return = lt_bapiret.