cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_USER_CHANGE call from JCo

Former Member
0 Kudos

Hi,

I'm calling BAPI_USER_CHANGE function for changing the Basis user details. I'm setting the values to the structures like ADDRESS and also to its XStructres, see the code snippet that I'm using.<i>

<i>JCO.Record reco = importlist.getStructure(name);

JCO.Record recoX = importlist.getStructure(name + 'X');

name = attrName.substring(index + 1);

field = reco.getField(name);

fieldX = recoX.getField(name);

field.setValue(attribute.getValues().get(0));// assume

// single value

// attribute

fieldX.setValue('X');</i>

after I execute the function using execute() method, the changes are reflected on the user, but the modification entry on USH04 is not getting added.

can some one help me out, what could be the reason and why the modification entries are not added in USH04, which working fine when user is modified using SU01 transaction.

Thanks in advance,

Chandrasekhar.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Chandrasekhar,

Just a hint: try to analyze "Return" structure of export parameters -- there are should be descriptive message why function call fails.

Valery Silaev

EPAM Systems

http://www.NetWeaverTeam.com

Former Member
0 Kudos

Hi,

the return structure is returning the success. Function call is not getting failed. Tha changes that I want to do are getting reflected only the modifiction indicating entry is not getting added to the USH04 table.

Thanks,

Chandrasekhar.