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: 

how to add user name and client to the ztable

Former Member
0 Kudos

hi,

i want to add user name and client number to the ztable

how can i add it.

5 REPLIES 5

Former Member
0 Kudos

Hi

clarify more.

Do u want to create two new fields in the table or

u want to display client and user in the report program?

Former Member
0 Kudos

Add 2 columns USER_NAME (like SY_UNAME) & CLIENT (like MANDT). I am not sure how you are populating your Z table, but while INSERT/UPDATE operations, point these columns to sy-uname & sy-mandt respectively.

I think the client number (MANDT) should be part of the Z table key, this way you don't have to worry about populating it.

Former Member
0 Kudos

Hi,

For client create a field with data element MANDT

For username create a field with data element SYUNAME

Thanks & Regards,

Vanita.

former_member188685
Active Contributor
0 Kudos

Hi

for all the Tables we will create the clinet using MANDT and USERNAME you need to do in the follwing way

MANDT	MANDT	CLNT	3	0	Client
UNAME	SYUNAME	CHAR	12	0	User Name

regards

vijay

Message was edited by: Vijay Babu Dudla

Former Member
0 Kudos

hi

create 2 fields with mandt like sy-mandt and

username like sy-uname....

try this hope it works

n reward if thesolution is helpful.

ragrds,

priya