Skip to Content
0
Former Member
May 29, 2008 at 04:13 PM

Access GLTGB from USR02 via USER_BAPI_CHANGE

859 Views

Hello,

I'm a total newbie. I'm trying to access the GLTGB attribute from table USR02. I read in another forum thread that another way to do this would be to call the BAPI. (Pasted below) From the code I understand that USR02-CLASS can be accessed as LOGONDATA-CLASS. Is this correct? If so, how would I access the field GLTGB? Any suggestions/hints would be great.

Thanks!

By way of example, lets say you wanted to change a user's class to 'TESTER'. You could write code to directly modify the field CLASS in the table USR02 to do this. But the correct way to do it would be to call the BAPI for this purpose, like this.

username = 'MUSTER'.

logondata-class = 'TESTER'.

logondatax-class = 'X'.

call function 'BAPI_USER_CHANGE'

exporting

username = username

LOGONDATA = logondata

LOGONDATAX = logondatax

tables

return = return .