Application Development 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: 

What is the check table for KNA1 to get the USER ID for User Master Record

Former Member
0 Kudos

Hi

Can anybody tell me what is the check table for kna1 to get the associated user id (user name for user master record) for kna1- kunnr.

thanks in advance

KP

8 REPLIES 8

Former Member
0 Kudos

Hi,

All user id's are stored in USR02 table.

Regards

Subramanian

0 Kudos

Hi Subramanian,

How Can i get the associated kna1-kunnr details using user id.

Please help me.

thanks in advance

KP

0 Kudos

User ids are not tied to customers. What exactly are you trying to do?

Regards,

Rich Heilman

0 Kudos

Hi KP,

Check the table USR05 with BNAME and PARID.

U can get the Customer related to the USER from the value PARVA.

select single * from USR05

into IS_USR05

where BNAME = SY-UNAME

and PARID = 'KUN'.

if SY-SUBRC = 0.

" IS_USR05-PARVA.gives you the value of the KUNNR

else.

" message 'Customer not maintained for User ' SY-UNAME.

endif.

Regards

Gopi

0 Kudos

Hi Heilman,

I am working on a report to get the customers associated with the user id's.

Please help me.

thanks in advance.

kp

0 Kudos

Hi Gopi,

I tried with your suggestion.

but i didnt find any rows.

please help me.

thanks in advance

kp

0 Kudos

On what screen do you see this data displayed (userid attached to a customer)?

Rob

0 Kudos

Hi KP,

in Standard procedure, Customers do not have a User Id mapped to them. There must be some Z table in your system which maintains the relation between the customer and user id. Check if such a ztable exists in your system.

regards,

Ravi