Skip to Content
author's profile photo Former Member
Former Member

ADOC Query

Hi,

We need to query the ADOC table to see if a SAles User has any linked documents ie we need to check open/close documents referring to him?

We just need to check the ADOC for this one user but not sure what query will do it ?

Look forward to your reply,

MB

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Feb 10, 2010 at 04:00 PM

    I think you are referring to a sales employee. First you can run a query to determine the SlpCode . Run the

    Select * from OSLP

    query and use the sales employee code you see here in the next (or a similar) query:

    SELECT T0.[DocNum], T0.[ObjType], T0.[DocDate],
       T0.[CardCode], T0.[SlpCode] 
    FROM ADOC T0 
    WHERE T0.[SlpCode] =1

    (Replace the 1 with the SlpCode you saw in the first query.)

    Edited by: István K#rös on Feb 10, 2010 5:32 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 10, 2010 at 04:22 PM

    Hi,

    The first thing you need to clarify is: what Sales Users are you referring? If it is a user in sales department, it is still a normal user with user code and user name available from OUSR. Run a simple query SELECT * FORM OUSR to see. You will find out the User ID there if it is a normal user.

    Thanks,

    Gordon

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.