02-15-2007 2:17 AM
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
02-15-2007 2:28 AM
02-15-2007 2:32 AM
Hi Subramanian,
How Can i get the associated kna1-kunnr details using user id.
Please help me.
thanks in advance
KP
02-15-2007 2:48 AM
02-15-2007 2:49 AM
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
02-15-2007 3:57 AM
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
02-15-2007 2:57 PM
Hi Gopi,
I tried with your suggestion.
but i didnt find any rows.
please help me.
thanks in advance
kp
02-15-2007 3:00 PM
On what screen do you see this data displayed (userid attached to a customer)?
Rob
02-15-2007 3:01 PM
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