gdwathare
30th December 2008, 13:31
Hi,

We have a customised session for mapping Sales order and Purchase order. If any transactions are done we want to add details in a table against that Baan user. Which function/variable will give me the User name so that I can add that detail in a table.

ks_ks_
30th December 2008, 14:44
Hi,

We have a customised session for mapping Sales order and Purchase order. If any transactions are done we want to add details in a table against that Baan user. Which function/variable will give me the User name so that I can add that detail in a table.

login$ will give you the login name of the user. Later you can use the table ttadv200 for the name of the user.

grzegorz
30th December 2008, 15:20
login$ will give you the login name of the user. Later you can use the table ttadv200 for the name of the user.

As far as I remember it is logname$, but maybe login$ also works.

mark_h
30th December 2008, 16:13
Or if you want the unix login name getenv$("LOGNAME") returns the unix login. :)

NPRao
30th December 2008, 19:04
login$ will give you the login name of the user. Later you can use the table ttadv200 for the name of the user.
You should be using the Tools function - tt.user () (http://babelfish.yahoo.com/translate_url?doit=done&tt=url&intl=1&fr=slv&lp=xx_en&trurl=http%3A%2F%2Fwww.baanboard.com%2Fprogrammers_manual_baanerp)

For example:
e = tt.user(logname$, username)

ks_ks_
30th December 2008, 20:01
It should be logname$ actually. My apologies.

gdwathare
31st December 2008, 08:13
I have used logname$ and i got required result..
Thanks all for your great inputs..