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

BAPI_USER_CHANGE

Former Member
0 Likes
1,298

Hi All,

I am using BAPI_USER_CHANGE to update the details of Email-address?

Whm I run the program, I am getting success when I check the i_return table.

But When I go and view in SU01, email address is not been updated.

CALL FUNCTION 'BAPI_USER_CHANGE'

EXPORTING

username = sy-uname

tables

return = i_return

ADDSMTP = i_email_bapi

.

pls help me

6 REPLIES 6
Read only

Former Member
0 Likes
1,087

Hi,

Call FM 'BAPI_TRANSACTION_COMMIT' after successful return.

Rgds,

Bujji

Read only

0 Likes
1,087

Hi

I user the same FM BAPI_Transaction_commit.

But it is going for short dump

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

WAIT = '2'

IMPORTING

RETURN = i_return

.

Read only

0 Likes
1,087

Hi,

Just write the statement given below instead of the BAPI

" Commit Work ".

Thanks

Nayan

Read only

0 Likes
1,087

Can you tell what the short dump says? This will help us solve the issue.

Edited by: Romit Kewalramani on Jul 4, 2008 2:21 AM

Read only

0 Likes
1,087

Hi,

While using function module BAPI_TRANSACTION_COMMIT' the EXPORTING parameter WAIT should be having the value either 'X' or ' '. It s flag for wait and commit. You have passed value 2 that is why it is going for a short dump.

Thanks,

Thulasi Rajan M

Read only

Former Member
0 Likes
1,087

Hi Praveen,

Try this:

data: w_address type BAPIADDR3,

w_addressx type BAPIADDR3X.

data: t_return type standard table of bapiret2,

w_return type bapiret2.

w_address-e_mail = Give some mail id here.

w_addressx-e_mail = 'X'.

CALL FUNCTION 'BAPI_USER_CHANGE'

EXPORTING

USERNAME = sy-uname

ADDRESS = w_address

ADDRESSX = w_addressx

TABLES

RETURN = t_return.

Dont forget to reward points if found useful.

Thanks,

Satyesh