on 02-11-2009 6:53 AM
Dear Experts
i would like to know that how can we get the currently logged in user through query or some other option, as i want to generate different document series for every single user.
Secondly, if i have a party which is my customer as well as my vendor, how i can perform netting so as to get the recievables and payables for the particular party.
SELECT T0.U_NAME FROM OUSR T0 WHERE T0.INTERNAL_K = $[USER]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, Cameron. I have to create UDT to keep track of the employee, which I will be able to use as a variable in queries. This came from Ben Grassi it kinda works. Hopefully I can work on this next month.
SELECT CardCode, CardName, OCRD.SlpCode
FROM OCRD
LEFT JOIN OHEM ON OHEM.salesPrson=OCRD.SlpCode
LEFT JOIN OUSR ON OUSR.USERID=OHEM.userId
WHERE OUSR.USER_COde=(select top 1 UserCode from USR5 where SessionID = @@SPID and Source = 'SBO_Client' and Date < GETDATE() order by Date desc)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I get this error when I try the above in SAP B1 9.3
[Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Incorrect syntax near 'USER'. 2). [Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Statement 'Blanket Agreement' (OOAT) (s) could not be prepared.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Sri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
One way to get current logged in user list is through the XML file on the licensing server. Otherwise, you can get current user by
Select T0.U_Name From dbo.OUSR T0 Where T0.UserID = $[USER\].
What is your B1 version and PL? It may not be the same for 2005 or 2007 to handle those BP with both types.
Thanks,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.